From 96963f8557b59740a13253352ed09b2c61e53e5b Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 27 Nov 2023 17:50:59 +1300 Subject: [PATCH] [ffigen] Update the ObjC and swift examples for the v10 code gen --- .../objective_c/avf_audio_bindings.dart | 45942 +++++++++------- .../example/objective_c/play_audio.dart | 4 + .../example/swift/swift_api_bindings.dart | 44558 +++++++++------ .../example/swift/third_party/swift_api.h | 25 +- 4 files changed, 53990 insertions(+), 36539 deletions(-) diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index 8d4936f87..cde69673d 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -1,4 +1,4 @@ -// ignore_for_file: camel_case_types, non_constant_identifier_names, unused_element, unused_field, return_of_invalid_type, void_checks, annotate_overrides, no_leading_underscores_for_local_identifiers, library_private_types_in_public_api +// ignore_for_file: camel_case_types, non_constant_identifier_names, unused_element, unused_field, void_checks, annotate_overrides, no_leading_underscores_for_local_identifiers, library_private_types_in_public_api // AUTO GENERATED FILE, DO NOT EDIT. // @@ -234,7 +234,7 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); - IMP _objc_msgSend_6( + ffi.Pointer> _objc_msgSend_6( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -248,10 +248,14 @@ class AVFAudio { late final __objc_msgSend_6Ptr = _lookup< ffi.NativeFunction< - IMP Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< - IMP Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_instanceMethodForSelector_1 = @@ -337,7 +341,7 @@ class AVFAudio { late final __objc_msgSend_10Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); @@ -359,7 +363,7 @@ class AVFAudio { late final __objc_msgSend_11Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -488,38 +492,57 @@ class AVFAudio { late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); late final _sel_nextObject1 = _registerName1("nextObject"); + ffi.Pointer _objc_msgSend_17( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_17( + obj, + sel, + ); + } + + late final __objc_msgSend_17Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_allObjects1 = _registerName1("allObjects"); late final _class_NSString1 = _getClass1("NSString"); late final _sel_length1 = _registerName1("length"); late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); - int _objc_msgSend_17( + int _objc_msgSend_18( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_17( + return __objc_msgSend_18( obj, sel, index, ); } - late final __objc_msgSend_17Ptr = _lookup< + late final __objc_msgSend_18Ptr = _lookup< ffi.NativeFunction< - unichar Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + ffi.UnsignedShort Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSCoder1 = _getClass1("NSCoder"); late final _sel_encodeValueOfObjCType_at_1 = _registerName1("encodeValueOfObjCType:at:"); - void _objc_msgSend_18( + void _objc_msgSend_19( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer addr, ) { - return __objc_msgSend_18( + return __objc_msgSend_19( obj, sel, type, @@ -527,61 +550,61 @@ class AVFAudio { ); } - late final __objc_msgSend_18Ptr = _lookup< + late final __objc_msgSend_19Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< + late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSData1 = _getClass1("NSData"); late final _sel_bytes1 = _registerName1("bytes"); - ffi.Pointer _objc_msgSend_19( + ffi.Pointer _objc_msgSend_20( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_19( + return __objc_msgSend_20( obj, sel, ); } - late final __objc_msgSend_19Ptr = _lookup< + late final __objc_msgSend_20Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< + late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_description1 = _registerName1("description"); - ffi.Pointer _objc_msgSend_20( + ffi.Pointer _objc_msgSend_21( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_20( + return __objc_msgSend_21( obj, sel, ); } - late final __objc_msgSend_20Ptr = _lookup< + late final __objc_msgSend_21Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< + late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); - void _objc_msgSend_21( + void _objc_msgSend_22( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int length, ) { - return __objc_msgSend_21( + return __objc_msgSend_22( obj, sel, buffer, @@ -589,22 +612,22 @@ class AVFAudio { ); } - late final __objc_msgSend_21Ptr = _lookup< + late final __objc_msgSend_22Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); - void _objc_msgSend_22( + void _objc_msgSend_23( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_22( + return __objc_msgSend_23( obj, sel, buffer, @@ -612,65 +635,65 @@ class AVFAudio { ); } - late final __objc_msgSend_22Ptr = _lookup< + late final __objc_msgSend_23Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); - bool _objc_msgSend_23( + bool _objc_msgSend_24( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_23( + return __objc_msgSend_24( obj, sel, other, ); } - late final __objc_msgSend_23Ptr = _lookup< + late final __objc_msgSend_24Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< + late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); - ffi.Pointer _objc_msgSend_24( + ffi.Pointer _objc_msgSend_25( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_24( + return __objc_msgSend_25( obj, sel, range, ); } - late final __objc_msgSend_24Ptr = _lookup< + late final __objc_msgSend_25Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_writeToFile_atomically_1 = _registerName1("writeToFile:atomically:"); - bool _objc_msgSend_25( + bool _objc_msgSend_26( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool useAuxiliaryFile, ) { - return __objc_msgSend_25( + return __objc_msgSend_26( obj, sel, path, @@ -678,25 +701,25 @@ class AVFAudio { ); } - late final __objc_msgSend_25Ptr = _lookup< + late final __objc_msgSend_26Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< + late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSURL1 = _getClass1("NSURL"); late final _sel_initWithScheme_host_path_1 = _registerName1("initWithScheme:host:path:"); - instancetype _objc_msgSend_26( + instancetype _objc_msgSend_27( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer scheme, ffi.Pointer host, ffi.Pointer path, ) { - return __objc_msgSend_26( + return __objc_msgSend_27( obj, sel, scheme, @@ -705,7 +728,7 @@ class AVFAudio { ); } - late final __objc_msgSend_26Ptr = _lookup< + late final __objc_msgSend_27Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -713,7 +736,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< + late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -723,14 +746,14 @@ class AVFAudio { late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_27( + instancetype _objc_msgSend_28( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_27( + return __objc_msgSend_28( obj, sel, path, @@ -739,7 +762,7 @@ class AVFAudio { ); } - late final __objc_msgSend_27Ptr = _lookup< + late final __objc_msgSend_28Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -747,19 +770,19 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< + late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_initFileURLWithPath_relativeToURL_1 = _registerName1("initFileURLWithPath:relativeToURL:"); - instancetype _objc_msgSend_28( + instancetype _objc_msgSend_29( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer baseURL, ) { - return __objc_msgSend_28( + return __objc_msgSend_29( obj, sel, path, @@ -767,26 +790,26 @@ class AVFAudio { ); } - late final __objc_msgSend_28Ptr = _lookup< + late final __objc_msgSend_29Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< + late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initFileURLWithPath_isDirectory_1 = _registerName1("initFileURLWithPath:isDirectory:"); - instancetype _objc_msgSend_29( + instancetype _objc_msgSend_30( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ) { - return __objc_msgSend_29( + return __objc_msgSend_30( obj, sel, path, @@ -794,46 +817,46 @@ class AVFAudio { ); } - late final __objc_msgSend_29Ptr = _lookup< + late final __objc_msgSend_30Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< + late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initFileURLWithPath_1 = _registerName1("initFileURLWithPath:"); - instancetype _objc_msgSend_30( + instancetype _objc_msgSend_31( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_30( + return __objc_msgSend_31( obj, sel, path, ); } - late final __objc_msgSend_30Ptr = _lookup< + late final __objc_msgSend_31Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< + late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_31( + ffi.Pointer _objc_msgSend_32( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_31( + return __objc_msgSend_32( obj, sel, path, @@ -842,7 +865,7 @@ class AVFAudio { ); } - late final __objc_msgSend_31Ptr = _lookup< + late final __objc_msgSend_32Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -850,7 +873,7 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< + late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -860,13 +883,13 @@ class AVFAudio { late final _sel_fileURLWithPath_relativeToURL_1 = _registerName1("fileURLWithPath:relativeToURL:"); - ffi.Pointer _objc_msgSend_32( + ffi.Pointer _objc_msgSend_33( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer baseURL, ) { - return __objc_msgSend_32( + return __objc_msgSend_33( obj, sel, path, @@ -874,14 +897,14 @@ class AVFAudio { ); } - late final __objc_msgSend_32Ptr = _lookup< + late final __objc_msgSend_33Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< + late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -890,13 +913,13 @@ class AVFAudio { late final _sel_fileURLWithPath_isDirectory_1 = _registerName1("fileURLWithPath:isDirectory:"); - ffi.Pointer _objc_msgSend_33( + ffi.Pointer _objc_msgSend_34( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ) { - return __objc_msgSend_33( + return __objc_msgSend_34( obj, sel, path, @@ -904,49 +927,49 @@ class AVFAudio { ); } - late final __objc_msgSend_33Ptr = _lookup< + late final __objc_msgSend_34Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< + late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); - ffi.Pointer _objc_msgSend_34( + ffi.Pointer _objc_msgSend_35( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_34( + return __objc_msgSend_35( obj, sel, path, ); } - late final __objc_msgSend_34Ptr = _lookup< + late final __objc_msgSend_35Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< + late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = _registerName1( "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_35( + instancetype _objc_msgSend_36( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_35( + return __objc_msgSend_36( obj, sel, path, @@ -955,7 +978,7 @@ class AVFAudio { ); } - late final __objc_msgSend_35Ptr = _lookup< + late final __objc_msgSend_36Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -963,21 +986,21 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< + late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = _registerName1( "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_36( + ffi.Pointer _objc_msgSend_37( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_36( + return __objc_msgSend_37( obj, sel, path, @@ -986,7 +1009,7 @@ class AVFAudio { ); } - late final __objc_msgSend_36Ptr = _lookup< + late final __objc_msgSend_37Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -994,7 +1017,7 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< + late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1003,20 +1026,91 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_initWithString_1 = _registerName1("initWithString:"); + instancetype _objc_msgSend_38( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ) { + return __objc_msgSend_38( + obj, + sel, + URLString, + ); + } + + late final __objc_msgSend_38Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithString_relativeToURL_1 = _registerName1("initWithString:relativeToURL:"); + instancetype _objc_msgSend_39( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_39( + obj, + sel, + URLString, + baseURL, + ); + } + + late final __objc_msgSend_39Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_URLWithString_1 = _registerName1("URLWithString:"); late final _sel_URLWithString_relativeToURL_1 = _registerName1("URLWithString:relativeToURL:"); + late final _sel_initWithString_encodingInvalidCharacters_1 = + _registerName1("initWithString:encodingInvalidCharacters:"); + instancetype _objc_msgSend_40( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + bool encodingInvalidCharacters, + ) { + return __objc_msgSend_40( + obj, + sel, + URLString, + encodingInvalidCharacters, + ); + } + + late final __objc_msgSend_40Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_URLWithString_encodingInvalidCharacters_1 = + _registerName1("URLWithString:encodingInvalidCharacters:"); late final _sel_initWithDataRepresentation_relativeToURL_1 = _registerName1("initWithDataRepresentation:relativeToURL:"); - instancetype _objc_msgSend_37( + instancetype _objc_msgSend_41( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_37( + return __objc_msgSend_41( obj, sel, data, @@ -1024,26 +1118,26 @@ class AVFAudio { ); } - late final __objc_msgSend_37Ptr = _lookup< + late final __objc_msgSend_41Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< + late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLWithDataRepresentation_relativeToURL_1 = _registerName1("URLWithDataRepresentation:relativeToURL:"); - ffi.Pointer _objc_msgSend_38( + ffi.Pointer _objc_msgSend_42( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_38( + return __objc_msgSend_42( obj, sel, data, @@ -1051,14 +1145,14 @@ class AVFAudio { ); } - late final __objc_msgSend_38Ptr = _lookup< + late final __objc_msgSend_42Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1070,42 +1164,60 @@ class AVFAudio { late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); - ffi.Pointer _objc_msgSend_39( + ffi.Pointer _objc_msgSend_43( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_39( + return __objc_msgSend_43( obj, sel, ); } - late final __objc_msgSend_39Ptr = _lookup< + late final __objc_msgSend_43Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_absoluteString1 = _registerName1("absoluteString"); + ffi.Pointer _objc_msgSend_44( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_44( + obj, + sel, + ); + } + + late final __objc_msgSend_44Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_relativeString1 = _registerName1("relativeString"); late final _sel_baseURL1 = _registerName1("baseURL"); - ffi.Pointer _objc_msgSend_40( + ffi.Pointer _objc_msgSend_45( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_40( + return __objc_msgSend_45( obj, sel, ); } - late final __objc_msgSend_40Ptr = _lookup< + late final __objc_msgSend_45Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -1119,13 +1231,13 @@ class AVFAudio { late final _sel_objCType1 = _registerName1("objCType"); late final _sel_initWithBytes_objCType_1 = _registerName1("initWithBytes:objCType:"); - instancetype _objc_msgSend_41( + instancetype _objc_msgSend_46( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_41( + return __objc_msgSend_46( obj, sel, value, @@ -1133,44 +1245,44 @@ class AVFAudio { ); } - late final __objc_msgSend_41Ptr = _lookup< + late final __objc_msgSend_46Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< + late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); - instancetype _objc_msgSend_42( + instancetype _objc_msgSend_47( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_42( + return __objc_msgSend_47( obj, sel, coder, ); } - late final __objc_msgSend_42Ptr = _lookup< + late final __objc_msgSend_47Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< + late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithBytes_objCType_1 = _registerName1("valueWithBytes:objCType:"); - ffi.Pointer _objc_msgSend_43( + ffi.Pointer _objc_msgSend_48( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_43( + return __objc_msgSend_48( obj, sel, value, @@ -1178,14 +1290,14 @@ class AVFAudio { ); } - late final __objc_msgSend_43Ptr = _lookup< + late final __objc_msgSend_48Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< + late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1195,363 +1307,378 @@ class AVFAudio { late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); late final _sel_valueWithNonretainedObject_1 = _registerName1("valueWithNonretainedObject:"); - ffi.Pointer _objc_msgSend_44( + ffi.Pointer _objc_msgSend_49( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_44( + return __objc_msgSend_49( obj, sel, anObject, ); } - late final __objc_msgSend_44Ptr = _lookup< + late final __objc_msgSend_49Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_nonretainedObjectValue1 = _registerName1("nonretainedObjectValue"); late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); - ffi.Pointer _objc_msgSend_45( + ffi.Pointer _objc_msgSend_50( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pointer, ) { - return __objc_msgSend_45( + return __objc_msgSend_50( obj, sel, pointer, ); } - late final __objc_msgSend_45Ptr = _lookup< + late final __objc_msgSend_50Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< + late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerValue1 = _registerName1("pointerValue"); late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); - bool _objc_msgSend_46( + bool _objc_msgSend_51( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_46( + return __objc_msgSend_51( obj, sel, value, ); } - late final __objc_msgSend_46Ptr = _lookup< + late final __objc_msgSend_51Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< + late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getValue_1 = _registerName1("getValue:"); - void _objc_msgSend_47( + void _objc_msgSend_52( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_47( + return __objc_msgSend_52( obj, sel, value, ); } - late final __objc_msgSend_47Ptr = _lookup< + late final __objc_msgSend_52Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< + late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); - ffi.Pointer _objc_msgSend_48( + ffi.Pointer _objc_msgSend_53( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_48( + return __objc_msgSend_53( obj, sel, range, ); } - late final __objc_msgSend_48Ptr = _lookup< + late final __objc_msgSend_53Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_rangeValue1 = _registerName1("rangeValue"); - NSRange _objc_msgSend_49( + void _objc_msgSend_54( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_49( + return __objc_msgSend_54( + stret, obj, sel, ); } - late final __objc_msgSend_49Ptr = _lookup< + late final __objc_msgSend_54Ptr = _lookup< ffi.NativeFunction< - NSRange Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer)>(); late final _sel_valueWithPoint_1 = _registerName1("valueWithPoint:"); - ffi.Pointer _objc_msgSend_50( + ffi.Pointer _objc_msgSend_55( ffi.Pointer obj, ffi.Pointer sel, - NSPoint point, + CGPoint point, ) { - return __objc_msgSend_50( + return __objc_msgSend_55( obj, sel, point, ); } - late final __objc_msgSend_50Ptr = _lookup< + late final __objc_msgSend_55Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSPoint)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + ffi.Pointer, CGPoint)>>('objc_msgSend'); + late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSPoint)>(); + ffi.Pointer, ffi.Pointer, CGPoint)>(); late final _sel_valueWithSize_1 = _registerName1("valueWithSize:"); - ffi.Pointer _objc_msgSend_51( + ffi.Pointer _objc_msgSend_56( ffi.Pointer obj, ffi.Pointer sel, - NSSize size, + CGSize size, ) { - return __objc_msgSend_51( + return __objc_msgSend_56( obj, sel, size, ); } - late final __objc_msgSend_51Ptr = _lookup< + late final __objc_msgSend_56Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSSize)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< + ffi.Pointer, CGSize)>>('objc_msgSend'); + late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSSize)>(); + ffi.Pointer, ffi.Pointer, CGSize)>(); late final _sel_valueWithRect_1 = _registerName1("valueWithRect:"); - ffi.Pointer _objc_msgSend_52( + ffi.Pointer _objc_msgSend_57( ffi.Pointer obj, ffi.Pointer sel, - NSRect rect, + CGRect rect, ) { - return __objc_msgSend_52( + return __objc_msgSend_57( obj, sel, rect, ); } - late final __objc_msgSend_52Ptr = _lookup< + late final __objc_msgSend_57Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRect)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< + ffi.Pointer, CGRect)>>('objc_msgSend'); + late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRect)>(); + ffi.Pointer, ffi.Pointer, CGRect)>(); late final _sel_valueWithEdgeInsets_1 = _registerName1("valueWithEdgeInsets:"); - ffi.Pointer _objc_msgSend_53( + ffi.Pointer _objc_msgSend_58( ffi.Pointer obj, ffi.Pointer sel, NSEdgeInsets insets, ) { - return __objc_msgSend_53( + return __objc_msgSend_58( obj, sel, insets, ); } - late final __objc_msgSend_53Ptr = _lookup< + late final __objc_msgSend_58Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSEdgeInsets)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< + late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSEdgeInsets)>(); late final _sel_pointValue1 = _registerName1("pointValue"); - NSPoint _objc_msgSend_54( + void _objc_msgSend_59( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_54( + return __objc_msgSend_59( + stret, obj, sel, ); } - late final __objc_msgSend_54Ptr = _lookup< + late final __objc_msgSend_59Ptr = _lookup< ffi.NativeFunction< - NSPoint Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< - NSPoint Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_sizeValue1 = _registerName1("sizeValue"); - NSSize _objc_msgSend_55( + void _objc_msgSend_60( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_55( + return __objc_msgSend_60( + stret, obj, sel, ); } - late final __objc_msgSend_55Ptr = _lookup< + late final __objc_msgSend_60Ptr = _lookup< ffi.NativeFunction< - NSSize Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< - NSSize Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_rectValue1 = _registerName1("rectValue"); - NSRect _objc_msgSend_56( + void _objc_msgSend_61( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_56( + return __objc_msgSend_61( + stret, obj, sel, ); } - late final __objc_msgSend_56Ptr = _lookup< + late final __objc_msgSend_61Ptr = _lookup< ffi.NativeFunction< - NSRect Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< - NSRect Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_edgeInsetsValue1 = _registerName1("edgeInsetsValue"); - NSEdgeInsets _objc_msgSend_57( + void _objc_msgSend_62( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_57( + return __objc_msgSend_62( + stret, obj, sel, ); } - late final __objc_msgSend_57Ptr = _lookup< + late final __objc_msgSend_62Ptr = _lookup< ffi.NativeFunction< - NSEdgeInsets Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< - NSEdgeInsets Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_keyPathsForValuesAffectingValueForKey_1 = _registerName1("keyPathsForValuesAffectingValueForKey:"); - ffi.Pointer _objc_msgSend_58( + ffi.Pointer _objc_msgSend_63( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_58( + return __objc_msgSend_63( obj, sel, key, ); } - late final __objc_msgSend_58Ptr = _lookup< + late final __objc_msgSend_63Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< + late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_automaticallyNotifiesObserversForKey_1 = _registerName1("automaticallyNotifiesObserversForKey:"); - bool _objc_msgSend_59( + bool _objc_msgSend_64( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_59( + return __objc_msgSend_64( obj, sel, key, ); } - late final __objc_msgSend_59Ptr = _lookup< + late final __objc_msgSend_64Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSArray1 = _getClass1("NSArray"); late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); - ffi.Pointer _objc_msgSend_60( + ffi.Pointer _objc_msgSend_65( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_60( + return __objc_msgSend_65( obj, sel, index, ); } - late final __objc_msgSend_60Ptr = _lookup< + late final __objc_msgSend_65Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithObjects_count_1 = _registerName1("initWithObjects:count:"); - instancetype _objc_msgSend_61( + instancetype _objc_msgSend_66( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int cnt, ) { - return __objc_msgSend_61( + return __objc_msgSend_66( obj, sel, objects, @@ -1559,115 +1686,115 @@ class AVFAudio { ); } - late final __objc_msgSend_61Ptr = _lookup< + late final __objc_msgSend_66Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_arrayByAddingObject_1 = _registerName1("arrayByAddingObject:"); - ffi.Pointer _objc_msgSend_62( + ffi.Pointer _objc_msgSend_67( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_62( + return __objc_msgSend_67( obj, sel, anObject, ); } - late final __objc_msgSend_62Ptr = _lookup< + late final __objc_msgSend_67Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayByAddingObjectsFromArray_1 = _registerName1("arrayByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_63( + ffi.Pointer _objc_msgSend_68( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_63( + return __objc_msgSend_68( obj, sel, otherArray, ); } - late final __objc_msgSend_63Ptr = _lookup< + late final __objc_msgSend_68Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< + late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_componentsJoinedByString_1 = _registerName1("componentsJoinedByString:"); - ffi.Pointer _objc_msgSend_64( + ffi.Pointer _objc_msgSend_69( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_64( + return __objc_msgSend_69( obj, sel, separator, ); } - late final __objc_msgSend_64Ptr = _lookup< + late final __objc_msgSend_69Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< + late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_containsObject_1 = _registerName1("containsObject:"); late final _sel_descriptionWithLocale_1 = _registerName1("descriptionWithLocale:"); - ffi.Pointer _objc_msgSend_65( + ffi.Pointer _objc_msgSend_70( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_65( + return __objc_msgSend_70( obj, sel, locale, ); } - late final __objc_msgSend_65Ptr = _lookup< + late final __objc_msgSend_70Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< + late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptionWithLocale_indent_1 = _registerName1("descriptionWithLocale:indent:"); - ffi.Pointer _objc_msgSend_66( + ffi.Pointer _objc_msgSend_71( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, int level, ) { - return __objc_msgSend_66( + return __objc_msgSend_71( obj, sel, locale, @@ -1675,47 +1802,47 @@ class AVFAudio { ); } - late final __objc_msgSend_66Ptr = _lookup< + late final __objc_msgSend_71Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_firstObjectCommonWithArray_1 = _registerName1("firstObjectCommonWithArray:"); - ffi.Pointer _objc_msgSend_67( + ffi.Pointer _objc_msgSend_72( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_67( + return __objc_msgSend_72( obj, sel, otherArray, ); } - late final __objc_msgSend_67Ptr = _lookup< + late final __objc_msgSend_72Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< + late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); - void _objc_msgSend_68( + void _objc_msgSend_73( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_68( + return __objc_msgSend_73( obj, sel, objects, @@ -1723,44 +1850,44 @@ class AVFAudio { ); } - late final __objc_msgSend_68Ptr = _lookup< + late final __objc_msgSend_73Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< + ffi.Pointer>, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, NSRange)>(); + ffi.Pointer>, _NSRange)>(); late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); - int _objc_msgSend_69( + int _objc_msgSend_74( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_69( + return __objc_msgSend_74( obj, sel, anObject, ); } - late final __objc_msgSend_69Ptr = _lookup< + late final __objc_msgSend_74Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_indexOfObject_inRange_1 = _registerName1("indexOfObject:inRange:"); - int _objc_msgSend_70( + int _objc_msgSend_75( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_70( + return __objc_msgSend_75( obj, sel, anObject, @@ -1768,57 +1895,60 @@ class AVFAudio { ); } - late final __objc_msgSend_70Ptr = _lookup< + late final __objc_msgSend_75Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_indexOfObjectIdenticalTo_1 = _registerName1("indexOfObjectIdenticalTo:"); late final _sel_indexOfObjectIdenticalTo_inRange_1 = _registerName1("indexOfObjectIdenticalTo:inRange:"); late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); - bool _objc_msgSend_71( + bool _objc_msgSend_76( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_71( + return __objc_msgSend_76( obj, sel, otherArray, ); } - late final __objc_msgSend_71Ptr = _lookup< + late final __objc_msgSend_76Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< + late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_firstObject1 = _registerName1("firstObject"); late final _sel_lastObject1 = _registerName1("lastObject"); late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); - ffi.Pointer _objc_msgSend_72( + ffi.Pointer _objc_msgSend_77( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_72( + return __objc_msgSend_77( obj, sel, ); } - late final __objc_msgSend_72Ptr = _lookup< + late final __objc_msgSend_77Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< + late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -1827,17 +1957,17 @@ class AVFAudio { late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); late final _sel_sortedArrayUsingFunction_context_1 = _registerName1("sortedArrayUsingFunction:context:"); - ffi.Pointer _objc_msgSend_73( + ffi.Pointer _objc_msgSend_78( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context, ) { - return __objc_msgSend_73( + return __objc_msgSend_78( obj, sel, comparator, @@ -1845,40 +1975,40 @@ class AVFAudio { ); } - late final __objc_msgSend_73Ptr = _lookup< + late final __objc_msgSend_78Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< + late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>(); late final _sel_sortedArrayUsingFunction_context_hint_1 = _registerName1("sortedArrayUsingFunction:context:hint:"); - ffi.Pointer _objc_msgSend_74( + ffi.Pointer _objc_msgSend_79( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context, ffi.Pointer hint, ) { - return __objc_msgSend_74( + return __objc_msgSend_79( obj, sel, comparator, @@ -1887,174 +2017,330 @@ class AVFAudio { ); } - late final __objc_msgSend_74Ptr = _lookup< + late final __objc_msgSend_79Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< + late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer, ffi.Pointer)>(); late final _sel_sortedArrayUsingSelector_1 = _registerName1("sortedArrayUsingSelector:"); - ffi.Pointer _objc_msgSend_75( + ffi.Pointer _objc_msgSend_80( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comparator, ) { - return __objc_msgSend_75( + return __objc_msgSend_80( obj, sel, comparator, ); } - late final __objc_msgSend_75Ptr = _lookup< + late final __objc_msgSend_80Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< + late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); - ffi.Pointer _objc_msgSend_76( + ffi.Pointer _objc_msgSend_81( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_76( + return __objc_msgSend_81( obj, sel, range, ); } - late final __objc_msgSend_76Ptr = _lookup< + late final __objc_msgSend_81Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _class_NSError1 = _getClass1("NSError"); late final _sel_initWithDomain_code_userInfo_1 = _registerName1("initWithDomain:code:userInfo:"); - instancetype _objc_msgSend_77( + instancetype _objc_msgSend_82( ffi.Pointer obj, ffi.Pointer sel, - NSErrorDomain domain, + ffi.Pointer domain, int code, + ffi.Pointer dict, ) { - return __objc_msgSend_77( + return __objc_msgSend_82( obj, sel, domain, code, + dict, ); } - late final __objc_msgSend_77Ptr = _lookup< + late final __objc_msgSend_82Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - NSErrorDomain, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, NSErrorDomain, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); late final _sel_errorWithDomain_code_userInfo_1 = _registerName1("errorWithDomain:code:userInfo:"); late final _sel_domain1 = _registerName1("domain"); late final _sel_code1 = _registerName1("code"); - int _objc_msgSend_78( + int _objc_msgSend_83( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_78( + return __objc_msgSend_83( obj, sel, ); } - late final __objc_msgSend_78Ptr = _lookup< + late final __objc_msgSend_83Ptr = _lookup< ffi.NativeFunction< - NSInteger Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< + late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = - _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); - void _objc_msgSend_79( + late final _sel_userInfo1 = _registerName1("userInfo"); + late final _sel_localizedDescription1 = + _registerName1("localizedDescription"); + late final _sel_localizedFailureReason1 = + _registerName1("localizedFailureReason"); + late final _sel_localizedRecoverySuggestion1 = + _registerName1("localizedRecoverySuggestion"); + late final _sel_localizedRecoveryOptions1 = + _registerName1("localizedRecoveryOptions"); + ffi.Pointer _objc_msgSend_84( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer dependentKey, ) { - return __objc_msgSend_79( + return __objc_msgSend_84( obj, sel, - keys, - dependentKey, ); } - late final __objc_msgSend_79Ptr = _lookup< + late final __objc_msgSend_84Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); + late final _sel_helpAnchor1 = _registerName1("helpAnchor"); + late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); + ffi.Pointer _objc_msgSend_85( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_85( + obj, + sel, + ); + } + + late final __objc_msgSend_85Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { + final d = + pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); + d.ref.reserved = 0; + d.ref.size = ffi.sizeOf<_ObjCBlock>(); + d.ref.copy_helper = ffi.nullptr; + d.ref.dispose_helper = ffi.nullptr; + d.ref.signature = ffi.nullptr; + return d; + } + + late final _objc_block_desc1 = _newBlockDesc1(); + late final _objc_concrete_global_block1 = + _lookup('_NSConcreteGlobalBlock'); + ffi.Pointer<_ObjCBlock> _newBlock1( + ffi.Pointer invoke, ffi.Pointer target) { + final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); + b.ref.isa = _objc_concrete_global_block1; + b.ref.flags = 0; + b.ref.reserved = 0; + b.ref.invoke = invoke; + b.ref.target = target; + b.ref.descriptor = _objc_block_desc1; + final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); + pkg_ffi.calloc.free(b); + return copy; + } + + ffi.Pointer _Block_copy( + ffi.Pointer value, + ) { + return __Block_copy( + value, + ); + } + + late final __Block_copyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('_Block_copy'); + late final __Block_copy = __Block_copyPtr + .asFunction Function(ffi.Pointer)>(); + + void _Block_release( + ffi.Pointer value, + ) { + return __Block_release( + value, + ); + } + + late final __Block_releasePtr = + _lookup)>>( + '_Block_release'); + late final __Block_release = + __Block_releasePtr.asFunction)>(); + + late final _objc_releaseFinalizer11 = + ffi.NativeFinalizer(__Block_releasePtr.cast()); + late final _sel_setUserInfoValueProviderForDomain_provider_1 = + _registerName1("setUserInfoValueProviderForDomain:provider:"); + void _objc_msgSend_86( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer errorDomain, + ffi.Pointer<_ObjCBlock> provider, + ) { + return __objc_msgSend_86( + obj, + sel, + errorDomain, + provider, + ); + } + + late final __objc_msgSend_86Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_classFallbacksForKeyedArchiver1 = - _registerName1("classFallbacksForKeyedArchiver"); - ffi.Pointer _objc_msgSend_80( + late final _sel_userInfoValueProviderForDomain_1 = + _registerName1("userInfoValueProviderForDomain:"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_87( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer err, + ffi.Pointer userInfoKey, + ffi.Pointer errorDomain, ) { - return __objc_msgSend_80( + return __objc_msgSend_87( obj, sel, + err, + userInfoKey, + errorDomain, ); } - late final __objc_msgSend_80Ptr = _lookup< + late final __objc_msgSend_87Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = + _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); + void _objc_msgSend_88( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer dependentKey, + ) { + return __objc_msgSend_88( + obj, + sel, + keys, + dependentKey, + ); + } + + late final __objc_msgSend_88Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_classFallbacksForKeyedArchiver1 = + _registerName1("classFallbacksForKeyedArchiver"); late final _sel_classForKeyedUnarchiver1 = _registerName1("classForKeyedUnarchiver"); late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); - bool _objc_msgSend_81( + bool _objc_msgSend_89( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_81( + return __objc_msgSend_89( obj, sel, url, @@ -2062,14 +2348,14 @@ class AVFAudio { ); } - late final __objc_msgSend_81Ptr = _lookup< + late final __objc_msgSend_89Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< + late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -2077,13 +2363,13 @@ class AVFAudio { _registerName1("makeObjectsPerformSelector:"); late final _sel_makeObjectsPerformSelector_withObject_1 = _registerName1("makeObjectsPerformSelector:withObject:"); - void _objc_msgSend_82( + void _objc_msgSend_90( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer argument, ) { - return __objc_msgSend_82( + return __objc_msgSend_90( obj, sel, aSelector, @@ -2091,11 +2377,11 @@ class AVFAudio { ); } - late final __objc_msgSend_82Ptr = _lookup< + late final __objc_msgSend_90Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2104,68 +2390,68 @@ class AVFAudio { late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); late final _sel_indexSetWithIndexesInRange_1 = _registerName1("indexSetWithIndexesInRange:"); - instancetype _objc_msgSend_83( + instancetype _objc_msgSend_91( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_83( + return __objc_msgSend_91( obj, sel, range, ); } - late final __objc_msgSend_83Ptr = _lookup< + late final __objc_msgSend_91Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< instancetype Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_initWithIndexesInRange_1 = _registerName1("initWithIndexesInRange:"); late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); - instancetype _objc_msgSend_84( + instancetype _objc_msgSend_92( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_84( + return __objc_msgSend_92( obj, sel, indexSet, ); } - late final __objc_msgSend_84Ptr = _lookup< + late final __objc_msgSend_92Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); - bool _objc_msgSend_85( + bool _objc_msgSend_93( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_85( + return __objc_msgSend_93( obj, sel, indexSet, ); } - late final __objc_msgSend_85Ptr = _lookup< + late final __objc_msgSend_93Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2173,23 +2459,23 @@ class AVFAudio { late final _sel_lastIndex1 = _registerName1("lastIndex"); late final _sel_indexGreaterThanIndex_1 = _registerName1("indexGreaterThanIndex:"); - int _objc_msgSend_86( + int _objc_msgSend_94( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_86( + return __objc_msgSend_94( obj, sel, value, ); } - late final __objc_msgSend_86Ptr = _lookup< + late final __objc_msgSend_94Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); @@ -2199,14 +2485,14 @@ class AVFAudio { _registerName1("indexLessThanOrEqualToIndex:"); late final _sel_getIndexes_maxCount_inIndexRange_1 = _registerName1("getIndexes:maxCount:inIndexRange:"); - int _objc_msgSend_87( + int _objc_msgSend_95( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexBuffer, + ffi.Pointer indexBuffer, int bufferSize, - NSRangePointer range, + ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_87( + return __objc_msgSend_95( obj, sel, indexBuffer, @@ -2215,167 +2501,114 @@ class AVFAudio { ); } - late final __objc_msgSend_87Ptr = _lookup< + late final __objc_msgSend_95Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRangePointer)>(); + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_countOfIndexesInRange_1 = _registerName1("countOfIndexesInRange:"); - int _objc_msgSend_88( + int _objc_msgSend_96( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_88( + return __objc_msgSend_96( obj, sel, range, ); } - late final __objc_msgSend_88Ptr = _lookup< + late final __objc_msgSend_96Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_containsIndex_1 = _registerName1("containsIndex:"); - bool _objc_msgSend_89( + bool _objc_msgSend_97( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_89( + return __objc_msgSend_97( obj, sel, value, ); } - late final __objc_msgSend_89Ptr = _lookup< + late final __objc_msgSend_97Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_containsIndexesInRange_1 = _registerName1("containsIndexesInRange:"); - bool _objc_msgSend_90( + bool _objc_msgSend_98( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_90( + return __objc_msgSend_98( obj, sel, range, ); } - late final __objc_msgSend_90Ptr = _lookup< + late final __objc_msgSend_98Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); late final _sel_intersectsIndexesInRange_1 = _registerName1("intersectsIndexesInRange:"); - ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { - final d = - pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); - d.ref.size = ffi.sizeOf<_ObjCBlock>(); - return d; - } - - late final _objc_block_desc1 = _newBlockDesc1(); - late final _objc_concrete_global_block1 = - _lookup('_NSConcreteGlobalBlock'); - ffi.Pointer<_ObjCBlock> _newBlock1( - ffi.Pointer invoke, ffi.Pointer target) { - final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); - b.ref.isa = _objc_concrete_global_block1; - b.ref.invoke = invoke; - b.ref.target = target; - b.ref.descriptor = _objc_block_desc1; - final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); - pkg_ffi.calloc.free(b); - return copy; - } - - ffi.Pointer _Block_copy( - ffi.Pointer value, - ) { - return __Block_copy( - value, - ); - } - - late final __Block_copyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); - late final __Block_copy = __Block_copyPtr - .asFunction Function(ffi.Pointer)>(); - - void _Block_release( - ffi.Pointer value, - ) { - return __Block_release( - value, - ); - } - - late final __Block_releasePtr = - _lookup)>>( - '_Block_release'); - late final __Block_release = - __Block_releasePtr.asFunction)>(); - - late final _objc_releaseFinalizer11 = - ffi.NativeFinalizer(__Block_releasePtr.cast()); late final _sel_enumerateIndexesUsingBlock_1 = _registerName1("enumerateIndexesUsingBlock:"); - void _objc_msgSend_91( + void _objc_msgSend_99( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_91( + return __objc_msgSend_99( obj, sel, block, ); } - late final __objc_msgSend_91Ptr = _lookup< + late final __objc_msgSend_99Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesWithOptions_usingBlock_1 = _registerName1("enumerateIndexesWithOptions:usingBlock:"); - void _objc_msgSend_92( + void _objc_msgSend_100( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_92( + return __objc_msgSend_100( obj, sel, opts, @@ -2383,24 +2616,24 @@ class AVFAudio { ); } - late final __objc_msgSend_92Ptr = _lookup< + late final __objc_msgSend_100Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesInRange_options_usingBlock_1 = _registerName1("enumerateIndexesInRange:options:usingBlock:"); - void _objc_msgSend_93( + void _objc_msgSend_101( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_93( + return __objc_msgSend_101( obj, sel, range, @@ -2409,44 +2642,44 @@ class AVFAudio { ); } - late final __objc_msgSend_93Ptr = _lookup< + late final __objc_msgSend_101Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); - int _objc_msgSend_94( + int _objc_msgSend_102( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_94( + return __objc_msgSend_102( obj, sel, predicate, ); } - late final __objc_msgSend_94Ptr = _lookup< + late final __objc_msgSend_102Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexWithOptions_passingTest_1 = _registerName1("indexWithOptions:passingTest:"); - int _objc_msgSend_95( + int _objc_msgSend_103( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_95( + return __objc_msgSend_103( obj, sel, opts, @@ -2454,24 +2687,27 @@ class AVFAudio { ); } - late final __objc_msgSend_95Ptr = _lookup< + late final __objc_msgSend_103Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexInRange_options_passingTest_1 = _registerName1("indexInRange:options:passingTest:"); - int _objc_msgSend_96( + int _objc_msgSend_104( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_96( + return __objc_msgSend_104( obj, sel, range, @@ -2480,44 +2716,48 @@ class AVFAudio { ); } - late final __objc_msgSend_96Ptr = _lookup< + late final __objc_msgSend_104Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, NSRange, int, + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); - ffi.Pointer _objc_msgSend_97( + ffi.Pointer _objc_msgSend_105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_97( + return __objc_msgSend_105( obj, sel, predicate, ); } - late final __objc_msgSend_97Ptr = _lookup< + late final __objc_msgSend_105Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< + late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesWithOptions_passingTest_1 = _registerName1("indexesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_98( + ffi.Pointer _objc_msgSend_106( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_98( + return __objc_msgSend_106( obj, sel, opts, @@ -2525,27 +2765,27 @@ class AVFAudio { ); } - late final __objc_msgSend_98Ptr = _lookup< + late final __objc_msgSend_106Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesInRange_options_passingTest_1 = _registerName1("indexesInRange:options:passingTest:"); - ffi.Pointer _objc_msgSend_99( + ffi.Pointer _objc_msgSend_107( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_99( + return __objc_msgSend_107( obj, sel, range, @@ -2554,49 +2794,49 @@ class AVFAudio { ); } - late final __objc_msgSend_99Ptr = _lookup< + late final __objc_msgSend_107Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< + late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesUsingBlock_1 = _registerName1("enumerateRangesUsingBlock:"); - void _objc_msgSend_100( + void _objc_msgSend_108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_100( + return __objc_msgSend_108( obj, sel, block, ); } - late final __objc_msgSend_100Ptr = _lookup< + late final __objc_msgSend_108Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< + late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesWithOptions_usingBlock_1 = _registerName1("enumerateRangesWithOptions:usingBlock:"); - void _objc_msgSend_101( + void _objc_msgSend_109( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_101( + return __objc_msgSend_109( obj, sel, opts, @@ -2604,24 +2844,24 @@ class AVFAudio { ); } - late final __objc_msgSend_101Ptr = _lookup< + late final __objc_msgSend_109Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesInRange_options_usingBlock_1 = _registerName1("enumerateRangesInRange:options:usingBlock:"); - void _objc_msgSend_102( + void _objc_msgSend_110( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_102( + return __objc_msgSend_110( obj, sel, range, @@ -2630,32 +2870,32 @@ class AVFAudio { ); } - late final __objc_msgSend_102Ptr = _lookup< + late final __objc_msgSend_110Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); - ffi.Pointer _objc_msgSend_103( + ffi.Pointer _objc_msgSend_111( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_103( + return __objc_msgSend_111( obj, sel, indexes, ); } - late final __objc_msgSend_103Ptr = _lookup< + late final __objc_msgSend_111Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< + late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2663,35 +2903,35 @@ class AVFAudio { _registerName1("objectAtIndexedSubscript:"); late final _sel_enumerateObjectsUsingBlock_1 = _registerName1("enumerateObjectsUsingBlock:"); - void _objc_msgSend_104( + void _objc_msgSend_112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_104( + return __objc_msgSend_112( obj, sel, block, ); } - late final __objc_msgSend_104Ptr = _lookup< + late final __objc_msgSend_112Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsWithOptions_usingBlock_1 = _registerName1("enumerateObjectsWithOptions:usingBlock:"); - void _objc_msgSend_105( + void _objc_msgSend_113( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_105( + return __objc_msgSend_113( obj, sel, opts, @@ -2699,24 +2939,24 @@ class AVFAudio { ); } - late final __objc_msgSend_105Ptr = _lookup< + late final __objc_msgSend_113Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< + late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); - void _objc_msgSend_106( + void _objc_msgSend_114( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_106( + return __objc_msgSend_114( obj, sel, s, @@ -2725,7 +2965,7 @@ class AVFAudio { ); } - late final __objc_msgSend_106Ptr = _lookup< + late final __objc_msgSend_114Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -2733,41 +2973,41 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectPassingTest_1 = _registerName1("indexOfObjectPassingTest:"); - int _objc_msgSend_107( + int _objc_msgSend_115( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_107( + return __objc_msgSend_115( obj, sel, predicate, ); } - late final __objc_msgSend_107Ptr = _lookup< + late final __objc_msgSend_115Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectWithOptions_passingTest_1 = _registerName1("indexOfObjectWithOptions:passingTest:"); - int _objc_msgSend_108( + int _objc_msgSend_116( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_108( + return __objc_msgSend_116( obj, sel, opts, @@ -2775,24 +3015,27 @@ class AVFAudio { ); } - late final __objc_msgSend_108Ptr = _lookup< + late final __objc_msgSend_116Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = _registerName1("indexOfObjectAtIndexes:options:passingTest:"); - int _objc_msgSend_109( + int _objc_msgSend_117( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_109( + return __objc_msgSend_117( obj, sel, s, @@ -2801,49 +3044,49 @@ class AVFAudio { ); } - late final __objc_msgSend_109Ptr = _lookup< + late final __objc_msgSend_117Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< + late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsPassingTest_1 = _registerName1("indexesOfObjectsPassingTest:"); - ffi.Pointer _objc_msgSend_110( + ffi.Pointer _objc_msgSend_118( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_110( + return __objc_msgSend_118( obj, sel, predicate, ); } - late final __objc_msgSend_110Ptr = _lookup< + late final __objc_msgSend_118Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsWithOptions_passingTest_1 = _registerName1("indexesOfObjectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_111( + ffi.Pointer _objc_msgSend_119( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_111( + return __objc_msgSend_119( obj, sel, opts, @@ -2851,27 +3094,27 @@ class AVFAudio { ); } - late final __objc_msgSend_111Ptr = _lookup< + late final __objc_msgSend_119Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< + late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); - ffi.Pointer _objc_msgSend_112( + ffi.Pointer _objc_msgSend_120( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_112( + return __objc_msgSend_120( obj, sel, s, @@ -2880,7 +3123,7 @@ class AVFAudio { ); } - late final __objc_msgSend_112Ptr = _lookup< + late final __objc_msgSend_120Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -2888,7 +3131,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< + late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -2898,35 +3141,35 @@ class AVFAudio { late final _sel_sortedArrayUsingComparator_1 = _registerName1("sortedArrayUsingComparator:"); - ffi.Pointer _objc_msgSend_113( + ffi.Pointer _objc_msgSend_121( ffi.Pointer obj, ffi.Pointer sel, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_113( + return __objc_msgSend_121( obj, sel, cmptr, ); } - late final __objc_msgSend_113Ptr = _lookup< + late final __objc_msgSend_121Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSComparator)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortedArrayWithOptions_usingComparator_1 = _registerName1("sortedArrayWithOptions:usingComparator:"); - ffi.Pointer _objc_msgSend_114( + ffi.Pointer _objc_msgSend_122( ffi.Pointer obj, ffi.Pointer sel, int opts, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_114( + return __objc_msgSend_122( obj, sel, opts, @@ -2934,25 +3177,28 @@ class AVFAudio { ); } - late final __objc_msgSend_114Ptr = _lookup< + late final __objc_msgSend_122Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, NSComparator)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); - int _objc_msgSend_115( + int _objc_msgSend_123( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, - NSRange r, + _NSRange r, int opts, - NSComparator cmp, + ffi.Pointer<_ObjCBlock> cmp, ) { - return __objc_msgSend_115( + return __objc_msgSend_123( obj, sel, obj1, @@ -2962,36 +3208,76 @@ class AVFAudio { ); } - late final __objc_msgSend_115Ptr = _lookup< + late final __objc_msgSend_123Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Int32, - NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, int, NSComparator)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_array1 = _registerName1("array"); late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); - late final _sel_arrayWithObjects_count_1 = - _registerName1("arrayWithObjects:count:"); - late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); - late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); - late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); - late final _sel_initWithArray_1 = _registerName1("initWithArray:"); - late final _sel_initWithArray_copyItems_1 = - _registerName1("initWithArray:copyItems:"); - instancetype _objc_msgSend_116( + instancetype _objc_msgSend_124( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer array, - bool flag, + ffi.Pointer anObject, ) { - return __objc_msgSend_116( + return __objc_msgSend_124( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_124Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_arrayWithObjects_count_1 = + _registerName1("arrayWithObjects:count:"); + late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); + late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); + instancetype _objc_msgSend_125( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + ) { + return __objc_msgSend_125( + obj, + sel, + array, + ); + } + + late final __objc_msgSend_125Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); + late final _sel_initWithArray_1 = _registerName1("initWithArray:"); + late final _sel_initWithArray_copyItems_1 = + _registerName1("initWithArray:copyItems:"); + instancetype _objc_msgSend_126( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + bool flag, + ) { + return __objc_msgSend_126( obj, sel, array, @@ -2999,23 +3285,23 @@ class AVFAudio { ); } - late final __objc_msgSend_116Ptr = _lookup< + late final __objc_msgSend_126Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithContentsOfURL_error_1 = _registerName1("initWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_117( + ffi.Pointer _objc_msgSend_127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_117( + return __objc_msgSend_127( obj, sel, url, @@ -3023,14 +3309,14 @@ class AVFAudio { ); } - late final __objc_msgSend_117Ptr = _lookup< + late final __objc_msgSend_127Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< + late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3039,68 +3325,153 @@ class AVFAudio { late final _sel_arrayWithContentsOfURL_error_1 = _registerName1("arrayWithContentsOfURL:error:"); + late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = + _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_128( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_128( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_128Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_differenceFromArray_withOptions_1 = + _registerName1("differenceFromArray:withOptions:"); + ffi.Pointer _objc_msgSend_129( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ) { + return __objc_msgSend_129( + obj, + sel, + other, + options, + ); + } + + late final __objc_msgSend_129Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_differenceFromArray_1 = + _registerName1("differenceFromArray:"); + late final _sel_arrayByApplyingDifference_1 = + _registerName1("arrayByApplyingDifference:"); + ffi.Pointer _objc_msgSend_130( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer difference, + ) { + return __objc_msgSend_130( + obj, + sel, + difference, + ); + } + + late final __objc_msgSend_130Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_getObjects_1 = _registerName1("getObjects:"); - void _objc_msgSend_118( + void _objc_msgSend_131( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ) { - return __objc_msgSend_118( + return __objc_msgSend_131( obj, sel, objects, ); } - late final __objc_msgSend_118Ptr = _lookup< + late final __objc_msgSend_131Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< + late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_arrayWithContentsOfFile_1 = _registerName1("arrayWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_119( + ffi.Pointer _objc_msgSend_132( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_119( + return __objc_msgSend_132( obj, sel, path, ); } - late final __objc_msgSend_119Ptr = _lookup< + late final __objc_msgSend_132Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< + late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayWithContentsOfURL_1 = _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_120( + ffi.Pointer _objc_msgSend_133( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_120( + return __objc_msgSend_133( obj, sel, url, ); } - late final __objc_msgSend_120Ptr = _lookup< + late final __objc_msgSend_133Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< + late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3110,13 +3481,13 @@ class AVFAudio { _registerName1("initWithContentsOfURL:"); late final _sel_writeToURL_atomically_1 = _registerName1("writeToURL:atomically:"); - bool _objc_msgSend_121( + bool _objc_msgSend_134( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, bool atomically, ) { - return __objc_msgSend_121( + return __objc_msgSend_134( obj, sel, url, @@ -3124,11 +3495,11 @@ class AVFAudio { ); } - late final __objc_msgSend_121Ptr = _lookup< + late final __objc_msgSend_134Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -3136,13 +3507,13 @@ class AVFAudio { _registerName1("pathsMatchingExtensions:"); late final _sel_valueForKey_1 = _registerName1("valueForKey:"); late final _sel_setValue_forKey_1 = _registerName1("setValue:forKey:"); - void _objc_msgSend_122( + void _objc_msgSend_135( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ) { - return __objc_msgSend_122( + return __objc_msgSend_135( obj, sel, value, @@ -3150,21 +3521,21 @@ class AVFAudio { ); } - late final __objc_msgSend_122Ptr = _lookup< + late final __objc_msgSend_135Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1 = _registerName1( "addObserver:toObjectsAtIndexes:forKeyPath:options:context:"); - void _objc_msgSend_123( + void _objc_msgSend_136( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3173,7 +3544,7 @@ class AVFAudio { int options, ffi.Pointer context, ) { - return __objc_msgSend_123( + return __objc_msgSend_136( obj, sel, observer, @@ -3184,7 +3555,7 @@ class AVFAudio { ); } - late final __objc_msgSend_123Ptr = _lookup< + late final __objc_msgSend_136Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3194,7 +3565,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< + late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3206,7 +3577,7 @@ class AVFAudio { late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1 = _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); - void _objc_msgSend_124( + void _objc_msgSend_137( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3214,7 +3585,7 @@ class AVFAudio { ffi.Pointer keyPath, ffi.Pointer context, ) { - return __objc_msgSend_124( + return __objc_msgSend_137( obj, sel, observer, @@ -3224,7 +3595,7 @@ class AVFAudio { ); } - late final __objc_msgSend_124Ptr = _lookup< + late final __objc_msgSend_137Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3233,7 +3604,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3244,14 +3615,14 @@ class AVFAudio { late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1 = _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:"); - void _objc_msgSend_125( + void _objc_msgSend_138( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer indexes, ffi.Pointer keyPath, ) { - return __objc_msgSend_125( + return __objc_msgSend_138( obj, sel, observer, @@ -3260,7 +3631,7 @@ class AVFAudio { ); } - late final __objc_msgSend_125Ptr = _lookup< + late final __objc_msgSend_138Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3268,7 +3639,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3278,7 +3649,7 @@ class AVFAudio { late final _sel_addObserver_forKeyPath_options_context_1 = _registerName1("addObserver:forKeyPath:options:context:"); - void _objc_msgSend_126( + void _objc_msgSend_139( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3286,7 +3657,7 @@ class AVFAudio { int options, ffi.Pointer context, ) { - return __objc_msgSend_126( + return __objc_msgSend_139( obj, sel, observer, @@ -3296,7 +3667,7 @@ class AVFAudio { ); } - late final __objc_msgSend_126Ptr = _lookup< + late final __objc_msgSend_139Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3305,7 +3676,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< + late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3316,14 +3687,14 @@ class AVFAudio { late final _sel_removeObserver_forKeyPath_context_1 = _registerName1("removeObserver:forKeyPath:context:"); - void _objc_msgSend_127( + void _objc_msgSend_140( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer keyPath, ffi.Pointer context, ) { - return __objc_msgSend_127( + return __objc_msgSend_140( obj, sel, observer, @@ -3332,7 +3703,7 @@ class AVFAudio { ); } - late final __objc_msgSend_127Ptr = _lookup< + late final __objc_msgSend_140Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3340,7 +3711,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< + late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3350,13 +3721,13 @@ class AVFAudio { late final _sel_removeObserver_forKeyPath_1 = _registerName1("removeObserver:forKeyPath:"); - void _objc_msgSend_128( + void _objc_msgSend_141( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer keyPath, ) { - return __objc_msgSend_128( + return __objc_msgSend_141( obj, sel, observer, @@ -3364,14 +3735,14 @@ class AVFAudio { ); } - late final __objc_msgSend_128Ptr = _lookup< + late final __objc_msgSend_141Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3380,13 +3751,13 @@ class AVFAudio { late final _class_NSPredicate1 = _getClass1("NSPredicate"); late final _sel_predicateWithFormat_argumentArray_1 = _registerName1("predicateWithFormat:argumentArray:"); - ffi.Pointer _objc_msgSend_129( + ffi.Pointer _objc_msgSend_142( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ffi.Pointer arguments, ) { - return __objc_msgSend_129( + return __objc_msgSend_142( obj, sel, predicateFormat, @@ -3394,14 +3765,14 @@ class AVFAudio { ); } - late final __objc_msgSend_129Ptr = _lookup< + late final __objc_msgSend_142Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3410,35 +3781,35 @@ class AVFAudio { late final _sel_predicateWithFormat_1 = _registerName1("predicateWithFormat:"); - ffi.Pointer _objc_msgSend_130( + ffi.Pointer _objc_msgSend_143( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ) { - return __objc_msgSend_130( + return __objc_msgSend_143( obj, sel, predicateFormat, ); } - late final __objc_msgSend_130Ptr = _lookup< + late final __objc_msgSend_143Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_predicateWithFormat_arguments_1 = _registerName1("predicateWithFormat:arguments:"); - ffi.Pointer _objc_msgSend_131( + ffi.Pointer _objc_msgSend_144( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_131( + return __objc_msgSend_144( obj, sel, predicateFormat, @@ -3446,14 +3817,14 @@ class AVFAudio { ); } - late final __objc_msgSend_131Ptr = _lookup< + late final __objc_msgSend_144Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3462,24 +3833,44 @@ class AVFAudio { late final _sel_predicateFromMetadataQueryString_1 = _registerName1("predicateFromMetadataQueryString:"); + ffi.Pointer _objc_msgSend_145( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer queryString, + ) { + return __objc_msgSend_145( + obj, + sel, + queryString, + ); + } + + late final __objc_msgSend_145Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_predicateWithValue_1 = _registerName1("predicateWithValue:"); - ffi.Pointer _objc_msgSend_132( + ffi.Pointer _objc_msgSend_146( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_132( + return __objc_msgSend_146( obj, sel, value, ); } - late final __objc_msgSend_132Ptr = _lookup< + late final __objc_msgSend_146Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< + late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -3488,14 +3879,14 @@ class AVFAudio { late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); late final _sel_initWithObjects_forKeys_count_1 = _registerName1("initWithObjects:forKeys:count:"); - instancetype _objc_msgSend_133( + instancetype _objc_msgSend_147( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int cnt, ) { - return __objc_msgSend_133( + return __objc_msgSend_147( obj, sel, objects, @@ -3504,15 +3895,15 @@ class AVFAudio { ); } - late final __objc_msgSend_133Ptr = _lookup< + late final __objc_msgSend_147Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -3527,35 +3918,35 @@ class AVFAudio { _registerName1("descriptionInStringsFileFormat"); late final _sel_isEqualToDictionary_1 = _registerName1("isEqualToDictionary:"); - bool _objc_msgSend_134( + bool _objc_msgSend_148( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_134( + return __objc_msgSend_148( obj, sel, otherDictionary, ); } - late final __objc_msgSend_134Ptr = _lookup< + late final __objc_msgSend_148Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< + late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_objectsForKeys_notFoundMarker_1 = _registerName1("objectsForKeys:notFoundMarker:"); - ffi.Pointer _objc_msgSend_135( + ffi.Pointer _objc_msgSend_149( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer marker, ) { - return __objc_msgSend_135( + return __objc_msgSend_149( obj, sel, keys, @@ -3563,14 +3954,14 @@ class AVFAudio { ); } - late final __objc_msgSend_135Ptr = _lookup< + late final __objc_msgSend_149Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< + late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3581,14 +3972,14 @@ class AVFAudio { _registerName1("keysSortedByValueUsingSelector:"); late final _sel_getObjects_andKeys_count_1 = _registerName1("getObjects:andKeys:count:"); - void _objc_msgSend_136( + void _objc_msgSend_150( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int count, ) { - return __objc_msgSend_136( + return __objc_msgSend_150( obj, sel, objects, @@ -3597,15 +3988,15 @@ class AVFAudio { ); } - late final __objc_msgSend_136Ptr = _lookup< + late final __objc_msgSend_150Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3617,35 +4008,35 @@ class AVFAudio { _registerName1("objectForKeyedSubscript:"); late final _sel_enumerateKeysAndObjectsUsingBlock_1 = _registerName1("enumerateKeysAndObjectsUsingBlock:"); - void _objc_msgSend_137( + void _objc_msgSend_151( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_137( + return __objc_msgSend_151( obj, sel, block, ); } - late final __objc_msgSend_137Ptr = _lookup< + late final __objc_msgSend_151Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< + late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); - void _objc_msgSend_138( + void _objc_msgSend_152( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_138( + return __objc_msgSend_152( obj, sel, opts, @@ -3653,11 +4044,11 @@ class AVFAudio { ); } - late final __objc_msgSend_138Ptr = _lookup< + late final __objc_msgSend_152Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -3665,14 +4056,63 @@ class AVFAudio { _registerName1("keysSortedByValueUsingComparator:"); late final _sel_keysSortedByValueWithOptions_usingComparator_1 = _registerName1("keysSortedByValueWithOptions:usingComparator:"); + late final _sel_keysOfEntriesPassingTest_1 = + _registerName1("keysOfEntriesPassingTest:"); + ffi.Pointer _objc_msgSend_153( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_153( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_153Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_keysOfEntriesWithOptions_passingTest_1 = + _registerName1("keysOfEntriesWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_154( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_154( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_154Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); - void _objc_msgSend_139( + void _objc_msgSend_155( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, ) { - return __objc_msgSend_139( + return __objc_msgSend_155( obj, sel, objects, @@ -3680,14 +4120,14 @@ class AVFAudio { ); } - late final __objc_msgSend_139Ptr = _lookup< + late final __objc_msgSend_155Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< + late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3696,58 +4136,58 @@ class AVFAudio { late final _sel_dictionaryWithContentsOfFile_1 = _registerName1("dictionaryWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_140( + ffi.Pointer _objc_msgSend_156( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_140( + return __objc_msgSend_156( obj, sel, path, ); } - late final __objc_msgSend_140Ptr = _lookup< + late final __objc_msgSend_156Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< + late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithContentsOfURL_1 = _registerName1("dictionaryWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_141( + ffi.Pointer _objc_msgSend_157( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_141( + return __objc_msgSend_157( obj, sel, url, ); } - late final __objc_msgSend_141Ptr = _lookup< + late final __objc_msgSend_157Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< + late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionary1 = _registerName1("dictionary"); late final _sel_dictionaryWithObject_forKey_1 = _registerName1("dictionaryWithObject:forKey:"); - instancetype _objc_msgSend_142( + instancetype _objc_msgSend_158( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer key, ) { - return __objc_msgSend_142( + return __objc_msgSend_158( obj, sel, object, @@ -3755,14 +4195,14 @@ class AVFAudio { ); } - late final __objc_msgSend_142Ptr = _lookup< + late final __objc_msgSend_158Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< + late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3772,35 +4212,35 @@ class AVFAudio { _registerName1("dictionaryWithObjectsAndKeys:"); late final _sel_dictionaryWithDictionary_1 = _registerName1("dictionaryWithDictionary:"); - instancetype _objc_msgSend_143( + instancetype _objc_msgSend_159( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_143( + return __objc_msgSend_159( obj, sel, dict, ); } - late final __objc_msgSend_143Ptr = _lookup< + late final __objc_msgSend_159Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< + late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithObjects_forKeys_1 = _registerName1("dictionaryWithObjects:forKeys:"); - instancetype _objc_msgSend_144( + instancetype _objc_msgSend_160( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer keys, ) { - return __objc_msgSend_144( + return __objc_msgSend_160( obj, sel, objects, @@ -3808,14 +4248,14 @@ class AVFAudio { ); } - late final __objc_msgSend_144Ptr = _lookup< + late final __objc_msgSend_160Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3824,13 +4264,13 @@ class AVFAudio { late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); late final _sel_initWithDictionary_copyItems_1 = _registerName1("initWithDictionary:copyItems:"); - instancetype _objc_msgSend_145( + instancetype _objc_msgSend_161( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, bool flag, ) { - return __objc_msgSend_145( + return __objc_msgSend_161( obj, sel, otherDictionary, @@ -3838,23 +4278,23 @@ class AVFAudio { ); } - late final __objc_msgSend_145Ptr = _lookup< + late final __objc_msgSend_161Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithObjects_forKeys_1 = _registerName1("initWithObjects:forKeys:"); - ffi.Pointer _objc_msgSend_146( + ffi.Pointer _objc_msgSend_162( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_146( + return __objc_msgSend_162( obj, sel, url, @@ -3862,14 +4302,14 @@ class AVFAudio { ); } - late final __objc_msgSend_146Ptr = _lookup< + late final __objc_msgSend_162Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< + late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3882,14 +4322,14 @@ class AVFAudio { _registerName1("sharedKeySetForKeys:"); late final _sel_countByEnumeratingWithState_objects_count_1 = _registerName1("countByEnumeratingWithState:objects:count:"); - int _objc_msgSend_147( + int _objc_msgSend_163( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer state, ffi.Pointer> buffer, int len, ) { - return __objc_msgSend_147( + return __objc_msgSend_163( obj, sel, state, @@ -3898,15 +4338,15 @@ class AVFAudio { ); } - late final __objc_msgSend_147Ptr = _lookup< + late final __objc_msgSend_163Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -3915,84 +4355,84 @@ class AVFAudio { int)>(); late final _sel_fileSize1 = _registerName1("fileSize"); - int _objc_msgSend_148( + int _objc_msgSend_164( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_148( + return __objc_msgSend_164( obj, sel, ); } - late final __objc_msgSend_148Ptr = _lookup< + late final __objc_msgSend_164Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< + late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_NSDate1 = _getClass1("NSDate"); late final _sel_timeIntervalSinceReferenceDate1 = _registerName1("timeIntervalSinceReferenceDate"); - double _objc_msgSend_149( + double _objc_msgSend_165( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_149( + return __objc_msgSend_165( obj, sel, ); } - late final __objc_msgSend_149Ptr = _lookup< + late final __objc_msgSend_165Ptr = _lookup< ffi.NativeFunction< - NSTimeInterval Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTimeIntervalSinceReferenceDate_1 = _registerName1("initWithTimeIntervalSinceReferenceDate:"); - instancetype _objc_msgSend_150( + instancetype _objc_msgSend_166( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_150( + return __objc_msgSend_166( obj, sel, ti, ); } - late final __objc_msgSend_150Ptr = _lookup< + late final __objc_msgSend_166Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_timeIntervalSinceDate_1 = _registerName1("timeIntervalSinceDate:"); - double _objc_msgSend_151( + double _objc_msgSend_167( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_151( + return __objc_msgSend_167( obj, sel, anotherDate, ); } - late final __objc_msgSend_151Ptr = _lookup< + late final __objc_msgSend_167Ptr = _lookup< ffi.NativeFunction< - NSTimeInterval Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + ffi.Double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4004,66 +4444,66 @@ class AVFAudio { late final _sel_dateByAddingTimeInterval_1 = _registerName1("dateByAddingTimeInterval:"); late final _sel_earlierDate_1 = _registerName1("earlierDate:"); - ffi.Pointer _objc_msgSend_152( + ffi.Pointer _objc_msgSend_168( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_152( + return __objc_msgSend_168( obj, sel, anotherDate, ); } - late final __objc_msgSend_152Ptr = _lookup< + late final __objc_msgSend_168Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< + late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_laterDate_1 = _registerName1("laterDate:"); late final _sel_compare_1 = _registerName1("compare:"); - int _objc_msgSend_153( + int _objc_msgSend_169( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_153( + return __objc_msgSend_169( obj, sel, other, ); } - late final __objc_msgSend_153Ptr = _lookup< + late final __objc_msgSend_169Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); - bool _objc_msgSend_154( + bool _objc_msgSend_170( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDate, ) { - return __objc_msgSend_154( + return __objc_msgSend_170( obj, sel, otherDate, ); } - late final __objc_msgSend_154Ptr = _lookup< + late final __objc_msgSend_170Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4076,13 +4516,13 @@ class AVFAudio { _registerName1("dateWithTimeIntervalSince1970:"); late final _sel_dateWithTimeInterval_sinceDate_1 = _registerName1("dateWithTimeInterval:sinceDate:"); - instancetype _objc_msgSend_155( + instancetype _objc_msgSend_171( ffi.Pointer obj, ffi.Pointer sel, double secsToBeAdded, ffi.Pointer date, ) { - return __objc_msgSend_155( + return __objc_msgSend_171( obj, sel, secsToBeAdded, @@ -4090,30 +4530,30 @@ class AVFAudio { ); } - late final __objc_msgSend_155Ptr = _lookup< + late final __objc_msgSend_171Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< + ffi.Double, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_distantFuture1 = _registerName1("distantFuture"); - ffi.Pointer _objc_msgSend_156( + ffi.Pointer _objc_msgSend_172( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_156( + return __objc_msgSend_172( obj, sel, ); } - late final __objc_msgSend_156Ptr = _lookup< + late final __objc_msgSend_172Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< + late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4127,13 +4567,13 @@ class AVFAudio { _registerName1("initWithTimeInterval:sinceDate:"); late final _sel_dateWithNaturalLanguageString_locale_1 = _registerName1("dateWithNaturalLanguageString:locale:"); - ffi.Pointer _objc_msgSend_157( + ffi.Pointer _objc_msgSend_173( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer locale, ) { - return __objc_msgSend_157( + return __objc_msgSend_173( obj, sel, string, @@ -4141,14 +4581,14 @@ class AVFAudio { ); } - late final __objc_msgSend_157Ptr = _lookup< + late final __objc_msgSend_173Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< + late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4162,14 +4602,14 @@ class AVFAudio { late final _sel_calendarDate1 = _registerName1("calendarDate"); late final _sel_dateWithString_calendarFormat_locale_1 = _registerName1("dateWithString:calendarFormat:locale:"); - ffi.Pointer _objc_msgSend_158( + ffi.Pointer _objc_msgSend_174( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer format, ffi.Pointer locale, ) { - return __objc_msgSend_158( + return __objc_msgSend_174( obj, sel, description, @@ -4178,7 +4618,7 @@ class AVFAudio { ); } - late final __objc_msgSend_158Ptr = _lookup< + late final __objc_msgSend_174Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -4186,7 +4626,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4196,13 +4636,13 @@ class AVFAudio { late final _sel_dateWithString_calendarFormat_1 = _registerName1("dateWithString:calendarFormat:"); - ffi.Pointer _objc_msgSend_159( + ffi.Pointer _objc_msgSend_175( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer format, ) { - return __objc_msgSend_159( + return __objc_msgSend_175( obj, sel, description, @@ -4210,14 +4650,14 @@ class AVFAudio { ); } - late final __objc_msgSend_159Ptr = _lookup< + late final __objc_msgSend_175Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< + late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4229,45 +4669,45 @@ class AVFAudio { late final _sel_data1 = _registerName1("data"); late final _sel_secondsFromGMTForDate_1 = _registerName1("secondsFromGMTForDate:"); - int _objc_msgSend_160( + int _objc_msgSend_176( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aDate, ) { - return __objc_msgSend_160( + return __objc_msgSend_176( obj, sel, aDate, ); } - late final __objc_msgSend_160Ptr = _lookup< + late final __objc_msgSend_176Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< + late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_abbreviationForDate_1 = _registerName1("abbreviationForDate:"); - ffi.Pointer _objc_msgSend_161( + ffi.Pointer _objc_msgSend_177( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aDate, ) { - return __objc_msgSend_161( + return __objc_msgSend_177( obj, sel, aDate, ); } - late final __objc_msgSend_161Ptr = _lookup< + late final __objc_msgSend_177Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< + late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4277,45 +4717,65 @@ class AVFAudio { _registerName1("daylightSavingTimeOffsetForDate:"); late final _sel_nextDaylightSavingTimeTransitionAfterDate_1 = _registerName1("nextDaylightSavingTimeTransitionAfterDate:"); - late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); - ffi.Pointer _objc_msgSend_162( + ffi.Pointer _objc_msgSend_178( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer aDate, ) { - return __objc_msgSend_162( + return __objc_msgSend_178( obj, sel, + aDate, ); } - late final __objc_msgSend_162Ptr = _lookup< + late final __objc_msgSend_178Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); - late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); - late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); - void _objc_msgSend_163( + late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); + ffi.Pointer _objc_msgSend_179( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, ) { - return __objc_msgSend_163( + return __objc_msgSend_179( + obj, + sel, + ); + } + + late final __objc_msgSend_179Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); + late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); + late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); + void _objc_msgSend_180( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_180( obj, sel, value, ); } - late final __objc_msgSend_163Ptr = _lookup< + late final __objc_msgSend_180Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4323,43 +4783,43 @@ class AVFAudio { late final _sel_knownTimeZoneNames1 = _registerName1("knownTimeZoneNames"); late final _sel_abbreviationDictionary1 = _registerName1("abbreviationDictionary"); - ffi.Pointer _objc_msgSend_164( + ffi.Pointer _objc_msgSend_181( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_164( + return __objc_msgSend_181( obj, sel, ); } - late final __objc_msgSend_164Ptr = _lookup< + late final __objc_msgSend_181Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setAbbreviationDictionary_1 = _registerName1("setAbbreviationDictionary:"); - void _objc_msgSend_165( + void _objc_msgSend_182( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_165( + return __objc_msgSend_182( obj, sel, value, ); } - late final __objc_msgSend_165Ptr = _lookup< + late final __objc_msgSend_182Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4372,37 +4832,55 @@ class AVFAudio { _registerName1("daylightSavingTimeOffset"); late final _sel_nextDaylightSavingTimeTransition1 = _registerName1("nextDaylightSavingTimeTransition"); + ffi.Pointer _objc_msgSend_183( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_183( + obj, + sel, + ); + } + + late final __objc_msgSend_183Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_isEqualToTimeZone_1 = _registerName1("isEqualToTimeZone:"); - bool _objc_msgSend_166( + bool _objc_msgSend_184( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_166( + return __objc_msgSend_184( obj, sel, aTimeZone, ); } - late final __objc_msgSend_166Ptr = _lookup< + late final __objc_msgSend_184Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< + late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSLocale1 = _getClass1("NSLocale"); late final _sel_displayNameForKey_value_1 = _registerName1("displayNameForKey:value:"); - ffi.Pointer _objc_msgSend_167( + ffi.Pointer _objc_msgSend_185( ffi.Pointer obj, ffi.Pointer sel, - NSLocaleKey key, + ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_167( + return __objc_msgSend_185( obj, sel, key, @@ -4410,16 +4888,19 @@ class AVFAudio { ); } - late final __objc_msgSend_167Ptr = _lookup< + late final __objc_msgSend_185Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSLocaleKey, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSLocaleKey, ffi.Pointer)>(); + late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); late final _sel_initWithLocaleIdentifier_1 = _registerName1("initWithLocaleIdentifier:"); @@ -4429,9 +4910,31 @@ class AVFAudio { late final _sel_languageCode1 = _registerName1("languageCode"); late final _sel_localizedStringForLanguageCode_1 = _registerName1("localizedStringForLanguageCode:"); + ffi.Pointer _objc_msgSend_186( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer languageCode, + ) { + return __objc_msgSend_186( + obj, + sel, + languageCode, + ); + } + + late final __objc_msgSend_186Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_languageIdentifier1 = _registerName1("languageIdentifier"); late final _sel_countryCode1 = _registerName1("countryCode"); late final _sel_localizedStringForCountryCode_1 = _registerName1("localizedStringForCountryCode:"); + late final _sel_regionCode1 = _registerName1("regionCode"); late final _sel_scriptCode1 = _registerName1("scriptCode"); late final _sel_localizedStringForScriptCode_1 = _registerName1("localizedStringForScriptCode:"); @@ -4440,21 +4943,21 @@ class AVFAudio { _registerName1("localizedStringForVariantCode:"); late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); - ffi.Pointer _objc_msgSend_168( + ffi.Pointer _objc_msgSend_187( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_168( + return __objc_msgSend_187( obj, sel, ); } - late final __objc_msgSend_168Ptr = _lookup< + late final __objc_msgSend_187Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4483,90 +4986,130 @@ class AVFAudio { late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); late final _sel_characterSetWithRange_1 = _registerName1("characterSetWithRange:"); - ffi.Pointer _objc_msgSend_169( + ffi.Pointer _objc_msgSend_188( ffi.Pointer obj, ffi.Pointer sel, - NSRange aRange, + _NSRange aRange, ) { - return __objc_msgSend_169( + return __objc_msgSend_188( obj, sel, aRange, ); } - late final __objc_msgSend_169Ptr = _lookup< + late final __objc_msgSend_188Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_characterSetWithCharactersInString_1 = _registerName1("characterSetWithCharactersInString:"); - ffi.Pointer _objc_msgSend_170( + ffi.Pointer _objc_msgSend_189( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, ) { - return __objc_msgSend_170( + return __objc_msgSend_189( obj, sel, aString, ); } - late final __objc_msgSend_170Ptr = _lookup< + late final __objc_msgSend_189Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< + late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithBitmapRepresentation_1 = _registerName1("characterSetWithBitmapRepresentation:"); - ffi.Pointer _objc_msgSend_171( + ffi.Pointer _objc_msgSend_190( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_171( + return __objc_msgSend_190( obj, sel, data, ); } - late final __objc_msgSend_171Ptr = _lookup< + late final __objc_msgSend_190Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< + late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithContentsOfFile_1 = _registerName1("characterSetWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_191( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fName, + ) { + return __objc_msgSend_191( + obj, + sel, + fName, + ); + } + + late final __objc_msgSend_191Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + instancetype _objc_msgSend_192( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, + ) { + return __objc_msgSend_192( + obj, + sel, + coder, + ); + } + + late final __objc_msgSend_192Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); - bool _objc_msgSend_172( + bool _objc_msgSend_193( ffi.Pointer obj, ffi.Pointer sel, int aCharacter, ) { - return __objc_msgSend_172( + return __objc_msgSend_193( obj, sel, aCharacter, ); } - late final __objc_msgSend_172Ptr = _lookup< + late final __objc_msgSend_193Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - unichar)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< + ffi.UnsignedShort)>>('objc_msgSend'); + late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_bitmapRepresentation1 = @@ -4574,64 +5117,64 @@ class AVFAudio { late final _sel_invertedSet1 = _registerName1("invertedSet"); late final _sel_longCharacterIsMember_1 = _registerName1("longCharacterIsMember:"); - bool _objc_msgSend_173( + bool _objc_msgSend_194( ffi.Pointer obj, ffi.Pointer sel, int theLongChar, ) { - return __objc_msgSend_173( + return __objc_msgSend_194( obj, sel, theLongChar, ); } - late final __objc_msgSend_173Ptr = _lookup< + late final __objc_msgSend_194Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - UTF32Char)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); - bool _objc_msgSend_174( + bool _objc_msgSend_195( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer theOtherSet, ) { - return __objc_msgSend_174( + return __objc_msgSend_195( obj, sel, theOtherSet, ); } - late final __objc_msgSend_174Ptr = _lookup< + late final __objc_msgSend_195Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< + late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); - bool _objc_msgSend_175( + bool _objc_msgSend_196( ffi.Pointer obj, ffi.Pointer sel, int thePlane, ) { - return __objc_msgSend_175( + return __objc_msgSend_196( obj, sel, thePlane, ); } - late final __objc_msgSend_175Ptr = _lookup< + late final __objc_msgSend_196Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Uint8)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_URLUserAllowedCharacterSet1 = @@ -4674,21 +5217,21 @@ class AVFAudio { _registerName1("alternateQuotationEndDelimiter"); late final _sel_autoupdatingCurrentLocale1 = _registerName1("autoupdatingCurrentLocale"); - ffi.Pointer _objc_msgSend_176( + ffi.Pointer _objc_msgSend_197( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_176( + return __objc_msgSend_197( obj, sel, ); } - late final __objc_msgSend_176Ptr = _lookup< + late final __objc_msgSend_197Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4706,25 +5249,45 @@ class AVFAudio { late final _sel_preferredLanguages1 = _registerName1("preferredLanguages"); late final _sel_componentsFromLocaleIdentifier_1 = _registerName1("componentsFromLocaleIdentifier:"); + ffi.Pointer _objc_msgSend_198( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ) { + return __objc_msgSend_198( + obj, + sel, + string, + ); + } + + late final __objc_msgSend_198Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_localeIdentifierFromComponents_1 = _registerName1("localeIdentifierFromComponents:"); - ffi.Pointer _objc_msgSend_177( + ffi.Pointer _objc_msgSend_199( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_177( + return __objc_msgSend_199( obj, sel, dict, ); } - late final __objc_msgSend_177Ptr = _lookup< + late final __objc_msgSend_199Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< + late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4734,67 +5297,67 @@ class AVFAudio { _registerName1("canonicalLanguageIdentifierFromString:"); late final _sel_localeIdentifierFromWindowsLocaleCode_1 = _registerName1("localeIdentifierFromWindowsLocaleCode:"); - ffi.Pointer _objc_msgSend_178( + ffi.Pointer _objc_msgSend_200( ffi.Pointer obj, ffi.Pointer sel, int lcid, ) { - return __objc_msgSend_178( + return __objc_msgSend_200( obj, sel, lcid, ); } - late final __objc_msgSend_178Ptr = _lookup< + late final __objc_msgSend_200Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Uint32)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = _registerName1("windowsLocaleCodeFromLocaleIdentifier:"); - int _objc_msgSend_179( + int _objc_msgSend_201( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localeIdentifier, ) { - return __objc_msgSend_179( + return __objc_msgSend_201( obj, sel, localeIdentifier, ); } - late final __objc_msgSend_179Ptr = _lookup< + late final __objc_msgSend_201Ptr = _lookup< ffi.NativeFunction< ffi.Uint32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterDirectionForLanguage_1 = _registerName1("characterDirectionForLanguage:"); - int _objc_msgSend_180( + int _objc_msgSend_202( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer isoLangCode, ) { - return __objc_msgSend_180( + return __objc_msgSend_202( obj, sel, isoLangCode, ); } - late final __objc_msgSend_180Ptr = _lookup< + late final __objc_msgSend_202Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< + late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4802,13 +5365,13 @@ class AVFAudio { _registerName1("lineDirectionForLanguage:"); late final _sel_localizedName_locale_1 = _registerName1("localizedName:locale:"); - ffi.Pointer _objc_msgSend_181( + ffi.Pointer _objc_msgSend_203( ffi.Pointer obj, ffi.Pointer sel, int style, ffi.Pointer locale, ) { - return __objc_msgSend_181( + return __objc_msgSend_203( obj, sel, style, @@ -4816,27 +5379,27 @@ class AVFAudio { ); } - late final __objc_msgSend_181Ptr = _lookup< + late final __objc_msgSend_203Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< + late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_timeZoneWithName_1 = _registerName1("timeZoneWithName:"); late final _sel_timeZoneWithName_data_1 = _registerName1("timeZoneWithName:data:"); - instancetype _objc_msgSend_182( + instancetype _objc_msgSend_204( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tzName, ffi.Pointer aData, ) { - return __objc_msgSend_182( + return __objc_msgSend_204( obj, sel, tzName, @@ -4844,14 +5407,14 @@ class AVFAudio { ); } - late final __objc_msgSend_182Ptr = _lookup< + late final __objc_msgSend_204Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< + late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4859,23 +5422,23 @@ class AVFAudio { late final _sel_initWithName_data_1 = _registerName1("initWithName:data:"); late final _sel_timeZoneForSecondsFromGMT_1 = _registerName1("timeZoneForSecondsFromGMT:"); - instancetype _objc_msgSend_183( + instancetype _objc_msgSend_205( ffi.Pointer obj, ffi.Pointer sel, int seconds, ) { - return __objc_msgSend_183( + return __objc_msgSend_205( obj, sel, seconds, ); } - late final __objc_msgSend_183Ptr = _lookup< + late final __objc_msgSend_205Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -4883,7 +5446,7 @@ class AVFAudio { _registerName1("timeZoneWithAbbreviation:"); late final _sel_dateWithYear_month_day_hour_minute_second_timeZone_1 = _registerName1("dateWithYear:month:day:hour:minute:second:timeZone:"); - ffi.Pointer _objc_msgSend_184( + ffi.Pointer _objc_msgSend_206( ffi.Pointer obj, ffi.Pointer sel, int year, @@ -4894,7 +5457,7 @@ class AVFAudio { int second, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_184( + return __objc_msgSend_206( obj, sel, year, @@ -4907,19 +5470,19 @@ class AVFAudio { ); } - late final __objc_msgSend_184Ptr = _lookup< + late final __objc_msgSend_206Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSUInteger, - NSUInteger, - NSUInteger, - NSUInteger, - NSUInteger, + ffi.Long, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< + late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4933,7 +5496,7 @@ class AVFAudio { late final _sel_dateByAddingYears_months_days_hours_minutes_seconds_1 = _registerName1("dateByAddingYears:months:days:hours:minutes:seconds:"); - ffi.Pointer _objc_msgSend_185( + ffi.Pointer _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, int year, @@ -4943,7 +5506,7 @@ class AVFAudio { int minute, int second, ) { - return __objc_msgSend_185( + return __objc_msgSend_207( obj, sel, year, @@ -4955,18 +5518,18 @@ class AVFAudio { ); } - late final __objc_msgSend_185Ptr = _lookup< + late final __objc_msgSend_207Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int)>(); @@ -4982,6 +5545,34 @@ class AVFAudio { late final _sel_calendarFormat1 = _registerName1("calendarFormat"); late final _sel_descriptionWithCalendarFormat_locale_1 = _registerName1("descriptionWithCalendarFormat:locale:"); + ffi.Pointer _objc_msgSend_208( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer locale, + ) { + return __objc_msgSend_208( + obj, + sel, + format, + locale, + ); + } + + late final __objc_msgSend_208Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_descriptionWithCalendarFormat_1 = _registerName1("descriptionWithCalendarFormat:"); late final _sel_timeZone1 = _registerName1("timeZone"); @@ -4992,61 +5583,61 @@ class AVFAudio { late final _sel_initWithYear_month_day_hour_minute_second_timeZone_1 = _registerName1("initWithYear:month:day:hour:minute:second:timeZone:"); late final _sel_setCalendarFormat_1 = _registerName1("setCalendarFormat:"); - void _objc_msgSend_186( + void _objc_msgSend_209( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ) { - return __objc_msgSend_186( + return __objc_msgSend_209( obj, sel, format, ); } - late final __objc_msgSend_186Ptr = _lookup< + late final __objc_msgSend_209Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setTimeZone_1 = _registerName1("setTimeZone:"); - void _objc_msgSend_187( + void _objc_msgSend_210( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_187( + return __objc_msgSend_210( obj, sel, aTimeZone, ); } - late final __objc_msgSend_187Ptr = _lookup< + late final __objc_msgSend_210Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< + late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_years_months_days_hours_minutes_seconds_sinceDate_1 = _registerName1("years:months:days:hours:minutes:seconds:sinceDate:"); - void _objc_msgSend_188( + void _objc_msgSend_211( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, ffi.Pointer date, ) { - return __objc_msgSend_188( + return __objc_msgSend_211( obj, sel, yp, @@ -5059,39 +5650,39 @@ class AVFAudio { ); } - late final __objc_msgSend_188Ptr = _lookup< + late final __objc_msgSend_211Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< + late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_dateWithCalendarFormat_timeZone_1 = _registerName1("dateWithCalendarFormat:timeZone:"); - ffi.Pointer _objc_msgSend_189( + ffi.Pointer _objc_msgSend_212( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_189( + return __objc_msgSend_212( obj, sel, format, @@ -5099,14 +5690,14 @@ class AVFAudio { ); } - late final __objc_msgSend_189Ptr = _lookup< + late final __objc_msgSend_212Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< + late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5115,14 +5706,14 @@ class AVFAudio { late final _sel_descriptionWithCalendarFormat_timeZone_locale_1 = _registerName1("descriptionWithCalendarFormat:timeZone:locale:"); - ffi.Pointer _objc_msgSend_190( + ffi.Pointer _objc_msgSend_213( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer aTimeZone, ffi.Pointer locale, ) { - return __objc_msgSend_190( + return __objc_msgSend_213( obj, sel, format, @@ -5131,7 +5722,7 @@ class AVFAudio { ); } - late final __objc_msgSend_190Ptr = _lookup< + late final __objc_msgSend_213Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5139,7 +5730,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< + late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5161,21 +5752,21 @@ class AVFAudio { _registerName1("fileSystemFileNumber"); late final _sel_fileExtensionHidden1 = _registerName1("fileExtensionHidden"); late final _sel_fileHFSCreatorCode1 = _registerName1("fileHFSCreatorCode"); - int _objc_msgSend_191( + int _objc_msgSend_214( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_191( + return __objc_msgSend_214( obj, sel, ); } - late final __objc_msgSend_191Ptr = _lookup< + late final __objc_msgSend_214Ptr = _lookup< ffi.NativeFunction< - OSType Function( + ffi.UnsignedInt Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_fileHFSTypeCode1 = _registerName1("fileHFSTypeCode"); @@ -5183,44 +5774,44 @@ class AVFAudio { late final _sel_fileIsAppendOnly1 = _registerName1("fileIsAppendOnly"); late final _sel_fileCreationDate1 = _registerName1("fileCreationDate"); late final _sel_fileOwnerAccountID1 = _registerName1("fileOwnerAccountID"); - ffi.Pointer _objc_msgSend_192( + ffi.Pointer _objc_msgSend_215( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_192( + return __objc_msgSend_215( obj, sel, ); } - late final __objc_msgSend_192Ptr = _lookup< + late final __objc_msgSend_215Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_fileGroupOwnerAccountID1 = _registerName1("fileGroupOwnerAccountID"); late final _sel_predicateWithBlock_1 = _registerName1("predicateWithBlock:"); - ffi.Pointer _objc_msgSend_193( + ffi.Pointer _objc_msgSend_216( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_193( + return __objc_msgSend_216( obj, sel, block, ); } - late final __objc_msgSend_193Ptr = _lookup< + late final __objc_msgSend_216Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< + late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -5228,15 +5819,35 @@ class AVFAudio { late final _sel_predicateWithSubstitutionVariables_1 = _registerName1("predicateWithSubstitutionVariables:"); late final _sel_evaluateWithObject_1 = _registerName1("evaluateWithObject:"); + bool _objc_msgSend_217( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_217( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_217Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_evaluateWithObject_substitutionVariables_1 = _registerName1("evaluateWithObject:substitutionVariables:"); - bool _objc_msgSend_194( + bool _objc_msgSend_218( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer bindings, ) { - return __objc_msgSend_194( + return __objc_msgSend_218( obj, sel, object, @@ -5244,315 +5855,315 @@ class AVFAudio { ); } - late final __objc_msgSend_194Ptr = _lookup< + late final __objc_msgSend_218Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< + late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allowEvaluation1 = _registerName1("allowEvaluation"); late final _sel_filteredArrayUsingPredicate_1 = _registerName1("filteredArrayUsingPredicate:"); - ffi.Pointer _objc_msgSend_195( + ffi.Pointer _objc_msgSend_219( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_195( + return __objc_msgSend_219( obj, sel, predicate, ); } - late final __objc_msgSend_195Ptr = _lookup< + late final __objc_msgSend_219Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< + late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithChar_1 = _registerName1("initWithChar:"); - ffi.Pointer _objc_msgSend_196( + ffi.Pointer _objc_msgSend_220( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_196( + return __objc_msgSend_220( obj, sel, value, ); } - late final __objc_msgSend_196Ptr = _lookup< + late final __objc_msgSend_220Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Char)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedChar_1 = _registerName1("initWithUnsignedChar:"); - ffi.Pointer _objc_msgSend_197( + ffi.Pointer _objc_msgSend_221( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_197( + return __objc_msgSend_221( obj, sel, value, ); } - late final __objc_msgSend_197Ptr = _lookup< + late final __objc_msgSend_221Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< + late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithShort_1 = _registerName1("initWithShort:"); - ffi.Pointer _objc_msgSend_198( + ffi.Pointer _objc_msgSend_222( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_198( + return __objc_msgSend_222( obj, sel, value, ); } - late final __objc_msgSend_198Ptr = _lookup< + late final __objc_msgSend_222Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Short)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedShort_1 = _registerName1("initWithUnsignedShort:"); - ffi.Pointer _objc_msgSend_199( + ffi.Pointer _objc_msgSend_223( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_199( + return __objc_msgSend_223( obj, sel, value, ); } - late final __objc_msgSend_199Ptr = _lookup< + late final __objc_msgSend_223Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< + late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithInt_1 = _registerName1("initWithInt:"); - ffi.Pointer _objc_msgSend_200( + ffi.Pointer _objc_msgSend_224( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_200( + return __objc_msgSend_224( obj, sel, value, ); } - late final __objc_msgSend_200Ptr = _lookup< + late final __objc_msgSend_224Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< + late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedInt_1 = _registerName1("initWithUnsignedInt:"); - ffi.Pointer _objc_msgSend_201( + ffi.Pointer _objc_msgSend_225( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_201( + return __objc_msgSend_225( obj, sel, value, ); } - late final __objc_msgSend_201Ptr = _lookup< + late final __objc_msgSend_225Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLong_1 = _registerName1("initWithLong:"); - ffi.Pointer _objc_msgSend_202( + ffi.Pointer _objc_msgSend_226( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_202( + return __objc_msgSend_226( obj, sel, value, ); } - late final __objc_msgSend_202Ptr = _lookup< + late final __objc_msgSend_226Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLong_1 = _registerName1("initWithUnsignedLong:"); - ffi.Pointer _objc_msgSend_203( + ffi.Pointer _objc_msgSend_227( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_203( + return __objc_msgSend_227( obj, sel, value, ); } - late final __objc_msgSend_203Ptr = _lookup< + late final __objc_msgSend_227Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); - ffi.Pointer _objc_msgSend_204( + ffi.Pointer _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_204( + return __objc_msgSend_228( obj, sel, value, ); } - late final __objc_msgSend_204Ptr = _lookup< + late final __objc_msgSend_228Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLongLong_1 = _registerName1("initWithUnsignedLongLong:"); - ffi.Pointer _objc_msgSend_205( + ffi.Pointer _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_205( + return __objc_msgSend_229( obj, sel, value, ); } - late final __objc_msgSend_205Ptr = _lookup< + late final __objc_msgSend_229Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); - ffi.Pointer _objc_msgSend_206( + ffi.Pointer _objc_msgSend_230( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_206( + return __objc_msgSend_230( obj, sel, value, ); } - late final __objc_msgSend_206Ptr = _lookup< + late final __objc_msgSend_230Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); - ffi.Pointer _objc_msgSend_207( + ffi.Pointer _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_207( + return __objc_msgSend_231( obj, sel, value, ); } - late final __objc_msgSend_207Ptr = _lookup< + late final __objc_msgSend_231Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_initWithBool_1 = _registerName1("initWithBool:"); - ffi.Pointer _objc_msgSend_208( + ffi.Pointer _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_208( + return __objc_msgSend_232( obj, sel, value, ); } - late final __objc_msgSend_208Ptr = _lookup< + late final __objc_msgSend_232Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -5560,134 +6171,134 @@ class AVFAudio { late final _sel_initWithUnsignedInteger_1 = _registerName1("initWithUnsignedInteger:"); late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_209( + int _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_209( + return __objc_msgSend_233( obj, sel, ); } - late final __objc_msgSend_209Ptr = _lookup< + late final __objc_msgSend_233Ptr = _lookup< ffi.NativeFunction< ffi.Char Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_210( + int _objc_msgSend_234( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_210( + return __objc_msgSend_234( obj, sel, ); } - late final __objc_msgSend_210Ptr = _lookup< + late final __objc_msgSend_234Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedChar Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_211( + int _objc_msgSend_235( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_211( + return __objc_msgSend_235( obj, sel, ); } - late final __objc_msgSend_211Ptr = _lookup< + late final __objc_msgSend_235Ptr = _lookup< ffi.NativeFunction< ffi.Short Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_212( + int _objc_msgSend_236( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_212( + return __objc_msgSend_236( obj, sel, ); } - late final __objc_msgSend_212Ptr = _lookup< + late final __objc_msgSend_236Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedShort Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_213( + int _objc_msgSend_237( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_213( + return __objc_msgSend_237( obj, sel, ); } - late final __objc_msgSend_213Ptr = _lookup< + late final __objc_msgSend_237Ptr = _lookup< ffi.NativeFunction< ffi.Int Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< + late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); late final _sel_longValue1 = _registerName1("longValue"); late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_214( + int _objc_msgSend_238( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_214( + return __objc_msgSend_238( obj, sel, ); } - late final __objc_msgSend_214Ptr = _lookup< + late final __objc_msgSend_238Ptr = _lookup< ffi.NativeFunction< ffi.LongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< + late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedLongLongValue1 = _registerName1("unsignedLongLongValue"); late final _sel_floatValue1 = _registerName1("floatValue"); - double _objc_msgSend_215( + double _objc_msgSend_239( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_215( + return __objc_msgSend_239( obj, sel, ); } - late final __objc_msgSend_215Ptr = _lookup< + late final __objc_msgSend_239Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< + ffi.Float Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_doubleValue1 = _registerName1("doubleValue"); @@ -5696,44 +6307,44 @@ class AVFAudio { late final _sel_unsignedIntegerValue1 = _registerName1("unsignedIntegerValue"); late final _sel_stringValue1 = _registerName1("stringValue"); - int _objc_msgSend_216( + int _objc_msgSend_240( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherNumber, ) { - return __objc_msgSend_216( + return __objc_msgSend_240( obj, sel, otherNumber, ); } - late final __objc_msgSend_216Ptr = _lookup< + late final __objc_msgSend_240Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< + late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); - bool _objc_msgSend_217( + bool _objc_msgSend_241( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_217( + return __objc_msgSend_241( obj, sel, number, ); } - late final __objc_msgSend_217Ptr = _lookup< + late final __objc_msgSend_241Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5769,13 +6380,13 @@ class AVFAudio { late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); late final _sel_getFileSystemRepresentation_maxLength_1 = _registerName1("getFileSystemRepresentation:maxLength:"); - bool _objc_msgSend_218( + bool _objc_msgSend_242( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferLength, ) { - return __objc_msgSend_218( + return __objc_msgSend_242( obj, sel, buffer, @@ -5783,11 +6394,11 @@ class AVFAudio { ); } - late final __objc_msgSend_218Ptr = _lookup< + late final __objc_msgSend_242Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -5797,23 +6408,23 @@ class AVFAudio { late final _sel_standardizedURL1 = _registerName1("standardizedURL"); late final _sel_checkResourceIsReachableAndReturnError_1 = _registerName1("checkResourceIsReachableAndReturnError:"); - bool _objc_msgSend_219( + bool _objc_msgSend_243( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_219( + return __objc_msgSend_243( obj, sel, error, ); } - late final __objc_msgSend_219Ptr = _lookup< + late final __objc_msgSend_243Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< + late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -5822,14 +6433,14 @@ class AVFAudio { late final _sel_filePathURL1 = _registerName1("filePathURL"); late final _sel_getResourceValue_forKey_error_1 = _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_220( + bool _objc_msgSend_244( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> value, - NSURLResourceKey key, + ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_220( + return __objc_msgSend_244( obj, sel, value, @@ -5838,33 +6449,31 @@ class AVFAudio { ); } - late final __objc_msgSend_220Ptr = _lookup< + late final __objc_msgSend_244Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSURLResourceKey, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< + late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSURLResourceKey, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_getPromisedItemResourceValue_forKey_error_1 = - _registerName1("getPromisedItemResourceValue:forKey:error:"); - late final _sel_promisedItemResourceValuesForKeys_error_1 = - _registerName1("promisedItemResourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_221( + late final _sel_resourceValuesForKeys_error_1 = + _registerName1("resourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_245( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_221( + return __objc_msgSend_245( obj, sel, keys, @@ -5872,266 +6481,651 @@ class AVFAudio { ); } - late final __objc_msgSend_221Ptr = _lookup< + late final __objc_msgSend_245Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< + late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); - late final _sel_checkPromisedItemIsReachableAndReturnError_1 = - _registerName1("checkPromisedItemIsReachableAndReturnError:"); - late final _sel_fileURLWithPathComponents_1 = - _registerName1("fileURLWithPathComponents:"); - ffi.Pointer _objc_msgSend_222( + late final _sel_setResourceValue_forKey_error_1 = + _registerName1("setResourceValue:forKey:error:"); + bool _objc_msgSend_246( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer components, + ffi.Pointer value, + ffi.Pointer key, + ffi.Pointer> error, ) { - return __objc_msgSend_222( + return __objc_msgSend_246( obj, sel, - components, + value, + key, + error, ); } - late final __objc_msgSend_222Ptr = _lookup< + late final __objc_msgSend_246Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_pathComponents1 = _registerName1("pathComponents"); - late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); - late final _sel_pathExtension1 = _registerName1("pathExtension"); - late final _sel_URLByAppendingPathComponent_1 = - _registerName1("URLByAppendingPathComponent:"); - late final _sel_URLByAppendingPathComponent_isDirectory_1 = - _registerName1("URLByAppendingPathComponent:isDirectory:"); - late final _sel_URLByDeletingLastPathComponent1 = - _registerName1("URLByDeletingLastPathComponent"); - late final _sel_URLByAppendingPathExtension_1 = - _registerName1("URLByAppendingPathExtension:"); - late final _sel_URLByDeletingPathExtension1 = - _registerName1("URLByDeletingPathExtension"); - late final _sel_URLByStandardizingPath1 = - _registerName1("URLByStandardizingPath"); - late final _sel_URLByResolvingSymlinksInPath1 = - _registerName1("URLByResolvingSymlinksInPath"); - late final _sel_resourceDataUsingCache_1 = - _registerName1("resourceDataUsingCache:"); - ffi.Pointer _objc_msgSend_223( + late final _sel_setResourceValues_error_1 = + _registerName1("setResourceValues:error:"); + bool _objc_msgSend_247( ffi.Pointer obj, ffi.Pointer sel, - bool shouldUseCache, + ffi.Pointer keyedValues, + ffi.Pointer> error, ) { - return __objc_msgSend_223( + return __objc_msgSend_247( obj, sel, - shouldUseCache, + keyedValues, + error, ); } - late final __objc_msgSend_223Ptr = _lookup< + late final __objc_msgSend_247Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_loadResourceDataNotifyingClient_usingCache_1 = - _registerName1("loadResourceDataNotifyingClient:usingCache:"); - void _objc_msgSend_224( + late final _sel_removeCachedResourceValueForKey_1 = + _registerName1("removeCachedResourceValueForKey:"); + void _objc_msgSend_248( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer client, - bool shouldUseCache, + ffi.Pointer key, ) { - return __objc_msgSend_224( + return __objc_msgSend_248( obj, sel, - client, - shouldUseCache, + key, ); } - late final __objc_msgSend_224Ptr = _lookup< + late final __objc_msgSend_248Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer)>(); - late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); - late final _sel_setResourceData_1 = _registerName1("setResourceData:"); - late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); - bool _objc_msgSend_225( + late final _sel_removeAllCachedResourceValues1 = + _registerName1("removeAllCachedResourceValues"); + late final _sel_setTemporaryResourceValue_forKey_1 = + _registerName1("setTemporaryResourceValue:forKey:"); + late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = + _registerName1( + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); + ffi.Pointer _objc_msgSend_249( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer property, - ffi.Pointer propertyKey, + int options, + ffi.Pointer keys, + ffi.Pointer relativeURL, + ffi.Pointer> error, ) { - return __objc_msgSend_225( + return __objc_msgSend_249( obj, sel, - property, - propertyKey, + options, + keys, + relativeURL, + error, ); } - late final __objc_msgSend_225Ptr = _lookup< + late final __objc_msgSend_249Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); - late final _sel_registerURLHandleClass_1 = - _registerName1("registerURLHandleClass:"); - late final _sel_URLHandleClassForURL_1 = - _registerName1("URLHandleClassForURL:"); - ffi.Pointer _objc_msgSend_226( + late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + instancetype _objc_msgSend_250( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anURL, + ffi.Pointer bookmarkData, + int options, + ffi.Pointer relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error, ) { - return __objc_msgSend_226( + return __objc_msgSend_250( obj, sel, - anURL, + bookmarkData, + options, + relativeURL, + isStale, + error, ); } - late final __objc_msgSend_226Ptr = _lookup< + late final __objc_msgSend_250Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_status1 = _registerName1("status"); - int _objc_msgSend_227( + late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + late final _sel_resourceValuesForKeys_fromBookmarkData_1 = + _registerName1("resourceValuesForKeys:fromBookmarkData:"); + ffi.Pointer _objc_msgSend_251( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer bookmarkData, ) { - return __objc_msgSend_227( + return __objc_msgSend_251( obj, sel, + keys, + bookmarkData, ); } - late final __objc_msgSend_227Ptr = _lookup< + late final __objc_msgSend_251Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_failureReason1 = _registerName1("failureReason"); - late final _sel_addClient_1 = _registerName1("addClient:"); - late final _sel_removeClient_1 = _registerName1("removeClient:"); - late final _sel_loadInBackground1 = _registerName1("loadInBackground"); - late final _sel_cancelLoadInBackground1 = - _registerName1("cancelLoadInBackground"); - late final _sel_resourceData1 = _registerName1("resourceData"); - late final _sel_availableResourceData1 = - _registerName1("availableResourceData"); - late final _sel_expectedResourceDataSize1 = - _registerName1("expectedResourceDataSize"); - late final _sel_flushCachedData1 = _registerName1("flushCachedData"); - late final _sel_backgroundLoadDidFailWithReason_1 = - _registerName1("backgroundLoadDidFailWithReason:"); - late final _sel_didLoadBytes_loadComplete_1 = - _registerName1("didLoadBytes:loadComplete:"); - void _objc_msgSend_228( + late final _sel_writeBookmarkData_toURL_options_error_1 = + _registerName1("writeBookmarkData:toURL:options:error:"); + bool _objc_msgSend_252( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer newBytes, - bool yorn, + ffi.Pointer bookmarkData, + ffi.Pointer bookmarkFileURL, + int options, + ffi.Pointer> error, ) { - return __objc_msgSend_228( + return __objc_msgSend_252( obj, sel, - newBytes, - yorn, + bookmarkData, + bookmarkFileURL, + options, + error, ); } - late final __objc_msgSend_228Ptr = _lookup< + late final __objc_msgSend_252Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); - bool _objc_msgSend_229( + late final _sel_bookmarkDataWithContentsOfURL_error_1 = + _registerName1("bookmarkDataWithContentsOfURL:error:"); + ffi.Pointer _objc_msgSend_253( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anURL, + ffi.Pointer bookmarkFileURL, + ffi.Pointer> error, ) { - return __objc_msgSend_229( + return __objc_msgSend_253( obj, sel, - anURL, + bookmarkFileURL, + error, ); } - late final __objc_msgSend_229Ptr = _lookup< + late final __objc_msgSend_253Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); - ffi.Pointer _objc_msgSend_230( + late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = + _registerName1("URLByResolvingAliasFileAtURL:options:error:"); + instancetype _objc_msgSend_254( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anURL, + ffi.Pointer url, + int options, + ffi.Pointer> error, ) { - return __objc_msgSend_230( + return __objc_msgSend_254( obj, sel, - anURL, - ); - } + url, + options, + error, + ); + } - late final __objc_msgSend_230Ptr = _lookup< + late final __objc_msgSend_254Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_startAccessingSecurityScopedResource1 = + _registerName1("startAccessingSecurityScopedResource"); + late final _sel_stopAccessingSecurityScopedResource1 = + _registerName1("stopAccessingSecurityScopedResource"); + late final _sel_getPromisedItemResourceValue_forKey_error_1 = + _registerName1("getPromisedItemResourceValue:forKey:error:"); + late final _sel_promisedItemResourceValuesForKeys_error_1 = + _registerName1("promisedItemResourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_255( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer> error, + ) { + return __objc_msgSend_255( + obj, + sel, + keys, + error, + ); + } + + late final __objc_msgSend_255Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_checkPromisedItemIsReachableAndReturnError_1 = + _registerName1("checkPromisedItemIsReachableAndReturnError:"); + late final _sel_fileURLWithPathComponents_1 = + _registerName1("fileURLWithPathComponents:"); + ffi.Pointer _objc_msgSend_256( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer components, + ) { + return __objc_msgSend_256( + obj, + sel, + components, + ); + } + + late final __objc_msgSend_256Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_pathComponents1 = _registerName1("pathComponents"); + late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); + late final _sel_pathExtension1 = _registerName1("pathExtension"); + late final _sel_URLByAppendingPathComponent_1 = + _registerName1("URLByAppendingPathComponent:"); + ffi.Pointer _objc_msgSend_257( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pathComponent, + ) { + return __objc_msgSend_257( + obj, + sel, + pathComponent, + ); + } + + late final __objc_msgSend_257Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URLByAppendingPathComponent_isDirectory_1 = + _registerName1("URLByAppendingPathComponent:isDirectory:"); + ffi.Pointer _objc_msgSend_258( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pathComponent, + bool isDirectory, + ) { + return __objc_msgSend_258( + obj, + sel, + pathComponent, + isDirectory, + ); + } + + late final __objc_msgSend_258Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_URLByDeletingLastPathComponent1 = + _registerName1("URLByDeletingLastPathComponent"); + late final _sel_URLByAppendingPathExtension_1 = + _registerName1("URLByAppendingPathExtension:"); + late final _sel_URLByDeletingPathExtension1 = + _registerName1("URLByDeletingPathExtension"); + late final _sel_URLByStandardizingPath1 = + _registerName1("URLByStandardizingPath"); + late final _sel_URLByResolvingSymlinksInPath1 = + _registerName1("URLByResolvingSymlinksInPath"); + late final _sel_resourceDataUsingCache_1 = + _registerName1("resourceDataUsingCache:"); + ffi.Pointer _objc_msgSend_259( + ffi.Pointer obj, + ffi.Pointer sel, + bool shouldUseCache, + ) { + return __objc_msgSend_259( + obj, + sel, + shouldUseCache, + ); + } + + late final __objc_msgSend_259Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_loadResourceDataNotifyingClient_usingCache_1 = + _registerName1("loadResourceDataNotifyingClient:usingCache:"); + void _objc_msgSend_260( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer client, + bool shouldUseCache, + ) { + return __objc_msgSend_260( + obj, + sel, + client, + shouldUseCache, + ); + } + + late final __objc_msgSend_260Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); + late final _sel_setResourceData_1 = _registerName1("setResourceData:"); + late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); + bool _objc_msgSend_261( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer propertyKey, + ) { + return __objc_msgSend_261( + obj, + sel, + property, + propertyKey, + ); + } + + late final __objc_msgSend_261Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); + late final _sel_registerURLHandleClass_1 = + _registerName1("registerURLHandleClass:"); + late final _sel_URLHandleClassForURL_1 = + _registerName1("URLHandleClassForURL:"); + ffi.Pointer _objc_msgSend_262( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_262( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_262Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_status1 = _registerName1("status"); + int _objc_msgSend_263( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_263( + obj, + sel, + ); + } + + late final __objc_msgSend_263Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_failureReason1 = _registerName1("failureReason"); + late final _sel_addClient_1 = _registerName1("addClient:"); + late final _sel_removeClient_1 = _registerName1("removeClient:"); + late final _sel_loadInBackground1 = _registerName1("loadInBackground"); + late final _sel_cancelLoadInBackground1 = + _registerName1("cancelLoadInBackground"); + late final _sel_resourceData1 = _registerName1("resourceData"); + late final _sel_availableResourceData1 = + _registerName1("availableResourceData"); + late final _sel_expectedResourceDataSize1 = + _registerName1("expectedResourceDataSize"); + late final _sel_flushCachedData1 = _registerName1("flushCachedData"); + late final _sel_backgroundLoadDidFailWithReason_1 = + _registerName1("backgroundLoadDidFailWithReason:"); + late final _sel_didLoadBytes_loadComplete_1 = + _registerName1("didLoadBytes:loadComplete:"); + void _objc_msgSend_264( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer newBytes, + bool yorn, + ) { + return __objc_msgSend_264( + obj, + sel, + newBytes, + yorn, + ); + } + + late final __objc_msgSend_264Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); + bool _objc_msgSend_265( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_265( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_265Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); + ffi.Pointer _objc_msgSend_266( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_266( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_266Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); - ffi.Pointer _objc_msgSend_231( + ffi.Pointer _objc_msgSend_267( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURL, bool willCache, ) { - return __objc_msgSend_231( + return __objc_msgSend_267( obj, sel, anURL, @@ -6139,14 +7133,14 @@ class AVFAudio { ); } - late final __objc_msgSend_231Ptr = _lookup< + late final __objc_msgSend_267Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -6161,36 +7155,36 @@ class AVFAudio { late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); late final _sel_URLHandleUsingCache_1 = _registerName1("URLHandleUsingCache:"); - ffi.Pointer _objc_msgSend_232( + ffi.Pointer _objc_msgSend_268( ffi.Pointer obj, ffi.Pointer sel, bool shouldUseCache, ) { - return __objc_msgSend_232( + return __objc_msgSend_268( obj, sel, shouldUseCache, ); } - late final __objc_msgSend_232Ptr = _lookup< + late final __objc_msgSend_268Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_writeToFile_options_error_1 = _registerName1("writeToFile:options:error:"); - bool _objc_msgSend_233( + bool _objc_msgSend_269( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_233( + return __objc_msgSend_269( obj, sel, path, @@ -6199,7 +7193,7 @@ class AVFAudio { ); } - late final __objc_msgSend_233Ptr = _lookup< + late final __objc_msgSend_269Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6207,7 +7201,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6217,14 +7211,14 @@ class AVFAudio { late final _sel_writeToURL_options_error_1 = _registerName1("writeToURL:options:error:"); - bool _objc_msgSend_234( + bool _objc_msgSend_270( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_234( + return __objc_msgSend_270( obj, sel, url, @@ -6233,7 +7227,7 @@ class AVFAudio { ); } - late final __objc_msgSend_234Ptr = _lookup< + late final __objc_msgSend_270Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6241,7 +7235,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6251,14 +7245,16 @@ class AVFAudio { late final _sel_rangeOfData_options_range_1 = _registerName1("rangeOfData:options:range:"); - NSRange _objc_msgSend_235( + void _objc_msgSend_271( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataToFind, int mask, - NSRange searchRange, + _NSRange searchRange, ) { - return __objc_msgSend_235( + return __objc_msgSend_271( + stret, obj, sel, dataToFind, @@ -6267,45 +7263,50 @@ class AVFAudio { ); } - late final __objc_msgSend_235Ptr = _lookup< + late final __objc_msgSend_271Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_enumerateByteRangesUsingBlock_1 = _registerName1("enumerateByteRangesUsingBlock:"); - void _objc_msgSend_236( + void _objc_msgSend_272( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_236( + return __objc_msgSend_272( obj, sel, block, ); } - late final __objc_msgSend_236Ptr = _lookup< + late final __objc_msgSend_272Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataWithBytes_length_1 = _registerName1("dataWithBytes:length:"); - instancetype _objc_msgSend_237( + instancetype _objc_msgSend_273( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ) { - return __objc_msgSend_237( + return __objc_msgSend_273( obj, sel, bytes, @@ -6313,11 +7314,11 @@ class AVFAudio { ); } - late final __objc_msgSend_237Ptr = _lookup< + late final __objc_msgSend_273Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -6325,14 +7326,14 @@ class AVFAudio { _registerName1("dataWithBytesNoCopy:length:"); late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_238( + instancetype _objc_msgSend_274( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool b, ) { - return __objc_msgSend_238( + return __objc_msgSend_274( obj, sel, bytes, @@ -6341,24 +7342,28 @@ class AVFAudio { ); } - late final __objc_msgSend_238Ptr = _lookup< + late final __objc_msgSend_274Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataWithContentsOfFile_options_error_1 = _registerName1("dataWithContentsOfFile:options:error:"); - instancetype _objc_msgSend_239( + instancetype _objc_msgSend_275( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_239( + return __objc_msgSend_275( obj, sel, path, @@ -6367,7 +7372,7 @@ class AVFAudio { ); } - late final __objc_msgSend_239Ptr = _lookup< + late final __objc_msgSend_275Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6375,7 +7380,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< + late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6385,14 +7390,14 @@ class AVFAudio { late final _sel_dataWithContentsOfURL_options_error_1 = _registerName1("dataWithContentsOfURL:options:error:"); - instancetype _objc_msgSend_240( + instancetype _objc_msgSend_276( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_240( + return __objc_msgSend_276( obj, sel, url, @@ -6401,7 +7406,7 @@ class AVFAudio { ); } - late final __objc_msgSend_240Ptr = _lookup< + late final __objc_msgSend_276Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6409,7 +7414,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6421,6 +7426,26 @@ class AVFAudio { _registerName1("dataWithContentsOfFile:"); late final _sel_dataWithContentsOfURL_1 = _registerName1("dataWithContentsOfURL:"); + instancetype _objc_msgSend_277( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_277( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_277Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithBytes_length_1 = _registerName1("initWithBytes:length:"); late final _sel_initWithBytesNoCopy_length_1 = @@ -6429,14 +7454,14 @@ class AVFAudio { _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); late final _sel_initWithBytesNoCopy_length_deallocator_1 = _registerName1("initWithBytesNoCopy:length:deallocator:"); - instancetype _objc_msgSend_241( + instancetype _objc_msgSend_278( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_241( + return __objc_msgSend_278( obj, sel, bytes, @@ -6445,15 +7470,15 @@ class AVFAudio { ); } - late final __objc_msgSend_241Ptr = _lookup< + late final __objc_msgSend_278Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< + late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -6462,36 +7487,36 @@ class AVFAudio { late final _sel_initWithContentsOfURL_options_error_1 = _registerName1("initWithContentsOfURL:options:error:"); late final _sel_initWithData_1 = _registerName1("initWithData:"); - instancetype _objc_msgSend_242( + instancetype _objc_msgSend_279( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_242( + return __objc_msgSend_279( obj, sel, data, ); } - late final __objc_msgSend_242Ptr = _lookup< + late final __objc_msgSend_279Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< + late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataWithData_1 = _registerName1("dataWithData:"); late final _sel_initWithBase64EncodedString_options_1 = _registerName1("initWithBase64EncodedString:options:"); - instancetype _objc_msgSend_243( + instancetype _objc_msgSend_280( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64String, int options, ) { - return __objc_msgSend_243( + return __objc_msgSend_280( obj, sel, base64String, @@ -6499,45 +7524,45 @@ class AVFAudio { ); } - late final __objc_msgSend_243Ptr = _lookup< + late final __objc_msgSend_280Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< + late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedStringWithOptions_1 = _registerName1("base64EncodedStringWithOptions:"); - ffi.Pointer _objc_msgSend_244( + ffi.Pointer _objc_msgSend_281( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_244( + return __objc_msgSend_281( obj, sel, options, ); } - late final __objc_msgSend_244Ptr = _lookup< + late final __objc_msgSend_281Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBase64EncodedData_options_1 = _registerName1("initWithBase64EncodedData:options:"); - instancetype _objc_msgSend_245( + instancetype _objc_msgSend_282( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64Data, int options, ) { - return __objc_msgSend_245( + return __objc_msgSend_282( obj, sel, base64Data, @@ -6545,45 +7570,45 @@ class AVFAudio { ); } - late final __objc_msgSend_245Ptr = _lookup< + late final __objc_msgSend_282Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< + late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedDataWithOptions_1 = _registerName1("base64EncodedDataWithOptions:"); - ffi.Pointer _objc_msgSend_246( + ffi.Pointer _objc_msgSend_283( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_246( + return __objc_msgSend_283( obj, sel, options, ); } - late final __objc_msgSend_246Ptr = _lookup< + late final __objc_msgSend_283Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_decompressedDataUsingAlgorithm_error_1 = _registerName1("decompressedDataUsingAlgorithm:error:"); - instancetype _objc_msgSend_247( + instancetype _objc_msgSend_284( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_247( + return __objc_msgSend_284( obj, sel, algorithm, @@ -6591,14 +7616,14 @@ class AVFAudio { ); } - late final __objc_msgSend_247Ptr = _lookup< + late final __objc_msgSend_284Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -6613,37 +7638,55 @@ class AVFAudio { _registerName1("initWithBase64Encoding:"); late final _sel_base64Encoding1 = _registerName1("base64Encoding"); late final _sel_encodeDataObject_1 = _registerName1("encodeDataObject:"); - void _objc_msgSend_248( + void _objc_msgSend_285( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_248( + return __objc_msgSend_285( obj, sel, data, ); } - late final __objc_msgSend_248Ptr = _lookup< + late final __objc_msgSend_285Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeDataObject1 = _registerName1("decodeDataObject"); + ffi.Pointer _objc_msgSend_286( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_286( + obj, + sel, + ); + } + + late final __objc_msgSend_286Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_decodeValueOfObjCType_at_size_1 = _registerName1("decodeValueOfObjCType:at:size:"); - void _objc_msgSend_249( + void _objc_msgSend_287( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer data, int size, ) { - return __objc_msgSend_249( + return __objc_msgSend_287( obj, sel, type, @@ -6652,41 +7695,61 @@ class AVFAudio { ); } - late final __objc_msgSend_249Ptr = _lookup< + late final __objc_msgSend_287Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_versionForClassName_1 = _registerName1("versionForClassName:"); - int _objc_msgSend_250( + int _objc_msgSend_288( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer className, ) { - return __objc_msgSend_250( + return __objc_msgSend_288( obj, sel, className, ); } - late final __objc_msgSend_250Ptr = _lookup< + late final __objc_msgSend_288Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeObject_1 = _registerName1("encodeObject:"); + void _objc_msgSend_289( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_289( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_289Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_encodeRootObject_1 = _registerName1("encodeRootObject:"); late final _sel_encodeBycopyObject_1 = _registerName1("encodeBycopyObject:"); late final _sel_encodeByrefObject_1 = _registerName1("encodeByrefObject:"); @@ -6694,36 +7757,36 @@ class AVFAudio { _registerName1("encodeConditionalObject:"); late final _sel_encodeValuesOfObjCTypes_1 = _registerName1("encodeValuesOfObjCTypes:"); - void _objc_msgSend_251( + void _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer types, ) { - return __objc_msgSend_251( + return __objc_msgSend_290( obj, sel, types, ); } - late final __objc_msgSend_251Ptr = _lookup< + late final __objc_msgSend_290Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeArrayOfObjCType_count_at_1 = _registerName1("encodeArrayOfObjCType:count:at:"); - void _objc_msgSend_252( + void _objc_msgSend_291( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, int count, ffi.Pointer array, ) { - return __objc_msgSend_252( + return __objc_msgSend_291( obj, sel, type, @@ -6732,15 +7795,15 @@ class AVFAudio { ); } - late final __objc_msgSend_252Ptr = _lookup< + late final __objc_msgSend_291Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -6748,25 +7811,25 @@ class AVFAudio { late final _sel_decodeObject1 = _registerName1("decodeObject"); late final _sel_decodeTopLevelObjectAndReturnError_1 = _registerName1("decodeTopLevelObjectAndReturnError:"); - ffi.Pointer _objc_msgSend_253( + ffi.Pointer _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_253( + return __objc_msgSend_292( obj, sel, error, ); } - late final __objc_msgSend_253Ptr = _lookup< + late final __objc_msgSend_292Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -6776,66 +7839,68 @@ class AVFAudio { _registerName1("decodeArrayOfObjCType:count:at:"); late final _sel_decodeBytesWithReturnedLength_1 = _registerName1("decodeBytesWithReturnedLength:"); - ffi.Pointer _objc_msgSend_254( + ffi.Pointer _objc_msgSend_293( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer lengthp, + ffi.Pointer lengthp, ) { - return __objc_msgSend_254( + return __objc_msgSend_293( obj, sel, lengthp, ); } - late final __objc_msgSend_254Ptr = _lookup< + late final __objc_msgSend_293Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_encodePropertyList_1 = _registerName1("encodePropertyList:"); late final _sel_decodePropertyList1 = _registerName1("decodePropertyList"); late final _sel_setObjectZone_1 = _registerName1("setObjectZone:"); - void _objc_msgSend_255( + void _objc_msgSend_294( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer zone, + ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_255( + return __objc_msgSend_294( obj, sel, zone, ); } - late final __objc_msgSend_255Ptr = _lookup< + late final __objc_msgSend_294Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_NSZone>)>(); late final _sel_objectZone1 = _registerName1("objectZone"); - ffi.Pointer _objc_msgSend_256( + ffi.Pointer<_NSZone> _objc_msgSend_295( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_256( + return __objc_msgSend_295( obj, sel, ); } - late final __objc_msgSend_256Ptr = _lookup< + late final __objc_msgSend_295Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer<_NSZone> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< - ffi.Pointer Function( + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + ffi.Pointer<_NSZone> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_systemVersion1 = _registerName1("systemVersion"); @@ -6845,13 +7910,13 @@ class AVFAudio { late final _sel_encodeConditionalObject_forKey_1 = _registerName1("encodeConditionalObject:forKey:"); late final _sel_encodeBool_forKey_1 = _registerName1("encodeBool:forKey:"); - void _objc_msgSend_257( + void _objc_msgSend_296( ffi.Pointer obj, ffi.Pointer sel, bool value, ffi.Pointer key, ) { - return __objc_msgSend_257( + return __objc_msgSend_296( obj, sel, value, @@ -6859,22 +7924,22 @@ class AVFAudio { ); } - late final __objc_msgSend_257Ptr = _lookup< + late final __objc_msgSend_296Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_encodeInt_forKey_1 = _registerName1("encodeInt:forKey:"); - void _objc_msgSend_258( + void _objc_msgSend_297( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_258( + return __objc_msgSend_297( obj, sel, value, @@ -6882,22 +7947,22 @@ class AVFAudio { ); } - late final __objc_msgSend_258Ptr = _lookup< + late final __objc_msgSend_297Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeInt32_forKey_1 = _registerName1("encodeInt32:forKey:"); - void _objc_msgSend_259( + void _objc_msgSend_298( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_259( + return __objc_msgSend_298( obj, sel, value, @@ -6905,22 +7970,22 @@ class AVFAudio { ); } - late final __objc_msgSend_259Ptr = _lookup< + late final __objc_msgSend_298Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeInt64_forKey_1 = _registerName1("encodeInt64:forKey:"); - void _objc_msgSend_260( + void _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_260( + return __objc_msgSend_299( obj, sel, value, @@ -6928,22 +7993,22 @@ class AVFAudio { ); } - late final __objc_msgSend_260Ptr = _lookup< + late final __objc_msgSend_299Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeFloat_forKey_1 = _registerName1("encodeFloat:forKey:"); - void _objc_msgSend_261( + void _objc_msgSend_300( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_261( + return __objc_msgSend_300( obj, sel, value, @@ -6951,23 +8016,23 @@ class AVFAudio { ); } - late final __objc_msgSend_261Ptr = _lookup< + late final __objc_msgSend_300Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_encodeDouble_forKey_1 = _registerName1("encodeDouble:forKey:"); - void _objc_msgSend_262( + void _objc_msgSend_301( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_262( + return __objc_msgSend_301( obj, sel, value, @@ -6975,24 +8040,24 @@ class AVFAudio { ); } - late final __objc_msgSend_262Ptr = _lookup< + late final __objc_msgSend_301Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_encodeBytes_length_forKey_1 = _registerName1("encodeBytes:length:forKey:"); - void _objc_msgSend_263( + void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer key, ) { - return __objc_msgSend_263( + return __objc_msgSend_302( obj, sel, bytes, @@ -7001,15 +8066,15 @@ class AVFAudio { ); } - late final __objc_msgSend_263Ptr = _lookup< + late final __objc_msgSend_302Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -7018,13 +8083,13 @@ class AVFAudio { late final _sel_decodeObjectForKey_1 = _registerName1("decodeObjectForKey:"); late final _sel_decodeTopLevelObjectForKey_error_1 = _registerName1("decodeTopLevelObjectForKey:error:"); - ffi.Pointer _objc_msgSend_264( + ffi.Pointer _objc_msgSend_303( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_264( + return __objc_msgSend_303( obj, sel, key, @@ -7032,14 +8097,14 @@ class AVFAudio { ); } - late final __objc_msgSend_264Ptr = _lookup< + late final __objc_msgSend_303Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7048,119 +8113,119 @@ class AVFAudio { late final _sel_decodeBoolForKey_1 = _registerName1("decodeBoolForKey:"); late final _sel_decodeIntForKey_1 = _registerName1("decodeIntForKey:"); - int _objc_msgSend_265( + int _objc_msgSend_304( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_265( + return __objc_msgSend_304( obj, sel, key, ); } - late final __objc_msgSend_265Ptr = _lookup< + late final __objc_msgSend_304Ptr = _lookup< ffi.NativeFunction< ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeInt32ForKey_1 = _registerName1("decodeInt32ForKey:"); - int _objc_msgSend_266( + int _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_266( + return __objc_msgSend_305( obj, sel, key, ); } - late final __objc_msgSend_266Ptr = _lookup< + late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeInt64ForKey_1 = _registerName1("decodeInt64ForKey:"); - int _objc_msgSend_267( + int _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_267( + return __objc_msgSend_306( obj, sel, key, ); } - late final __objc_msgSend_267Ptr = _lookup< + late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeFloatForKey_1 = _registerName1("decodeFloatForKey:"); - double _objc_msgSend_268( + double _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_268( + return __objc_msgSend_307( obj, sel, key, ); } - late final __objc_msgSend_268Ptr = _lookup< + late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< ffi.Float Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeDoubleForKey_1 = _registerName1("decodeDoubleForKey:"); - double _objc_msgSend_269( + double _objc_msgSend_308( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_269( + return __objc_msgSend_308( obj, sel, key, ); } - late final __objc_msgSend_269Ptr = _lookup< + late final __objc_msgSend_308Ptr = _lookup< ffi.NativeFunction< ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeBytesForKey_returnedLength_1 = _registerName1("decodeBytesForKey:returnedLength:"); - ffi.Pointer _objc_msgSend_270( + ffi.Pointer _objc_msgSend_309( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, - ffi.Pointer lengthp, + ffi.Pointer lengthp, ) { - return __objc_msgSend_270( + return __objc_msgSend_309( obj, sel, key, @@ -7168,29 +8233,29 @@ class AVFAudio { ); } - late final __objc_msgSend_270Ptr = _lookup< + late final __objc_msgSend_309Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_encodeInteger_forKey_1 = _registerName1("encodeInteger:forKey:"); - void _objc_msgSend_271( + void _objc_msgSend_310( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_271( + return __objc_msgSend_310( obj, sel, value, @@ -7198,11 +8263,11 @@ class AVFAudio { ); } - late final __objc_msgSend_271Ptr = _lookup< + late final __objc_msgSend_310Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + ffi.Long, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -7212,13 +8277,13 @@ class AVFAudio { _registerName1("requiresSecureCoding"); late final _sel_decodeObjectOfClass_forKey_1 = _registerName1("decodeObjectOfClass:forKey:"); - ffi.Pointer _objc_msgSend_272( + ffi.Pointer _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ) { - return __objc_msgSend_272( + return __objc_msgSend_311( obj, sel, aClass, @@ -7226,14 +8291,14 @@ class AVFAudio { ); } - late final __objc_msgSend_272Ptr = _lookup< + late final __objc_msgSend_311Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7242,14 +8307,14 @@ class AVFAudio { late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); - ffi.Pointer _objc_msgSend_273( + ffi.Pointer _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_273( + return __objc_msgSend_312( obj, sel, aClass, @@ -7258,7 +8323,7 @@ class AVFAudio { ); } - late final __objc_msgSend_273Ptr = _lookup< + late final __objc_msgSend_312Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7266,7 +8331,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7276,13 +8341,13 @@ class AVFAudio { late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = _registerName1("decodeArrayOfObjectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_274( + ffi.Pointer _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cls, ffi.Pointer key, ) { - return __objc_msgSend_274( + return __objc_msgSend_313( obj, sel, cls, @@ -7290,14 +8355,14 @@ class AVFAudio { ); } - late final __objc_msgSend_274Ptr = _lookup< + late final __objc_msgSend_313Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7306,14 +8371,14 @@ class AVFAudio { late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_275( + ffi.Pointer _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyCls, ffi.Pointer objectCls, ffi.Pointer key, ) { - return __objc_msgSend_275( + return __objc_msgSend_314( obj, sel, keyCls, @@ -7322,7 +8387,7 @@ class AVFAudio { ); } - late final __objc_msgSend_275Ptr = _lookup< + late final __objc_msgSend_314Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7330,7 +8395,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7340,13 +8405,13 @@ class AVFAudio { late final _sel_decodeObjectOfClasses_forKey_1 = _registerName1("decodeObjectOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_276( + ffi.Pointer _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_276( + return __objc_msgSend_315( obj, sel, classes, @@ -7354,14 +8419,14 @@ class AVFAudio { ); } - late final __objc_msgSend_276Ptr = _lookup< + late final __objc_msgSend_315Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7370,14 +8435,14 @@ class AVFAudio { late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); - ffi.Pointer _objc_msgSend_277( + ffi.Pointer _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_277( + return __objc_msgSend_316( obj, sel, classes, @@ -7386,7 +8451,7 @@ class AVFAudio { ); } - late final __objc_msgSend_277Ptr = _lookup< + late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7394,7 +8459,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7404,13 +8469,13 @@ class AVFAudio { late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_278( + ffi.Pointer _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_278( + return __objc_msgSend_317( obj, sel, classes, @@ -7418,14 +8483,14 @@ class AVFAudio { ); } - late final __objc_msgSend_278Ptr = _lookup< + late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7435,14 +8500,14 @@ class AVFAudio { late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = _registerName1( "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_279( + ffi.Pointer _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyClasses, ffi.Pointer objectClasses, ffi.Pointer key, ) { - return __objc_msgSend_279( + return __objc_msgSend_318( obj, sel, keyClasses, @@ -7451,7 +8516,7 @@ class AVFAudio { ); } - late final __objc_msgSend_279Ptr = _lookup< + late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7459,7 +8524,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7470,80 +8535,80 @@ class AVFAudio { late final _sel_decodePropertyListForKey_1 = _registerName1("decodePropertyListForKey:"); late final _sel_allowedClasses1 = _registerName1("allowedClasses"); - ffi.Pointer _objc_msgSend_280( + ffi.Pointer _objc_msgSend_319( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_280( + return __objc_msgSend_319( obj, sel, ); } - late final __objc_msgSend_280Ptr = _lookup< + late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_failWithError_1 = _registerName1("failWithError:"); - void _objc_msgSend_281( + void _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, ) { - return __objc_msgSend_281( + return __objc_msgSend_320( obj, sel, error, ); } - late final __objc_msgSend_281Ptr = _lookup< + late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodingFailurePolicy1 = _registerName1("decodingFailurePolicy"); - int _objc_msgSend_282( + int _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_282( + return __objc_msgSend_321( obj, sel, ); } - late final __objc_msgSend_282Ptr = _lookup< + late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_error1 = _registerName1("error"); - ffi.Pointer _objc_msgSend_283( + ffi.Pointer _objc_msgSend_322( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_283( + return __objc_msgSend_322( obj, sel, ); } - late final __objc_msgSend_283Ptr = _lookup< + late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -7552,76 +8617,76 @@ class AVFAudio { late final _sel_decodeValueOfObjCType_at_1 = _registerName1("decodeValueOfObjCType:at:"); late final _sel_encodePoint_1 = _registerName1("encodePoint:"); - void _objc_msgSend_284( + void _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, - NSPoint point, + CGPoint point, ) { - return __objc_msgSend_284( + return __objc_msgSend_323( obj, sel, point, ); } - late final __objc_msgSend_284Ptr = _lookup< + late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSPoint)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSPoint)>(); + CGPoint)>>('objc_msgSend'); + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGPoint)>(); late final _sel_decodePoint1 = _registerName1("decodePoint"); late final _sel_encodeSize_1 = _registerName1("encodeSize:"); - void _objc_msgSend_285( + void _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, - NSSize size, + CGSize size, ) { - return __objc_msgSend_285( + return __objc_msgSend_324( obj, sel, size, ); } - late final __objc_msgSend_285Ptr = _lookup< + late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSSize)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSSize)>(); + CGSize)>>('objc_msgSend'); + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize)>(); late final _sel_decodeSize1 = _registerName1("decodeSize"); late final _sel_encodeRect_1 = _registerName1("encodeRect:"); - void _objc_msgSend_286( + void _objc_msgSend_325( ffi.Pointer obj, ffi.Pointer sel, - NSRect rect, + CGRect rect, ) { - return __objc_msgSend_286( + return __objc_msgSend_325( obj, sel, rect, ); } - late final __objc_msgSend_286Ptr = _lookup< + late final __objc_msgSend_325Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRect)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRect)>(); + CGRect)>>('objc_msgSend'); + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect)>(); late final _sel_decodeRect1 = _registerName1("decodeRect"); late final _sel_encodePoint_forKey_1 = _registerName1("encodePoint:forKey:"); - void _objc_msgSend_287( + void _objc_msgSend_326( ffi.Pointer obj, ffi.Pointer sel, - NSPoint point, + CGPoint point, ffi.Pointer key, ) { - return __objc_msgSend_287( + return __objc_msgSend_326( obj, sel, point, @@ -7629,22 +8694,22 @@ class AVFAudio { ); } - late final __objc_msgSend_287Ptr = _lookup< + late final __objc_msgSend_326Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSPoint, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSPoint, + CGPoint, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGPoint, ffi.Pointer)>(); late final _sel_encodeSize_forKey_1 = _registerName1("encodeSize:forKey:"); - void _objc_msgSend_288( + void _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, - NSSize size, + CGSize size, ffi.Pointer key, ) { - return __objc_msgSend_288( + return __objc_msgSend_327( obj, sel, size, @@ -7652,22 +8717,22 @@ class AVFAudio { ); } - late final __objc_msgSend_288Ptr = _lookup< + late final __objc_msgSend_327Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSSize, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSSize, + CGSize, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize, ffi.Pointer)>(); late final _sel_encodeRect_forKey_1 = _registerName1("encodeRect:forKey:"); - void _objc_msgSend_289( + void _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, - NSRect rect, + CGRect rect, ffi.Pointer key, ) { - return __objc_msgSend_289( + return __objc_msgSend_328( obj, sel, rect, @@ -7675,129 +8740,144 @@ class AVFAudio { ); } - late final __objc_msgSend_289Ptr = _lookup< + late final __objc_msgSend_328Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRect, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRect, + CGRect, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect, ffi.Pointer)>(); late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); - NSPoint _objc_msgSend_290( + void _objc_msgSend_329( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_290( + return __objc_msgSend_329( + stret, obj, sel, key, ); } - late final __objc_msgSend_290Ptr = _lookup< + late final __objc_msgSend_329Ptr = _lookup< ffi.NativeFunction< - NSPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< - NSPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); - NSSize _objc_msgSend_291( + void _objc_msgSend_330( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_291( + return __objc_msgSend_330( + stret, obj, sel, key, ); } - late final __objc_msgSend_291Ptr = _lookup< + late final __objc_msgSend_330Ptr = _lookup< ffi.NativeFunction< - NSSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< - NSSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); - NSRect _objc_msgSend_292( + void _objc_msgSend_331( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_292( + return __objc_msgSend_331( + stret, obj, sel, key, ); } - late final __objc_msgSend_292Ptr = _lookup< + late final __objc_msgSend_331Ptr = _lookup< ffi.NativeFunction< - NSRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< - NSRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); - ffi.Pointer _objc_msgSend_293( + ffi.Pointer _objc_msgSend_332( ffi.Pointer obj, ffi.Pointer sel, int from, ) { - return __objc_msgSend_293( + return __objc_msgSend_332( obj, sel, from, ); } - late final __objc_msgSend_293Ptr = _lookup< + late final __objc_msgSend_332Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); - ffi.Pointer _objc_msgSend_294( + ffi.Pointer _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_294( + return __objc_msgSend_333( obj, sel, range, ); } - late final __objc_msgSend_294Ptr = _lookup< + late final __objc_msgSend_333Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_getCharacters_range_1 = _registerName1("getCharacters:range:"); - void _objc_msgSend_295( + void _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - NSRange range, + ffi.Pointer buffer, + _NSRange range, ) { - return __objc_msgSend_295( + return __objc_msgSend_334( obj, sel, buffer, @@ -7805,42 +8885,42 @@ class AVFAudio { ); } - late final __objc_msgSend_295Ptr = _lookup< + late final __objc_msgSend_334Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); - int _objc_msgSend_296( + int _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_296( + return __objc_msgSend_335( obj, sel, string, ); } - late final __objc_msgSend_296Ptr = _lookup< + late final __objc_msgSend_335Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_compare_options_1 = _registerName1("compare:options:"); - int _objc_msgSend_297( + int _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ) { - return __objc_msgSend_297( + return __objc_msgSend_336( obj, sel, string, @@ -7848,24 +8928,24 @@ class AVFAudio { ); } - late final __objc_msgSend_297Ptr = _lookup< + late final __objc_msgSend_336Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_compare_options_range_1 = _registerName1("compare:options:range:"); - int _objc_msgSend_298( + int _objc_msgSend_337( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, - NSRange rangeOfReceiverToCompare, + _NSRange rangeOfReceiverToCompare, ) { - return __objc_msgSend_298( + return __objc_msgSend_337( obj, sel, string, @@ -7874,25 +8954,25 @@ class AVFAudio { ); } - late final __objc_msgSend_298Ptr = _lookup< + late final __objc_msgSend_337Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Pointer, int, _NSRange)>(); late final _sel_compare_options_range_locale_1 = _registerName1("compare:options:range:locale:"); - int _objc_msgSend_299( + int _objc_msgSend_338( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, - NSRange rangeOfReceiverToCompare, + _NSRange rangeOfReceiverToCompare, ffi.Pointer locale, ) { - return __objc_msgSend_299( + return __objc_msgSend_338( obj, sel, string, @@ -7902,18 +8982,18 @@ class AVFAudio { ); } - late final __objc_msgSend_299Ptr = _lookup< + late final __objc_msgSend_338Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_caseInsensitiveCompare_1 = _registerName1("caseInsensitiveCompare:"); @@ -7927,13 +9007,13 @@ class AVFAudio { late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); late final _sel_commonPrefixWithString_options_1 = _registerName1("commonPrefixWithString:options:"); - ffi.Pointer _objc_msgSend_300( + ffi.Pointer _objc_msgSend_339( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int mask, ) { - return __objc_msgSend_300( + return __objc_msgSend_339( obj, sel, str, @@ -7941,14 +9021,14 @@ class AVFAudio { ); } - late final __objc_msgSend_300Ptr = _lookup< + late final __objc_msgSend_339Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -7959,36 +9039,43 @@ class AVFAudio { _registerName1("localizedStandardContainsString:"); late final _sel_localizedStandardRangeOfString_1 = _registerName1("localizedStandardRangeOfString:"); - NSRange _objc_msgSend_301( + void _objc_msgSend_340( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, ) { - return __objc_msgSend_301( + return __objc_msgSend_340( + stret, obj, sel, str, ); } - late final __objc_msgSend_301Ptr = _lookup< + late final __objc_msgSend_340Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); late final _sel_rangeOfString_options_1 = _registerName1("rangeOfString:options:"); - NSRange _objc_msgSend_302( + void _objc_msgSend_341( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, ) { - return __objc_msgSend_302( + return __objc_msgSend_341( + stret, obj, sel, searchString, @@ -7996,24 +9083,30 @@ class AVFAudio { ); } - late final __objc_msgSend_302Ptr = _lookup< + late final __objc_msgSend_341Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfString_options_range_1 = _registerName1("rangeOfString:options:range:"); - NSRange _objc_msgSend_303( + void _objc_msgSend_342( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, - NSRange rangeOfReceiverToSearch, + _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_303( + return __objc_msgSend_342( + stret, obj, sel, searchString, @@ -8022,25 +9115,32 @@ class AVFAudio { ); } - late final __objc_msgSend_303Ptr = _lookup< + late final __objc_msgSend_342Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfString_options_range_locale_1 = _registerName1("rangeOfString:options:range:locale:"); - NSRange _objc_msgSend_304( + void _objc_msgSend_343( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, - NSRange rangeOfReceiverToSearch, + _NSRange rangeOfReceiverToSearch, ffi.Pointer locale, ) { - return __objc_msgSend_304( + return __objc_msgSend_343( + stret, obj, sel, searchString, @@ -8050,50 +9150,64 @@ class AVFAudio { ); } - late final __objc_msgSend_304Ptr = _lookup< + late final __objc_msgSend_343Ptr = _lookup< ffi.NativeFunction< - NSRange Function( + ffi.Void Function( + ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + _NSRange, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_1 = _registerName1("rangeOfCharacterFromSet:"); - NSRange _objc_msgSend_305( + void _objc_msgSend_344( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { - return __objc_msgSend_305( + return __objc_msgSend_344( + stret, obj, sel, searchSet, ); } - late final __objc_msgSend_305Ptr = _lookup< + late final __objc_msgSend_344Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1("rangeOfCharacterFromSet:options:"); - NSRange _objc_msgSend_306( + void _objc_msgSend_345( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { - return __objc_msgSend_306( + return __objc_msgSend_345( + stret, obj, sel, searchSet, @@ -8101,24 +9215,30 @@ class AVFAudio { ); } - late final __objc_msgSend_306Ptr = _lookup< + late final __objc_msgSend_345Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1("rangeOfCharacterFromSet:options:range:"); - NSRange _objc_msgSend_307( + void _objc_msgSend_346( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, - NSRange rangeOfReceiverToSearch, + _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_307( + return __objc_msgSend_346( + stret, obj, sel, searchSet, @@ -8127,56 +9247,66 @@ class AVFAudio { ); } - late final __objc_msgSend_307Ptr = _lookup< + late final __objc_msgSend_346Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - NSRange _objc_msgSend_308( + void _objc_msgSend_347( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_308( + return __objc_msgSend_347( + stret, obj, sel, index, ); } - late final __objc_msgSend_308Ptr = _lookup< + late final __objc_msgSend_347Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend_stret'); + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1("rangeOfComposedCharacterSequencesForRange:"); - NSRange _objc_msgSend_309( + void _objc_msgSend_348( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_309( + return __objc_msgSend_348( + stret, obj, sel, range, ); } - late final __objc_msgSend_309Ptr = _lookup< + late final __objc_msgSend_348Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< - NSRange Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, _NSRange)>(); late final _sel_stringByAppendingString_1 = _registerName1("stringByAppendingString:"); @@ -8193,23 +9323,23 @@ class AVFAudio { _registerName1("localizedCapitalizedString"); late final _sel_uppercaseStringWithLocale_1 = _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_310( + ffi.Pointer _objc_msgSend_349( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_310( + return __objc_msgSend_349( obj, sel, locale, ); } - late final __objc_msgSend_310Ptr = _lookup< + late final __objc_msgSend_349Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -8219,15 +9349,15 @@ class AVFAudio { _registerName1("capitalizedStringWithLocale:"); late final _sel_getLineStart_end_contentsEnd_forRange_1 = _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_311( + void _objc_msgSend_350( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range, + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range, ) { - return __objc_msgSend_311( + return __objc_msgSend_350( obj, sel, startPtr, @@ -8237,23 +9367,23 @@ class AVFAudio { ); } - late final __objc_msgSend_311Ptr = _lookup< + late final __objc_msgSend_350Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>(); late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = @@ -8262,14 +9392,14 @@ class AVFAudio { _registerName1("paragraphRangeForRange:"); late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_312( + void _objc_msgSend_351( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_312( + return __objc_msgSend_351( obj, sel, range, @@ -8278,33 +9408,33 @@ class AVFAudio { ); } - late final __objc_msgSend_312Ptr = _lookup< + late final __objc_msgSend_351Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateLinesUsingBlock_1 = _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_313( + void _objc_msgSend_352( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_313( + return __objc_msgSend_352( obj, sel, block, ); } - late final __objc_msgSend_313Ptr = _lookup< + late final __objc_msgSend_352Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -8313,13 +9443,13 @@ class AVFAudio { late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); late final _sel_dataUsingEncoding_allowLossyConversion_1 = _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_314( + ffi.Pointer _objc_msgSend_353( ffi.Pointer obj, ffi.Pointer sel, int encoding, bool lossy, ) { - return __objc_msgSend_314( + return __objc_msgSend_353( obj, sel, encoding, @@ -8327,35 +9457,35 @@ class AVFAudio { ); } - late final __objc_msgSend_314Ptr = _lookup< + late final __objc_msgSend_353Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_315( + ffi.Pointer _objc_msgSend_354( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_315( + return __objc_msgSend_354( obj, sel, encoding, ); } - late final __objc_msgSend_315Ptr = _lookup< + late final __objc_msgSend_354Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -8365,14 +9495,14 @@ class AVFAudio { _registerName1("cStringUsingEncoding:"); late final _sel_getCString_maxLength_encoding_1 = _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_316( + bool _objc_msgSend_355( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, int encoding, ) { - return __objc_msgSend_316( + return __objc_msgSend_355( obj, sel, buffer, @@ -8381,33 +9511,33 @@ class AVFAudio { ); } - late final __objc_msgSend_316Ptr = _lookup< + late final __objc_msgSend_355Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + ffi.UnsignedLong, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = _registerName1( "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); - bool _objc_msgSend_317( + bool _objc_msgSend_356( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, - ffi.Pointer usedBufferCount, + ffi.Pointer usedBufferCount, int encoding, int options, - NSRange range, - NSRangePointer leftover, + _NSRange range, + ffi.Pointer<_NSRange> leftover, ) { - return __objc_msgSend_317( + return __objc_msgSend_356( obj, sel, buffer, @@ -8420,29 +9550,29 @@ class AVFAudio { ); } - late final __objc_msgSend_317Ptr = _lookup< + late final __objc_msgSend_356Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, ffi.Int32, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, + ffi.Pointer, int, int, - NSRange, - NSRangePointer)>(); + _NSRange, + ffi.Pointer<_NSRange>)>(); late final _sel_maximumLengthOfBytesUsingEncoding_1 = _registerName1("maximumLengthOfBytesUsingEncoding:"); @@ -8450,22 +9580,22 @@ class AVFAudio { _registerName1("lengthOfBytesUsingEncoding:"); late final _sel_availableStringEncodings1 = _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_318( + ffi.Pointer _objc_msgSend_357( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_318( + return __objc_msgSend_357( obj, sel, ); } - late final __objc_msgSend_318Ptr = _lookup< + late final __objc_msgSend_357Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< - ffi.Pointer Function( + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedNameOfStringEncoding_1 = @@ -8482,60 +9612,80 @@ class AVFAudio { _registerName1("precomposedStringWithCompatibilityMapping"); late final _sel_componentsSeparatedByString_1 = _registerName1("componentsSeparatedByString:"); - late final _sel_componentsSeparatedByCharactersInSet_1 = - _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_319( + ffi.Pointer _objc_msgSend_358( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_319( + return __objc_msgSend_358( obj, sel, separator, ); } - late final __objc_msgSend_319Ptr = _lookup< + late final __objc_msgSend_358Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_stringByTrimmingCharactersInSet_1 = - _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_320( - ffi.Pointer obj, + late final _sel_componentsSeparatedByCharactersInSet_1 = + _registerName1("componentsSeparatedByCharactersInSet:"); + ffi.Pointer _objc_msgSend_359( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, + ) { + return __objc_msgSend_359( + obj, + sel, + separator, + ); + } + + late final __objc_msgSend_359Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_stringByTrimmingCharactersInSet_1 = + _registerName1("stringByTrimmingCharactersInSet:"); + ffi.Pointer _objc_msgSend_360( + ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_320( + return __objc_msgSend_360( obj, sel, set1, ); } - late final __objc_msgSend_320Ptr = _lookup< + late final __objc_msgSend_360Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); - ffi.Pointer _objc_msgSend_321( + ffi.Pointer _objc_msgSend_361( ffi.Pointer obj, ffi.Pointer sel, int newLength, ffi.Pointer padString, int padIndex, ) { - return __objc_msgSend_321( + return __objc_msgSend_361( obj, sel, newLength, @@ -8544,27 +9694,27 @@ class AVFAudio { ); } - late final __objc_msgSend_321Ptr = _lookup< + late final __objc_msgSend_361Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_stringByFoldingWithOptions_locale_1 = _registerName1("stringByFoldingWithOptions:locale:"); - ffi.Pointer _objc_msgSend_322( + ffi.Pointer _objc_msgSend_362( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer locale, ) { - return __objc_msgSend_322( + return __objc_msgSend_362( obj, sel, options, @@ -8572,29 +9722,29 @@ class AVFAudio { ); } - late final __objc_msgSend_322Ptr = _lookup< + late final __objc_msgSend_362Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = _registerName1( "stringByReplacingOccurrencesOfString:withString:options:range:"); - ffi.Pointer _objc_msgSend_323( + ffi.Pointer _objc_msgSend_363( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, int options, - NSRange searchRange, + _NSRange searchRange, ) { - return __objc_msgSend_323( + return __objc_msgSend_363( obj, sel, target, @@ -8604,7 +9754,7 @@ class AVFAudio { ); } - late final __objc_msgSend_323Ptr = _lookup< + late final __objc_msgSend_363Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8612,25 +9762,25 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - NSRange)>(); + _NSRange)>(); late final _sel_stringByReplacingOccurrencesOfString_withString_1 = _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_324( + ffi.Pointer _objc_msgSend_364( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, ) { - return __objc_msgSend_324( + return __objc_msgSend_364( obj, sel, target, @@ -8638,14 +9788,14 @@ class AVFAudio { ); } - late final __objc_msgSend_324Ptr = _lookup< + late final __objc_msgSend_364Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8654,13 +9804,13 @@ class AVFAudio { late final _sel_stringByReplacingCharactersInRange_withString_1 = _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_325( + ffi.Pointer _objc_msgSend_365( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacement, ) { - return __objc_msgSend_325( + return __objc_msgSend_365( obj, sel, range, @@ -8668,26 +9818,26 @@ class AVFAudio { ); } - late final __objc_msgSend_325Ptr = _lookup< + late final __objc_msgSend_365Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_stringByApplyingTransform_reverse_1 = _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_326( + ffi.Pointer _objc_msgSend_366( ffi.Pointer obj, ffi.Pointer sel, - NSStringTransform transform, + ffi.Pointer transform, bool reverse, ) { - return __objc_msgSend_326( + return __objc_msgSend_366( obj, sel, transform, @@ -8695,20 +9845,20 @@ class AVFAudio { ); } - late final __objc_msgSend_326Ptr = _lookup< + late final __objc_msgSend_366Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSStringTransform, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringTransform, bool)>(); + ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_writeToURL_atomically_encoding_error_1 = _registerName1("writeToURL:atomically:encoding:error:"); - bool _objc_msgSend_327( + bool _objc_msgSend_367( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -8716,7 +9866,7 @@ class AVFAudio { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_327( + return __objc_msgSend_367( obj, sel, url, @@ -8726,16 +9876,16 @@ class AVFAudio { ); } - late final __objc_msgSend_327Ptr = _lookup< + late final __objc_msgSend_367Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8746,7 +9896,7 @@ class AVFAudio { late final _sel_writeToFile_atomically_encoding_error_1 = _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_328( + bool _objc_msgSend_368( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -8754,7 +9904,7 @@ class AVFAudio { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_328( + return __objc_msgSend_368( obj, sel, path, @@ -8764,16 +9914,16 @@ class AVFAudio { ); } - late final __objc_msgSend_328Ptr = _lookup< + late final __objc_msgSend_368Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8785,14 +9935,14 @@ class AVFAudio { late final _sel_hash1 = _registerName1("hash"); late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_329( + instancetype _objc_msgSend_369( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer characters, + ffi.Pointer characters, int length, bool freeBuffer, ) { - return __objc_msgSend_329( + return __objc_msgSend_369( obj, sel, characters, @@ -8801,24 +9951,28 @@ class AVFAudio { ); } - late final __objc_msgSend_329Ptr = _lookup< + late final __objc_msgSend_369Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); + ffi.Pointer, int, bool)>(); late final _sel_initWithCharactersNoCopy_length_deallocator_1 = _registerName1("initWithCharactersNoCopy:length:deallocator:"); - instancetype _objc_msgSend_330( + instancetype _objc_msgSend_370( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer chars, + ffi.Pointer chars, int len, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_330( + return __objc_msgSend_370( obj, sel, chars, @@ -8827,27 +9981,27 @@ class AVFAudio { ); } - late final __objc_msgSend_330Ptr = _lookup< + late final __objc_msgSend_370Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, + ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithCharacters_length_1 = _registerName1("initWithCharacters:length:"); - instancetype _objc_msgSend_331( + instancetype _objc_msgSend_371( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer characters, + ffi.Pointer characters, int length, ) { - return __objc_msgSend_331( + return __objc_msgSend_371( obj, sel, characters, @@ -8855,45 +10009,48 @@ class AVFAudio { ); } - late final __objc_msgSend_331Ptr = _lookup< + late final __objc_msgSend_371Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, int)>(); late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_332( + instancetype _objc_msgSend_372( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_332( + return __objc_msgSend_372( obj, sel, nullTerminatedCString, ); } - late final __objc_msgSend_332Ptr = _lookup< + late final __objc_msgSend_372Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); late final _sel_initWithFormat_arguments_1 = _registerName1("initWithFormat:arguments:"); - instancetype _objc_msgSend_333( + instancetype _objc_msgSend_373( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_333( + return __objc_msgSend_373( obj, sel, format, @@ -8901,29 +10058,54 @@ class AVFAudio { ); } - late final __objc_msgSend_333Ptr = _lookup< + late final __objc_msgSend_373Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); late final _sel_initWithFormat_locale_1 = _registerName1("initWithFormat:locale:"); + instancetype _objc_msgSend_374( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer locale, + ) { + return __objc_msgSend_374( + obj, + sel, + format, + locale, + ); + } + + late final __objc_msgSend_374Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithFormat_locale_arguments_1 = _registerName1("initWithFormat:locale:arguments:"); - instancetype _objc_msgSend_334( + instancetype _objc_msgSend_375( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_334( + return __objc_msgSend_375( obj, sel, format, @@ -8932,7 +10114,7 @@ class AVFAudio { ); } - late final __objc_msgSend_334Ptr = _lookup< + late final __objc_msgSend_375Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8940,7 +10122,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8948,15 +10130,170 @@ class AVFAudio { ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); + late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); + instancetype _objc_msgSend_376( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer> error, + ) { + return __objc_msgSend_376( + obj, + sel, + format, + validFormatSpecifiers, + error, + ); + } + + late final __objc_msgSend_376Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); + instancetype _objc_msgSend_377( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer locale, + ffi.Pointer> error, + ) { + return __objc_msgSend_377( + obj, + sel, + format, + validFormatSpecifiers, + locale, + error, + ); + } + + late final __objc_msgSend_377Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); + instancetype _objc_msgSend_378( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error, + ) { + return __objc_msgSend_378( + obj, + sel, + format, + validFormatSpecifiers, + argList, + error, + ); + } + + late final __objc_msgSend_378Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); + instancetype _objc_msgSend_379( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error, + ) { + return __objc_msgSend_379( + obj, + sel, + format, + validFormatSpecifiers, + locale, + argList, + error, + ); + } + + late final __objc_msgSend_379Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>(); + late final _sel_initWithData_encoding_1 = _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_335( + instancetype _objc_msgSend_380( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int encoding, ) { - return __objc_msgSend_335( + return __objc_msgSend_380( obj, sel, data, @@ -8964,24 +10301,24 @@ class AVFAudio { ); } - late final __objc_msgSend_335Ptr = _lookup< + late final __objc_msgSend_380Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBytes_length_encoding_1 = _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_336( + instancetype _objc_msgSend_381( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int len, int encoding, ) { - return __objc_msgSend_336( + return __objc_msgSend_381( obj, sel, bytes, @@ -8990,21 +10327,21 @@ class AVFAudio { ); } - late final __objc_msgSend_336Ptr = _lookup< + late final __objc_msgSend_381Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + ffi.UnsignedLong, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); - instancetype _objc_msgSend_337( + instancetype _objc_msgSend_382( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9012,7 +10349,7 @@ class AVFAudio { int encoding, bool freeBuffer, ) { - return __objc_msgSend_337( + return __objc_msgSend_382( obj, sel, bytes, @@ -9022,22 +10359,22 @@ class AVFAudio { ); } - late final __objc_msgSend_337Ptr = _lookup< + late final __objc_msgSend_382Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, bool)>(); late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); - instancetype _objc_msgSend_338( + instancetype _objc_msgSend_383( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9045,7 +10382,7 @@ class AVFAudio { int encoding, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_338( + return __objc_msgSend_383( obj, sel, bytes, @@ -9055,16 +10392,16 @@ class AVFAudio { ); } - late final __objc_msgSend_338Ptr = _lookup< + late final __objc_msgSend_383Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9077,15 +10414,20 @@ class AVFAudio { late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); late final _sel_localizedStringWithFormat_1 = _registerName1("localizedStringWithFormat:"); + late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1("stringWithValidatedFormat:validFormatSpecifiers:error:"); + late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1( + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_initWithCString_encoding_1 = _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_339( + instancetype _objc_msgSend_384( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, int encoding, ) { - return __objc_msgSend_339( + return __objc_msgSend_384( obj, sel, nullTerminatedCString, @@ -9093,11 +10435,11 @@ class AVFAudio { ); } - late final __objc_msgSend_339Ptr = _lookup< + late final __objc_msgSend_384Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -9105,14 +10447,14 @@ class AVFAudio { _registerName1("stringWithCString:encoding:"); late final _sel_initWithContentsOfURL_encoding_error_1 = _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_340( + instancetype _objc_msgSend_385( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_340( + return __objc_msgSend_385( obj, sel, url, @@ -9121,15 +10463,15 @@ class AVFAudio { ); } - late final __objc_msgSend_340Ptr = _lookup< + late final __objc_msgSend_385Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9139,14 +10481,14 @@ class AVFAudio { late final _sel_initWithContentsOfFile_encoding_error_1 = _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_341( + instancetype _objc_msgSend_386( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_341( + return __objc_msgSend_386( obj, sel, path, @@ -9155,15 +10497,15 @@ class AVFAudio { ); } - late final __objc_msgSend_341Ptr = _lookup< + late final __objc_msgSend_386Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9177,14 +10519,14 @@ class AVFAudio { _registerName1("stringWithContentsOfFile:encoding:error:"); late final _sel_initWithContentsOfURL_usedEncoding_error_1 = _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_342( + instancetype _objc_msgSend_387( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, - ffi.Pointer enc, + ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_342( + return __objc_msgSend_387( obj, sel, url, @@ -9193,32 +10535,32 @@ class AVFAudio { ); } - late final __objc_msgSend_342Ptr = _lookup< + late final __objc_msgSend_387Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); late final _sel_initWithContentsOfFile_usedEncoding_error_1 = _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_343( + instancetype _objc_msgSend_388( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, - ffi.Pointer enc, + ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_343( + return __objc_msgSend_388( obj, sel, path, @@ -9227,20 +10569,20 @@ class AVFAudio { ); } - late final __objc_msgSend_343Ptr = _lookup< + late final __objc_msgSend_388Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = @@ -9250,7 +10592,7 @@ class AVFAudio { late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = _registerName1( "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_344( + int _objc_msgSend_389( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, @@ -9258,7 +10600,7 @@ class AVFAudio { ffi.Pointer> string, ffi.Pointer usedLossyConversion, ) { - return __objc_msgSend_344( + return __objc_msgSend_389( obj, sel, data, @@ -9268,16 +10610,16 @@ class AVFAudio { ); } - late final __objc_msgSend_344Ptr = _lookup< + late final __objc_msgSend_389Ptr = _lookup< ffi.NativeFunction< - NSStringEncoding Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -9289,19 +10631,37 @@ class AVFAudio { late final _sel_propertyList1 = _registerName1("propertyList"); late final _sel_propertyListFromStringsFileFormat1 = _registerName1("propertyListFromStringsFileFormat"); + ffi.Pointer _objc_msgSend_390( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_390( + obj, + sel, + ); + } + + late final __objc_msgSend_390Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_cString1 = _registerName1("cString"); late final _sel_lossyCString1 = _registerName1("lossyCString"); late final _sel_cStringLength1 = _registerName1("cStringLength"); late final _sel_getCString_1 = _registerName1("getCString:"); late final _sel_getCString_maxLength_1 = _registerName1("getCString:maxLength:"); - void _objc_msgSend_345( + void _objc_msgSend_391( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, ) { - return __objc_msgSend_345( + return __objc_msgSend_391( obj, sel, bytes, @@ -9309,25 +10669,25 @@ class AVFAudio { ); } - late final __objc_msgSend_345Ptr = _lookup< + late final __objc_msgSend_391Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getCString_maxLength_range_remainingRange_1 = _registerName1("getCString:maxLength:range:remainingRange:"); - void _objc_msgSend_346( + void _objc_msgSend_392( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, - NSRange aRange, - NSRangePointer leftoverRange, + _NSRange aRange, + ffi.Pointer<_NSRange> leftoverRange, ) { - return __objc_msgSend_346( + return __objc_msgSend_392( obj, sel, bytes, @@ -9337,18 +10697,18 @@ class AVFAudio { ); } - late final __objc_msgSend_346Ptr = _lookup< + late final __objc_msgSend_392Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + ffi.UnsignedLong, + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, NSRangePointer)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); late final _sel_stringWithContentsOfFile_1 = _registerName1("stringWithContentsOfFile:"); @@ -9356,14 +10716,14 @@ class AVFAudio { _registerName1("stringWithContentsOfURL:"); late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_347( + ffi.Pointer _objc_msgSend_393( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool freeBuffer, ) { - return __objc_msgSend_347( + return __objc_msgSend_393( obj, sel, bytes, @@ -9372,15 +10732,15 @@ class AVFAudio { ); } - late final __objc_msgSend_347Ptr = _lookup< + late final __objc_msgSend_393Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); @@ -9391,66 +10751,66 @@ class AVFAudio { _registerName1("stringWithCString:length:"); late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_348( + void _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, + ffi.Pointer buffer, ) { - return __objc_msgSend_348( + return __objc_msgSend_394( obj, sel, buffer, ); } - late final __objc_msgSend_348Ptr = _lookup< + late final __objc_msgSend_394Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_variantFittingPresentationWidth_1 = _registerName1("variantFittingPresentationWidth:"); - ffi.Pointer _objc_msgSend_349( + ffi.Pointer _objc_msgSend_395( ffi.Pointer obj, ffi.Pointer sel, int width, ) { - return __objc_msgSend_349( + return __objc_msgSend_395( obj, sel, width, ); } - late final __objc_msgSend_349Ptr = _lookup< + late final __objc_msgSend_395Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pathWithComponents_1 = _registerName1("pathWithComponents:"); - ffi.Pointer _objc_msgSend_350( + ffi.Pointer _objc_msgSend_396( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer components, ) { - return __objc_msgSend_350( + return __objc_msgSend_396( obj, sel, components, ); } - late final __objc_msgSend_350Ptr = _lookup< + late final __objc_msgSend_396Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9476,7 +10836,7 @@ class AVFAudio { late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1 = _registerName1( "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"); - int _objc_msgSend_351( + int _objc_msgSend_397( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> outputName, @@ -9484,7 +10844,7 @@ class AVFAudio { ffi.Pointer> outputArray, ffi.Pointer filterTypes, ) { - return __objc_msgSend_351( + return __objc_msgSend_397( obj, sel, outputName, @@ -9494,16 +10854,16 @@ class AVFAudio { ); } - late final __objc_msgSend_351Ptr = _lookup< + late final __objc_msgSend_397Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Bool, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -9514,10 +10874,50 @@ class AVFAudio { late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); + ffi.Pointer _objc_msgSend_398( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer allowedCharacters, + ) { + return __objc_msgSend_398( + obj, + sel, + allowedCharacters, + ); + } + + late final __objc_msgSend_398Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_stringByRemovingPercentEncoding1 = _registerName1("stringByRemovingPercentEncoding"); late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = _registerName1("stringByAddingPercentEscapesUsingEncoding:"); + ffi.Pointer _objc_msgSend_399( + ffi.Pointer obj, + ffi.Pointer sel, + int enc, + ) { + return __objc_msgSend_399( + obj, + sel, + enc, + ); + } + + late final __objc_msgSend_399Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); late final _class_NSOrthography1 = _getClass1("NSOrthography"); @@ -9525,13 +10925,13 @@ class AVFAudio { late final _sel_languageMap1 = _registerName1("languageMap"); late final _sel_initWithDominantScript_languageMap_1 = _registerName1("initWithDominantScript:languageMap:"); - instancetype _objc_msgSend_352( + instancetype _objc_msgSend_400( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer script, ffi.Pointer map, ) { - return __objc_msgSend_352( + return __objc_msgSend_400( obj, sel, script, @@ -9539,14 +10939,14 @@ class AVFAudio { ); } - late final __objc_msgSend_352Ptr = _lookup< + late final __objc_msgSend_400Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9563,16 +10963,16 @@ class AVFAudio { late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1 = _registerName1( "linguisticTagsInRange:scheme:options:orthography:tokenRanges:"); - ffi.Pointer _objc_msgSend_353( + ffi.Pointer _objc_msgSend_401( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + ffi.Pointer scheme, int options, ffi.Pointer orthography, ffi.Pointer> tokenRanges, ) { - return __objc_msgSend_353( + return __objc_msgSend_401( obj, sel, range, @@ -9583,22 +10983,22 @@ class AVFAudio { ); } - late final __objc_msgSend_353Ptr = _lookup< + late final __objc_msgSend_401Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, int, ffi.Pointer, ffi.Pointer>)>(); @@ -9606,16 +11006,16 @@ class AVFAudio { late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1 = _registerName1( "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:"); - void _objc_msgSend_354( + void _objc_msgSend_402( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + ffi.Pointer scheme, int options, ffi.Pointer orthography, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_354( + return __objc_msgSend_402( obj, sel, range, @@ -9626,143 +11026,142 @@ class AVFAudio { ); } - late final __objc_msgSend_354Ptr = _lookup< + late final __objc_msgSend_402Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, int, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_allObjects1 = _registerName1("allObjects"); late final _sel_anyObject1 = _registerName1("anyObject"); late final _sel_intersectsSet_1 = _registerName1("intersectsSet:"); - bool _objc_msgSend_355( + bool _objc_msgSend_403( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_355( + return __objc_msgSend_403( obj, sel, otherSet, ); } - late final __objc_msgSend_355Ptr = _lookup< + late final __objc_msgSend_403Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToSet_1 = _registerName1("isEqualToSet:"); late final _sel_isSubsetOfSet_1 = _registerName1("isSubsetOfSet:"); late final _sel_setByAddingObject_1 = _registerName1("setByAddingObject:"); - ffi.Pointer _objc_msgSend_356( + ffi.Pointer _objc_msgSend_404( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_356( + return __objc_msgSend_404( obj, sel, anObject, ); } - late final __objc_msgSend_356Ptr = _lookup< + late final __objc_msgSend_404Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromSet_1 = _registerName1("setByAddingObjectsFromSet:"); - ffi.Pointer _objc_msgSend_357( + ffi.Pointer _objc_msgSend_405( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_357( + return __objc_msgSend_405( obj, sel, other, ); } - late final __objc_msgSend_357Ptr = _lookup< + late final __objc_msgSend_405Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromArray_1 = _registerName1("setByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_358( + ffi.Pointer _objc_msgSend_406( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_358( + return __objc_msgSend_406( obj, sel, other, ); } - late final __objc_msgSend_358Ptr = _lookup< + late final __objc_msgSend_406Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_359( + void _objc_msgSend_407( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_359( + return __objc_msgSend_407( obj, sel, block, ); } - late final __objc_msgSend_359Ptr = _lookup< + late final __objc_msgSend_407Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - void _objc_msgSend_360( + void _objc_msgSend_408( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_360( + return __objc_msgSend_408( obj, sel, opts, @@ -9770,44 +11169,44 @@ class AVFAudio { ); } - late final __objc_msgSend_360Ptr = _lookup< + late final __objc_msgSend_408Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< + late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); - ffi.Pointer _objc_msgSend_361( + ffi.Pointer _objc_msgSend_409( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_361( + return __objc_msgSend_409( obj, sel, predicate, ); } - late final __objc_msgSend_361Ptr = _lookup< + late final __objc_msgSend_409Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsWithOptions_passingTest_1 = _registerName1("objectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_362( + ffi.Pointer _objc_msgSend_410( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_362( + return __objc_msgSend_410( obj, sel, opts, @@ -9815,14 +11214,14 @@ class AVFAudio { ); } - late final __objc_msgSend_362Ptr = _lookup< + late final __objc_msgSend_410Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9832,23 +11231,23 @@ class AVFAudio { _registerName1("setWithObjects:count:"); late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); late final _sel_setWithSet_1 = _registerName1("setWithSet:"); - instancetype _objc_msgSend_363( + instancetype _objc_msgSend_411( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_363( + return __objc_msgSend_411( obj, sel, set1, ); } - late final __objc_msgSend_363Ptr = _lookup< + late final __objc_msgSend_411Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9856,13 +11255,13 @@ class AVFAudio { late final _sel_initWithSet_1 = _registerName1("initWithSet:"); late final _sel_initWithSet_copyItems_1 = _registerName1("initWithSet:copyItems:"); - instancetype _objc_msgSend_364( + instancetype _objc_msgSend_412( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_364( + return __objc_msgSend_412( obj, sel, set1, @@ -9870,74 +11269,74 @@ class AVFAudio { ); } - late final __objc_msgSend_364Ptr = _lookup< + late final __objc_msgSend_412Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_filteredSetUsingPredicate_1 = _registerName1("filteredSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_365( + ffi.Pointer _objc_msgSend_413( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_365( + return __objc_msgSend_413( obj, sel, predicate, ); } - late final __objc_msgSend_365Ptr = _lookup< + late final __objc_msgSend_413Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_invocationWithMethodSignature_1 = _registerName1("invocationWithMethodSignature:"); - ffi.Pointer _objc_msgSend_366( + ffi.Pointer _objc_msgSend_414( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sig, ) { - return __objc_msgSend_366( + return __objc_msgSend_414( obj, sel, sig, ); } - late final __objc_msgSend_366Ptr = _lookup< + late final __objc_msgSend_414Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignature1 = _registerName1("methodSignature"); - ffi.Pointer _objc_msgSend_367( + ffi.Pointer _objc_msgSend_415( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_367( + return __objc_msgSend_415( obj, sel, ); } - late final __objc_msgSend_367Ptr = _lookup< + late final __objc_msgSend_415Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -9945,63 +11344,63 @@ class AVFAudio { late final _sel_argumentsRetained1 = _registerName1("argumentsRetained"); late final _sel_target1 = _registerName1("target"); late final _sel_setTarget_1 = _registerName1("setTarget:"); - void _objc_msgSend_368( + void _objc_msgSend_416( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_368( + return __objc_msgSend_416( obj, sel, value, ); } - late final __objc_msgSend_368Ptr = _lookup< + late final __objc_msgSend_416Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selector1 = _registerName1("selector"); - ffi.Pointer _objc_msgSend_369( + ffi.Pointer _objc_msgSend_417( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_369( + return __objc_msgSend_417( obj, sel, ); } - late final __objc_msgSend_369Ptr = _lookup< + late final __objc_msgSend_417Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSelector_1 = _registerName1("setSelector:"); - void _objc_msgSend_370( + void _objc_msgSend_418( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_370( + return __objc_msgSend_418( obj, sel, value, ); } - late final __objc_msgSend_370Ptr = _lookup< + late final __objc_msgSend_418Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10009,13 +11408,13 @@ class AVFAudio { late final _sel_setReturnValue_1 = _registerName1("setReturnValue:"); late final _sel_getArgument_atIndex_1 = _registerName1("getArgument:atIndex:"); - void _objc_msgSend_371( + void _objc_msgSend_419( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentLocation, int idx, ) { - return __objc_msgSend_371( + return __objc_msgSend_419( obj, sel, argumentLocation, @@ -10023,11 +11422,11 @@ class AVFAudio { ); } - late final __objc_msgSend_371Ptr = _lookup< + late final __objc_msgSend_419Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -10035,46 +11434,68 @@ class AVFAudio { _registerName1("setArgument:atIndex:"); late final _sel_invoke1 = _registerName1("invoke"); late final _sel_invokeWithTarget_1 = _registerName1("invokeWithTarget:"); + late final _sel_invokeUsingIMP_1 = _registerName1("invokeUsingIMP:"); + void _objc_msgSend_420( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> imp, + ) { + return __objc_msgSend_420( + obj, + sel, + imp, + ); + } + + late final __objc_msgSend_420Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>( + 'objc_msgSend'); + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); - void _objc_msgSend_372( + void _objc_msgSend_421( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anInvocation, ) { - return __objc_msgSend_372( + return __objc_msgSend_421( obj, sel, anInvocation, ); } - late final __objc_msgSend_372Ptr = _lookup< + late final __objc_msgSend_421Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignatureForSelector_1 = _registerName1("methodSignatureForSelector:"); - ffi.Pointer _objc_msgSend_373( + ffi.Pointer _objc_msgSend_422( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_373( + return __objc_msgSend_422( obj, sel, aSelector, ); } - late final __objc_msgSend_373Ptr = _lookup< + late final __objc_msgSend_422Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10091,23 +11512,23 @@ class AVFAudio { late final _sel_debugDescription1 = _registerName1("debugDescription"); late final _sel_version1 = _registerName1("version"); late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_374( + void _objc_msgSend_423( ffi.Pointer obj, ffi.Pointer sel, int aVersion, ) { - return __objc_msgSend_374( + return __objc_msgSend_423( obj, sel, aVersion, ); } - late final __objc_msgSend_374Ptr = _lookup< + late final __objc_msgSend_423Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_classForCoder1 = _registerName1("classForCoder"); @@ -10121,7 +11542,7 @@ class AVFAudio { late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = _registerName1( "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_375( + void _objc_msgSend_424( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, @@ -10130,7 +11551,7 @@ class AVFAudio { ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo, ) { - return __objc_msgSend_375( + return __objc_msgSend_424( obj, sel, error, @@ -10141,17 +11562,17 @@ class AVFAudio { ); } - late final __objc_msgSend_375Ptr = _lookup< + late final __objc_msgSend_424Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10163,13 +11584,13 @@ class AVFAudio { late final _sel_attemptRecoveryFromError_optionIndex_1 = _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_376( + bool _objc_msgSend_425( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, int recoveryOptionIndex, ) { - return __objc_msgSend_376( + return __objc_msgSend_425( obj, sel, error, @@ -10177,17 +11598,17 @@ class AVFAudio { ); } - late final __objc_msgSend_376Ptr = _lookup< + late final __objc_msgSend_425Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performSelector_withObject_afterDelay_inModes_1 = _registerName1("performSelector:withObject:afterDelay:inModes:"); - void _objc_msgSend_377( + void _objc_msgSend_426( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -10195,7 +11616,7 @@ class AVFAudio { double delay, ffi.Pointer modes, ) { - return __objc_msgSend_377( + return __objc_msgSend_426( obj, sel, aSelector, @@ -10205,16 +11626,16 @@ class AVFAudio { ); } - late final __objc_msgSend_377Ptr = _lookup< + late final __objc_msgSend_426Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10225,14 +11646,14 @@ class AVFAudio { late final _sel_performSelector_withObject_afterDelay_1 = _registerName1("performSelector:withObject:afterDelay:"); - void _objc_msgSend_378( + void _objc_msgSend_427( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer anArgument, double delay, ) { - return __objc_msgSend_378( + return __objc_msgSend_427( obj, sel, aSelector, @@ -10241,27 +11662,27 @@ class AVFAudio { ); } - late final __objc_msgSend_378Ptr = _lookup< + late final __objc_msgSend_427Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, double)>(); late final _sel_URL_resourceDataDidBecomeAvailable_1 = _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_379( + void _objc_msgSend_428( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer newBytes, ) { - return __objc_msgSend_379( + return __objc_msgSend_428( obj, sel, sender, @@ -10269,36 +11690,36 @@ class AVFAudio { ); } - late final __objc_msgSend_379Ptr = _lookup< + late final __objc_msgSend_428Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLResourceDidFinishLoading_1 = _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_380( + void _objc_msgSend_429( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ) { - return __objc_msgSend_380( + return __objc_msgSend_429( obj, sel, sender, ); } - late final __objc_msgSend_380Ptr = _lookup< + late final __objc_msgSend_429Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10306,13 +11727,13 @@ class AVFAudio { _registerName1("URLResourceDidCancelLoading:"); late final _sel_URL_resourceDidFailLoadingWithReason_1 = _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_381( + void _objc_msgSend_430( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer reason, ) { - return __objc_msgSend_381( + return __objc_msgSend_430( obj, sel, sender, @@ -10320,47 +11741,47 @@ class AVFAudio { ); } - late final __objc_msgSend_381Ptr = _lookup< + late final __objc_msgSend_430Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< + late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSFileManager1 = _getClass1("NSFileManager"); late final _sel_defaultManager1 = _registerName1("defaultManager"); - ffi.Pointer _objc_msgSend_382( + ffi.Pointer _objc_msgSend_431( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_382( + return __objc_msgSend_431( obj, sel, ); } - late final __objc_msgSend_382Ptr = _lookup< + late final __objc_msgSend_431Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1 = _registerName1( "mountedVolumeURLsIncludingResourceValuesForKeys:options:"); - ffi.Pointer _objc_msgSend_383( + ffi.Pointer _objc_msgSend_432( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer propertyKeys, int options, ) { - return __objc_msgSend_383( + return __objc_msgSend_432( obj, sel, propertyKeys, @@ -10368,27 +11789,27 @@ class AVFAudio { ); } - late final __objc_msgSend_383Ptr = _lookup< + late final __objc_msgSend_432Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_unmountVolumeAtURL_options_completionHandler_1 = _registerName1("unmountVolumeAtURL:options:completionHandler:"); - void _objc_msgSend_384( + void _objc_msgSend_433( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_384( + return __objc_msgSend_433( obj, sel, url, @@ -10397,7 +11818,7 @@ class AVFAudio { ); } - late final __objc_msgSend_384Ptr = _lookup< + late final __objc_msgSend_433Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10405,14 +11826,14 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1 = _registerName1( "contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"); - ffi.Pointer _objc_msgSend_385( + ffi.Pointer _objc_msgSend_434( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10420,7 +11841,7 @@ class AVFAudio { int mask, ffi.Pointer> error, ) { - return __objc_msgSend_385( + return __objc_msgSend_434( obj, sel, url, @@ -10430,7 +11851,7 @@ class AVFAudio { ); } - late final __objc_msgSend_385Ptr = _lookup< + late final __objc_msgSend_434Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10439,7 +11860,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10450,13 +11871,13 @@ class AVFAudio { late final _sel_URLsForDirectory_inDomains_1 = _registerName1("URLsForDirectory:inDomains:"); - ffi.Pointer _objc_msgSend_386( + ffi.Pointer _objc_msgSend_435( ffi.Pointer obj, ffi.Pointer sel, int directory, int domainMask, ) { - return __objc_msgSend_386( + return __objc_msgSend_435( obj, sel, directory, @@ -10464,18 +11885,18 @@ class AVFAudio { ); } - late final __objc_msgSend_386Ptr = _lookup< + late final __objc_msgSend_435Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_URLForDirectory_inDomain_appropriateForURL_create_error_1 = _registerName1( "URLForDirectory:inDomain:appropriateForURL:create:error:"); - ffi.Pointer _objc_msgSend_387( + ffi.Pointer _objc_msgSend_436( ffi.Pointer obj, ffi.Pointer sel, int directory, @@ -10484,7 +11905,7 @@ class AVFAudio { bool shouldCreate, ffi.Pointer> error, ) { - return __objc_msgSend_387( + return __objc_msgSend_436( obj, sel, directory, @@ -10495,7 +11916,7 @@ class AVFAudio { ); } - late final __objc_msgSend_387Ptr = _lookup< + late final __objc_msgSend_436Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10505,7 +11926,7 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10517,7 +11938,7 @@ class AVFAudio { late final _sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"); - bool _objc_msgSend_388( + bool _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -10525,7 +11946,7 @@ class AVFAudio { ffi.Pointer otherURL, ffi.Pointer> error, ) { - return __objc_msgSend_388( + return __objc_msgSend_437( obj, sel, outRelationship, @@ -10535,7 +11956,7 @@ class AVFAudio { ); } - late final __objc_msgSend_388Ptr = _lookup< + late final __objc_msgSend_437Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10544,7 +11965,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10555,7 +11976,7 @@ class AVFAudio { late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); - bool _objc_msgSend_389( + bool _objc_msgSend_438( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -10564,7 +11985,7 @@ class AVFAudio { ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_389( + return __objc_msgSend_438( obj, sel, outRelationship, @@ -10575,7 +11996,7 @@ class AVFAudio { ); } - late final __objc_msgSend_389Ptr = _lookup< + late final __objc_msgSend_438Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10585,7 +12006,7 @@ class AVFAudio { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10598,7 +12019,7 @@ class AVFAudio { late final _sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_390( + bool _objc_msgSend_439( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10606,7 +12027,7 @@ class AVFAudio { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_390( + return __objc_msgSend_439( obj, sel, url, @@ -10616,7 +12037,7 @@ class AVFAudio { ); } - late final __objc_msgSend_390Ptr = _lookup< + late final __objc_msgSend_439Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10625,7 +12046,7 @@ class AVFAudio { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10636,14 +12057,14 @@ class AVFAudio { late final _sel_createSymbolicLinkAtURL_withDestinationURL_error_1 = _registerName1("createSymbolicLinkAtURL:withDestinationURL:error:"); - bool _objc_msgSend_391( + bool _objc_msgSend_440( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer destURL, ffi.Pointer> error, ) { - return __objc_msgSend_391( + return __objc_msgSend_440( obj, sel, url, @@ -10652,7 +12073,7 @@ class AVFAudio { ); } - late final __objc_msgSend_391Ptr = _lookup< + late final __objc_msgSend_440Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10660,7 +12081,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10672,14 +12093,14 @@ class AVFAudio { late final _sel_setDelegate_1 = _registerName1("setDelegate:"); late final _sel_setAttributes_ofItemAtPath_error_1 = _registerName1("setAttributes:ofItemAtPath:error:"); - bool _objc_msgSend_392( + bool _objc_msgSend_441( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_392( + return __objc_msgSend_441( obj, sel, attributes, @@ -10688,7 +12109,7 @@ class AVFAudio { ); } - late final __objc_msgSend_392Ptr = _lookup< + late final __objc_msgSend_441Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10696,7 +12117,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10707,7 +12128,7 @@ class AVFAudio { late final _sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_393( + bool _objc_msgSend_442( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -10715,7 +12136,7 @@ class AVFAudio { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_393( + return __objc_msgSend_442( obj, sel, path, @@ -10725,7 +12146,7 @@ class AVFAudio { ); } - late final __objc_msgSend_393Ptr = _lookup< + late final __objc_msgSend_442Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10734,7 +12155,7 @@ class AVFAudio { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10745,13 +12166,13 @@ class AVFAudio { late final _sel_contentsOfDirectoryAtPath_error_1 = _registerName1("contentsOfDirectoryAtPath:error:"); - ffi.Pointer _objc_msgSend_394( + ffi.Pointer _objc_msgSend_443( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_394( + return __objc_msgSend_443( obj, sel, path, @@ -10759,14 +12180,14 @@ class AVFAudio { ); } - late final __objc_msgSend_394Ptr = _lookup< + late final __objc_msgSend_443Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10777,13 +12198,13 @@ class AVFAudio { _registerName1("subpathsOfDirectoryAtPath:error:"); late final _sel_attributesOfItemAtPath_error_1 = _registerName1("attributesOfItemAtPath:error:"); - ffi.Pointer _objc_msgSend_395( + ffi.Pointer _objc_msgSend_444( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_395( + return __objc_msgSend_444( obj, sel, path, @@ -10791,14 +12212,14 @@ class AVFAudio { ); } - late final __objc_msgSend_395Ptr = _lookup< + late final __objc_msgSend_444Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10809,14 +12230,14 @@ class AVFAudio { _registerName1("attributesOfFileSystemForPath:error:"); late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); - bool _objc_msgSend_396( + bool _objc_msgSend_445( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer destPath, ffi.Pointer> error, ) { - return __objc_msgSend_396( + return __objc_msgSend_445( obj, sel, path, @@ -10825,7 +12246,7 @@ class AVFAudio { ); } - late final __objc_msgSend_396Ptr = _lookup< + late final __objc_msgSend_445Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10833,7 +12254,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10843,13 +12264,13 @@ class AVFAudio { late final _sel_destinationOfSymbolicLinkAtPath_error_1 = _registerName1("destinationOfSymbolicLinkAtPath:error:"); - ffi.Pointer _objc_msgSend_397( + ffi.Pointer _objc_msgSend_446( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_397( + return __objc_msgSend_446( obj, sel, path, @@ -10857,14 +12278,14 @@ class AVFAudio { ); } - late final __objc_msgSend_397Ptr = _lookup< + late final __objc_msgSend_446Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10879,13 +12300,13 @@ class AVFAudio { _registerName1("linkItemAtPath:toPath:error:"); late final _sel_removeItemAtPath_error_1 = _registerName1("removeItemAtPath:error:"); - bool _objc_msgSend_398( + bool _objc_msgSend_447( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_398( + return __objc_msgSend_447( obj, sel, path, @@ -10893,14 +12314,14 @@ class AVFAudio { ); } - late final __objc_msgSend_398Ptr = _lookup< + late final __objc_msgSend_447Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -10914,14 +12335,14 @@ class AVFAudio { _registerName1("removeItemAtURL:error:"); late final _sel_trashItemAtURL_resultingItemURL_error_1 = _registerName1("trashItemAtURL:resultingItemURL:error:"); - bool _objc_msgSend_399( + bool _objc_msgSend_448( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> outResultingURL, ffi.Pointer> error, ) { - return __objc_msgSend_399( + return __objc_msgSend_448( obj, sel, url, @@ -10930,7 +12351,7 @@ class AVFAudio { ); } - late final __objc_msgSend_399Ptr = _lookup< + late final __objc_msgSend_448Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10938,7 +12359,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10948,13 +12369,13 @@ class AVFAudio { late final _sel_fileAttributesAtPath_traverseLink_1 = _registerName1("fileAttributesAtPath:traverseLink:"); - ffi.Pointer _objc_msgSend_400( + ffi.Pointer _objc_msgSend_449( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool yorn, ) { - return __objc_msgSend_400( + return __objc_msgSend_449( obj, sel, path, @@ -10962,26 +12383,26 @@ class AVFAudio { ); } - late final __objc_msgSend_400Ptr = _lookup< + late final __objc_msgSend_449Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_changeFileAttributes_atPath_1 = _registerName1("changeFileAttributes:atPath:"); - bool _objc_msgSend_401( + bool _objc_msgSend_450( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ) { - return __objc_msgSend_401( + return __objc_msgSend_450( obj, sel, attributes, @@ -10989,14 +12410,14 @@ class AVFAudio { ); } - late final __objc_msgSend_401Ptr = _lookup< + late final __objc_msgSend_450Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11008,13 +12429,13 @@ class AVFAudio { _registerName1("pathContentOfSymbolicLinkAtPath:"); late final _sel_createSymbolicLinkAtPath_pathContent_1 = _registerName1("createSymbolicLinkAtPath:pathContent:"); - bool _objc_msgSend_402( + bool _objc_msgSend_451( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer otherpath, ) { - return __objc_msgSend_402( + return __objc_msgSend_451( obj, sel, path, @@ -11022,26 +12443,26 @@ class AVFAudio { ); } - late final __objc_msgSend_402Ptr = _lookup< + late final __objc_msgSend_451Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_createDirectoryAtPath_attributes_1 = _registerName1("createDirectoryAtPath:attributes:"); - bool _objc_msgSend_403( + bool _objc_msgSend_452( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer attributes, ) { - return __objc_msgSend_403( + return __objc_msgSend_452( obj, sel, path, @@ -11049,27 +12470,27 @@ class AVFAudio { ); } - late final __objc_msgSend_403Ptr = _lookup< + late final __objc_msgSend_452Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_linkPath_toPath_handler_1 = _registerName1("linkPath:toPath:handler:"); - bool _objc_msgSend_404( + bool _objc_msgSend_453( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer src, ffi.Pointer dest, ffi.Pointer handler, ) { - return __objc_msgSend_404( + return __objc_msgSend_453( obj, sel, src, @@ -11078,7 +12499,7 @@ class AVFAudio { ); } - late final __objc_msgSend_404Ptr = _lookup< + late final __objc_msgSend_453Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -11086,7 +12507,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -11100,13 +12521,13 @@ class AVFAudio { _registerName1("movePath:toPath:handler:"); late final _sel_removeFileAtPath_handler_1 = _registerName1("removeFileAtPath:handler:"); - bool _objc_msgSend_405( + bool _objc_msgSend_454( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer handler, ) { - return __objc_msgSend_405( + return __objc_msgSend_454( obj, sel, path, @@ -11114,14 +12535,14 @@ class AVFAudio { ); } - late final __objc_msgSend_405Ptr = _lookup< + late final __objc_msgSend_454Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11132,13 +12553,13 @@ class AVFAudio { late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); late final _sel_fileExistsAtPath_isDirectory_1 = _registerName1("fileExistsAtPath:isDirectory:"); - bool _objc_msgSend_406( + bool _objc_msgSend_455( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer isDirectory, ) { - return __objc_msgSend_406( + return __objc_msgSend_455( obj, sel, path, @@ -11146,11 +12567,11 @@ class AVFAudio { ); } - late final __objc_msgSend_406Ptr = _lookup< + late final __objc_msgSend_455Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11167,124 +12588,466 @@ class AVFAudio { late final _sel_displayNameAtPath_1 = _registerName1("displayNameAtPath:"); late final _sel_componentsToDisplayForPath_1 = _registerName1("componentsToDisplayForPath:"); - late final _sel_homeDirectoryForCurrentUser1 = - _registerName1("homeDirectoryForCurrentUser"); - late final _sel_temporaryDirectory1 = _registerName1("temporaryDirectory"); - late final _sel_homeDirectoryForUser_1 = - _registerName1("homeDirectoryForUser:"); - late final _sel_fileManager_shouldProceedAfterError_1 = - _registerName1("fileManager:shouldProceedAfterError:"); - bool _objc_msgSend_407( + late final _sel_enumeratorAtPath_1 = _registerName1("enumeratorAtPath:"); + late final _sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1 = + _registerName1( + "enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); + ffi.Pointer _objc_msgSend_456( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer fm, - ffi.Pointer errorInfo, + ffi.Pointer url, + ffi.Pointer keys, + int mask, + ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_407( + return __objc_msgSend_456( obj, sel, - fm, - errorInfo, + url, + keys, + mask, + handler, ); } - late final __objc_msgSend_407Ptr = _lookup< + late final __objc_msgSend_456Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_fileManager_willProcessPath_1 = - _registerName1("fileManager:willProcessPath:"); - void _objc_msgSend_408( + late final _sel_subpathsAtPath_1 = _registerName1("subpathsAtPath:"); + late final _sel_contentsAtPath_1 = _registerName1("contentsAtPath:"); + ffi.Pointer _objc_msgSend_457( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer fm, ffi.Pointer path, ) { - return __objc_msgSend_408( + return __objc_msgSend_457( obj, sel, - fm, path, ); } - late final __objc_msgSend_408Ptr = _lookup< + late final __objc_msgSend_457Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_validateValue_forKey_error_1 = - _registerName1("validateValue:forKey:error:"); - late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); - late final _sel_addObject_1 = _registerName1("addObject:"); - late final _sel_insertObject_atIndex_1 = - _registerName1("insertObject:atIndex:"); - void _objc_msgSend_409( + late final _sel_createFileAtPath_contents_attributes_1 = + _registerName1("createFileAtPath:contents:attributes:"); + bool _objc_msgSend_458( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, - int index, + ffi.Pointer path, + ffi.Pointer data, + ffi.Pointer attr, ) { - return __objc_msgSend_409( + return __objc_msgSend_458( obj, sel, - anObject, - index, + path, + data, + attr, ); } - late final __objc_msgSend_409Ptr = _lookup< + late final __objc_msgSend_458Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_removeLastObject1 = _registerName1("removeLastObject"); - late final _sel_removeObjectAtIndex_1 = - _registerName1("removeObjectAtIndex:"); - void _objc_msgSend_410( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_410( + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileSystemRepresentationWithPath_1 = + _registerName1("fileSystemRepresentationWithPath:"); + ffi.Pointer _objc_msgSend_459( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_459( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_459Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_stringWithFileSystemRepresentation_length_1 = + _registerName1("stringWithFileSystemRepresentation:length:"); + ffi.Pointer _objc_msgSend_460( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + int len, + ) { + return __objc_msgSend_460( + obj, + sel, + str, + len, + ); + } + + late final __objc_msgSend_460Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1 = + _registerName1( + "replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"); + bool _objc_msgSend_461( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer originalItemURL, + ffi.Pointer newItemURL, + ffi.Pointer backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_461( + obj, + sel, + originalItemURL, + newItemURL, + backupItemName, + options, + resultingURL, + error, + ); + } + + late final __objc_msgSend_461Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_setUbiquitous_itemAtURL_destinationURL_error_1 = + _registerName1("setUbiquitous:itemAtURL:destinationURL:error:"); + bool _objc_msgSend_462( + ffi.Pointer obj, + ffi.Pointer sel, + bool flag, + ffi.Pointer url, + ffi.Pointer destinationURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_462( + obj, + sel, + flag, + url, + destinationURL, + error, + ); + } + + late final __objc_msgSend_462Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_isUbiquitousItemAtURL_1 = + _registerName1("isUbiquitousItemAtURL:"); + late final _sel_startDownloadingUbiquitousItemAtURL_error_1 = + _registerName1("startDownloadingUbiquitousItemAtURL:error:"); + late final _sel_evictUbiquitousItemAtURL_error_1 = + _registerName1("evictUbiquitousItemAtURL:error:"); + late final _sel_URLForUbiquityContainerIdentifier_1 = + _registerName1("URLForUbiquityContainerIdentifier:"); + ffi.Pointer _objc_msgSend_463( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer containerIdentifier, + ) { + return __objc_msgSend_463( + obj, + sel, + containerIdentifier, + ); + } + + late final __objc_msgSend_463Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1 = + _registerName1( + "URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); + ffi.Pointer _objc_msgSend_464( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> outDate, + ffi.Pointer> error, + ) { + return __objc_msgSend_464( + obj, + sel, + url, + outDate, + error, + ); + } + + late final __objc_msgSend_464Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_ubiquityIdentityToken1 = + _registerName1("ubiquityIdentityToken"); + late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = + _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); + void _objc_msgSend_465( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_465( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_465Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_containerURLForSecurityApplicationGroupIdentifier_1 = + _registerName1("containerURLForSecurityApplicationGroupIdentifier:"); + late final _sel_homeDirectoryForCurrentUser1 = + _registerName1("homeDirectoryForCurrentUser"); + ffi.Pointer _objc_msgSend_466( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_466( + obj, + sel, + ); + } + + late final __objc_msgSend_466Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_temporaryDirectory1 = _registerName1("temporaryDirectory"); + late final _sel_homeDirectoryForUser_1 = + _registerName1("homeDirectoryForUser:"); + late final _sel_fileManager_shouldProceedAfterError_1 = + _registerName1("fileManager:shouldProceedAfterError:"); + bool _objc_msgSend_467( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fm, + ffi.Pointer errorInfo, + ) { + return __objc_msgSend_467( + obj, + sel, + fm, + errorInfo, + ); + } + + late final __objc_msgSend_467Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_fileManager_willProcessPath_1 = + _registerName1("fileManager:willProcessPath:"); + void _objc_msgSend_468( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fm, + ffi.Pointer path, + ) { + return __objc_msgSend_468( + obj, + sel, + fm, + path, + ); + } + + late final __objc_msgSend_468Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_validateValue_forKey_error_1 = + _registerName1("validateValue:forKey:error:"); + late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); + late final _sel_addObject_1 = _registerName1("addObject:"); + late final _sel_insertObject_atIndex_1 = + _registerName1("insertObject:atIndex:"); + void _objc_msgSend_469( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + int index, + ) { + return __objc_msgSend_469( obj, sel, + anObject, index, ); } - late final __objc_msgSend_410Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_removeLastObject1 = _registerName1("removeLastObject"); + late final _sel_removeObjectAtIndex_1 = + _registerName1("removeObjectAtIndex:"); + void _objc_msgSend_470( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_470( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_470Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_411( + void _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_411( + return __objc_msgSend_471( obj, sel, index, @@ -11292,46 +13055,46 @@ class AVFAudio { ); } - late final __objc_msgSend_411Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); late final _sel_addObjectsFromArray_1 = _registerName1("addObjectsFromArray:"); - void _objc_msgSend_412( + void _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_412( + return __objc_msgSend_472( obj, sel, otherArray, ); } - late final __objc_msgSend_412Ptr = _lookup< + late final __objc_msgSend_472Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_413( + void _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_413( + return __objc_msgSend_473( obj, sel, idx1, @@ -11339,23 +13102,23 @@ class AVFAudio { ); } - late final __objc_msgSend_413Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); late final _sel_removeObject_inRange_1 = _registerName1("removeObject:inRange:"); - void _objc_msgSend_414( + void _objc_msgSend_474( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_414( + return __objc_msgSend_474( obj, sel, anObject, @@ -11363,13 +13126,13 @@ class AVFAudio { ); } - late final __objc_msgSend_414Ptr = _lookup< + late final __objc_msgSend_474Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_removeObject_1 = _registerName1("removeObject:"); late final _sel_removeObjectIdenticalTo_inRange_1 = @@ -11378,13 +13141,13 @@ class AVFAudio { _registerName1("removeObjectIdenticalTo:"); late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_415( + void _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indices, + ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_415( + return __objc_msgSend_475( obj, sel, indices, @@ -11392,47 +13155,50 @@ class AVFAudio { ); } - late final __objc_msgSend_415Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, int)>(); late final _sel_removeObjectsInArray_1 = _registerName1("removeObjectsInArray:"); late final _sel_removeObjectsInRange_1 = _registerName1("removeObjectsInRange:"); - void _objc_msgSend_416( + void _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_416( + return __objc_msgSend_476( obj, sel, range, ); } - late final __objc_msgSend_416Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_417( + void _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer otherArray, - NSRange otherRange, + _NSRange otherRange, ) { - return __objc_msgSend_417( + return __objc_msgSend_477( obj, sel, range, @@ -11441,23 +13207,23 @@ class AVFAudio { ); } - late final __objc_msgSend_417Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, - ffi.Pointer, NSRange)>(); + _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_418( + void _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_418( + return __objc_msgSend_478( obj, sel, range, @@ -11465,28 +13231,28 @@ class AVFAudio { ); } - late final __objc_msgSend_418Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_setArray_1 = _registerName1("setArray:"); late final _sel_sortUsingFunction_context_1 = _registerName1("sortUsingFunction:context:"); - void _objc_msgSend_419( + void _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> compare, ffi.Pointer context, ) { - return __objc_msgSend_419( + return __objc_msgSend_479( obj, sel, compare, @@ -11494,36 +13260,36 @@ class AVFAudio { ); } - late final __objc_msgSend_419Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>(); late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); late final _sel_insertObjects_atIndexes_1 = _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_420( + void _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_420( + return __objc_msgSend_480( obj, sel, objects, @@ -11531,48 +13297,48 @@ class AVFAudio { ); } - late final __objc_msgSend_420Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeObjectsAtIndexes_1 = _registerName1("removeObjectsAtIndexes:"); - void _objc_msgSend_421( + void _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_421( + return __objc_msgSend_481( obj, sel, indexes, ); } - late final __objc_msgSend_421Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_422( + void _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_422( + return __objc_msgSend_482( obj, sel, indexes, @@ -11580,14 +13346,14 @@ class AVFAudio { ); } - late final __objc_msgSend_422Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11595,35 +13361,35 @@ class AVFAudio { _registerName1("setObject:atIndexedSubscript:"); late final _sel_sortUsingComparator_1 = _registerName1("sortUsingComparator:"); - void _objc_msgSend_423( + void _objc_msgSend_483( ffi.Pointer obj, ffi.Pointer sel, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_423( + return __objc_msgSend_483( obj, sel, cmptr, ); } - late final __objc_msgSend_423Ptr = _lookup< + late final __objc_msgSend_483Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, NSComparator)>(); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortWithOptions_usingComparator_1 = _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_424( + void _objc_msgSend_484( ffi.Pointer obj, ffi.Pointer sel, int opts, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_424( + return __objc_msgSend_484( obj, sel, opts, @@ -11631,52 +13397,52 @@ class AVFAudio { ); } - late final __objc_msgSend_424Ptr = _lookup< + late final __objc_msgSend_484Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, int, NSComparator)>(); + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_425( + ffi.Pointer _objc_msgSend_485( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_425( + return __objc_msgSend_485( obj, sel, path, ); } - late final __objc_msgSend_425Ptr = _lookup< + late final __objc_msgSend_485Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_426( + ffi.Pointer _objc_msgSend_486( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_426( + return __objc_msgSend_486( obj, sel, url, ); } - late final __objc_msgSend_426Ptr = _lookup< + late final __objc_msgSend_486Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11685,49 +13451,69 @@ class AVFAudio { _registerName1("sortUsingDescriptors:"); late final _sel_filterUsingPredicate_1 = _registerName1("filterUsingPredicate:"); - void _objc_msgSend_427( + void _objc_msgSend_487( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_427( + return __objc_msgSend_487( obj, sel, predicate, ); } - late final __objc_msgSend_427Ptr = _lookup< + late final __objc_msgSend_487Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_mutableArrayValueForKey_1 = _registerName1("mutableArrayValueForKey:"); + ffi.Pointer _objc_msgSend_488( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_488( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_488Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSMutableOrderedSet1 = _getClass1("NSMutableOrderedSet"); late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); late final _sel_isEqualToOrderedSet_1 = _registerName1("isEqualToOrderedSet:"); - bool _objc_msgSend_428( + bool _objc_msgSend_489( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_428( + return __objc_msgSend_489( obj, sel, other, ); } - late final __objc_msgSend_428Ptr = _lookup< + late final __objc_msgSend_489Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11736,21 +13522,39 @@ class AVFAudio { late final _sel_isSubsetOfOrderedSet_1 = _registerName1("isSubsetOfOrderedSet:"); late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); - ffi.Pointer _objc_msgSend_429( + ffi.Pointer _objc_msgSend_490( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_429( + return __objc_msgSend_490( obj, sel, ); } - late final __objc_msgSend_429Ptr = _lookup< + late final __objc_msgSend_490Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_491( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_491( + obj, + sel, + ); + } + + late final __objc_msgSend_491Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -11763,36 +13567,36 @@ class AVFAudio { _registerName1("orderedSetWithObjects:"); late final _sel_orderedSetWithOrderedSet_1 = _registerName1("orderedSetWithOrderedSet:"); - instancetype _objc_msgSend_430( + instancetype _objc_msgSend_492( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_430( + return __objc_msgSend_492( obj, sel, set1, ); } - late final __objc_msgSend_430Ptr = _lookup< + late final __objc_msgSend_492Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = _registerName1("orderedSetWithOrderedSet:range:copyItems:"); - instancetype _objc_msgSend_431( + instancetype _objc_msgSend_493( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, - NSRange range, + _NSRange range, bool flag, ) { - return __objc_msgSend_431( + return __objc_msgSend_493( obj, sel, set1, @@ -11801,26 +13605,26 @@ class AVFAudio { ); } - late final __objc_msgSend_431Ptr = _lookup< + late final __objc_msgSend_493Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, bool)>(); + ffi.Pointer, _NSRange, bool)>(); late final _sel_orderedSetWithArray_1 = _registerName1("orderedSetWithArray:"); late final _sel_orderedSetWithArray_range_copyItems_1 = _registerName1("orderedSetWithArray:range:copyItems:"); - instancetype _objc_msgSend_432( + instancetype _objc_msgSend_494( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, - NSRange range, + _NSRange range, bool flag, ) { - return __objc_msgSend_432( + return __objc_msgSend_494( obj, sel, array, @@ -11829,13 +13633,13 @@ class AVFAudio { ); } - late final __objc_msgSend_432Ptr = _lookup< + late final __objc_msgSend_494Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, bool)>(); + ffi.Pointer, _NSRange, bool)>(); late final _sel_orderedSetWithSet_1 = _registerName1("orderedSetWithSet:"); late final _sel_orderedSetWithSet_copyItems_1 = @@ -11844,13 +13648,13 @@ class AVFAudio { late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); late final _sel_initWithOrderedSet_copyItems_1 = _registerName1("initWithOrderedSet:copyItems:"); - instancetype _objc_msgSend_433( + instancetype _objc_msgSend_495( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_433( + return __objc_msgSend_495( obj, sel, set1, @@ -11858,11 +13662,11 @@ class AVFAudio { ); } - late final __objc_msgSend_433Ptr = _lookup< + late final __objc_msgSend_495Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -11870,36 +13674,122 @@ class AVFAudio { _registerName1("initWithOrderedSet:range:copyItems:"); late final _sel_initWithArray_range_copyItems_1 = _registerName1("initWithArray:range:copyItems:"); + late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = + _registerName1( + "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_496( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_496( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_496Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_differenceFromOrderedSet_withOptions_1 = + _registerName1("differenceFromOrderedSet:withOptions:"); + ffi.Pointer _objc_msgSend_497( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ) { + return __objc_msgSend_497( + obj, + sel, + other, + options, + ); + } + + late final __objc_msgSend_497Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_differenceFromOrderedSet_1 = + _registerName1("differenceFromOrderedSet:"); + late final _sel_orderedSetByApplyingDifference_1 = + _registerName1("orderedSetByApplyingDifference:"); + ffi.Pointer _objc_msgSend_498( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer difference, + ) { + return __objc_msgSend_498( + obj, + sel, + difference, + ); + } + + late final __objc_msgSend_498Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_filteredOrderedSetUsingPredicate_1 = _registerName1("filteredOrderedSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_434( + ffi.Pointer _objc_msgSend_499( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer p, ) { - return __objc_msgSend_434( + return __objc_msgSend_499( obj, sel, p, ); } - late final __objc_msgSend_434Ptr = _lookup< + late final __objc_msgSend_499Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); - void _objc_msgSend_435( + void _objc_msgSend_500( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_435( + return __objc_msgSend_500( obj, sel, objects, @@ -11907,26 +13797,26 @@ class AVFAudio { ); } - late final __objc_msgSend_435Ptr = _lookup< + late final __objc_msgSend_500Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_moveObjectsAtIndexes_toIndex_1 = _registerName1("moveObjectsAtIndexes:toIndex:"); - void _objc_msgSend_436( + void _objc_msgSend_501( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int idx, ) { - return __objc_msgSend_436( + return __objc_msgSend_501( obj, sel, indexes, @@ -11934,25 +13824,25 @@ class AVFAudio { ); } - late final __objc_msgSend_436Ptr = _lookup< + late final __objc_msgSend_501Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setObject_atIndex_1 = _registerName1("setObject:atIndex:"); late final _sel_replaceObjectsInRange_withObjects_count_1 = _registerName1("replaceObjectsInRange:withObjects:count:"); - void _objc_msgSend_437( + void _objc_msgSend_502( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_437( + return __objc_msgSend_502( obj, sel, range, @@ -11961,60 +13851,60 @@ class AVFAudio { ); } - late final __objc_msgSend_437Ptr = _lookup< + late final __objc_msgSend_502Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer>, int)>(); late final _sel_intersectOrderedSet_1 = _registerName1("intersectOrderedSet:"); - void _objc_msgSend_438( + void _objc_msgSend_503( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_438( + return __objc_msgSend_503( obj, sel, other, ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_503Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_minusOrderedSet_1 = _registerName1("minusOrderedSet:"); late final _sel_unionOrderedSet_1 = _registerName1("unionOrderedSet:"); late final _sel_intersectSet_1 = _registerName1("intersectSet:"); - void _objc_msgSend_439( + void _objc_msgSend_504( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_439( + return __objc_msgSend_504( obj, sel, other, ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_504Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12022,14 +13912,14 @@ class AVFAudio { late final _sel_unionSet_1 = _registerName1("unionSet:"); late final _sel_sortRange_options_usingComparator_1 = _registerName1("sortRange:options:usingComparator:"); - void _objc_msgSend_440( + void _objc_msgSend_505( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_440( + return __objc_msgSend_505( obj, sel, range, @@ -12038,35 +13928,35 @@ class AVFAudio { ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_505Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - NSComparator)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_orderedSetWithCapacity_1 = _registerName1("orderedSetWithCapacity:"); late final _sel_mutableOrderedSetValueForKey_1 = _registerName1("mutableOrderedSetValueForKey:"); - ffi.Pointer _objc_msgSend_441( + ffi.Pointer _objc_msgSend_506( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_441( + return __objc_msgSend_506( obj, sel, key, ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_506Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12075,23 +13965,23 @@ class AVFAudio { late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); late final _sel_mutableSetValueForKey_1 = _registerName1("mutableSetValueForKey:"); - ffi.Pointer _objc_msgSend_442( + ffi.Pointer _objc_msgSend_507( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_442( + return __objc_msgSend_507( obj, sel, key, ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_507Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12113,45 +14003,45 @@ class AVFAudio { late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); late final _sel_dictionaryWithValuesForKeys_1 = _registerName1("dictionaryWithValuesForKeys:"); - ffi.Pointer _objc_msgSend_443( + ffi.Pointer _objc_msgSend_508( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ) { - return __objc_msgSend_443( + return __objc_msgSend_508( obj, sel, keys, ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_508Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setValuesForKeysWithDictionary_1 = _registerName1("setValuesForKeysWithDictionary:"); - void _objc_msgSend_444( + void _objc_msgSend_509( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ) { - return __objc_msgSend_444( + return __objc_msgSend_509( obj, sel, keyedValues, ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_509Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12172,7 +14062,7 @@ class AVFAudio { _registerName1("takeValuesFromDictionary:"); late final _sel_observeValueForKeyPath_ofObject_change_context_1 = _registerName1("observeValueForKeyPath:ofObject:change:context:"); - void _objc_msgSend_445( + void _objc_msgSend_510( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyPath, @@ -12180,7 +14070,7 @@ class AVFAudio { ffi.Pointer change, ffi.Pointer context, ) { - return __objc_msgSend_445( + return __objc_msgSend_510( obj, sel, keyPath, @@ -12190,7 +14080,7 @@ class AVFAudio { ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_510Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12199,7 +14089,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12214,14 +14104,14 @@ class AVFAudio { _registerName1("didChangeValueForKey:"); late final _sel_willChange_valuesAtIndexes_forKey_1 = _registerName1("willChange:valuesAtIndexes:forKey:"); - void _objc_msgSend_446( + void _objc_msgSend_511( ffi.Pointer obj, ffi.Pointer sel, int changeKind, ffi.Pointer indexes, ffi.Pointer key, ) { - return __objc_msgSend_446( + return __objc_msgSend_511( obj, sel, changeKind, @@ -12230,7 +14120,7 @@ class AVFAudio { ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_511Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12238,7 +14128,7 @@ class AVFAudio { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -12246,14 +14136,14 @@ class AVFAudio { _registerName1("didChange:valuesAtIndexes:forKey:"); late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); - void _objc_msgSend_447( + void _objc_msgSend_512( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, int mutationKind, ffi.Pointer objects, ) { - return __objc_msgSend_447( + return __objc_msgSend_512( obj, sel, key, @@ -12262,7 +14152,7 @@ class AVFAudio { ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_512Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12270,7 +14160,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -12278,23 +14168,23 @@ class AVFAudio { _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); late final _sel_observationInfo1 = _registerName1("observationInfo"); late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); - void _objc_msgSend_448( + void _objc_msgSend_513( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_448( + return __objc_msgSend_513( obj, sel, value, ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_513Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12303,36 +14193,36 @@ class AVFAudio { late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); late final _sel_initRequiringSecureCoding_1 = _registerName1("initRequiringSecureCoding:"); - instancetype _objc_msgSend_449( + instancetype _objc_msgSend_514( ffi.Pointer obj, ffi.Pointer sel, bool requiresSecureCoding, ) { - return __objc_msgSend_449( + return __objc_msgSend_514( obj, sel, requiresSecureCoding, ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_514Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); - ffi.Pointer _objc_msgSend_450( + ffi.Pointer _objc_msgSend_515( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, bool requiresSecureCoding, ffi.Pointer> error, ) { - return __objc_msgSend_450( + return __objc_msgSend_515( obj, sel, object, @@ -12341,7 +14231,7 @@ class AVFAudio { ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_515Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -12349,7 +14239,7 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -12360,23 +14250,23 @@ class AVFAudio { late final _class_NSMutableData1 = _getClass1("NSMutableData"); late final _sel_mutableBytes1 = _registerName1("mutableBytes"); late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_451( + void _objc_msgSend_516( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_451( + return __objc_msgSend_516( obj, sel, value, ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_516Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); @@ -12384,13 +14274,13 @@ class AVFAudio { late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); late final _sel_replaceBytesInRange_withBytes_1 = _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_452( + void _objc_msgSend_517( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer bytes, ) { - return __objc_msgSend_452( + return __objc_msgSend_517( obj, sel, range, @@ -12398,26 +14288,26 @@ class AVFAudio { ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_517Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_resetBytesInRange_1 = _registerName1("resetBytesInRange:"); late final _sel_setData_1 = _registerName1("setData:"); late final _sel_replaceBytesInRange_withBytes_length_1 = _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_453( + void _objc_msgSend_518( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacementBytes, int replacementLength, ) { - return __objc_msgSend_453( + return __objc_msgSend_518( obj, sel, range, @@ -12426,26 +14316,50 @@ class AVFAudio { ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_518Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, int)>(); late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); + instancetype _objc_msgSend_519( + ffi.Pointer obj, + ffi.Pointer sel, + int aNumItems, + ) { + return __objc_msgSend_519( + obj, + sel, + aNumItems, + ); + } + + late final __objc_msgSend_519Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); late final _sel_initWithLength_1 = _registerName1("initWithLength:"); late final _sel_decompressUsingAlgorithm_error_1 = _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_454( + bool _objc_msgSend_520( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_454( + return __objc_msgSend_520( obj, sel, algorithm, @@ -12453,14 +14367,14 @@ class AVFAudio { ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_520Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -12468,99 +14382,99 @@ class AVFAudio { _registerName1("compressUsingAlgorithm:error:"); late final _sel_initForWritingWithMutableData_1 = _registerName1("initForWritingWithMutableData:"); - instancetype _objc_msgSend_455( + instancetype _objc_msgSend_521( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_455( + return __objc_msgSend_521( obj, sel, data, ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_521Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archivedDataWithRootObject_1 = _registerName1("archivedDataWithRootObject:"); - ffi.Pointer _objc_msgSend_456( + ffi.Pointer _objc_msgSend_522( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rootObject, ) { - return __objc_msgSend_456( + return __objc_msgSend_522( obj, sel, rootObject, ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_522Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archiveRootObject_toFile_1 = _registerName1("archiveRootObject:toFile:"); late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_457( + int _objc_msgSend_523( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_457( + return __objc_msgSend_523( obj, sel, ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_523Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); - void _objc_msgSend_458( + void _objc_msgSend_524( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_458( + return __objc_msgSend_524( obj, sel, value, ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_524Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_encodedData1 = _registerName1("encodedData"); late final _sel_finishEncoding1 = _registerName1("finishEncoding"); late final _sel_setClassName_forClass_1 = _registerName1("setClassName:forClass:"); - void _objc_msgSend_459( + void _objc_msgSend_525( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer codedName, ffi.Pointer cls, ) { - return __objc_msgSend_459( + return __objc_msgSend_525( obj, sel, codedName, @@ -12568,65 +14482,85 @@ class AVFAudio { ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_525Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); + ffi.Pointer _objc_msgSend_526( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cls, + ) { + return __objc_msgSend_526( + obj, + sel, + cls, + ); + } + + late final __objc_msgSend_526Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setRequiresSecureCoding_1 = _registerName1("setRequiresSecureCoding:"); - void _objc_msgSend_460( + void _objc_msgSend_527( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_460( + return __objc_msgSend_527( obj, sel, value, ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_527Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_replacementObjectForKeyedArchiver_1 = _registerName1("replacementObjectForKeyedArchiver:"); - ffi.Pointer _objc_msgSend_461( + ffi.Pointer _objc_msgSend_528( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_461( + return __objc_msgSend_528( obj, sel, archiver, ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_528Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelectorOnMainThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_462( + void _objc_msgSend_529( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -12634,7 +14568,7 @@ class AVFAudio { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_462( + return __objc_msgSend_529( obj, sel, aSelector, @@ -12644,7 +14578,7 @@ class AVFAudio { ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_529Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12653,7 +14587,7 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12664,14 +14598,14 @@ class AVFAudio { late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); - void _objc_msgSend_463( + void _objc_msgSend_530( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_463( + return __objc_msgSend_530( obj, sel, aSelector, @@ -12680,7 +14614,7 @@ class AVFAudio { ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_530Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12688,62 +14622,62 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSThread1 = _getClass1("NSThread"); late final _sel_currentThread1 = _registerName1("currentThread"); - ffi.Pointer _objc_msgSend_464( + ffi.Pointer _objc_msgSend_531( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_464( + return __objc_msgSend_531( obj, sel, ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_531Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_detachNewThreadWithBlock_1 = _registerName1("detachNewThreadWithBlock:"); - void _objc_msgSend_465( + void _objc_msgSend_532( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_465( + return __objc_msgSend_532( obj, sel, block, ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_532Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_detachNewThreadSelector_toTarget_withObject_1 = _registerName1("detachNewThreadSelector:toTarget:withObject:"); - void _objc_msgSend_466( + void _objc_msgSend_533( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, ffi.Pointer target, ffi.Pointer argument, ) { - return __objc_msgSend_466( + return __objc_msgSend_533( obj, sel, selector, @@ -12752,7 +14686,7 @@ class AVFAudio { ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_533Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12760,7 +14694,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12772,13 +14706,13 @@ class AVFAudio { late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); - void _objc_msgSend_467( + void _objc_msgSend_534( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_467( + return __objc_msgSend_534( obj, sel, anObject, @@ -12786,14 +14720,14 @@ class AVFAudio { ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_534Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12804,213 +14738,238 @@ class AVFAudio { late final _sel_setDictionary_1 = _registerName1("setDictionary:"); late final _sel_setObject_forKeyedSubscript_1 = _registerName1("setObject:forKeyedSubscript:"); + void _objc_msgSend_535( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ffi.Pointer key, + ) { + return __objc_msgSend_535( + obj, + sel, + obj1, + key, + ); + } + + late final __objc_msgSend_535Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_dictionaryWithCapacity_1 = _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_468( + ffi.Pointer _objc_msgSend_536( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_468( + return __objc_msgSend_536( obj, sel, path, ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_536Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_469( + ffi.Pointer _objc_msgSend_537( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_469( + return __objc_msgSend_537( obj, sel, url, ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_537Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithSharedKeySet_1 = _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_470( + ffi.Pointer _objc_msgSend_538( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_470( + return __objc_msgSend_538( obj, sel, keyset, ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_538Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_threadDictionary1 = _registerName1("threadDictionary"); - ffi.Pointer _objc_msgSend_471( + ffi.Pointer _objc_msgSend_539( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_471( + return __objc_msgSend_539( obj, sel, ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_539Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); - void _objc_msgSend_472( + void _objc_msgSend_540( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_472( + return __objc_msgSend_540( obj, sel, date, ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_540Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepForTimeInterval_1 = _registerName1("sleepForTimeInterval:"); - void _objc_msgSend_473( + void _objc_msgSend_541( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_473( + return __objc_msgSend_541( obj, sel, ti, ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_541Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_exit1 = _registerName1("exit"); late final _sel_threadPriority1 = _registerName1("threadPriority"); late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_474( + void _objc_msgSend_542( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_474( + return __objc_msgSend_542( obj, sel, value, ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_542Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_475( + int _objc_msgSend_543( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_475( + return __objc_msgSend_543( obj, sel, ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_543Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQualityOfService_1 = _registerName1("setQualityOfService:"); - void _objc_msgSend_476( + void _objc_msgSend_544( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_476( + return __objc_msgSend_544( obj, sel, value, ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_544Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_callStackReturnAddresses1 = _registerName1("callStackReturnAddresses"); late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); late final _sel_setName_1 = _registerName1("setName:"); - void _objc_msgSend_477( + void _objc_msgSend_545( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_477( + return __objc_msgSend_545( obj, sel, value, ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_545Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13020,14 +14979,14 @@ class AVFAudio { late final _sel_mainThread1 = _registerName1("mainThread"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_478( + instancetype _objc_msgSend_546( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer selector, ffi.Pointer argument, ) { - return __objc_msgSend_478( + return __objc_msgSend_546( obj, sel, target, @@ -13036,7 +14995,7 @@ class AVFAudio { ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_546Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -13044,7 +15003,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13053,23 +15012,23 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); - instancetype _objc_msgSend_479( + instancetype _objc_msgSend_547( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_479( + return __objc_msgSend_547( obj, sel, block, ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_547Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -13082,7 +15041,7 @@ class AVFAudio { late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelector:onThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_480( + void _objc_msgSend_548( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13091,7 +15050,7 @@ class AVFAudio { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_480( + return __objc_msgSend_548( obj, sel, aSelector, @@ -13102,7 +15061,7 @@ class AVFAudio { ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_548Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13112,7 +15071,7 @@ class AVFAudio { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13124,7 +15083,7 @@ class AVFAudio { late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = _registerName1("performSelector:onThread:withObject:waitUntilDone:"); - void _objc_msgSend_481( + void _objc_msgSend_549( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13132,7 +15091,7 @@ class AVFAudio { ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_481( + return __objc_msgSend_549( obj, sel, aSelector, @@ -13142,7 +15101,7 @@ class AVFAudio { ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_549Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13151,7 +15110,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13165,33 +15124,33 @@ class AVFAudio { late final _sel_classForArchiver1 = _registerName1("classForArchiver"); late final _class_NSArchiver1 = _getClass1("NSArchiver"); late final _sel_archiverData1 = _registerName1("archiverData"); - ffi.Pointer _objc_msgSend_482( + ffi.Pointer _objc_msgSend_550( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_482( + return __objc_msgSend_550( obj, sel, ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_550Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeClassName_intoClassName_1 = _registerName1("encodeClassName:intoClassName:"); - void _objc_msgSend_483( + void _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer trueName, ffi.Pointer inArchiveName, ) { - return __objc_msgSend_483( + return __objc_msgSend_551( obj, sel, trueName, @@ -13199,14 +15158,14 @@ class AVFAudio { ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_551Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13216,23 +15175,23 @@ class AVFAudio { _registerName1("replaceObject:withObject:"); late final _sel_replacementObjectForArchiver_1 = _registerName1("replacementObjectForArchiver:"); - ffi.Pointer _objc_msgSend_484( + ffi.Pointer _objc_msgSend_552( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_484( + return __objc_msgSend_552( obj, sel, archiver, ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_552Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13241,21 +15200,21 @@ class AVFAudio { late final _sel_isBycopy1 = _registerName1("isBycopy"); late final _sel_isByref1 = _registerName1("isByref"); late final _class_NSPort1 = _getClass1("NSPort"); - ffi.Pointer _objc_msgSend_485( + ffi.Pointer _objc_msgSend_553( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_485( + return __objc_msgSend_553( obj, sel, ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_553Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -13263,55 +15222,56 @@ class AVFAudio { late final _sel_isValid1 = _registerName1("isValid"); late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); - ffi.Pointer _objc_msgSend_486( + ffi.Pointer _objc_msgSend_554( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_486( + return __objc_msgSend_554( obj, sel, ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_554Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainRunLoop1 = _registerName1("mainRunLoop"); late final _sel_currentMode1 = _registerName1("currentMode"); late final _sel_getCFRunLoop1 = _registerName1("getCFRunLoop"); - CFRunLoopRef _objc_msgSend_487( + ffi.Pointer<__CFRunLoop> _objc_msgSend_555( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_487( + return __objc_msgSend_555( obj, sel, ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_555Ptr = _lookup< ffi.NativeFunction< - CFRunLoopRef Function( + ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< - CFRunLoopRef Function(ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + ffi.Pointer<__CFRunLoop> Function( + ffi.Pointer, ffi.Pointer)>(); late final _class_NSTimer1 = _getClass1("NSTimer"); late final _sel_timerWithTimeInterval_invocation_repeats_1 = _registerName1("timerWithTimeInterval:invocation:repeats:"); - ffi.Pointer _objc_msgSend_488( + ffi.Pointer _objc_msgSend_556( ffi.Pointer obj, ffi.Pointer sel, double ti, ffi.Pointer invocation, bool yesOrNo, ) { - return __objc_msgSend_488( + return __objc_msgSend_556( obj, sel, ti, @@ -13320,15 +15280,15 @@ class AVFAudio { ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_556Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer, bool)>(); @@ -13336,7 +15296,7 @@ class AVFAudio { _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); - ffi.Pointer _objc_msgSend_489( + ffi.Pointer _objc_msgSend_557( ffi.Pointer obj, ffi.Pointer sel, double ti, @@ -13345,7 +15305,7 @@ class AVFAudio { ffi.Pointer userInfo, bool yesOrNo, ) { - return __objc_msgSend_489( + return __objc_msgSend_557( obj, sel, ti, @@ -13356,17 +15316,17 @@ class AVFAudio { ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_557Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13381,14 +15341,14 @@ class AVFAudio { "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); late final _sel_timerWithTimeInterval_repeats_block_1 = _registerName1("timerWithTimeInterval:repeats:block:"); - ffi.Pointer _objc_msgSend_490( + ffi.Pointer _objc_msgSend_558( ffi.Pointer obj, ffi.Pointer sel, double interval, bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_490( + return __objc_msgSend_558( obj, sel, interval, @@ -13397,15 +15357,15 @@ class AVFAudio { ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_558Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); @@ -13413,7 +15373,7 @@ class AVFAudio { _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); late final _sel_initWithFireDate_interval_repeats_block_1 = _registerName1("initWithFireDate:interval:repeats:block:"); - instancetype _objc_msgSend_491( + instancetype _objc_msgSend_559( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -13421,7 +15381,7 @@ class AVFAudio { bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_491( + return __objc_msgSend_559( obj, sel, date, @@ -13431,23 +15391,23 @@ class AVFAudio { ); } - late final __objc_msgSend_491Ptr = _lookup< + late final __objc_msgSend_559Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_1 = _registerName1( "initWithFireDate:interval:target:selector:userInfo:repeats:"); - instancetype _objc_msgSend_492( + instancetype _objc_msgSend_560( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -13457,7 +15417,7 @@ class AVFAudio { ffi.Pointer ui, bool rep, ) { - return __objc_msgSend_492( + return __objc_msgSend_560( obj, sel, date, @@ -13469,18 +15429,18 @@ class AVFAudio { ); } - late final __objc_msgSend_492Ptr = _lookup< + late final __objc_msgSend_560Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13494,38 +15454,37 @@ class AVFAudio { late final _sel_fire1 = _registerName1("fire"); late final _sel_fireDate1 = _registerName1("fireDate"); late final _sel_setFireDate_1 = _registerName1("setFireDate:"); - void _objc_msgSend_493( + void _objc_msgSend_561( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_493( + return __objc_msgSend_561( obj, sel, value, ); } - late final __objc_msgSend_493Ptr = _lookup< + late final __objc_msgSend_561Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_timeInterval1 = _registerName1("timeInterval"); late final _sel_tolerance1 = _registerName1("tolerance"); late final _sel_setTolerance_1 = _registerName1("setTolerance:"); - late final _sel_userInfo1 = _registerName1("userInfo"); late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); - void _objc_msgSend_494( + void _objc_msgSend_562( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timer, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_494( + return __objc_msgSend_562( obj, sel, timer, @@ -13533,22 +15492,25 @@ class AVFAudio { ); } - late final __objc_msgSend_494Ptr = _lookup< + late final __objc_msgSend_562Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); - void _objc_msgSend_495( + void _objc_msgSend_563( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aPort, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_495( + return __objc_msgSend_563( obj, sel, aPort, @@ -13556,45 +15518,48 @@ class AVFAudio { ); } - late final __objc_msgSend_495Ptr = _lookup< + late final __objc_msgSend_563Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_removePort_forMode_1 = _registerName1("removePort:forMode:"); late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); - ffi.Pointer _objc_msgSend_496( + ffi.Pointer _objc_msgSend_564( ffi.Pointer obj, ffi.Pointer sel, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_496( + return __objc_msgSend_564( obj, sel, mode, ); } - late final __objc_msgSend_496Ptr = _lookup< + late final __objc_msgSend_564Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_acceptInputForMode_beforeDate_1 = _registerName1("acceptInputForMode:beforeDate:"); - void _objc_msgSend_497( + void _objc_msgSend_565( ffi.Pointer obj, ffi.Pointer sel, - NSRunLoopMode mode, + ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_497( + return __objc_msgSend_565( obj, sel, mode, @@ -13602,24 +15567,27 @@ class AVFAudio { ); } - late final __objc_msgSend_497Ptr = _lookup< + late final __objc_msgSend_565Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_run1 = _registerName1("run"); late final _sel_runUntilDate_1 = _registerName1("runUntilDate:"); late final _sel_runMode_beforeDate_1 = _registerName1("runMode:beforeDate:"); - bool _objc_msgSend_498( + bool _objc_msgSend_566( ffi.Pointer obj, ffi.Pointer sel, - NSRunLoopMode mode, + ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_498( + return __objc_msgSend_566( obj, sel, mode, @@ -13627,24 +15595,27 @@ class AVFAudio { ); } - late final __objc_msgSend_498Ptr = _lookup< + late final __objc_msgSend_566Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_configureAsServer1 = _registerName1("configureAsServer"); late final _sel_performInModes_block_1 = _registerName1("performInModes:block:"); - void _objc_msgSend_499( + void _objc_msgSend_567( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer modes, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_499( + return __objc_msgSend_567( obj, sel, modes, @@ -13652,21 +15623,21 @@ class AVFAudio { ); } - late final __objc_msgSend_499Ptr = _lookup< + late final __objc_msgSend_567Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performBlock_1 = _registerName1("performBlock:"); late final _sel_performSelector_target_argument_order_modes_1 = _registerName1("performSelector:target:argument:order:modes:"); - void _objc_msgSend_500( + void _objc_msgSend_568( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13675,7 +15646,7 @@ class AVFAudio { int order, ffi.Pointer modes, ) { - return __objc_msgSend_500( + return __objc_msgSend_568( obj, sel, aSelector, @@ -13686,7 +15657,7 @@ class AVFAudio { ); } - late final __objc_msgSend_500Ptr = _lookup< + late final __objc_msgSend_568Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13694,9 +15665,9 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13712,13 +15683,13 @@ class AVFAudio { _registerName1("cancelPerformSelectorsWithTarget:"); late final _sel_scheduleInRunLoop_forMode_1 = _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_501( + void _objc_msgSend_569( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runLoop, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_501( + return __objc_msgSend_569( obj, sel, runLoop, @@ -13726,20 +15697,23 @@ class AVFAudio { ); } - late final __objc_msgSend_501Ptr = _lookup< + late final __objc_msgSend_569Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_removeFromRunLoop_forMode_1 = _registerName1("removeFromRunLoop:forMode:"); late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); late final _sel_sendBeforeDate_components_from_reserved_1 = _registerName1("sendBeforeDate:components:from:reserved:"); - bool _objc_msgSend_502( + bool _objc_msgSend_570( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -13747,7 +15721,7 @@ class AVFAudio { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_502( + return __objc_msgSend_570( obj, sel, limitDate, @@ -13757,7 +15731,7 @@ class AVFAudio { ); } - late final __objc_msgSend_502Ptr = _lookup< + late final __objc_msgSend_570Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -13765,8 +15739,8 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -13777,7 +15751,7 @@ class AVFAudio { late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = _registerName1("sendBeforeDate:msgid:components:from:reserved:"); - bool _objc_msgSend_503( + bool _objc_msgSend_571( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -13786,7 +15760,7 @@ class AVFAudio { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_503( + return __objc_msgSend_571( obj, sel, limitDate, @@ -13797,17 +15771,17 @@ class AVFAudio { ); } - late final __objc_msgSend_503Ptr = _lookup< + late final __objc_msgSend_571Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -13821,76 +15795,101 @@ class AVFAudio { late final _sel_statistics1 = _registerName1("statistics"); late final _sel_allConnections1 = _registerName1("allConnections"); late final _sel_defaultConnection1 = _registerName1("defaultConnection"); - ffi.Pointer _objc_msgSend_504( + ffi.Pointer _objc_msgSend_572( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_504( + return __objc_msgSend_572( obj, sel, ); } - late final __objc_msgSend_504Ptr = _lookup< + late final __objc_msgSend_572Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRegisteredName_host_1 = _registerName1("connectionWithRegisteredName:host:"); + instancetype _objc_msgSend_573( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer hostName, + ) { + return __objc_msgSend_573( + obj, + sel, + name, + hostName, + ); + } + + late final __objc_msgSend_573Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSPortNameServer1 = _getClass1("NSPortNameServer"); late final _sel_systemDefaultPortNameServer1 = _registerName1("systemDefaultPortNameServer"); - ffi.Pointer _objc_msgSend_505( + ffi.Pointer _objc_msgSend_574( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_505( + return __objc_msgSend_574( obj, sel, ); } - late final __objc_msgSend_505Ptr = _lookup< + late final __objc_msgSend_574Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_1 = _registerName1("portForName:"); - ffi.Pointer _objc_msgSend_506( + ffi.Pointer _objc_msgSend_575( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_506( + return __objc_msgSend_575( obj, sel, name, ); } - late final __objc_msgSend_506Ptr = _lookup< + late final __objc_msgSend_575Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_host_1 = _registerName1("portForName:host:"); - ffi.Pointer _objc_msgSend_507( + ffi.Pointer _objc_msgSend_576( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer host, ) { - return __objc_msgSend_507( + return __objc_msgSend_576( obj, sel, name, @@ -13898,14 +15897,14 @@ class AVFAudio { ); } - late final __objc_msgSend_507Ptr = _lookup< + late final __objc_msgSend_576Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13913,13 +15912,13 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_registerPort_name_1 = _registerName1("registerPort:name:"); - bool _objc_msgSend_508( + bool _objc_msgSend_577( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer port, ffi.Pointer name, ) { - return __objc_msgSend_508( + return __objc_msgSend_577( obj, sel, port, @@ -13927,28 +15926,28 @@ class AVFAudio { ); } - late final __objc_msgSend_508Ptr = _lookup< + late final __objc_msgSend_577Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removePortForName_1 = _registerName1("removePortForName:"); late final _sel_connectionWithRegisteredName_host_usingNameServer_1 = _registerName1("connectionWithRegisteredName:host:usingNameServer:"); - instancetype _objc_msgSend_509( + instancetype _objc_msgSend_578( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_509( + return __objc_msgSend_578( obj, sel, name, @@ -13957,7 +15956,7 @@ class AVFAudio { ); } - late final __objc_msgSend_509Ptr = _lookup< + late final __objc_msgSend_578Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -13965,7 +15964,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13975,16 +15974,36 @@ class AVFAudio { late final _class_NSDistantObject1 = _getClass1("NSDistantObject"); late final _class_NSProxy1 = _getClass1("NSProxy"); + ffi.Pointer _objc_msgSend_579( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sel1, + ) { + return __objc_msgSend_579( + obj, + sel, + sel1, + ); + } + + late final __objc_msgSend_579Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_respondsToSelector_1 = _registerName1("respondsToSelector:"); late final _sel_proxyWithTarget_connection_1 = _registerName1("proxyWithTarget:connection:"); - ffi.Pointer _objc_msgSend_510( + ffi.Pointer _objc_msgSend_580( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer connection, ) { - return __objc_msgSend_510( + return __objc_msgSend_580( obj, sel, target, @@ -13992,14 +16011,14 @@ class AVFAudio { ); } - late final __objc_msgSend_510Ptr = _lookup< + late final __objc_msgSend_580Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14010,40 +16029,68 @@ class AVFAudio { _registerName1("initWithTarget:connection:"); late final _sel_proxyWithLocal_connection_1 = _registerName1("proxyWithLocal:connection:"); + ffi.Pointer _objc_msgSend_581( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer connection, + ) { + return __objc_msgSend_581( + obj, + sel, + target, + connection, + ); + } + + late final __objc_msgSend_581Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithLocal_connection_1 = _registerName1("initWithLocal:connection:"); late final _sel_setProtocolForProxy_1 = _registerName1("setProtocolForProxy:"); - void _objc_msgSend_511( + void _objc_msgSend_582( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer proto, ) { - return __objc_msgSend_511( + return __objc_msgSend_582( obj, sel, proto, ); } - late final __objc_msgSend_511Ptr = _lookup< + late final __objc_msgSend_582Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionForProxy1 = _registerName1("connectionForProxy"); late final _sel_rootProxyForConnectionWithRegisteredName_host_1 = _registerName1("rootProxyForConnectionWithRegisteredName:host:"); - ffi.Pointer _objc_msgSend_512( + ffi.Pointer _objc_msgSend_583( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ) { - return __objc_msgSend_512( + return __objc_msgSend_583( obj, sel, name, @@ -14051,14 +16098,14 @@ class AVFAudio { ); } - late final __objc_msgSend_512Ptr = _lookup< + late final __objc_msgSend_583Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< + late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14068,14 +16115,14 @@ class AVFAudio { late final _sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1 = _registerName1( "rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); - ffi.Pointer _objc_msgSend_513( + ffi.Pointer _objc_msgSend_584( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_513( + return __objc_msgSend_584( obj, sel, name, @@ -14084,7 +16131,7 @@ class AVFAudio { ); } - late final __objc_msgSend_513Ptr = _lookup< + late final __objc_msgSend_584Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14092,7 +16139,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< + late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14102,14 +16149,14 @@ class AVFAudio { late final _sel_serviceConnectionWithName_rootObject_usingNameServer_1 = _registerName1("serviceConnectionWithName:rootObject:usingNameServer:"); - instancetype _objc_msgSend_514( + instancetype _objc_msgSend_585( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer root, ffi.Pointer server, ) { - return __objc_msgSend_514( + return __objc_msgSend_585( obj, sel, name, @@ -14118,7 +16165,7 @@ class AVFAudio { ); } - late final __objc_msgSend_514Ptr = _lookup< + late final __objc_msgSend_585Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14126,7 +16173,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< + late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14136,6 +16183,31 @@ class AVFAudio { late final _sel_serviceConnectionWithName_rootObject_1 = _registerName1("serviceConnectionWithName:rootObject:"); + instancetype _objc_msgSend_586( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer root, + ) { + return __objc_msgSend_586( + obj, + sel, + name, + root, + ); + } + + late final __objc_msgSend_586Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_requestTimeout1 = _registerName1("requestTimeout"); late final _sel_setRequestTimeout_1 = _registerName1("setRequestTimeout:"); late final _sel_replyTimeout1 = _registerName1("replyTimeout"); @@ -14147,21 +16219,21 @@ class AVFAudio { late final _sel_setIndependentConversationQueueing_1 = _registerName1("setIndependentConversationQueueing:"); late final _sel_rootProxy1 = _registerName1("rootProxy"); - ffi.Pointer _objc_msgSend_515( + ffi.Pointer _objc_msgSend_587( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_515( + return __objc_msgSend_587( obj, sel, ); } - late final __objc_msgSend_515Ptr = _lookup< + late final __objc_msgSend_587Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< + late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14169,15 +16241,35 @@ class AVFAudio { late final _sel_removeRequestMode_1 = _registerName1("removeRequestMode:"); late final _sel_requestModes1 = _registerName1("requestModes"); late final _sel_registerName_1 = _registerName1("registerName:"); + bool _objc_msgSend_588( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_588( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_588Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_registerName_withNameServer_1 = _registerName1("registerName:withNameServer:"); - bool _objc_msgSend_516( + bool _objc_msgSend_589( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer server, ) { - return __objc_msgSend_516( + return __objc_msgSend_589( obj, sel, name, @@ -14185,26 +16277,26 @@ class AVFAudio { ); } - late final __objc_msgSend_516Ptr = _lookup< + late final __objc_msgSend_589Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< + late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithReceivePort_sendPort_1 = _registerName1("connectionWithReceivePort:sendPort:"); - instancetype _objc_msgSend_517( + instancetype _objc_msgSend_590( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer receivePort, ffi.Pointer sendPort, ) { - return __objc_msgSend_517( + return __objc_msgSend_590( obj, sel, receivePort, @@ -14212,14 +16304,14 @@ class AVFAudio { ); } - late final __objc_msgSend_517Ptr = _lookup< + late final __objc_msgSend_590Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14233,23 +16325,23 @@ class AVFAudio { late final _sel_multipleThreadsEnabled1 = _registerName1("multipleThreadsEnabled"); late final _sel_addRunLoop_1 = _registerName1("addRunLoop:"); - void _objc_msgSend_518( + void _objc_msgSend_591( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runloop, ) { - return __objc_msgSend_518( + return __objc_msgSend_591( obj, sel, runloop, ); } - late final __objc_msgSend_518Ptr = _lookup< + late final __objc_msgSend_591Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14261,14 +16353,14 @@ class AVFAudio { _registerName1("dispatchWithComponents:"); late final _sel_addConnection_toRunLoop_forMode_1 = _registerName1("addConnection:toRunLoop:forMode:"); - void _objc_msgSend_519( + void _objc_msgSend_592( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer conn, ffi.Pointer runLoop, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_519( + return __objc_msgSend_592( obj, sel, conn, @@ -14277,53 +16369,93 @@ class AVFAudio { ); } - late final __objc_msgSend_519Ptr = _lookup< + late final __objc_msgSend_592Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); late final _sel_removeConnection_fromRunLoop_forMode_1 = _registerName1("removeConnection:fromRunLoop:forMode:"); late final _sel_encodePortObject_1 = _registerName1("encodePortObject:"); - void _objc_msgSend_520( + void _objc_msgSend_593( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aport, ) { - return __objc_msgSend_520( + return __objc_msgSend_593( obj, sel, aport, ); } - late final __objc_msgSend_520Ptr = _lookup< + late final __objc_msgSend_593Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< + late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodePortObject1 = _registerName1("decodePortObject"); + ffi.Pointer _objc_msgSend_594( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_594( + obj, + sel, + ); + } + + late final __objc_msgSend_594Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_connection1 = _registerName1("connection"); + ffi.Pointer _objc_msgSend_595( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_595( + obj, + sel, + ); + } + + late final __objc_msgSend_595Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_portCoderWithReceivePort_sendPort_components_1 = _registerName1("portCoderWithReceivePort:sendPort:components:"); - ffi.Pointer _objc_msgSend_521( + ffi.Pointer _objc_msgSend_596( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rcvPort, ffi.Pointer sndPort, ffi.Pointer comps, ) { - return __objc_msgSend_521( + return __objc_msgSend_596( obj, sel, rcvPort, @@ -14332,7 +16464,7 @@ class AVFAudio { ); } - late final __objc_msgSend_521Ptr = _lookup< + late final __objc_msgSend_596Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14340,7 +16472,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< + late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14353,36 +16485,36 @@ class AVFAudio { late final _sel_dispatch1 = _registerName1("dispatch"); late final _sel_replacementObjectForPortCoder_1 = _registerName1("replacementObjectForPortCoder:"); - ffi.Pointer _objc_msgSend_522( + ffi.Pointer _objc_msgSend_597( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_522( + return __objc_msgSend_597( obj, sel, coder, ); } - late final __objc_msgSend_522Ptr = _lookup< + late final __objc_msgSend_597Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< + late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSClassDescription1 = _getClass1("NSClassDescription"); late final _sel_registerClassDescription_forClass_1 = _registerName1("registerClassDescription:forClass:"); - void _objc_msgSend_523( + void _objc_msgSend_598( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer aClass, ) { - return __objc_msgSend_523( + return __objc_msgSend_598( obj, sel, description, @@ -14390,14 +16522,14 @@ class AVFAudio { ); } - late final __objc_msgSend_523Ptr = _lookup< + late final __objc_msgSend_598Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14405,23 +16537,23 @@ class AVFAudio { _registerName1("invalidateClassDescriptionCache"); late final _sel_classDescriptionForClass_1 = _registerName1("classDescriptionForClass:"); - ffi.Pointer _objc_msgSend_524( + ffi.Pointer _objc_msgSend_599( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_524( + return __objc_msgSend_599( obj, sel, aClass, ); } - late final __objc_msgSend_524Ptr = _lookup< + late final __objc_msgSend_599Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< + late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14433,21 +16565,21 @@ class AVFAudio { late final _sel_inverseForRelationshipKey_1 = _registerName1("inverseForRelationshipKey:"); late final _sel_classDescription1 = _registerName1("classDescription"); - ffi.Pointer _objc_msgSend_525( + ffi.Pointer _objc_msgSend_600( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_525( + return __objc_msgSend_600( obj, sel, ); } - late final __objc_msgSend_525Ptr = _lookup< + late final __objc_msgSend_600Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< + late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14456,34 +16588,34 @@ class AVFAudio { late final _class_NSAppleEventDescriptor1 = _getClass1("NSAppleEventDescriptor"); late final _sel_nullDescriptor1 = _registerName1("nullDescriptor"); - ffi.Pointer _objc_msgSend_526( + ffi.Pointer _objc_msgSend_601( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_526( + return __objc_msgSend_601( obj, sel, ); } - late final __objc_msgSend_526Ptr = _lookup< + late final __objc_msgSend_601Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDescriptorType_bytes_length_1 = _registerName1("descriptorWithDescriptorType:bytes:length:"); - ffi.Pointer _objc_msgSend_527( + ffi.Pointer _objc_msgSend_602( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_527( + return __objc_msgSend_602( obj, sel, descriptorType, @@ -14492,27 +16624,27 @@ class AVFAudio { ); } - late final __objc_msgSend_527Ptr = _lookup< + late final __objc_msgSend_602Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - DescType, + ffi.UnsignedInt, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_descriptorWithDescriptorType_data_1 = _registerName1("descriptorWithDescriptorType:data:"); - ffi.Pointer _objc_msgSend_528( + ffi.Pointer _objc_msgSend_603( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_528( + return __objc_msgSend_603( obj, sel, descriptorType, @@ -14520,102 +16652,102 @@ class AVFAudio { ); } - late final __objc_msgSend_528Ptr = _lookup< + late final __objc_msgSend_603Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - DescType, + ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< + late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_descriptorWithBoolean_1 = _registerName1("descriptorWithBoolean:"); - ffi.Pointer _objc_msgSend_529( + ffi.Pointer _objc_msgSend_604( ffi.Pointer obj, ffi.Pointer sel, int boolean, ) { - return __objc_msgSend_529( + return __objc_msgSend_604( obj, sel, boolean, ); } - late final __objc_msgSend_529Ptr = _lookup< + late final __objc_msgSend_604Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, Boolean)>>('objc_msgSend'); - late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< + ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); + late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithEnumCode_1 = _registerName1("descriptorWithEnumCode:"); - ffi.Pointer _objc_msgSend_530( + ffi.Pointer _objc_msgSend_605( ffi.Pointer obj, ffi.Pointer sel, int enumerator, ) { - return __objc_msgSend_530( + return __objc_msgSend_605( obj, sel, enumerator, ); } - late final __objc_msgSend_530Ptr = _lookup< + late final __objc_msgSend_605Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, OSType)>>('objc_msgSend'); - late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithInt32_1 = _registerName1("descriptorWithInt32:"); - ffi.Pointer _objc_msgSend_531( + ffi.Pointer _objc_msgSend_606( ffi.Pointer obj, ffi.Pointer sel, int signedInt, ) { - return __objc_msgSend_531( + return __objc_msgSend_606( obj, sel, signedInt, ); } - late final __objc_msgSend_531Ptr = _lookup< + late final __objc_msgSend_606Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, SInt32)>>('objc_msgSend'); - late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< + ffi.Pointer, ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithDouble_1 = _registerName1("descriptorWithDouble:"); - ffi.Pointer _objc_msgSend_532( + ffi.Pointer _objc_msgSend_607( ffi.Pointer obj, ffi.Pointer sel, double doubleValue, ) { - return __objc_msgSend_532( + return __objc_msgSend_607( obj, sel, doubleValue, ); } - late final __objc_msgSend_532Ptr = _lookup< + late final __objc_msgSend_607Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< + late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); @@ -14623,73 +16755,73 @@ class AVFAudio { _registerName1("descriptorWithTypeCode:"); late final _sel_descriptorWithString_1 = _registerName1("descriptorWithString:"); - ffi.Pointer _objc_msgSend_533( + ffi.Pointer _objc_msgSend_608( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_533( + return __objc_msgSend_608( obj, sel, string, ); } - late final __objc_msgSend_533Ptr = _lookup< + late final __objc_msgSend_608Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< + late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDate_1 = _registerName1("descriptorWithDate:"); - ffi.Pointer _objc_msgSend_534( + ffi.Pointer _objc_msgSend_609( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_534( + return __objc_msgSend_609( obj, sel, date, ); } - late final __objc_msgSend_534Ptr = _lookup< + late final __objc_msgSend_609Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< + late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithFileURL_1 = _registerName1("descriptorWithFileURL:"); - ffi.Pointer _objc_msgSend_535( + ffi.Pointer _objc_msgSend_610( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fileURL, ) { - return __objc_msgSend_535( + return __objc_msgSend_610( obj, sel, fileURL, ); } - late final __objc_msgSend_535Ptr = _lookup< + late final __objc_msgSend_610Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - ffi.Pointer _objc_msgSend_536( + ffi.Pointer _objc_msgSend_611( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -14698,7 +16830,7 @@ class AVFAudio { int returnID, int transactionID, ) { - return __objc_msgSend_536( + return __objc_msgSend_611( obj, sel, eventClass, @@ -14709,17 +16841,17 @@ class AVFAudio { ); } - late final __objc_msgSend_536Ptr = _lookup< + late final __objc_msgSend_611Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - AEEventClass, - AEEventID, + ffi.UnsignedInt, + ffi.UnsignedInt, ffi.Pointer, - AEReturnID, - AETransactionID)>>('objc_msgSend'); - late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< + ffi.Short, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -14735,36 +16867,36 @@ class AVFAudio { _registerName1("descriptorWithApplicationURL:"); late final _sel_initWithAEDescNoCopy_1 = _registerName1("initWithAEDescNoCopy:"); - instancetype _objc_msgSend_537( + instancetype _objc_msgSend_612( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aeDesc, ) { - return __objc_msgSend_537( + return __objc_msgSend_612( obj, sel, aeDesc, ); } - late final __objc_msgSend_537Ptr = _lookup< + late final __objc_msgSend_612Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< + late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithDescriptorType_bytes_length_1 = _registerName1("initWithDescriptorType:bytes:length:"); - instancetype _objc_msgSend_538( + instancetype _objc_msgSend_613( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_538( + return __objc_msgSend_613( obj, sel, descriptorType, @@ -14773,23 +16905,27 @@ class AVFAudio { ); } - late final __objc_msgSend_538Ptr = _lookup< + late final __objc_msgSend_613Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - DescType, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithDescriptorType_data_1 = _registerName1("initWithDescriptorType:data:"); - instancetype _objc_msgSend_539( + instancetype _objc_msgSend_614( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_539( + return __objc_msgSend_614( obj, sel, descriptorType, @@ -14797,18 +16933,18 @@ class AVFAudio { ); } - late final __objc_msgSend_539Ptr = _lookup< + late final __objc_msgSend_614Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - DescType, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "initWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - instancetype _objc_msgSend_540( + instancetype _objc_msgSend_615( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -14817,7 +16953,7 @@ class AVFAudio { int returnID, int transactionID, ) { - return __objc_msgSend_540( + return __objc_msgSend_615( obj, sel, eventClass, @@ -14828,17 +16964,17 @@ class AVFAudio { ); } - late final __objc_msgSend_540Ptr = _lookup< + late final __objc_msgSend_615Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - AEEventClass, - AEEventID, + ffi.UnsignedInt, + ffi.UnsignedInt, ffi.Pointer, - AEReturnID, - AETransactionID)>>('objc_msgSend'); - late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< + ffi.Short, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -14846,21 +16982,21 @@ class AVFAudio { late final _sel_initRecordDescriptor1 = _registerName1("initRecordDescriptor"); late final _sel_aeDesc1 = _registerName1("aeDesc"); - ffi.Pointer _objc_msgSend_541( + ffi.Pointer _objc_msgSend_616( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_541( + return __objc_msgSend_616( obj, sel, ); } - late final __objc_msgSend_541Ptr = _lookup< + late final __objc_msgSend_616Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< + late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14877,13 +17013,13 @@ class AVFAudio { late final _sel_transactionID1 = _registerName1("transactionID"); late final _sel_setParamDescriptor_forKeyword_1 = _registerName1("setParamDescriptor:forKeyword:"); - void _objc_msgSend_542( + void _objc_msgSend_617( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int keyword, ) { - return __objc_msgSend_542( + return __objc_msgSend_617( obj, sel, descriptor, @@ -14891,35 +17027,55 @@ class AVFAudio { ); } - late final __objc_msgSend_542Ptr = _lookup< + late final __objc_msgSend_617Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, AEKeyword)>>('objc_msgSend'); - late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_paramDescriptorForKeyword_1 = _registerName1("paramDescriptorForKeyword:"); + ffi.Pointer _objc_msgSend_618( + ffi.Pointer obj, + ffi.Pointer sel, + int keyword, + ) { + return __objc_msgSend_618( + obj, + sel, + keyword, + ); + } + + late final __objc_msgSend_618Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_removeParamDescriptorWithKeyword_1 = _registerName1("removeParamDescriptorWithKeyword:"); - void _objc_msgSend_543( + void _objc_msgSend_619( ffi.Pointer obj, ffi.Pointer sel, int keyword, ) { - return __objc_msgSend_543( + return __objc_msgSend_619( obj, sel, keyword, ); } - late final __objc_msgSend_543Ptr = _lookup< + late final __objc_msgSend_619Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - AEKeyword)>>('objc_msgSend'); - late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAttributeDescriptor_forKeyword_1 = @@ -14928,14 +17084,14 @@ class AVFAudio { _registerName1("attributeDescriptorForKeyword:"); late final _sel_sendEventWithOptions_timeout_error_1 = _registerName1("sendEventWithOptions:timeout:error:"); - ffi.Pointer _objc_msgSend_544( + ffi.Pointer _objc_msgSend_620( ffi.Pointer obj, ffi.Pointer sel, int sendOptions, double timeoutInSeconds, ffi.Pointer> error, ) { - return __objc_msgSend_544( + return __objc_msgSend_620( obj, sel, sendOptions, @@ -14944,15 +17100,15 @@ class AVFAudio { ); } - late final __objc_msgSend_544Ptr = _lookup< + late final __objc_msgSend_620Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, - NSTimeInterval, + ffi.Double, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< + late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14964,13 +17120,13 @@ class AVFAudio { late final _sel_numberOfItems1 = _registerName1("numberOfItems"); late final _sel_insertDescriptor_atIndex_1 = _registerName1("insertDescriptor:atIndex:"); - void _objc_msgSend_545( + void _objc_msgSend_621( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int index, ) { - return __objc_msgSend_545( + return __objc_msgSend_621( obj, sel, descriptor, @@ -14978,32 +17134,32 @@ class AVFAudio { ); } - late final __objc_msgSend_545Ptr = _lookup< + late final __objc_msgSend_621Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorAtIndex_1 = _registerName1("descriptorAtIndex:"); - ffi.Pointer _objc_msgSend_546( + ffi.Pointer _objc_msgSend_622( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_546( + return __objc_msgSend_622( obj, sel, index, ); } - late final __objc_msgSend_546Ptr = _lookup< + late final __objc_msgSend_622Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -15017,58 +17173,58 @@ class AVFAudio { _registerName1("removeDescriptorWithKeyword:"); late final _sel_keywordForDescriptorAtIndex_1 = _registerName1("keywordForDescriptorAtIndex:"); - int _objc_msgSend_547( + int _objc_msgSend_623( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_547( + return __objc_msgSend_623( obj, sel, index, ); } - late final __objc_msgSend_547Ptr = _lookup< + late final __objc_msgSend_623Ptr = _lookup< ffi.NativeFunction< - AEKeyword Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + ffi.UnsignedInt Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_coerceToDescriptorType_1 = _registerName1("coerceToDescriptorType:"); late final _sel_objectSpecifierWithDescriptor_1 = _registerName1("objectSpecifierWithDescriptor:"); - ffi.Pointer _objc_msgSend_548( + ffi.Pointer _objc_msgSend_624( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, ) { - return __objc_msgSend_548( + return __objc_msgSend_624( obj, sel, descriptor, ); } - late final __objc_msgSend_548Ptr = _lookup< + late final __objc_msgSend_624Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< + late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithContainerSpecifier_key_1 = _registerName1("initWithContainerSpecifier:key:"); - instancetype _objc_msgSend_549( + instancetype _objc_msgSend_625( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_549( + return __objc_msgSend_625( obj, sel, container, @@ -15076,49 +17232,49 @@ class AVFAudio { ); } - late final __objc_msgSend_549Ptr = _lookup< + late final __objc_msgSend_625Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSScriptClassDescription1 = _getClass1("NSScriptClassDescription"); - ffi.Pointer _objc_msgSend_550( + ffi.Pointer _objc_msgSend_626( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_550( + return __objc_msgSend_626( obj, sel, aClass, ); } - late final __objc_msgSend_550Ptr = _lookup< + late final __objc_msgSend_626Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithSuiteName_className_dictionary_1 = _registerName1("initWithSuiteName:className:dictionary:"); - instancetype _objc_msgSend_551( + instancetype _objc_msgSend_627( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer suiteName, ffi.Pointer className, ffi.Pointer classDeclaration, ) { - return __objc_msgSend_551( + return __objc_msgSend_627( obj, sel, suiteName, @@ -15127,7 +17283,7 @@ class AVFAudio { ); } - late final __objc_msgSend_551Ptr = _lookup< + late final __objc_msgSend_627Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15135,7 +17291,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< + late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15149,21 +17305,21 @@ class AVFAudio { _registerName1("implementationClassName"); late final _sel_superclassDescription1 = _registerName1("superclassDescription"); - ffi.Pointer _objc_msgSend_552( + ffi.Pointer _objc_msgSend_628( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_552( + return __objc_msgSend_628( obj, sel, ); } - late final __objc_msgSend_552Ptr = _lookup< + late final __objc_msgSend_628Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< + late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15185,23 +17341,23 @@ class AVFAudio { _registerName1("typeForArgumentWithName:"); late final _sel_appleEventCodeForArgumentWithName_1 = _registerName1("appleEventCodeForArgumentWithName:"); - int _objc_msgSend_553( + int _objc_msgSend_629( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentName, ) { - return __objc_msgSend_553( + return __objc_msgSend_629( obj, sel, argumentName, ); } - late final __objc_msgSend_553Ptr = _lookup< + late final __objc_msgSend_629Ptr = _lookup< ffi.NativeFunction< - FourCharCode Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< + ffi.UnsignedInt Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15210,91 +17366,111 @@ class AVFAudio { late final _class_NSScriptCommand1 = _getClass1("NSScriptCommand"); late final _sel_initWithCommandDescription_1 = _registerName1("initWithCommandDescription:"); - instancetype _objc_msgSend_554( + instancetype _objc_msgSend_630( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDef, ) { - return __objc_msgSend_554( + return __objc_msgSend_630( obj, sel, commandDef, ); } - late final __objc_msgSend_554Ptr = _lookup< + late final __objc_msgSend_630Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< + late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_commandDescription1 = _registerName1("commandDescription"); - ffi.Pointer _objc_msgSend_555( + ffi.Pointer _objc_msgSend_631( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_555( + return __objc_msgSend_631( obj, sel, ); } - late final __objc_msgSend_555Ptr = _lookup< + late final __objc_msgSend_631Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_directParameter1 = _registerName1("directParameter"); late final _sel_setDirectParameter_1 = _registerName1("setDirectParameter:"); late final _sel_receiversSpecifier1 = _registerName1("receiversSpecifier"); - ffi.Pointer _objc_msgSend_556( + ffi.Pointer _objc_msgSend_632( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_556( + return __objc_msgSend_632( obj, sel, ); } - late final __objc_msgSend_556Ptr = _lookup< + late final __objc_msgSend_632Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< + late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReceiversSpecifier_1 = _registerName1("setReceiversSpecifier:"); - void _objc_msgSend_557( + void _objc_msgSend_633( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_557( + return __objc_msgSend_633( obj, sel, value, ); } - late final __objc_msgSend_557Ptr = _lookup< + late final __objc_msgSend_633Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_evaluatedReceivers1 = _registerName1("evaluatedReceivers"); late final _sel_arguments1 = _registerName1("arguments"); late final _sel_setArguments_1 = _registerName1("setArguments:"); + void _objc_msgSend_634( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_634( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_634Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_evaluatedArguments1 = _registerName1("evaluatedArguments"); late final _sel_isWellFormed1 = _registerName1("isWellFormed"); late final _sel_performDefaultImplementation1 = @@ -15303,46 +17479,64 @@ class AVFAudio { late final _sel_scriptErrorNumber1 = _registerName1("scriptErrorNumber"); late final _sel_setScriptErrorNumber_1 = _registerName1("setScriptErrorNumber:"); - void _objc_msgSend_558( + void _objc_msgSend_635( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_558( + return __objc_msgSend_635( obj, sel, value, ); } - late final __objc_msgSend_558Ptr = _lookup< + late final __objc_msgSend_635Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_scriptErrorOffendingObjectDescriptor1 = _registerName1("scriptErrorOffendingObjectDescriptor"); + ffi.Pointer _objc_msgSend_636( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_636( + obj, + sel, + ); + } + + late final __objc_msgSend_636Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setScriptErrorOffendingObjectDescriptor_1 = _registerName1("setScriptErrorOffendingObjectDescriptor:"); - void _objc_msgSend_559( + void _objc_msgSend_637( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_559( + return __objc_msgSend_637( obj, sel, value, ); } - late final __objc_msgSend_559Ptr = _lookup< + late final __objc_msgSend_637Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< + late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15354,21 +17548,21 @@ class AVFAudio { late final _sel_setScriptErrorString_1 = _registerName1("setScriptErrorString:"); late final _sel_currentCommand1 = _registerName1("currentCommand"); - ffi.Pointer _objc_msgSend_560( + ffi.Pointer _objc_msgSend_638( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_560( + return __objc_msgSend_638( obj, sel, ); } - late final __objc_msgSend_560Ptr = _lookup< + late final __objc_msgSend_638Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< + late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15378,90 +17572,108 @@ class AVFAudio { _registerName1("resumeExecutionWithResult:"); late final _sel_createCommandInstance1 = _registerName1("createCommandInstance"); + ffi.Pointer _objc_msgSend_639( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_639( + obj, + sel, + ); + } + + late final __objc_msgSend_639Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_createCommandInstanceWithZone_1 = _registerName1("createCommandInstanceWithZone:"); - ffi.Pointer _objc_msgSend_561( + ffi.Pointer _objc_msgSend_640( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer zone, + ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_561( + return __objc_msgSend_640( obj, sel, zone, ); } - late final __objc_msgSend_561Ptr = _lookup< + late final __objc_msgSend_640Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< + ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer<_NSZone>)>(); late final _sel_supportsCommand_1 = _registerName1("supportsCommand:"); - bool _objc_msgSend_562( + bool _objc_msgSend_641( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_562( + return __objc_msgSend_641( obj, sel, commandDescription, ); } - late final __objc_msgSend_562Ptr = _lookup< + late final __objc_msgSend_641Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< + late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selectorForCommand_1 = _registerName1("selectorForCommand:"); - ffi.Pointer _objc_msgSend_563( + ffi.Pointer _objc_msgSend_642( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_563( + return __objc_msgSend_642( obj, sel, commandDescription, ); } - late final __objc_msgSend_563Ptr = _lookup< + late final __objc_msgSend_642Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< + late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_typeForKey_1 = _registerName1("typeForKey:"); late final _sel_classDescriptionForKey_1 = _registerName1("classDescriptionForKey:"); - ffi.Pointer _objc_msgSend_564( + ffi.Pointer _objc_msgSend_643( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_564( + return __objc_msgSend_643( obj, sel, key, ); } - late final __objc_msgSend_564Ptr = _lookup< + late final __objc_msgSend_643Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15469,23 +17681,23 @@ class AVFAudio { _registerName1("appleEventCodeForKey:"); late final _sel_keyWithAppleEventCode_1 = _registerName1("keyWithAppleEventCode:"); - ffi.Pointer _objc_msgSend_565( + ffi.Pointer _objc_msgSend_644( ffi.Pointer obj, ffi.Pointer sel, int appleEventCode, ) { - return __objc_msgSend_565( + return __objc_msgSend_644( obj, sel, appleEventCode, ); } - late final __objc_msgSend_565Ptr = _lookup< + late final __objc_msgSend_644Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, FourCharCode)>>('objc_msgSend'); - late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -15504,14 +17716,14 @@ class AVFAudio { late final _sel_initWithContainerClassDescription_containerSpecifier_key_1 = _registerName1( "initWithContainerClassDescription:containerSpecifier:key:"); - instancetype _objc_msgSend_566( + instancetype _objc_msgSend_645( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classDesc, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_566( + return __objc_msgSend_645( obj, sel, classDesc, @@ -15520,7 +17732,7 @@ class AVFAudio { ); } - late final __objc_msgSend_566Ptr = _lookup< + late final __objc_msgSend_645Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15528,7 +17740,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< + late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15551,40 +17763,60 @@ class AVFAudio { _registerName1("setContainerIsRangeContainerObject:"); late final _sel_key1 = _registerName1("key"); late final _sel_setKey_1 = _registerName1("setKey:"); + void _objc_msgSend_646( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_646( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_646Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_containerClassDescription1 = _registerName1("containerClassDescription"); late final _sel_setContainerClassDescription_1 = _registerName1("setContainerClassDescription:"); - void _objc_msgSend_567( + void _objc_msgSend_647( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_567( + return __objc_msgSend_647( obj, sel, value, ); } - late final __objc_msgSend_567Ptr = _lookup< + late final __objc_msgSend_647Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_keyClassDescription1 = _registerName1("keyClassDescription"); late final _sel_indicesOfObjectsByEvaluatingWithContainer_count_1 = _registerName1("indicesOfObjectsByEvaluatingWithContainer:count:"); - ffi.Pointer _objc_msgSend_568( + ffi.Pointer _objc_msgSend_648( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, - ffi.Pointer count, + ffi.Pointer count, ) { - return __objc_msgSend_568( + return __objc_msgSend_648( obj, sel, container, @@ -15592,19 +17824,19 @@ class AVFAudio { ); } - late final __objc_msgSend_568Ptr = _lookup< + late final __objc_msgSend_648Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< - ffi.Pointer Function( + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_objectsByEvaluatingWithContainers_1 = _registerName1("objectsByEvaluatingWithContainers:"); @@ -15619,23 +17851,23 @@ class AVFAudio { late final _sel_descriptor1 = _registerName1("descriptor"); late final _sel_scriptingValueForSpecifier_1 = _registerName1("scriptingValueForSpecifier:"); - ffi.Pointer _objc_msgSend_569( + ffi.Pointer _objc_msgSend_649( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectSpecifier, ) { - return __objc_msgSend_569( + return __objc_msgSend_649( obj, sel, objectSpecifier, ); } - late final __objc_msgSend_569Ptr = _lookup< + late final __objc_msgSend_649Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< + late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15644,14 +17876,14 @@ class AVFAudio { _registerName1("setScriptingProperties:"); late final _sel_copyScriptingValue_forKey_withProperties_1 = _registerName1("copyScriptingValue:forKey:withProperties:"); - ffi.Pointer _objc_msgSend_570( + ffi.Pointer _objc_msgSend_650( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer properties, ) { - return __objc_msgSend_570( + return __objc_msgSend_650( obj, sel, value, @@ -15660,7 +17892,7 @@ class AVFAudio { ); } - late final __objc_msgSend_570Ptr = _lookup< + late final __objc_msgSend_650Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15668,7 +17900,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< + late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15679,7 +17911,7 @@ class AVFAudio { late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1 = _registerName1( "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:"); - ffi.Pointer _objc_msgSend_571( + ffi.Pointer _objc_msgSend_651( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectClass, @@ -15687,7 +17919,7 @@ class AVFAudio { ffi.Pointer contentsValue, ffi.Pointer properties, ) { - return __objc_msgSend_571( + return __objc_msgSend_651( obj, sel, objectClass, @@ -15697,7 +17929,7 @@ class AVFAudio { ); } - late final __objc_msgSend_571Ptr = _lookup< + late final __objc_msgSend_651Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15706,7 +17938,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15718,13 +17950,13 @@ class AVFAudio { late final _sel_classCode1 = _registerName1("classCode"); late final _sel_valueAtIndex_inPropertyWithKey_1 = _registerName1("valueAtIndex:inPropertyWithKey:"); - ffi.Pointer _objc_msgSend_572( + ffi.Pointer _objc_msgSend_652( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_572( + return __objc_msgSend_652( obj, sel, index, @@ -15732,14 +17964,14 @@ class AVFAudio { ); } - late final __objc_msgSend_572Ptr = _lookup< + late final __objc_msgSend_652Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -15749,14 +17981,14 @@ class AVFAudio { _registerName1("valueWithUniqueID:inPropertyWithKey:"); late final _sel_insertValue_atIndex_inPropertyWithKey_1 = _registerName1("insertValue:atIndex:inPropertyWithKey:"); - void _objc_msgSend_573( + void _objc_msgSend_653( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, int index, ffi.Pointer key, ) { - return __objc_msgSend_573( + return __objc_msgSend_653( obj, sel, value, @@ -15765,27 +17997,27 @@ class AVFAudio { ); } - late final __objc_msgSend_573Ptr = _lookup< + late final __objc_msgSend_653Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_removeValueAtIndex_fromPropertyWithKey_1 = _registerName1("removeValueAtIndex:fromPropertyWithKey:"); - void _objc_msgSend_574( + void _objc_msgSend_654( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_574( + return __objc_msgSend_654( obj, sel, index, @@ -15793,24 +18025,24 @@ class AVFAudio { ); } - late final __objc_msgSend_574Ptr = _lookup< + late final __objc_msgSend_654Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_1 = _registerName1("replaceValueAtIndex:inPropertyWithKey:withValue:"); - void _objc_msgSend_575( + void _objc_msgSend_655( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_575( + return __objc_msgSend_655( obj, sel, index, @@ -15819,41 +18051,94 @@ class AVFAudio { ); } - late final __objc_msgSend_575Ptr = _lookup< + late final __objc_msgSend_655Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< + late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); late final _sel_insertValue_inPropertyWithKey_1 = _registerName1("insertValue:inPropertyWithKey:"); + void _objc_msgSend_656( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ) { + return __objc_msgSend_656( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_656Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_coerceValue_forKey_1 = _registerName1("coerceValue:forKey:"); + ffi.Pointer _objc_msgSend_657( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ) { + return __objc_msgSend_657( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_657Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_objectSpecifier1 = _registerName1("objectSpecifier"); late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_1 = _registerName1("indicesOfObjectsByEvaluatingObjectSpecifier:"); - ffi.Pointer _objc_msgSend_576( + ffi.Pointer _objc_msgSend_658( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer specifier, ) { - return __objc_msgSend_576( + return __objc_msgSend_658( obj, sel, specifier, ); } - late final __objc_msgSend_576Ptr = _lookup< + late final __objc_msgSend_658Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< + late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15885,43 +18170,43 @@ class AVFAudio { late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); late final _class_NSProgress1 = _getClass1("NSProgress"); late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_577( + ffi.Pointer _objc_msgSend_659( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_577( + return __objc_msgSend_659( obj, sel, ); } - late final __objc_msgSend_577Ptr = _lookup< + late final __objc_msgSend_659Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< + late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progressWithTotalUnitCount_1 = _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_578( + ffi.Pointer _objc_msgSend_660( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_578( + return __objc_msgSend_660( obj, sel, unitCount, ); } - late final __objc_msgSend_578Ptr = _lookup< + late final __objc_msgSend_660Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< + late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -15929,14 +18214,14 @@ class AVFAudio { _registerName1("discreteProgressWithTotalUnitCount:"); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_579( + ffi.Pointer _objc_msgSend_661( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer parent, int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_579( + return __objc_msgSend_661( obj, sel, unitCount, @@ -15945,7 +18230,7 @@ class AVFAudio { ); } - late final __objc_msgSend_579Ptr = _lookup< + late final __objc_msgSend_661Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15953,62 +18238,67 @@ class AVFAudio { ffi.Int64, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithParent_userInfo_1 = _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_580( + instancetype _objc_msgSend_662( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, + ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_580( + return __objc_msgSend_662( obj, sel, parentProgressOrNil, + userInfoOrNil, ); } - late final __objc_msgSend_580Ptr = _lookup< + late final __objc_msgSend_662Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< + late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_581( + void _objc_msgSend_663( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_581( + return __objc_msgSend_663( obj, sel, unitCount, ); } - late final __objc_msgSend_581Ptr = _lookup< + late final __objc_msgSend_663Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_582( + void _objc_msgSend_664( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_582( + return __objc_msgSend_664( obj, sel, unitCount, @@ -16016,24 +18306,24 @@ class AVFAudio { ); } - late final __objc_msgSend_582Ptr = _lookup< + late final __objc_msgSend_664Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_resignCurrent1 = _registerName1("resignCurrent"); late final _sel_addChild_withPendingUnitCount_1 = _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_583( + void _objc_msgSend_665( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_583( + return __objc_msgSend_665( obj, sel, child, @@ -16041,57 +18331,55 @@ class AVFAudio { ); } - late final __objc_msgSend_583Ptr = _lookup< + late final __objc_msgSend_665Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< + late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_584( + int _objc_msgSend_666( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_584( + return __objc_msgSend_666( obj, sel, ); } - late final __objc_msgSend_584Ptr = _lookup< + late final __objc_msgSend_666Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< + late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_585( + void _objc_msgSend_667( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_585( + return __objc_msgSend_667( obj, sel, value, ); } - late final __objc_msgSend_585Ptr = _lookup< + late final __objc_msgSend_667Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< + late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); late final _sel_setCompletedUnitCount_1 = _registerName1("setCompletedUnitCount:"); - late final _sel_localizedDescription1 = - _registerName1("localizedDescription"); late final _sel_setLocalizedDescription_1 = _registerName1("setLocalizedDescription:"); late final _sel_localizedAdditionalDescription1 = @@ -16104,43 +18392,43 @@ class AVFAudio { late final _sel_setPausable_1 = _registerName1("setPausable:"); late final _sel_isPaused1 = _registerName1("isPaused"); late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_586( + ffi.Pointer<_ObjCBlock> _objc_msgSend_668( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_586( + return __objc_msgSend_668( obj, sel, ); } - late final __objc_msgSend_586Ptr = _lookup< + late final __objc_msgSend_668Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setCancellationHandler_1 = _registerName1("setCancellationHandler:"); - void _objc_msgSend_587( + void _objc_msgSend_669( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_587( + return __objc_msgSend_669( obj, sel, value, ); } - late final __objc_msgSend_587Ptr = _lookup< + late final __objc_msgSend_669Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -16154,17 +18442,109 @@ class AVFAudio { late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); late final _sel_pause1 = _registerName1("pause"); late final _sel_resume1 = _registerName1("resume"); + late final _sel_kind1 = _registerName1("kind"); + late final _sel_setKind_1 = _registerName1("setKind:"); + late final _sel_estimatedTimeRemaining1 = + _registerName1("estimatedTimeRemaining"); + late final _sel_setEstimatedTimeRemaining_1 = + _registerName1("setEstimatedTimeRemaining:"); + void _objc_msgSend_670( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_670( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_670Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_throughput1 = _registerName1("throughput"); + late final _sel_setThroughput_1 = _registerName1("setThroughput:"); + late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); + late final _sel_setFileOperationKind_1 = + _registerName1("setFileOperationKind:"); + late final _sel_fileURL1 = _registerName1("fileURL"); + late final _sel_setFileURL_1 = _registerName1("setFileURL:"); + void _objc_msgSend_671( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_671( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_671Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); + late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); + late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); + late final _sel_setFileCompletedCount_1 = + _registerName1("setFileCompletedCount:"); + late final _sel_publish1 = _registerName1("publish"); + late final _sel_unpublish1 = _registerName1("unpublish"); + late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = + _registerName1("addSubscriberForFileURL:withPublishingHandler:"); + ffi.Pointer _objc_msgSend_672( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> publishingHandler, + ) { + return __objc_msgSend_672( + obj, + sel, + url, + publishingHandler, + ); + } + + late final __objc_msgSend_672Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); + late final _sel_isOld1 = _registerName1("isOld"); late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_588( + void _objc_msgSend_673( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_588( + return __objc_msgSend_673( obj, sel, typeIdentifier, @@ -16173,7 +18553,7 @@ class AVFAudio { ); } - late final __objc_msgSend_588Ptr = _lookup< + late final __objc_msgSend_673Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16181,14 +18561,14 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = _registerName1( "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_589( + void _objc_msgSend_674( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -16196,7 +18576,7 @@ class AVFAudio { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_589( + return __objc_msgSend_674( obj, sel, typeIdentifier, @@ -16206,7 +18586,7 @@ class AVFAudio { ); } - late final __objc_msgSend_589Ptr = _lookup< + late final __objc_msgSend_674Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16215,7 +18595,7 @@ class AVFAudio { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< + late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -16223,23 +18603,23 @@ class AVFAudio { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_590( + ffi.Pointer _objc_msgSend_675( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_590( + return __objc_msgSend_675( obj, sel, fileOptions, ); } - late final __objc_msgSend_590Ptr = _lookup< + late final __objc_msgSend_675Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< + late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16248,13 +18628,13 @@ class AVFAudio { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_591( + bool _objc_msgSend_676( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_591( + return __objc_msgSend_676( obj, sel, typeIdentifier, @@ -16262,24 +18642,24 @@ class AVFAudio { ); } - late final __objc_msgSend_591Ptr = _lookup< + late final __objc_msgSend_676Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< + late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_592( + ffi.Pointer _objc_msgSend_677( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_592( + return __objc_msgSend_677( obj, sel, typeIdentifier, @@ -16287,14 +18667,14 @@ class AVFAudio { ); } - late final __objc_msgSend_592Ptr = _lookup< + late final __objc_msgSend_677Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16304,13 +18684,13 @@ class AVFAudio { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_593( + ffi.Pointer _objc_msgSend_678( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_593( + return __objc_msgSend_678( obj, sel, typeIdentifier, @@ -16318,14 +18698,14 @@ class AVFAudio { ); } - late final __objc_msgSend_593Ptr = _lookup< + late final __objc_msgSend_678Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< + late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16335,13 +18715,13 @@ class AVFAudio { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_594( + ffi.Pointer _objc_msgSend_679( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_594( + return __objc_msgSend_679( obj, sel, typeIdentifier, @@ -16349,14 +18729,14 @@ class AVFAudio { ); } - late final __objc_msgSend_594Ptr = _lookup< + late final __objc_msgSend_679Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16367,13 +18747,13 @@ class AVFAudio { late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_595( + void _objc_msgSend_680( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_595( + return __objc_msgSend_680( obj, sel, object, @@ -16381,24 +18761,24 @@ class AVFAudio { ); } - late final __objc_msgSend_595Ptr = _lookup< + late final __objc_msgSend_680Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_596( + void _objc_msgSend_681( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_596( + return __objc_msgSend_681( obj, sel, aClass, @@ -16407,7 +18787,7 @@ class AVFAudio { ); } - late final __objc_msgSend_596Ptr = _lookup< + late final __objc_msgSend_681Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16415,7 +18795,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< + late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -16423,13 +18803,13 @@ class AVFAudio { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_597( + ffi.Pointer _objc_msgSend_682( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_597( + return __objc_msgSend_682( obj, sel, aClass, @@ -16437,14 +18817,14 @@ class AVFAudio { ); } - late final __objc_msgSend_597Ptr = _lookup< + late final __objc_msgSend_682Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< + late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16453,15 +18833,40 @@ class AVFAudio { late final _sel_initWithItem_typeIdentifier_1 = _registerName1("initWithItem:typeIdentifier:"); + instancetype _objc_msgSend_683( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer item, + ffi.Pointer typeIdentifier, + ) { + return __objc_msgSend_683( + obj, + sel, + item, + typeIdentifier, + ); + } + + late final __objc_msgSend_683Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_598( + void _objc_msgSend_684( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, - NSItemProviderLoadHandler loadHandler, + ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_598( + return __objc_msgSend_684( obj, sel, typeIdentifier, @@ -16469,27 +18874,27 @@ class AVFAudio { ); } - late final __objc_msgSend_598Ptr = _lookup< + late final __objc_msgSend_684Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSItemProviderLoadHandler)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_599( + void _objc_msgSend_685( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, - NSItemProviderCompletionHandler completionHandler, + ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_599( + return __objc_msgSend_685( obj, sel, typeIdentifier, @@ -16498,72 +18903,72 @@ class AVFAudio { ); } - late final __objc_msgSend_599Ptr = _lookup< + late final __objc_msgSend_685Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderCompletionHandler)>(); + ffi.Pointer<_ObjCBlock>)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - NSItemProviderLoadHandler _objc_msgSend_600( + ffi.Pointer<_ObjCBlock> _objc_msgSend_686( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_600( + return __objc_msgSend_686( obj, sel, ); } - late final __objc_msgSend_600Ptr = _lookup< + late final __objc_msgSend_686Ptr = _lookup< ffi.NativeFunction< - NSItemProviderLoadHandler Function( + ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< - NSItemProviderLoadHandler Function( + late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_601( + void _objc_msgSend_687( ffi.Pointer obj, ffi.Pointer sel, - NSItemProviderLoadHandler value, + ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_601( + return __objc_msgSend_687( obj, sel, value, ); } - late final __objc_msgSend_601Ptr = _lookup< + late final __objc_msgSend_687Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSItemProviderLoadHandler)>(); + ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_602( + void _objc_msgSend_688( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, - NSItemProviderCompletionHandler completionHandler, + ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_602( + return __objc_msgSend_688( obj, sel, options, @@ -16571,27 +18976,27 @@ class AVFAudio { ); } - late final __objc_msgSend_602Ptr = _lookup< + late final __objc_msgSend_688Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSItemProviderCompletionHandler)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSMutableString1 = _getClass1("NSMutableString"); late final _sel_replaceCharactersInRange_withString_1 = _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_603( + void _objc_msgSend_689( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_603( + return __objc_msgSend_689( obj, sel, range, @@ -16599,23 +19004,23 @@ class AVFAudio { ); } - late final __objc_msgSend_603Ptr = _lookup< + late final __objc_msgSend_689Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_604( + void _objc_msgSend_690( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_604( + return __objc_msgSend_690( obj, sel, aString, @@ -16623,11 +19028,11 @@ class AVFAudio { ); } - late final __objc_msgSend_604Ptr = _lookup< + late final __objc_msgSend_690Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -16638,15 +19043,15 @@ class AVFAudio { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_605( + int _objc_msgSend_691( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, int options, - NSRange searchRange, + _NSRange searchRange, ) { - return __objc_msgSend_605( + return __objc_msgSend_691( obj, sel, target, @@ -16656,30 +19061,30 @@ class AVFAudio { ); } - late final __objc_msgSend_605Ptr = _lookup< + late final __objc_msgSend_691Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_606( + bool _objc_msgSend_692( ffi.Pointer obj, ffi.Pointer sel, - NSStringTransform transform, + ffi.Pointer transform, bool reverse, - NSRange range, - NSRangePointer resultingRange, + _NSRange range, + ffi.Pointer<_NSRange> resultingRange, ) { - return __objc_msgSend_606( + return __objc_msgSend_692( obj, sel, transform, @@ -16689,36 +19094,36 @@ class AVFAudio { ); } - late final __objc_msgSend_606Ptr = _lookup< + late final __objc_msgSend_692Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - NSStringTransform, + ffi.Pointer, ffi.Bool, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - NSStringTransform, bool, NSRange, NSRangePointer)>(); + ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - ffi.Pointer _objc_msgSend_607( + ffi.Pointer _objc_msgSend_693( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_607( + return __objc_msgSend_693( obj, sel, capacity, ); } - late final __objc_msgSend_607Ptr = _lookup< + late final __objc_msgSend_693Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16727,14 +19132,14 @@ class AVFAudio { late final _sel_object1 = _registerName1("object"); late final _sel_initWithName_object_userInfo_1 = _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_608( + instancetype _objc_msgSend_694( ffi.Pointer obj, ffi.Pointer sel, - NSNotificationName name, + ffi.Pointer name, ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_608( + return __objc_msgSend_694( obj, sel, name, @@ -16743,19 +19148,19 @@ class AVFAudio { ); } - late final __objc_msgSend_608Ptr = _lookup< + late final __objc_msgSend_694Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSNotificationName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< + late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSNotificationName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16765,21 +19170,21 @@ class AVFAudio { _registerName1("notificationWithName:object:userInfo:"); late final _class_NSBundle1 = _getClass1("NSBundle"); late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_609( + ffi.Pointer _objc_msgSend_695( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_609( + return __objc_msgSend_695( obj, sel, ); } - late final __objc_msgSend_609Ptr = _lookup< + late final __objc_msgSend_695Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< + late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16788,45 +19193,45 @@ class AVFAudio { late final _sel_bundleWithURL_1 = _registerName1("bundleWithURL:"); late final _sel_initWithURL_1 = _registerName1("initWithURL:"); late final _sel_bundleForClass_1 = _registerName1("bundleForClass:"); - ffi.Pointer _objc_msgSend_610( + ffi.Pointer _objc_msgSend_696( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_610( + return __objc_msgSend_696( obj, sel, aClass, ); } - late final __objc_msgSend_610Ptr = _lookup< + late final __objc_msgSend_696Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< + late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_bundleWithIdentifier_1 = _registerName1("bundleWithIdentifier:"); - ffi.Pointer _objc_msgSend_611( + ffi.Pointer _objc_msgSend_697( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_611( + return __objc_msgSend_697( obj, sel, identifier, ); } - late final __objc_msgSend_611Ptr = _lookup< + late final __objc_msgSend_697Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< + late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16862,7 +19267,7 @@ class AVFAudio { late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_612( + ffi.Pointer _objc_msgSend_698( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -16870,7 +19275,7 @@ class AVFAudio { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_612( + return __objc_msgSend_698( obj, sel, name, @@ -16880,7 +19285,7 @@ class AVFAudio { ); } - late final __objc_msgSend_612Ptr = _lookup< + late final __objc_msgSend_698Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16889,7 +19294,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< + late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16901,14 +19306,14 @@ class AVFAudio { late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_613( + ffi.Pointer _objc_msgSend_699( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_613( + return __objc_msgSend_699( obj, sel, ext, @@ -16917,7 +19322,7 @@ class AVFAudio { ); } - late final __objc_msgSend_613Ptr = _lookup< + late final __objc_msgSend_699Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16925,7 +19330,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< + late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16935,13 +19340,13 @@ class AVFAudio { late final _sel_URLForResource_withExtension_1 = _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_614( + ffi.Pointer _objc_msgSend_700( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ) { - return __objc_msgSend_614( + return __objc_msgSend_700( obj, sel, name, @@ -16949,14 +19354,14 @@ class AVFAudio { ); } - late final __objc_msgSend_614Ptr = _lookup< + late final __objc_msgSend_700Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< + late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16965,14 +19370,14 @@ class AVFAudio { late final _sel_URLForResource_withExtension_subdirectory_1 = _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_615( + ffi.Pointer _objc_msgSend_701( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_615( + return __objc_msgSend_701( obj, sel, name, @@ -16981,7 +19386,7 @@ class AVFAudio { ); } - late final __objc_msgSend_615Ptr = _lookup< + late final __objc_msgSend_701Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16989,7 +19394,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< + late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16999,7 +19404,7 @@ class AVFAudio { late final _sel_URLForResource_withExtension_subdirectory_localization_1 = _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_616( + ffi.Pointer _objc_msgSend_702( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -17007,7 +19412,7 @@ class AVFAudio { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_616( + return __objc_msgSend_702( obj, sel, name, @@ -17017,7 +19422,7 @@ class AVFAudio { ); } - late final __objc_msgSend_616Ptr = _lookup< + late final __objc_msgSend_702Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17026,7 +19431,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< + late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17037,13 +19442,13 @@ class AVFAudio { late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1("URLsForResourcesWithExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_617( + ffi.Pointer _objc_msgSend_703( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_617( + return __objc_msgSend_703( obj, sel, ext, @@ -17051,14 +19456,14 @@ class AVFAudio { ); } - late final __objc_msgSend_617Ptr = _lookup< + late final __objc_msgSend_703Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< + late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17068,14 +19473,14 @@ class AVFAudio { late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_618( + ffi.Pointer _objc_msgSend_704( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_618( + return __objc_msgSend_704( obj, sel, ext, @@ -17084,7 +19489,7 @@ class AVFAudio { ); } - late final __objc_msgSend_618Ptr = _lookup< + late final __objc_msgSend_704Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17092,7 +19497,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17102,14 +19507,14 @@ class AVFAudio { late final _sel_pathForResource_ofType_inDirectory_1 = _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_619( + ffi.Pointer _objc_msgSend_705( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer bundlePath, ) { - return __objc_msgSend_619( + return __objc_msgSend_705( obj, sel, name, @@ -17118,7 +19523,7 @@ class AVFAudio { ); } - late final __objc_msgSend_619Ptr = _lookup< + late final __objc_msgSend_705Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17126,7 +19531,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< + late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17136,11 +19541,67 @@ class AVFAudio { late final _sel_pathsForResourcesOfType_inDirectory_1 = _registerName1("pathsForResourcesOfType:inDirectory:"); + ffi.Pointer _objc_msgSend_706( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer bundlePath, + ) { + return __objc_msgSend_706( + obj, + sel, + ext, + bundlePath, + ); + } + + late final __objc_msgSend_706Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_pathForResource_ofType_1 = _registerName1("pathForResource:ofType:"); + ffi.Pointer _objc_msgSend_707( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ) { + return __objc_msgSend_707( + obj, + sel, + name, + ext, + ); + } + + late final __objc_msgSend_707Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_620( + ffi.Pointer _objc_msgSend_708( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -17148,7 +19609,7 @@ class AVFAudio { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_620( + return __objc_msgSend_708( obj, sel, name, @@ -17158,7 +19619,7 @@ class AVFAudio { ); } - late final __objc_msgSend_620Ptr = _lookup< + late final __objc_msgSend_708Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17167,7 +19628,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< + late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17178,18 +19639,82 @@ class AVFAudio { late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); + ffi.Pointer _objc_msgSend_709( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, + ) { + return __objc_msgSend_709( + obj, + sel, + ext, + subpath, + localizationName, + ); + } + + late final __objc_msgSend_709Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_localizedStringForKey_value_table_1 = _registerName1("localizedStringForKey:value:table:"); + ffi.Pointer _objc_msgSend_710( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer tableName, + ) { + return __objc_msgSend_710( + obj, + sel, + key, + value, + tableName, + ); + } + + late final __objc_msgSend_710Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); late final _sel_attributesAtIndex_effectiveRange_1 = _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_621( + ffi.Pointer _objc_msgSend_711( ffi.Pointer obj, ffi.Pointer sel, int location, - NSRangePointer range, + ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_621( + return __objc_msgSend_711( obj, sel, location, @@ -17197,27 +19722,27 @@ class AVFAudio { ); } - late final __objc_msgSend_621Ptr = _lookup< + late final __objc_msgSend_711Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, NSRangePointer)>(); + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_attribute_atIndex_effectiveRange_1 = _registerName1("attribute:atIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_622( + ffi.Pointer _objc_msgSend_712( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey attrName, + ffi.Pointer attrName, int location, - NSRangePointer range, + ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_622( + return __objc_msgSend_712( obj, sel, attrName, @@ -17226,50 +19751,54 @@ class AVFAudio { ); } - late final __objc_msgSend_622Ptr = _lookup< + late final __objc_msgSend_712Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSAttributedStringKey, int, NSRangePointer)>(); + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_NSRange>)>(); late final _sel_attributedSubstringFromRange_1 = _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_623( + ffi.Pointer _objc_msgSend_713( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_623( + return __objc_msgSend_713( obj, sel, range, ); } - late final __objc_msgSend_623Ptr = _lookup< + late final __objc_msgSend_713Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_624( + ffi.Pointer _objc_msgSend_714( ffi.Pointer obj, ffi.Pointer sel, int location, - NSRangePointer range, - NSRange rangeLimit, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, ) { - return __objc_msgSend_624( + return __objc_msgSend_714( obj, sel, location, @@ -17278,29 +19807,29 @@ class AVFAudio { ); } - late final __objc_msgSend_624Ptr = _lookup< + late final __objc_msgSend_714Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSRangePointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, NSRangePointer, NSRange)>(); + ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_625( + ffi.Pointer _objc_msgSend_715( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey attrName, + ffi.Pointer attrName, int location, - NSRangePointer range, - NSRange rangeLimit, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, ) { - return __objc_msgSend_625( + return __objc_msgSend_715( obj, sel, attrName, @@ -17310,80 +19839,105 @@ class AVFAudio { ); } - late final __objc_msgSend_625Ptr = _lookup< + late final __objc_msgSend_715Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, - NSUInteger, - NSRangePointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, + ffi.Pointer, int, - NSRangePointer, - NSRange)>(); + ffi.Pointer<_NSRange>, + _NSRange)>(); late final _sel_isEqualToAttributedString_1 = _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_626( + bool _objc_msgSend_716( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_626( + return __objc_msgSend_716( obj, sel, other, ); } - late final __objc_msgSend_626Ptr = _lookup< + late final __objc_msgSend_716Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< + late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithString_attributes_1 = _registerName1("initWithString:attributes:"); + instancetype _objc_msgSend_717( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + ffi.Pointer attrs, + ) { + return __objc_msgSend_717( + obj, + sel, + str, + attrs, + ); + } + + late final __objc_msgSend_717Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithAttributedString_1 = _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_627( + instancetype _objc_msgSend_718( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrStr, ) { - return __objc_msgSend_627( + return __objc_msgSend_718( obj, sel, attrStr, ); } - late final __objc_msgSend_627Ptr = _lookup< + late final __objc_msgSend_718Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< + late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_enumerateAttributesInRange_options_usingBlock_1 = _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_628( + void _objc_msgSend_719( ffi.Pointer obj, ffi.Pointer sel, - NSRange enumerationRange, + _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_628( + return __objc_msgSend_719( obj, sel, enumerationRange, @@ -17392,25 +19946,25 @@ class AVFAudio { ); } - late final __objc_msgSend_628Ptr = _lookup< + late final __objc_msgSend_719Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = _registerName1("enumerateAttribute:inRange:options:usingBlock:"); - void _objc_msgSend_629( + void _objc_msgSend_720( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey attrName, - NSRange enumerationRange, + ffi.Pointer attrName, + _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_629( + return __objc_msgSend_720( obj, sel, attrName, @@ -17420,18 +19974,18 @@ class AVFAudio { ); } - late final __objc_msgSend_629Ptr = _lookup< + late final __objc_msgSend_720Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, - NSRange, + ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< + late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSAttributedStringMarkdownParsingOptions1 = _getClass1("NSAttributedStringMarkdownParsingOptions"); @@ -17440,87 +19994,91 @@ class AVFAudio { late final _sel_setAllowsExtendedAttributes_1 = _registerName1("setAllowsExtendedAttributes:"); late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_630( + int _objc_msgSend_721( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_630( + return __objc_msgSend_721( obj, sel, ); } - late final __objc_msgSend_630Ptr = _lookup< + late final __objc_msgSend_721Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< + late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setInterpretedSyntax_1 = _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_631( + void _objc_msgSend_722( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_631( + return __objc_msgSend_722( obj, sel, value, ); } - late final __objc_msgSend_631Ptr = _lookup< + late final __objc_msgSend_722Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< + late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_632( + int _objc_msgSend_723( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_632( + return __objc_msgSend_723( obj, sel, ); } - late final __objc_msgSend_632Ptr = _lookup< + late final __objc_msgSend_723Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< + late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_633( + void _objc_msgSend_724( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_633( + return __objc_msgSend_724( obj, sel, value, ); } - late final __objc_msgSend_633Ptr = _lookup< + late final __objc_msgSend_724Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< + late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); + late final _sel_appliesSourcePositionAttributes1 = + _registerName1("appliesSourcePositionAttributes"); + late final _sel_setAppliesSourcePositionAttributes_1 = + _registerName1("setAppliesSourcePositionAttributes:"); late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = _registerName1( "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_634( + instancetype _objc_msgSend_725( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownFile, @@ -17528,7 +20086,7 @@ class AVFAudio { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_634( + return __objc_msgSend_725( obj, sel, markdownFile, @@ -17538,7 +20096,7 @@ class AVFAudio { ); } - late final __objc_msgSend_634Ptr = _lookup< + late final __objc_msgSend_725Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17547,7 +20105,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17558,7 +20116,7 @@ class AVFAudio { late final _sel_initWithMarkdown_options_baseURL_error_1 = _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_635( + instancetype _objc_msgSend_726( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdown, @@ -17566,7 +20124,7 @@ class AVFAudio { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_635( + return __objc_msgSend_726( obj, sel, markdown, @@ -17576,7 +20134,7 @@ class AVFAudio { ); } - late final __objc_msgSend_635Ptr = _lookup< + late final __objc_msgSend_726Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17585,7 +20143,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< + late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17596,7 +20154,7 @@ class AVFAudio { late final _sel_initWithMarkdownString_options_baseURL_error_1 = _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_636( + instancetype _objc_msgSend_727( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownString, @@ -17604,7 +20162,7 @@ class AVFAudio { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_636( + return __objc_msgSend_727( obj, sel, markdownString, @@ -17614,7 +20172,7 @@ class AVFAudio { ); } - late final __objc_msgSend_636Ptr = _lookup< + late final __objc_msgSend_727Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17623,7 +20181,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17634,14 +20192,14 @@ class AVFAudio { late final _sel_initWithFormat_options_locale_1 = _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_637( + instancetype _objc_msgSend_728( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, ) { - return __objc_msgSend_637( + return __objc_msgSend_728( obj, sel, format, @@ -17650,7 +20208,7 @@ class AVFAudio { ); } - late final __objc_msgSend_637Ptr = _lookup< + late final __objc_msgSend_728Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17658,13 +20216,13 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< + late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithFormat_options_locale_arguments_1 = _registerName1("initWithFormat:options:locale:arguments:"); - instancetype _objc_msgSend_638( + instancetype _objc_msgSend_729( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -17672,7 +20230,7 @@ class AVFAudio { ffi.Pointer locale, ffi.Pointer<__va_list_tag> arguments, ) { - return __objc_msgSend_638( + return __objc_msgSend_729( obj, sel, format, @@ -17682,7 +20240,7 @@ class AVFAudio { ); } - late final __objc_msgSend_638Ptr = _lookup< + late final __objc_msgSend_729Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17691,7 +20249,7 @@ class AVFAudio { ffi.Int32, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< + late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17704,13 +20262,13 @@ class AVFAudio { _registerName1("localizedAttributedStringWithFormat:"); late final _sel_localizedAttributedStringWithFormat_options_1 = _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_639( + instancetype _objc_msgSend_730( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ) { - return __objc_msgSend_639( + return __objc_msgSend_730( obj, sel, format, @@ -17718,44 +20276,181 @@ class AVFAudio { ); } - late final __objc_msgSend_639Ptr = _lookup< + late final __objc_msgSend_730Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_initWithFormat_options_locale_context_1 = + _registerName1("initWithFormat:options:locale:context:"); + instancetype _objc_msgSend_731( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer context, + ) { + return __objc_msgSend_731( + obj, + sel, + format, + options, + locale, + context, + ); + } + + late final __objc_msgSend_731Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithFormat_options_locale_context_arguments_1 = + _registerName1("initWithFormat:options:locale:context:arguments:"); + instancetype _objc_msgSend_732( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer context, + ffi.Pointer<__va_list_tag> arguments, + ) { + return __objc_msgSend_732( + obj, + sel, + format, + options, + locale, + context, + arguments, + ); + } + + late final __objc_msgSend_732Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _sel_localizedAttributedStringWithFormat_context_1 = + _registerName1("localizedAttributedStringWithFormat:context:"); + instancetype _objc_msgSend_733( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer context, + ) { + return __objc_msgSend_733( + obj, + sel, + format, + context, + ); + } + + late final __objc_msgSend_733Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_localizedAttributedStringWithFormat_options_context_1 = + _registerName1("localizedAttributedStringWithFormat:options:context:"); + instancetype _objc_msgSend_734( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer context, + ) { + return __objc_msgSend_734( + obj, + sel, + format, + options, + context, + ); + } + + late final __objc_msgSend_734Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + late final _sel_attributedStringByInflectingString1 = _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_640( + ffi.Pointer _objc_msgSend_735( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_640( + return __objc_msgSend_735( obj, sel, ); } - late final __objc_msgSend_640Ptr = _lookup< + late final __objc_msgSend_735Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< + late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedAttributedStringForKey_value_table_1 = _registerName1("localizedAttributedStringForKey:value:table:"); - ffi.Pointer _objc_msgSend_641( + ffi.Pointer _objc_msgSend_736( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ffi.Pointer tableName, ) { - return __objc_msgSend_641( + return __objc_msgSend_736( obj, sel, key, @@ -17764,7 +20459,7 @@ class AVFAudio { ); } - late final __objc_msgSend_641Ptr = _lookup< + late final __objc_msgSend_736Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17772,7 +20467,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< + late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17797,13 +20492,13 @@ class AVFAudio { _registerName1("preferredLocalizationsFromArray:"); late final _sel_preferredLocalizationsFromArray_forPreferences_1 = _registerName1("preferredLocalizationsFromArray:forPreferences:"); - ffi.Pointer _objc_msgSend_642( + ffi.Pointer _objc_msgSend_737( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localizationsArray, ffi.Pointer preferencesArray, ) { - return __objc_msgSend_642( + return __objc_msgSend_737( obj, sel, localizationsArray, @@ -17811,14 +20506,14 @@ class AVFAudio { ); } - late final __objc_msgSend_642Ptr = _lookup< + late final __objc_msgSend_737Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< + late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17829,13 +20524,13 @@ class AVFAudio { _registerName1("executableArchitectures"); late final _sel_setPreservationPriority_forTags_1 = _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_643( + void _objc_msgSend_738( ffi.Pointer obj, ffi.Pointer sel, double priority, ffi.Pointer tags, ) { - return __objc_msgSend_643( + return __objc_msgSend_738( obj, sel, priority, @@ -17843,11 +20538,11 @@ class AVFAudio { ); } - late final __objc_msgSend_643Ptr = _lookup< + late final __objc_msgSend_738Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< + late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); @@ -17857,13 +20552,13 @@ class AVFAudio { _getClass1("NSMutableAttributedString"); late final _sel_setAttributes_range_1 = _registerName1("setAttributes:range:"); - void _objc_msgSend_644( + void _objc_msgSend_739( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrs, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_644( + return __objc_msgSend_739( obj, sel, attrs, @@ -17871,43 +20566,43 @@ class AVFAudio { ); } - late final __objc_msgSend_644Ptr = _lookup< + late final __objc_msgSend_739Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_645( + ffi.Pointer _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_645( + return __objc_msgSend_740( obj, sel, ); } - late final __objc_msgSend_645Ptr = _lookup< + late final __objc_msgSend_740Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< + late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addAttribute_value_range_1 = _registerName1("addAttribute:value:range:"); - void _objc_msgSend_646( + void _objc_msgSend_741( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey name, + ffi.Pointer name, ffi.Pointer value, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_646( + return __objc_msgSend_741( obj, sel, name, @@ -17916,53 +20611,75 @@ class AVFAudio { ); } - late final __objc_msgSend_646Ptr = _lookup< + late final __objc_msgSend_741Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_addAttributes_range_1 = _registerName1("addAttributes:range:"); - late final _sel_removeAttribute_range_1 = - _registerName1("removeAttribute:range:"); - void _objc_msgSend_647( + void _objc_msgSend_742( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey name, - NSRange range, + ffi.Pointer attrs, + _NSRange range, ) { - return __objc_msgSend_647( + return __objc_msgSend_742( obj, sel, - name, + attrs, range, ); } - late final __objc_msgSend_647Ptr = _lookup< + late final __objc_msgSend_742Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, NSRange)>(); + ffi.Pointer, _NSRange)>(); + + late final _sel_removeAttribute_range_1 = + _registerName1("removeAttribute:range:"); + void _objc_msgSend_743( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + _NSRange range, + ) { + return __objc_msgSend_743( + obj, + sel, + name, + range, + ); + } + + late final __objc_msgSend_743Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); late final _sel_replaceCharactersInRange_withAttributedString_1 = _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_648( + void _objc_msgSend_744( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer attrString, ) { - return __objc_msgSend_648( + return __objc_msgSend_744( obj, sel, range, @@ -17970,23 +20687,23 @@ class AVFAudio { ); } - late final __objc_msgSend_648Ptr = _lookup< + late final __objc_msgSend_744Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertAttributedString_atIndex_1 = _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_649( + void _objc_msgSend_745( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, int loc, ) { - return __objc_msgSend_649( + return __objc_msgSend_745( obj, sel, attrString, @@ -17994,33 +20711,33 @@ class AVFAudio { ); } - late final __objc_msgSend_649Ptr = _lookup< + late final __objc_msgSend_745Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendAttributedString_1 = _registerName1("appendAttributedString:"); - void _objc_msgSend_650( + void _objc_msgSend_746( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, ) { - return __objc_msgSend_650( + return __objc_msgSend_746( obj, sel, attrString, ); } - late final __objc_msgSend_650Ptr = _lookup< + late final __objc_msgSend_746Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< + late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18034,15 +20751,35 @@ class AVFAudio { late final _class_NSFormatter1 = _getClass1("NSFormatter"); late final _sel_stringForObjectValue_1 = _registerName1("stringForObjectValue:"); + ffi.Pointer _objc_msgSend_747( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ) { + return __objc_msgSend_747( + obj, + sel, + obj1, + ); + } + + late final __objc_msgSend_747Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_651( + ffi.Pointer _objc_msgSend_748( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, ffi.Pointer attrs, ) { - return __objc_msgSend_651( + return __objc_msgSend_748( obj, sel, obj1, @@ -18050,14 +20787,14 @@ class AVFAudio { ); } - late final __objc_msgSend_651Ptr = _lookup< + late final __objc_msgSend_748Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18068,14 +20805,14 @@ class AVFAudio { _registerName1("editingStringForObjectValue:"); late final _sel_getObjectValue_forString_errorDescription_1 = _registerName1("getObjectValue:forString:errorDescription:"); - bool _objc_msgSend_652( + bool _objc_msgSend_749( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, ffi.Pointer> error, ) { - return __objc_msgSend_652( + return __objc_msgSend_749( obj, sel, obj1, @@ -18084,7 +20821,7 @@ class AVFAudio { ); } - late final __objc_msgSend_652Ptr = _lookup< + late final __objc_msgSend_749Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18092,7 +20829,7 @@ class AVFAudio { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< + late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18102,14 +20839,14 @@ class AVFAudio { late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = _registerName1("isPartialStringValid:newEditingString:errorDescription:"); - bool _objc_msgSend_653( + bool _objc_msgSend_750( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer partialString, ffi.Pointer> newString, ffi.Pointer> error, ) { - return __objc_msgSend_653( + return __objc_msgSend_750( obj, sel, partialString, @@ -18118,7 +20855,7 @@ class AVFAudio { ); } - late final __objc_msgSend_653Ptr = _lookup< + late final __objc_msgSend_750Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18126,7 +20863,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< + late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18137,16 +20874,16 @@ class AVFAudio { late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = _registerName1( "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_654( + bool _objc_msgSend_751( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> partialStringPtr, - NSRangePointer proposedSelRangePtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, ffi.Pointer origString, - NSRange origSelRange, + _NSRange origSelRange, ffi.Pointer> error, ) { - return __objc_msgSend_654( + return __objc_msgSend_751( obj, sel, partialStringPtr, @@ -18157,76 +20894,76 @@ class AVFAudio { ); } - late final __objc_msgSend_654Ptr = _lookup< + late final __objc_msgSend_751Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSRangePointer, + ffi.Pointer<_NSRange>, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< + late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSRangePointer, + ffi.Pointer<_NSRange>, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer>)>(); late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_655( + int _objc_msgSend_752( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_655( + return __objc_msgSend_752( obj, sel, ); } - late final __objc_msgSend_655Ptr = _lookup< + late final __objc_msgSend_752Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< + late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFormattingContext_1 = _registerName1("setFormattingContext:"); - void _objc_msgSend_656( + void _objc_msgSend_753( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_656( + return __objc_msgSend_753( obj, sel, value, ); } - late final __objc_msgSend_656Ptr = _lookup< + late final __objc_msgSend_753Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getObjectValue_forString_range_error_1 = _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_657( + bool _objc_msgSend_754( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, - ffi.Pointer rangep, + ffi.Pointer<_NSRange> rangep, ffi.Pointer> error, ) { - return __objc_msgSend_657( + return __objc_msgSend_754( obj, sel, obj1, @@ -18236,36 +20973,56 @@ class AVFAudio { ); } - late final __objc_msgSend_657Ptr = _lookup< + late final __objc_msgSend_754Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<_NSRange>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<_NSRange>, ffi.Pointer>)>(); late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); + ffi.Pointer _objc_msgSend_755( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + ) { + return __objc_msgSend_755( + obj, + sel, + date, + ); + } + + late final __objc_msgSend_755Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_dateFromString_1 = _registerName1("dateFromString:"); late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); - ffi.Pointer _objc_msgSend_658( + ffi.Pointer _objc_msgSend_756( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, int dstyle, int tstyle, ) { - return __objc_msgSend_658( + return __objc_msgSend_756( obj, sel, date, @@ -18274,7 +21031,7 @@ class AVFAudio { ); } - late final __objc_msgSend_658Ptr = _lookup< + late final __objc_msgSend_756Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18282,20 +21039,20 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< + late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_dateFormatFromTemplate_options_locale_1 = _registerName1("dateFormatFromTemplate:options:locale:"); - ffi.Pointer _objc_msgSend_659( + ffi.Pointer _objc_msgSend_757( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tmplate, int opts, ffi.Pointer locale, ) { - return __objc_msgSend_659( + return __objc_msgSend_757( obj, sel, tmplate, @@ -18304,15 +21061,15 @@ class AVFAudio { ); } - late final __objc_msgSend_659Ptr = _lookup< + late final __objc_msgSend_757Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< + late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18322,42 +21079,42 @@ class AVFAudio { late final _sel_defaultFormatterBehavior1 = _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_660( + int _objc_msgSend_758( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_660( + return __objc_msgSend_758( obj, sel, ); } - late final __objc_msgSend_660Ptr = _lookup< + late final __objc_msgSend_758Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< + late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefaultFormatterBehavior_1 = _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_661( + void _objc_msgSend_759( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_661( + return __objc_msgSend_759( obj, sel, value, ); } - late final __objc_msgSend_661Ptr = _lookup< + late final __objc_msgSend_759Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< + late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLocalizedDateFormatFromTemplate_1 = @@ -18365,64 +21122,64 @@ class AVFAudio { late final _sel_dateFormat1 = _registerName1("dateFormat"); late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_662( + int _objc_msgSend_760( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_662( + return __objc_msgSend_760( obj, sel, ); } - late final __objc_msgSend_662Ptr = _lookup< + late final __objc_msgSend_760Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< + late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_663( + void _objc_msgSend_761( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_663( + return __objc_msgSend_761( obj, sel, value, ); } - late final __objc_msgSend_663Ptr = _lookup< + late final __objc_msgSend_761Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< + late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_timeStyle1 = _registerName1("timeStyle"); late final _sel_setTimeStyle_1 = _registerName1("setTimeStyle:"); late final _sel_locale1 = _registerName1("locale"); late final _sel_setLocale_1 = _registerName1("setLocale:"); - void _objc_msgSend_664( + void _objc_msgSend_762( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_664( + return __objc_msgSend_762( obj, sel, value, ); } - late final __objc_msgSend_664Ptr = _lookup< + late final __objc_msgSend_762Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< + late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18435,21 +21192,21 @@ class AVFAudio { _registerName1("setFormatterBehavior:"); late final _class_NSCalendar1 = _getClass1("NSCalendar"); late final _sel_currentCalendar1 = _registerName1("currentCalendar"); - ffi.Pointer _objc_msgSend_665( + ffi.Pointer _objc_msgSend_763( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_665( + return __objc_msgSend_763( obj, sel, ); } - late final __objc_msgSend_665Ptr = _lookup< + late final __objc_msgSend_763Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< + late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -18457,28 +21214,66 @@ class AVFAudio { _registerName1("autoupdatingCurrentCalendar"); late final _sel_calendarWithIdentifier_1 = _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_666( + ffi.Pointer _objc_msgSend_764( ffi.Pointer obj, ffi.Pointer sel, - NSCalendarIdentifier calendarIdentifierConstant, + ffi.Pointer calendarIdentifierConstant, ) { - return __objc_msgSend_666( + return __objc_msgSend_764( obj, sel, calendarIdentifierConstant, ); } - late final __objc_msgSend_666Ptr = _lookup< + late final __objc_msgSend_764Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSCalendarIdentifier)>>('objc_msgSend'); - late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSCalendarIdentifier)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCalendarIdentifier_1 = _registerName1("initWithCalendarIdentifier:"); + ffi.Pointer _objc_msgSend_765( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_765( + obj, + sel, + ); + } + + late final __objc_msgSend_765Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_766( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_766( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_766Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_firstWeekday1 = _registerName1("firstWeekday"); late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); late final _sel_minimumDaysInFirstWeek1 = @@ -18516,36 +21311,41 @@ class AVFAudio { late final _sel_AMSymbol1 = _registerName1("AMSymbol"); late final _sel_PMSymbol1 = _registerName1("PMSymbol"); late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); - NSRange _objc_msgSend_667( + void _objc_msgSend_767( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_667( + return __objc_msgSend_767( + stret, obj, sel, unit, ); } - late final __objc_msgSend_667Ptr = _lookup< + late final __objc_msgSend_767Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); late final _sel_rangeOfUnit_inUnit_forDate_1 = _registerName1("rangeOfUnit:inUnit:forDate:"); - NSRange _objc_msgSend_668( + void _objc_msgSend_768( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_668( + return __objc_msgSend_768( + stret, obj, sel, smaller, @@ -18554,24 +21354,29 @@ class AVFAudio { ); } - late final __objc_msgSend_668Ptr = _lookup< + late final __objc_msgSend_768Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int, int, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_ordinalityOfUnit_inUnit_forDate_1 = _registerName1("ordinalityOfUnit:inUnit:forDate:"); - int _objc_msgSend_669( + int _objc_msgSend_769( ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_669( + return __objc_msgSend_769( obj, sel, smaller, @@ -18580,25 +21385,29 @@ class AVFAudio { ); } - late final __objc_msgSend_669Ptr = _lookup< + late final __objc_msgSend_769Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_rangeOfUnit_startDate_interval_forDate_1 = _registerName1("rangeOfUnit:startDate:interval:forDate:"); - bool _objc_msgSend_670( + bool _objc_msgSend_770( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_670( + return __objc_msgSend_770( obj, sel, unit, @@ -18608,44 +21417,100 @@ class AVFAudio { ); } - late final __objc_msgSend_670Ptr = _lookup< + late final __objc_msgSend_770Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, int, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); late final _sel_calendar1 = _registerName1("calendar"); + ffi.Pointer _objc_msgSend_771( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_771( + obj, + sel, + ); + } + + late final __objc_msgSend_771Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_671( + void _objc_msgSend_772( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_671( + return __objc_msgSend_772( obj, sel, value, ); } - late final __objc_msgSend_671Ptr = _lookup< + late final __objc_msgSend_772Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_773( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_773( + obj, + sel, + ); + } + + late final __objc_msgSend_773Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_774( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_774( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_774Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18684,13 +21549,13 @@ class AVFAudio { late final _sel_setWeek_1 = _registerName1("setWeek:"); late final _sel_setValue_forComponent_1 = _registerName1("setValue:forComponent:"); - void _objc_msgSend_672( + void _objc_msgSend_775( ffi.Pointer obj, ffi.Pointer sel, int value, int unit, ) { - return __objc_msgSend_672( + return __objc_msgSend_775( obj, sel, value, @@ -18698,86 +21563,86 @@ class AVFAudio { ); } - late final __objc_msgSend_672Ptr = _lookup< + late final __objc_msgSend_775Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + ffi.Long, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); - int _objc_msgSend_673( + int _objc_msgSend_776( ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_673( + return __objc_msgSend_776( obj, sel, unit, ); } - late final __objc_msgSend_673Ptr = _lookup< + late final __objc_msgSend_776Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< + late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isValidDate1 = _registerName1("isValidDate"); late final _sel_isValidDateInCalendar_1 = _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_674( + bool _objc_msgSend_777( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendar, ) { - return __objc_msgSend_674( + return __objc_msgSend_777( obj, sel, calendar, ); } - late final __objc_msgSend_674Ptr = _lookup< + late final __objc_msgSend_777Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< + late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_675( + ffi.Pointer _objc_msgSend_778( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ) { - return __objc_msgSend_675( + return __objc_msgSend_778( obj, sel, comps, ); } - late final __objc_msgSend_675Ptr = _lookup< + late final __objc_msgSend_778Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< + late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_components_fromDate_1 = _registerName1("components:fromDate:"); - ffi.Pointer _objc_msgSend_676( + ffi.Pointer _objc_msgSend_779( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, ffi.Pointer date, ) { - return __objc_msgSend_676( + return __objc_msgSend_779( obj, sel, unitFlags, @@ -18785,27 +21650,27 @@ class AVFAudio { ); } - late final __objc_msgSend_676Ptr = _lookup< + late final __objc_msgSend_779Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< + late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateByAddingComponents_toDate_options_1 = _registerName1("dateByAddingComponents:toDate:options:"); - ffi.Pointer _objc_msgSend_677( + ffi.Pointer _objc_msgSend_780( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ffi.Pointer date, int opts, ) { - return __objc_msgSend_677( + return __objc_msgSend_780( obj, sel, comps, @@ -18814,7 +21679,7 @@ class AVFAudio { ); } - late final __objc_msgSend_677Ptr = _lookup< + late final __objc_msgSend_780Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18822,7 +21687,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18832,7 +21697,7 @@ class AVFAudio { late final _sel_components_fromDate_toDate_options_1 = _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_678( + ffi.Pointer _objc_msgSend_781( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -18840,7 +21705,7 @@ class AVFAudio { ffi.Pointer resultDate, int opts, ) { - return __objc_msgSend_678( + return __objc_msgSend_781( obj, sel, unitFlags, @@ -18850,7 +21715,7 @@ class AVFAudio { ); } - late final __objc_msgSend_678Ptr = _lookup< + late final __objc_msgSend_781Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18859,7 +21724,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< + late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18870,16 +21735,16 @@ class AVFAudio { late final _sel_getEra_year_month_day_fromDate_1 = _registerName1("getEra:year:month:day:fromDate:"); - void _objc_msgSend_679( + void _objc_msgSend_782( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, ffi.Pointer date, ) { - return __objc_msgSend_679( + return __objc_msgSend_782( obj, sel, eraValuePointer, @@ -18890,24 +21755,24 @@ class AVFAudio { ); } - late final __objc_msgSend_679Ptr = _lookup< + late final __objc_msgSend_782Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< + late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1 = @@ -18915,13 +21780,13 @@ class AVFAudio { late final _sel_getHour_minute_second_nanosecond_fromDate_1 = _registerName1("getHour:minute:second:nanosecond:fromDate:"); late final _sel_component_fromDate_1 = _registerName1("component:fromDate:"); - int _objc_msgSend_680( + int _objc_msgSend_783( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer date, ) { - return __objc_msgSend_680( + return __objc_msgSend_783( obj, sel, unit, @@ -18929,18 +21794,18 @@ class AVFAudio { ); } - late final __objc_msgSend_680Ptr = _lookup< + late final __objc_msgSend_783Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< + late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1 = _registerName1( "dateWithEra:year:month:day:hour:minute:second:nanosecond:"); - ffi.Pointer _objc_msgSend_681( + ffi.Pointer _objc_msgSend_784( ffi.Pointer obj, ffi.Pointer sel, int eraValue, @@ -18952,7 +21817,7 @@ class AVFAudio { int secondValue, int nanosecondValue, ) { - return __objc_msgSend_681( + return __objc_msgSend_784( obj, sel, eraValue, @@ -18966,20 +21831,20 @@ class AVFAudio { ); } - late final __objc_msgSend_681Ptr = _lookup< + late final __objc_msgSend_784Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int, int, int)>(); @@ -18989,13 +21854,13 @@ class AVFAudio { late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); late final _sel_componentsInTimeZone_fromDate_1 = _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_682( + ffi.Pointer _objc_msgSend_785( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timezone, ffi.Pointer date, ) { - return __objc_msgSend_682( + return __objc_msgSend_785( obj, sel, timezone, @@ -19003,14 +21868,14 @@ class AVFAudio { ); } - late final __objc_msgSend_682Ptr = _lookup< + late final __objc_msgSend_785Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< + late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19019,14 +21884,14 @@ class AVFAudio { late final _sel_compareDate_toDate_toUnitGranularity_1 = _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_683( + int _objc_msgSend_786( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_683( + return __objc_msgSend_786( obj, sel, date1, @@ -19035,7 +21900,7 @@ class AVFAudio { ); } - late final __objc_msgSend_683Ptr = _lookup< + late final __objc_msgSend_786Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -19043,20 +21908,20 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_equalToDate_toUnitGranularity_1 = _registerName1("isDate:equalToDate:toUnitGranularity:"); - bool _objc_msgSend_684( + bool _objc_msgSend_787( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_684( + return __objc_msgSend_787( obj, sel, date1, @@ -19065,7 +21930,7 @@ class AVFAudio { ); } - late final __objc_msgSend_684Ptr = _lookup< + late final __objc_msgSend_787Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19073,19 +21938,19 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_inSameDayAsDate_1 = _registerName1("isDate:inSameDayAsDate:"); - bool _objc_msgSend_685( + bool _objc_msgSend_788( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, ) { - return __objc_msgSend_685( + return __objc_msgSend_788( obj, sel, date1, @@ -19093,14 +21958,14 @@ class AVFAudio { ); } - late final __objc_msgSend_685Ptr = _lookup< + late final __objc_msgSend_788Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< + late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19110,14 +21975,14 @@ class AVFAudio { late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); - bool _objc_msgSend_686( + bool _objc_msgSend_789( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_686( + return __objc_msgSend_789( obj, sel, datep, @@ -19126,33 +21991,33 @@ class AVFAudio { ); } - late final __objc_msgSend_686Ptr = _lookup< + late final __objc_msgSend_789Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = _registerName1("nextWeekendStartDate:interval:options:afterDate:"); - bool _objc_msgSend_687( + bool _objc_msgSend_790( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, int options, ffi.Pointer date, ) { - return __objc_msgSend_687( + return __objc_msgSend_790( obj, sel, datep, @@ -19162,27 +22027,27 @@ class AVFAudio { ); } - late final __objc_msgSend_687Ptr = _lookup< + late final __objc_msgSend_790Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< + late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); late final _sel_components_fromDateComponents_toDateComponents_options_1 = _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_688( + ffi.Pointer _objc_msgSend_791( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -19190,7 +22055,7 @@ class AVFAudio { ffi.Pointer resultDateComp, int options, ) { - return __objc_msgSend_688( + return __objc_msgSend_791( obj, sel, unitFlags, @@ -19200,7 +22065,7 @@ class AVFAudio { ); } - late final __objc_msgSend_688Ptr = _lookup< + late final __objc_msgSend_791Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19209,7 +22074,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< + late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19220,7 +22085,7 @@ class AVFAudio { late final _sel_dateByAddingUnit_value_toDate_options_1 = _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_689( + ffi.Pointer _objc_msgSend_792( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -19228,7 +22093,7 @@ class AVFAudio { ffi.Pointer date, int options, ) { - return __objc_msgSend_689( + return __objc_msgSend_792( obj, sel, unit, @@ -19238,23 +22103,23 @@ class AVFAudio { ); } - late final __objc_msgSend_689Ptr = _lookup< + late final __objc_msgSend_792Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, - NSInteger, + ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int)>(); late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = _registerName1( "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); - void _objc_msgSend_690( + void _objc_msgSend_793( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, @@ -19262,7 +22127,7 @@ class AVFAudio { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_690( + return __objc_msgSend_793( obj, sel, start, @@ -19272,7 +22137,7 @@ class AVFAudio { ); } - late final __objc_msgSend_690Ptr = _lookup< + late final __objc_msgSend_793Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19281,7 +22146,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< + late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -19292,14 +22157,14 @@ class AVFAudio { late final _sel_nextDateAfterDate_matchingComponents_options_1 = _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_691( + ffi.Pointer _objc_msgSend_794( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer comps, int options, ) { - return __objc_msgSend_691( + return __objc_msgSend_794( obj, sel, date, @@ -19308,7 +22173,7 @@ class AVFAudio { ); } - late final __objc_msgSend_691Ptr = _lookup< + late final __objc_msgSend_794Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19316,7 +22181,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< + late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19326,7 +22191,7 @@ class AVFAudio { late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_692( + ffi.Pointer _objc_msgSend_795( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -19334,7 +22199,7 @@ class AVFAudio { int value, int options, ) { - return __objc_msgSend_692( + return __objc_msgSend_795( obj, sel, date, @@ -19344,22 +22209,22 @@ class AVFAudio { ); } - late final __objc_msgSend_692Ptr = _lookup< + late final __objc_msgSend_795Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSInteger, + ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< + late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int)>(); late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); - ffi.Pointer _objc_msgSend_693( + ffi.Pointer _objc_msgSend_796( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -19368,7 +22233,7 @@ class AVFAudio { int secondValue, int options, ) { - return __objc_msgSend_693( + return __objc_msgSend_796( obj, sel, date, @@ -19379,17 +22244,17 @@ class AVFAudio { ); } - late final __objc_msgSend_693Ptr = _lookup< + late final __objc_msgSend_796Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, + ffi.Long, + ffi.Long, + ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< + late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int, int)>(); @@ -19397,7 +22262,7 @@ class AVFAudio { _registerName1("dateBySettingUnit:value:ofDate:options:"); late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = _registerName1("dateBySettingHour:minute:second:ofDate:options:"); - ffi.Pointer _objc_msgSend_694( + ffi.Pointer _objc_msgSend_797( ffi.Pointer obj, ffi.Pointer sel, int h, @@ -19406,7 +22271,7 @@ class AVFAudio { ffi.Pointer date, int opts, ) { - return __objc_msgSend_694( + return __objc_msgSend_797( obj, sel, h, @@ -19417,29 +22282,29 @@ class AVFAudio { ); } - late final __objc_msgSend_694Ptr = _lookup< + late final __objc_msgSend_797Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, + ffi.Long, + ffi.Long, + ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< + late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, ffi.Pointer, int)>(); late final _sel_date_matchesComponents_1 = _registerName1("date:matchesComponents:"); - bool _objc_msgSend_695( + bool _objc_msgSend_798( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer components, ) { - return __objc_msgSend_695( + return __objc_msgSend_798( obj, sel, date, @@ -19447,42 +22312,82 @@ class AVFAudio { ); } - late final __objc_msgSend_695Ptr = _lookup< + late final __objc_msgSend_798Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< + late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + void _objc_msgSend_799( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_799( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_799Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_isLenient1 = _registerName1("isLenient"); late final _sel_setLenient_1 = _registerName1("setLenient:"); late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); late final _sel_setTwoDigitStartDate_1 = _registerName1("setTwoDigitStartDate:"); + void _objc_msgSend_800( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_800( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_800Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_defaultDate1 = _registerName1("defaultDate"); late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_696( + void _objc_msgSend_801( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_696( + return __objc_msgSend_801( obj, sel, value, ); } - late final __objc_msgSend_696Ptr = _lookup< + late final __objc_msgSend_801Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19531,56 +22436,56 @@ class AVFAudio { _registerName1("allowsNaturalLanguage"); late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_697( + ffi.Pointer _objc_msgSend_802( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_697( + return __objc_msgSend_802( obj, sel, number, ); } - late final __objc_msgSend_697Ptr = _lookup< + late final __objc_msgSend_802Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< + late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_numberFromString_1 = _registerName1("numberFromString:"); - ffi.Pointer _objc_msgSend_698( + ffi.Pointer _objc_msgSend_803( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_698( + return __objc_msgSend_803( obj, sel, string, ); } - late final __objc_msgSend_698Ptr = _lookup< + late final __objc_msgSend_803Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< + late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedStringFromNumber_numberStyle_1 = _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_699( + ffi.Pointer _objc_msgSend_804( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer num, int nstyle, ) { - return __objc_msgSend_699( + return __objc_msgSend_804( obj, sel, num, @@ -19588,112 +22493,112 @@ class AVFAudio { ); } - late final __objc_msgSend_699Ptr = _lookup< + late final __objc_msgSend_804Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< + late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); - int _objc_msgSend_700( + int _objc_msgSend_805( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_700( + return __objc_msgSend_805( obj, sel, ); } - late final __objc_msgSend_700Ptr = _lookup< + late final __objc_msgSend_805Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_701( + void _objc_msgSend_806( ffi.Pointer obj, ffi.Pointer sel, int behavior, ) { - return __objc_msgSend_701( + return __objc_msgSend_806( obj, sel, behavior, ); } - late final __objc_msgSend_701Ptr = _lookup< + late final __objc_msgSend_806Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< + late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_702( + int _objc_msgSend_807( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_702( + return __objc_msgSend_807( obj, sel, ); } - late final __objc_msgSend_702Ptr = _lookup< + late final __objc_msgSend_807Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< + late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); - void _objc_msgSend_703( + void _objc_msgSend_808( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_703( + return __objc_msgSend_808( obj, sel, value, ); } - late final __objc_msgSend_703Ptr = _lookup< + late final __objc_msgSend_808Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< + late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_generatesDecimalNumbers1 = _registerName1("generatesDecimalNumbers"); late final _sel_setGeneratesDecimalNumbers_1 = _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_704( + void _objc_msgSend_809( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_704( + return __objc_msgSend_809( obj, sel, value, ); } - late final __objc_msgSend_704Ptr = _lookup< + late final __objc_msgSend_809Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_negativeFormat1 = _registerName1("negativeFormat"); @@ -19793,110 +22698,128 @@ class AVFAudio { _registerName1("setSecondaryGroupingSize:"); late final _sel_multiplier1 = _registerName1("multiplier"); late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); - void _objc_msgSend_705( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_705( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_705Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - late final _sel_formatWidth1 = _registerName1("formatWidth"); late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); late final _sel_setPaddingCharacter_1 = _registerName1("setPaddingCharacter:"); late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_706( + int _objc_msgSend_810( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_706( + return __objc_msgSend_810( obj, sel, ); } - late final __objc_msgSend_706Ptr = _lookup< + late final __objc_msgSend_810Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_707( + void _objc_msgSend_811( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_707( + return __objc_msgSend_811( obj, sel, value, ); } - late final __objc_msgSend_707Ptr = _lookup< + late final __objc_msgSend_811Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_708( + int _objc_msgSend_812( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_708( + return __objc_msgSend_812( obj, sel, ); } - late final __objc_msgSend_708Ptr = _lookup< + late final __objc_msgSend_812Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< + late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); - void _objc_msgSend_709( + void _objc_msgSend_813( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_709( + return __objc_msgSend_813( obj, sel, value, ); } - late final __objc_msgSend_709Ptr = _lookup< + late final __objc_msgSend_813Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); + ffi.Pointer _objc_msgSend_814( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_814( + obj, + sel, + ); + } + + late final __objc_msgSend_814Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setRoundingIncrement_1 = _registerName1("setRoundingIncrement:"); + void _objc_msgSend_815( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_815( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_815Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_minimumIntegerDigits1 = _registerName1("minimumIntegerDigits"); late final _sel_setMinimumIntegerDigits_1 = @@ -19952,23 +22875,23 @@ class AVFAudio { _registerName1("attributedStringForZero"); late final _sel_setAttributedStringForZero_1 = _registerName1("setAttributedStringForZero:"); - void _objc_msgSend_710( + void _objc_msgSend_816( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_710( + return __objc_msgSend_816( obj, sel, value, ); } - late final __objc_msgSend_710Ptr = _lookup< + late final __objc_msgSend_816Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19984,28 +22907,28 @@ class AVFAudio { _getClass1("NSDecimalNumberHandler"); late final _sel_defaultDecimalNumberHandler1 = _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_711( + ffi.Pointer _objc_msgSend_817( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_711( + return __objc_msgSend_817( obj, sel, ); } - late final __objc_msgSend_711Ptr = _lookup< + late final __objc_msgSend_817Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = _registerName1( "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - instancetype _objc_msgSend_712( + instancetype _objc_msgSend_818( ffi.Pointer obj, ffi.Pointer sel, int roundingMode, @@ -20015,7 +22938,7 @@ class AVFAudio { bool underflow, bool divideByZero, ) { - return __objc_msgSend_712( + return __objc_msgSend_818( obj, sel, roundingMode, @@ -20027,7 +22950,7 @@ class AVFAudio { ); } - late final __objc_msgSend_712Ptr = _lookup< + late final __objc_msgSend_818Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -20038,7 +22961,7 @@ class AVFAudio { ffi.Bool, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, bool, bool, bool, bool)>(); @@ -20048,23 +22971,23 @@ class AVFAudio { late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); late final _sel_setRoundingBehavior_1 = _registerName1("setRoundingBehavior:"); - void _objc_msgSend_713( + void _objc_msgSend_819( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_713( + return __objc_msgSend_819( obj, sel, value, ); } - late final __objc_msgSend_713Ptr = _lookup< + late final __objc_msgSend_819Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< + late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20073,175 +22996,193 @@ class AVFAudio { late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); late final _sel_charactersToBeSkipped1 = _registerName1("charactersToBeSkipped"); + ffi.Pointer _objc_msgSend_820( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_820( + obj, + sel, + ); + } + + late final __objc_msgSend_820Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setCharactersToBeSkipped_1 = _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_714( + void _objc_msgSend_821( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_714( + return __objc_msgSend_821( obj, sel, value, ); } - late final __objc_msgSend_714Ptr = _lookup< + late final __objc_msgSend_821Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< + late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_caseSensitive1 = _registerName1("caseSensitive"); late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); late final _sel_scanInt_1 = _registerName1("scanInt:"); - bool _objc_msgSend_715( + bool _objc_msgSend_822( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_715( + return __objc_msgSend_822( obj, sel, result, ); } - late final __objc_msgSend_715Ptr = _lookup< + late final __objc_msgSend_822Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< + late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_716( + bool _objc_msgSend_823( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, + ffi.Pointer result, ) { - return __objc_msgSend_716( + return __objc_msgSend_823( obj, sel, result, ); } - late final __objc_msgSend_716Ptr = _lookup< + late final __objc_msgSend_823Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_717( + bool _objc_msgSend_824( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_717( + return __objc_msgSend_824( obj, sel, result, ); } - late final __objc_msgSend_717Ptr = _lookup< + late final __objc_msgSend_824Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanUnsignedLongLong_1 = _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_718( + bool _objc_msgSend_825( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_718( + return __objc_msgSend_825( obj, sel, result, ); } - late final __objc_msgSend_718Ptr = _lookup< + late final __objc_msgSend_825Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< + late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_719( + bool _objc_msgSend_826( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_719( + return __objc_msgSend_826( obj, sel, result, ); } - late final __objc_msgSend_719Ptr = _lookup< + late final __objc_msgSend_826Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_720( + bool _objc_msgSend_827( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_720( + return __objc_msgSend_827( obj, sel, result, ); } - late final __objc_msgSend_720Ptr = _lookup< + late final __objc_msgSend_827Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< + late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); - bool _objc_msgSend_721( + bool _objc_msgSend_828( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_721( + return __objc_msgSend_828( obj, sel, result, ); } - late final __objc_msgSend_721Ptr = _lookup< + late final __objc_msgSend_828Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< + late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20250,13 +23191,13 @@ class AVFAudio { late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); late final _sel_scanString_intoString_1 = _registerName1("scanString:intoString:"); - bool _objc_msgSend_722( + bool _objc_msgSend_829( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer> result, ) { - return __objc_msgSend_722( + return __objc_msgSend_829( obj, sel, string, @@ -20264,26 +23205,26 @@ class AVFAudio { ); } - late final __objc_msgSend_722Ptr = _lookup< + late final __objc_msgSend_829Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< + late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_scanCharactersFromSet_intoString_1 = _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_723( + bool _objc_msgSend_830( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ffi.Pointer> result, ) { - return __objc_msgSend_723( + return __objc_msgSend_830( obj, sel, set1, @@ -20291,14 +23232,14 @@ class AVFAudio { ); } - late final __objc_msgSend_723Ptr = _lookup< + late final __objc_msgSend_830Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< + late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -20311,37 +23252,37 @@ class AVFAudio { late final _sel_localizedScannerWithString_1 = _registerName1("localizedScannerWithString:"); late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_724( + bool _objc_msgSend_831( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dcm, ) { - return __objc_msgSend_724( + return __objc_msgSend_831( obj, sel, dcm, ); } - late final __objc_msgSend_724Ptr = _lookup< + late final __objc_msgSend_831Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSException1 = _getClass1("NSException"); late final _sel_exceptionWithName_reason_userInfo_1 = _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_725( + ffi.Pointer _objc_msgSend_832( ffi.Pointer obj, ffi.Pointer sel, - NSExceptionName name, + ffi.Pointer name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_725( + return __objc_msgSend_832( obj, sel, name, @@ -20350,37 +23291,69 @@ class AVFAudio { ); } - late final __objc_msgSend_725Ptr = _lookup< + late final __objc_msgSend_832Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< + late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithName_reason_userInfo_1 = _registerName1("initWithName:reason:userInfo:"); + instancetype _objc_msgSend_833( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aName, + ffi.Pointer aReason, + ffi.Pointer aUserInfo, + ) { + return __objc_msgSend_833( + obj, + sel, + aName, + aReason, + aUserInfo, + ); + } + + late final __objc_msgSend_833Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_reason1 = _registerName1("reason"); late final _sel_raise1 = _registerName1("raise"); late final _sel_raise_format_1 = _registerName1("raise:format:"); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_726( + void _objc_msgSend_834( ffi.Pointer obj, ffi.Pointer sel, - NSExceptionName name, + ffi.Pointer name, ffi.Pointer format, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_726( + return __objc_msgSend_834( obj, sel, name, @@ -20389,19 +23362,19 @@ class AVFAudio { ); } - late final __objc_msgSend_726Ptr = _lookup< + late final __objc_msgSend_834Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< + late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); @@ -20409,13 +23382,13 @@ class AVFAudio { late final _sel_availableData1 = _registerName1("availableData"); late final _sel_initWithFileDescriptor_closeOnDealloc_1 = _registerName1("initWithFileDescriptor:closeOnDealloc:"); - instancetype _objc_msgSend_727( + instancetype _objc_msgSend_835( ffi.Pointer obj, ffi.Pointer sel, int fd, bool closeopt, ) { - return __objc_msgSend_727( + return __objc_msgSend_835( obj, sel, fd, @@ -20423,47 +23396,47 @@ class AVFAudio { ); } - late final __objc_msgSend_727Ptr = _lookup< + late final __objc_msgSend_835Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< + late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_readDataToEndOfFileAndReturnError_1 = _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_728( + ffi.Pointer _objc_msgSend_836( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_728( + return __objc_msgSend_836( obj, sel, error, ); } - late final __objc_msgSend_728Ptr = _lookup< + late final __objc_msgSend_836Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< + late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_readDataUpToLength_error_1 = _registerName1("readDataUpToLength:error:"); - ffi.Pointer _objc_msgSend_729( + ffi.Pointer _objc_msgSend_837( ffi.Pointer obj, ffi.Pointer sel, int length, ffi.Pointer> error, ) { - return __objc_msgSend_729( + return __objc_msgSend_837( obj, sel, length, @@ -20471,25 +23444,25 @@ class AVFAudio { ); } - late final __objc_msgSend_729Ptr = _lookup< + late final __objc_msgSend_837Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_730( + bool _objc_msgSend_838( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer> error, ) { - return __objc_msgSend_730( + return __objc_msgSend_838( obj, sel, data, @@ -20497,25 +23470,25 @@ class AVFAudio { ); } - late final __objc_msgSend_730Ptr = _lookup< + late final __objc_msgSend_838Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< + late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_731( + bool _objc_msgSend_839( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer offsetInFile, ffi.Pointer> error, ) { - return __objc_msgSend_731( + return __objc_msgSend_839( obj, sel, offsetInFile, @@ -20523,14 +23496,14 @@ class AVFAudio { ); } - late final __objc_msgSend_731Ptr = _lookup< + late final __objc_msgSend_839Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20540,13 +23513,13 @@ class AVFAudio { late final _sel_seekToEndReturningOffset_error_1 = _registerName1("seekToEndReturningOffset:error:"); late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_732( + bool _objc_msgSend_840( ffi.Pointer obj, ffi.Pointer sel, int offset, ffi.Pointer> error, ) { - return __objc_msgSend_732( + return __objc_msgSend_840( obj, sel, offset, @@ -20554,14 +23527,14 @@ class AVFAudio { ); } - late final __objc_msgSend_732Ptr = _lookup< + late final __objc_msgSend_840Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -20573,21 +23546,21 @@ class AVFAudio { _registerName1("closeAndReturnError:"); late final _sel_fileHandleWithStandardInput1 = _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_733( + ffi.Pointer _objc_msgSend_841( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_733( + return __objc_msgSend_841( obj, sel, ); } - late final __objc_msgSend_733Ptr = _lookup< + late final __objc_msgSend_841Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -20605,13 +23578,13 @@ class AVFAudio { _registerName1("fileHandleForUpdatingAtPath:"); late final _sel_fileHandleForReadingFromURL_error_1 = _registerName1("fileHandleForReadingFromURL:error:"); - instancetype _objc_msgSend_734( + instancetype _objc_msgSend_842( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_734( + return __objc_msgSend_842( obj, sel, url, @@ -20619,14 +23592,14 @@ class AVFAudio { ); } - late final __objc_msgSend_734Ptr = _lookup< + late final __objc_msgSend_842Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -20636,6 +23609,26 @@ class AVFAudio { _registerName1("fileHandleForUpdatingURL:error:"); late final _sel_readInBackgroundAndNotifyForModes_1 = _registerName1("readInBackgroundAndNotifyForModes:"); + void _objc_msgSend_843( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer modes, + ) { + return __objc_msgSend_843( + obj, + sel, + modes, + ); + } + + late final __objc_msgSend_843Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_readInBackgroundAndNotify1 = _registerName1("readInBackgroundAndNotify"); late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = @@ -20651,43 +23644,43 @@ class AVFAudio { late final _sel_waitForDataInBackgroundAndNotify1 = _registerName1("waitForDataInBackgroundAndNotify"); late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_735( + ffi.Pointer<_ObjCBlock> _objc_msgSend_844( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_735( + return __objc_msgSend_844( obj, sel, ); } - late final __objc_msgSend_735Ptr = _lookup< + late final __objc_msgSend_844Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< + late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReadabilityHandler_1 = _registerName1("setReadabilityHandler:"); - void _objc_msgSend_736( + void _objc_msgSend_845( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_736( + return __objc_msgSend_845( obj, sel, value, ); } - late final __objc_msgSend_736Ptr = _lookup< + late final __objc_msgSend_845Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< + late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -20696,49 +23689,69 @@ class AVFAudio { _registerName1("setWriteabilityHandler:"); late final _sel_initWithFileDescriptor_1 = _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_737( + instancetype _objc_msgSend_846( ffi.Pointer obj, ffi.Pointer sel, int fd, ) { - return __objc_msgSend_737( + return __objc_msgSend_846( obj, sel, fd, ); } - late final __objc_msgSend_737Ptr = _lookup< + late final __objc_msgSend_846Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< + late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); + ffi.Pointer _objc_msgSend_847( + ffi.Pointer obj, + ffi.Pointer sel, + int length, + ) { + return __objc_msgSend_847( + obj, + sel, + length, + ); + } + + late final __objc_msgSend_847Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_offsetInFile1 = _registerName1("offsetInFile"); late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_738( + void _objc_msgSend_848( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_738( + return __objc_msgSend_848( obj, sel, offset, ); } - late final __objc_msgSend_738Ptr = _lookup< + late final __objc_msgSend_848Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< + late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_truncateFileAtOffset_1 = @@ -20748,68 +23761,88 @@ class AVFAudio { late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); late final _sel_sharedHTTPCookieStorage1 = _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_739( + ffi.Pointer _objc_msgSend_849( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_739( + return __objc_msgSend_849( obj, sel, ); } - late final __objc_msgSend_739Ptr = _lookup< + late final __objc_msgSend_849Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< + late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_740( + ffi.Pointer _objc_msgSend_850( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_740( + return __objc_msgSend_850( obj, sel, identifier, ); } - late final __objc_msgSend_740Ptr = _lookup< + late final __objc_msgSend_850Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< + late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_cookies1 = _registerName1("cookies"); late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); + instancetype _objc_msgSend_851( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer properties, + ) { + return __objc_msgSend_851( + obj, + sel, + properties, + ); + } + + late final __objc_msgSend_851Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_cookieWithProperties_1 = _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_741( + ffi.Pointer _objc_msgSend_852( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer properties, ) { - return __objc_msgSend_741( + return __objc_msgSend_852( obj, sel, properties, ); } - late final __objc_msgSend_741Ptr = _lookup< + late final __objc_msgSend_852Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< + late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20817,13 +23850,13 @@ class AVFAudio { _registerName1("requestHeaderFieldsWithCookies:"); late final _sel_cookiesWithResponseHeaderFields_forURL_1 = _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_742( + ffi.Pointer _objc_msgSend_853( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer headerFields, ffi.Pointer URL, ) { - return __objc_msgSend_742( + return __objc_msgSend_853( obj, sel, headerFields, @@ -20831,14 +23864,14 @@ class AVFAudio { ); } - late final __objc_msgSend_742Ptr = _lookup< + late final __objc_msgSend_853Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20856,23 +23889,23 @@ class AVFAudio { late final _sel_portList1 = _registerName1("portList"); late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_743( + void _objc_msgSend_854( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookie, ) { - return __objc_msgSend_743( + return __objc_msgSend_854( obj, sel, cookie, ); } - late final __objc_msgSend_743Ptr = _lookup< + late final __objc_msgSend_854Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20882,14 +23915,14 @@ class AVFAudio { late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); late final _sel_setCookies_forURL_mainDocumentURL_1 = _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_744( + void _objc_msgSend_855( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer URL, ffi.Pointer mainDocumentURL, ) { - return __objc_msgSend_744( + return __objc_msgSend_855( obj, sel, cookies, @@ -20898,7 +23931,7 @@ class AVFAudio { ); } - late final __objc_msgSend_744Ptr = _lookup< + late final __objc_msgSend_855Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20906,7 +23939,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20915,42 +23948,42 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_745( + int _objc_msgSend_856( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_745( + return __objc_msgSend_856( obj, sel, ); } - late final __objc_msgSend_745Ptr = _lookup< + late final __objc_msgSend_856Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< + late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setCookieAcceptPolicy_1 = _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_746( + void _objc_msgSend_857( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_746( + return __objc_msgSend_857( obj, sel, value, ); } - late final __objc_msgSend_746Ptr = _lookup< + late final __objc_msgSend_857Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_sortedCookiesUsingDescriptors_1 = @@ -20963,14 +23996,14 @@ class AVFAudio { _registerName1("supportsSecureCoding"); late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_747( + instancetype _objc_msgSend_858( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, int cachePolicy, double timeoutInterval, ) { - return __objc_msgSend_747( + return __objc_msgSend_858( obj, sel, URL, @@ -20979,15 +24012,11 @@ class AVFAudio { ); } - late final __objc_msgSend_747Ptr = _lookup< + late final __objc_msgSend_858Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, double)>(); @@ -20995,41 +24024,41 @@ class AVFAudio { _registerName1("initWithURL:cachePolicy:timeoutInterval:"); late final _sel_URL1 = _registerName1("URL"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_748( + int _objc_msgSend_859( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_748( + return __objc_msgSend_859( obj, sel, ); } - late final __objc_msgSend_748Ptr = _lookup< + late final __objc_msgSend_859Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_749( + int _objc_msgSend_860( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_749( + return __objc_msgSend_860( obj, sel, ); } - late final __objc_msgSend_749Ptr = _lookup< + late final __objc_msgSend_860Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_allowsCellularAccess1 = @@ -21040,23 +24069,25 @@ class AVFAudio { _registerName1("allowsConstrainedNetworkAccess"); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_750( + int _objc_msgSend_861( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_750( + return __objc_msgSend_861( obj, sel, ); } - late final __objc_msgSend_750Ptr = _lookup< + late final __objc_msgSend_861Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); + late final _sel_requiresDNSSECValidation1 = + _registerName1("requiresDNSSECValidation"); late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); late final _sel_valueForHTTPHeaderField_1 = @@ -21066,34 +24097,59 @@ class AVFAudio { late final _class_NSStream1 = _getClass1("NSStream"); late final _sel_open1 = _registerName1("open"); late final _sel_close1 = _registerName1("close"); + bool _objc_msgSend_862( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer key, + ) { + return __objc_msgSend_862( + obj, + sel, + property, + key, + ); + } + + late final __objc_msgSend_862Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_751( + int _objc_msgSend_863( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_751( + return __objc_msgSend_863( obj, sel, ); } - late final __objc_msgSend_751Ptr = _lookup< + late final __objc_msgSend_863Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_streamError1 = _registerName1("streamError"); late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); - int _objc_msgSend_752( + int _objc_msgSend_864( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int len, ) { - return __objc_msgSend_752( + return __objc_msgSend_864( obj, sel, buffer, @@ -21101,11 +24157,11 @@ class AVFAudio { ); } - late final __objc_msgSend_752Ptr = _lookup< + late final __objc_msgSend_864Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -21113,13 +24169,13 @@ class AVFAudio { late final _sel_initToMemory1 = _registerName1("initToMemory"); late final _sel_initToBuffer_capacity_1 = _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_753( + instancetype _objc_msgSend_865( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int capacity, ) { - return __objc_msgSend_753( + return __objc_msgSend_865( obj, sel, buffer, @@ -21127,15 +24183,37 @@ class AVFAudio { ); } - late final __objc_msgSend_753Ptr = _lookup< + late final __objc_msgSend_865Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); + instancetype _objc_msgSend_866( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + bool shouldAppend, + ) { + return __objc_msgSend_866( + obj, + sel, + url, + shouldAppend, + ); + } + + late final __objc_msgSend_866Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + late final _sel_initToFileAtPath_append_1 = _registerName1("initToFileAtPath:append:"); late final _sel_outputStreamToMemory1 = @@ -21148,7 +24226,7 @@ class AVFAudio { _registerName1("outputStreamWithURL:append:"); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_754( + void _objc_msgSend_867( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, @@ -21156,7 +24234,7 @@ class AVFAudio { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_754( + return __objc_msgSend_867( obj, sel, hostname, @@ -21166,16 +24244,16 @@ class AVFAudio { ); } - late final __objc_msgSend_754Ptr = _lookup< + late final __objc_msgSend_867Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21187,25 +24265,45 @@ class AVFAudio { late final _class_NSHost1 = _getClass1("NSHost"); late final _sel_currentHost1 = _registerName1("currentHost"); late final _sel_hostWithName_1 = _registerName1("hostWithName:"); + instancetype _objc_msgSend_868( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_868( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_868Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); - bool _objc_msgSend_755( + bool _objc_msgSend_869( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aHost, ) { - return __objc_msgSend_755( + return __objc_msgSend_869( obj, sel, aHost, ); } - late final __objc_msgSend_755Ptr = _lookup< + late final __objc_msgSend_869Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21215,30 +24313,30 @@ class AVFAudio { late final _sel_localizedName1 = _registerName1("localizedName"); late final _sel_setHostCacheEnabled_1 = _registerName1("setHostCacheEnabled:"); - void _objc_msgSend_756( + void _objc_msgSend_870( ffi.Pointer obj, ffi.Pointer sel, bool flag, ) { - return __objc_msgSend_756( + return __objc_msgSend_870( obj, sel, flag, ); } - late final __objc_msgSend_756Ptr = _lookup< + late final __objc_msgSend_870Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< + late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_isHostCacheEnabled1 = _registerName1("isHostCacheEnabled"); late final _sel_flushHostCache1 = _registerName1("flushHostCache"); late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_757( + void _objc_msgSend_871( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -21246,7 +24344,7 @@ class AVFAudio { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_757( + return __objc_msgSend_871( obj, sel, host, @@ -21256,16 +24354,16 @@ class AVFAudio { ); } - late final __objc_msgSend_757Ptr = _lookup< + late final __objc_msgSend_871Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< + late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21276,14 +24374,14 @@ class AVFAudio { late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_758( + void _objc_msgSend_872( ffi.Pointer obj, ffi.Pointer sel, int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_758( + return __objc_msgSend_872( obj, sel, bufferSize, @@ -21292,15 +24390,15 @@ class AVFAudio { ); } - late final __objc_msgSend_758Ptr = _lookup< + late final __objc_msgSend_872Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< + late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21310,13 +24408,13 @@ class AVFAudio { late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_759( + bool _objc_msgSend_873( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> buffer, - ffi.Pointer len, + ffi.Pointer len, ) { - return __objc_msgSend_759( + return __objc_msgSend_873( obj, sel, buffer, @@ -21324,40 +24422,63 @@ class AVFAudio { ); } - late final __objc_msgSend_759Ptr = _lookup< + late final __objc_msgSend_873Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>(); late final _sel_hasBytesAvailable1 = _registerName1("hasBytesAvailable"); late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); late final _sel_inputStreamWithData_1 = _registerName1("inputStreamWithData:"); - late final _sel_inputStreamWithFileAtPath_1 = - _registerName1("inputStreamWithFileAtPath:"); - late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); - late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_760( + instancetype _objc_msgSend_874( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer data, ) { - return __objc_msgSend_760( + return __objc_msgSend_874( obj, sel, + data, ); } - late final __objc_msgSend_760Ptr = _lookup< + late final __objc_msgSend_874Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_inputStreamWithFileAtPath_1 = + _registerName1("inputStreamWithFileAtPath:"); + late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); + late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); + ffi.Pointer _objc_msgSend_875( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_875( + obj, + sel, + ); + } + + late final __objc_msgSend_875Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21366,21 +24487,21 @@ class AVFAudio { late final _sel_HTTPShouldUsePipelining1 = _registerName1("HTTPShouldUsePipelining"); late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_761( + ffi.Pointer _objc_msgSend_876( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_761( + return __objc_msgSend_876( obj, sel, ); } - late final __objc_msgSend_761Ptr = _lookup< + late final __objc_msgSend_876Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< + late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21389,7 +24510,7 @@ class AVFAudio { late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = _registerName1( "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_762( + instancetype _objc_msgSend_877( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, @@ -21397,7 +24518,7 @@ class AVFAudio { int length, ffi.Pointer name, ) { - return __objc_msgSend_762( + return __objc_msgSend_877( obj, sel, URL, @@ -21407,16 +24528,16 @@ class AVFAudio { ); } - late final __objc_msgSend_762Ptr = _lookup< + late final __objc_msgSend_877Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< + late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -21431,25 +24552,43 @@ class AVFAudio { late final _sel_textEncodingName1 = _registerName1("textEncodingName"); late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_763( + ffi.Pointer _objc_msgSend_878( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_763( + return __objc_msgSend_878( obj, sel, ); } - late final __objc_msgSend_763Ptr = _lookup< + late final __objc_msgSend_878Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< + late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progress1 = _registerName1("progress"); + ffi.Pointer _objc_msgSend_879( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_879( + obj, + sel, + ); + } + + late final __objc_msgSend_879Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); late final _sel_setEarliestBeginDate_1 = _registerName1("setEarliestBeginDate:"); @@ -21471,43 +24610,43 @@ class AVFAudio { late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_764( + int _objc_msgSend_880( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_764( + return __objc_msgSend_880( obj, sel, ); } - late final __objc_msgSend_764Ptr = _lookup< + late final __objc_msgSend_880Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< + late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_suspend1 = _registerName1("suspend"); late final _sel_priority1 = _registerName1("priority"); late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_765( + void _objc_msgSend_881( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_765( + return __objc_msgSend_881( obj, sel, value, ); } - late final __objc_msgSend_765Ptr = _lookup< + late final __objc_msgSend_881Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_prefersIncrementalDelivery1 = @@ -21516,13 +24655,13 @@ class AVFAudio { _registerName1("setPrefersIncrementalDelivery:"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); - void _objc_msgSend_766( + void _objc_msgSend_882( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer task, ) { - return __objc_msgSend_766( + return __objc_msgSend_882( obj, sel, cookies, @@ -21530,26 +24669,26 @@ class AVFAudio { ); } - late final __objc_msgSend_766Ptr = _lookup< + late final __objc_msgSend_882Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCookiesForTask_completionHandler_1 = _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_767( + void _objc_msgSend_883( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_767( + return __objc_msgSend_883( obj, sel, task, @@ -21557,14 +24696,14 @@ class AVFAudio { ); } - late final __objc_msgSend_767Ptr = _lookup< + late final __objc_msgSend_883Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -21572,13 +24711,13 @@ class AVFAudio { late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); late final _sel_indexPathWithIndexes_length_1 = _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_768( + instancetype _objc_msgSend_884( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, + ffi.Pointer indexes, int length, ) { - return __objc_msgSend_768( + return __objc_msgSend_884( obj, sel, indexes, @@ -21586,67 +24725,70 @@ class AVFAudio { ); } - late final __objc_msgSend_768Ptr = _lookup< + late final __objc_msgSend_884Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, int)>(); late final _sel_initWithIndexes_length_1 = _registerName1("initWithIndexes:length:"); late final _sel_indexPathByAddingIndex_1 = _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_769( + ffi.Pointer _objc_msgSend_885( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_769( + return __objc_msgSend_885( obj, sel, index, ); } - late final __objc_msgSend_769Ptr = _lookup< + late final __objc_msgSend_885Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexPathByRemovingLastIndex1 = _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_770( + ffi.Pointer _objc_msgSend_886( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_770( + return __objc_msgSend_886( obj, sel, ); } - late final __objc_msgSend_770Ptr = _lookup< + late final __objc_msgSend_886Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< + late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); - void _objc_msgSend_771( + void _objc_msgSend_887( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, - NSRange positionRange, + ffi.Pointer indexes, + _NSRange positionRange, ) { - return __objc_msgSend_771( + return __objc_msgSend_887( obj, sel, indexes, @@ -21654,72 +24796,72 @@ class AVFAudio { ); } - late final __objc_msgSend_771Ptr = _lookup< + late final __objc_msgSend_887Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); - int _objc_msgSend_772( + int _objc_msgSend_888( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherObject, ) { - return __objc_msgSend_772( + return __objc_msgSend_888( obj, sel, otherObject, ); } - late final __objc_msgSend_772Ptr = _lookup< + late final __objc_msgSend_888Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_773( + void _objc_msgSend_889( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, + ffi.Pointer indexes, ) { - return __objc_msgSend_773( + return __objc_msgSend_889( obj, sel, indexes, ); } - late final __objc_msgSend_773Ptr = _lookup< + late final __objc_msgSend_889Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); late final _sel_automaticRule1 = _registerName1("automaticRule"); - ffi.Pointer _objc_msgSend_774( + ffi.Pointer _objc_msgSend_890( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_774( + return __objc_msgSend_890( obj, sel, ); } - late final __objc_msgSend_774Ptr = _lookup< + late final __objc_msgSend_890Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< + late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21728,118 +24870,309 @@ class AVFAudio { _registerName1("canInflectPreferredLocalization"); late final _class_NSMorphology1 = _getClass1("NSMorphology"); late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_775( + int _objc_msgSend_891( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_775( + return __objc_msgSend_891( obj, sel, ); } - late final __objc_msgSend_775Ptr = _lookup< + late final __objc_msgSend_891Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< + late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalGender_1 = _registerName1("setGrammaticalGender:"); - void _objc_msgSend_776( + void _objc_msgSend_892( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_776( + return __objc_msgSend_892( obj, sel, value, ); } - late final __objc_msgSend_776Ptr = _lookup< + late final __objc_msgSend_892Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< + late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_777( + int _objc_msgSend_893( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_777( + return __objc_msgSend_893( obj, sel, ); } - late final __objc_msgSend_777Ptr = _lookup< + late final __objc_msgSend_893Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< + late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_778( + void _objc_msgSend_894( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_778( + return __objc_msgSend_894( obj, sel, value, ); } - late final __objc_msgSend_778Ptr = _lookup< + late final __objc_msgSend_894Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< + late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_779( + int _objc_msgSend_895( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_779( + return __objc_msgSend_895( obj, sel, ); } - late final __objc_msgSend_779Ptr = _lookup< + late final __objc_msgSend_895Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< + late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_780( + void _objc_msgSend_896( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_780( + return __objc_msgSend_896( obj, sel, value, ); } - late final __objc_msgSend_780Ptr = _lookup< + late final __objc_msgSend_896Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< + late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_grammaticalCase1 = _registerName1("grammaticalCase"); + int _objc_msgSend_897( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_897( + obj, + sel, + ); + } + + late final __objc_msgSend_897Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalCase_1 = _registerName1("setGrammaticalCase:"); + void _objc_msgSend_898( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_898( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_898Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_determination1 = _registerName1("determination"); + int _objc_msgSend_899( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_899( + obj, + sel, + ); + } + + late final __objc_msgSend_899Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDetermination_1 = _registerName1("setDetermination:"); + void _objc_msgSend_900( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_900( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_900Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_grammaticalPerson1 = _registerName1("grammaticalPerson"); + int _objc_msgSend_901( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_901( + obj, + sel, + ); + } + + late final __objc_msgSend_901Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalPerson_1 = + _registerName1("setGrammaticalPerson:"); + void _objc_msgSend_902( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_902( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_902Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_pronounType1 = _registerName1("pronounType"); + int _objc_msgSend_903( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_903( + obj, + sel, + ); + } + + late final __objc_msgSend_903Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPronounType_1 = _registerName1("setPronounType:"); + void _objc_msgSend_904( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_904( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_904Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_definiteness1 = _registerName1("definiteness"); + int _objc_msgSend_905( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_905( + obj, + sel, + ); + } + + late final __objc_msgSend_905Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDefiniteness_1 = _registerName1("setDefiniteness:"); + void _objc_msgSend_906( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_906( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_906Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSMorphologyCustomPronoun1 = @@ -21862,36 +25195,36 @@ class AVFAudio { late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); late final _sel_customPronounForLanguage_1 = _registerName1("customPronounForLanguage:"); - ffi.Pointer _objc_msgSend_781( + ffi.Pointer _objc_msgSend_907( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer language, ) { - return __objc_msgSend_781( + return __objc_msgSend_907( obj, sel, language, ); } - late final __objc_msgSend_781Ptr = _lookup< + late final __objc_msgSend_907Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< + late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setCustomPronoun_forLanguage_error_1 = _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_782( + bool _objc_msgSend_908( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer features, ffi.Pointer language, ffi.Pointer> error, ) { - return __objc_msgSend_782( + return __objc_msgSend_908( obj, sel, features, @@ -21900,7 +25233,7 @@ class AVFAudio { ); } - late final __objc_msgSend_782Ptr = _lookup< + late final __objc_msgSend_908Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -21908,7 +25241,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< + late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -21918,21 +25251,21 @@ class AVFAudio { late final _sel_isUnspecified1 = _registerName1("isUnspecified"); late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_783( + ffi.Pointer _objc_msgSend_909( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_783( + return __objc_msgSend_909( obj, sel, ); } - late final __objc_msgSend_783Ptr = _lookup< + late final __objc_msgSend_909Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< + late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21942,64 +25275,64 @@ class AVFAudio { late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); late final _sel_isReady1 = _registerName1("isReady"); late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_784( + void _objc_msgSend_910( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer op, ) { - return __objc_msgSend_784( + return __objc_msgSend_910( obj, sel, op, ); } - late final __objc_msgSend_784Ptr = _lookup< + late final __objc_msgSend_910Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< + late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeDependency_1 = _registerName1("removeDependency:"); late final _sel_dependencies1 = _registerName1("dependencies"); late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_785( + int _objc_msgSend_911( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_785( + return __objc_msgSend_911( obj, sel, ); } - late final __objc_msgSend_785Ptr = _lookup< + late final __objc_msgSend_911Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< + late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_786( + void _objc_msgSend_912( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_786( + return __objc_msgSend_912( obj, sel, value, ); } - late final __objc_msgSend_786Ptr = _lookup< + late final __objc_msgSend_912Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< + late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completionBlock1 = _registerName1("completionBlock"); @@ -22008,13 +25341,13 @@ class AVFAudio { late final _sel_addOperation_1 = _registerName1("addOperation:"); late final _sel_addOperations_waitUntilFinished_1 = _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_787( + void _objc_msgSend_913( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ops, bool wait, ) { - return __objc_msgSend_787( + return __objc_msgSend_913( obj, sel, ops, @@ -22022,11 +25355,11 @@ class AVFAudio { ); } - late final __objc_msgSend_787Ptr = _lookup< + late final __objc_msgSend_913Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< + late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -22040,200 +25373,220 @@ class AVFAudio { late final _sel_isSuspended1 = _registerName1("isSuspended"); late final _sel_setSuspended_1 = _registerName1("setSuspended:"); late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - dispatch_queue_t _objc_msgSend_788( + ffi.Pointer _objc_msgSend_914( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_788( + return __objc_msgSend_914( obj, sel, ); } - late final __objc_msgSend_788Ptr = _lookup< + late final __objc_msgSend_914Ptr = _lookup< ffi.NativeFunction< - dispatch_queue_t Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< - dispatch_queue_t Function( + late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_789( + void _objc_msgSend_915( ffi.Pointer obj, ffi.Pointer sel, - dispatch_queue_t value, + ffi.Pointer value, ) { - return __objc_msgSend_789( + return __objc_msgSend_915( obj, sel, value, ); } - late final __objc_msgSend_789Ptr = _lookup< + late final __objc_msgSend_915Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - dispatch_queue_t)>>('objc_msgSend'); - late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, dispatch_queue_t)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); late final _sel_waitUntilAllOperationsAreFinished1 = _registerName1("waitUntilAllOperationsAreFinished"); late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_790( + ffi.Pointer _objc_msgSend_916( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_790( + return __objc_msgSend_916( obj, sel, ); } - late final __objc_msgSend_790Ptr = _lookup< + late final __objc_msgSend_916Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainQueue1 = _registerName1("mainQueue"); + ffi.Pointer _objc_msgSend_917( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_917( + obj, + sel, + ); + } + + late final __objc_msgSend_917Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_operations1 = _registerName1("operations"); late final _sel_operationCount1 = _registerName1("operationCount"); late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_791( + instancetype _objc_msgSend_918( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_791( + return __objc_msgSend_918( obj, sel, options, ); } - late final __objc_msgSend_791Ptr = _lookup< + late final __objc_msgSend_918Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< + late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); late final _sel_pointerFunctionsWithOptions_1 = _registerName1("pointerFunctionsWithOptions:"); - ffi.Pointer _objc_msgSend_792( + ffi.Pointer _objc_msgSend_919( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_792( + return __objc_msgSend_919( obj, sel, options, ); } - late final __objc_msgSend_792Ptr = _lookup< + late final __objc_msgSend_919Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< + late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_hashFunction1 = _registerName1("hashFunction"); ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> - _objc_msgSend_793( + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_920( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_793( + return __objc_msgSend_920( obj, sel, ); } - late final __objc_msgSend_793Ptr = _lookup< + late final __objc_msgSend_920Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< + late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_794( + void _objc_msgSend_921( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_794( + return __objc_msgSend_921( obj, sel, value, ); } - late final __objc_msgSend_794Ptr = _lookup< + late final __objc_msgSend_921Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< + late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>(); late final _sel_isEqualFunction1 = _registerName1("isEqualFunction"); @@ -22244,18 +25597,18 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> - _objc_msgSend_795( + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_922( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_795( + return __objc_msgSend_922( obj, sel, ); } - late final __objc_msgSend_795Ptr = _lookup< + late final __objc_msgSend_922Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -22264,11 +25617,11 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< + late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Bool Function( @@ -22276,11 +25629,12 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_796( + void _objc_msgSend_923( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22290,17 +25644,18 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_796( + return __objc_msgSend_923( obj, sel, value, ); } - late final __objc_msgSend_796Ptr = _lookup< + late final __objc_msgSend_923Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22312,10 +25667,10 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< + late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22326,79 +25681,83 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>(); late final _sel_sizeFunction1 = _registerName1("sizeFunction"); - ffi.Pointer)>> - _objc_msgSend_797( + ffi.Pointer< + ffi.NativeFunction)>> + _objc_msgSend_924( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_797( + return __objc_msgSend_924( obj, sel, ); } - late final __objc_msgSend_797Ptr = _lookup< + late final __objc_msgSend_924Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>> + ffi.UnsignedLong Function(ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< + late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< ffi.Pointer< - ffi.NativeFunction)>> + ffi + .NativeFunction)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_798( + void _objc_msgSend_925( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer)>> + ffi.Pointer< + ffi + .NativeFunction)>> value, ) { - return __objc_msgSend_798( + return __objc_msgSend_925( obj, sel, value, ); } - late final __objc_msgSend_798Ptr = _lookup< + late final __objc_msgSend_925Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< + late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi - .NativeFunction)>>)>(); + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>(); late final _sel_descriptionFunction1 = _registerName1("descriptionFunction"); ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_799( + _objc_msgSend_926( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_799( + return __objc_msgSend_926( obj, sel, ); } - late final __objc_msgSend_799Ptr = + late final __objc_msgSend_926Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< @@ -22407,7 +25766,7 @@ class AVFAudio { ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> @@ -22415,7 +25774,7 @@ class AVFAudio { late final _sel_setDescriptionFunction_1 = _registerName1("setDescriptionFunction:"); - void _objc_msgSend_800( + void _objc_msgSend_927( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22423,14 +25782,14 @@ class AVFAudio { ffi.Pointer Function(ffi.Pointer)>> value, ) { - return __objc_msgSend_800( + return __objc_msgSend_927( obj, sel, value, ); } - late final __objc_msgSend_800Ptr = _lookup< + late final __objc_msgSend_927Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22439,7 +25798,7 @@ class AVFAudio { ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22454,18 +25813,18 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> - _objc_msgSend_801( + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_928( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_801( + return __objc_msgSend_928( obj, sel, ); } - late final __objc_msgSend_801Ptr = _lookup< + late final __objc_msgSend_928Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -22473,23 +25832,24 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< + late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setRelinquishFunction_1 = _registerName1("setRelinquishFunction:"); - void _objc_msgSend_802( + void _objc_msgSend_929( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22498,17 +25858,18 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_802( + return __objc_msgSend_929( obj, sel, value, ); } - late final __objc_msgSend_802Ptr = _lookup< + late final __objc_msgSend_929Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22519,10 +25880,10 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< + late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22532,7 +25893,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>(); late final _sel_acquireFunction1 = _registerName1("acquireFunction"); @@ -22541,45 +25902,45 @@ class AVFAudio { ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi - .NativeFunction)>>, - ffi.Bool)>> _objc_msgSend_803( + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> _objc_msgSend_930( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_803( + return __objc_msgSend_930( obj, sel, ); } - late final __objc_msgSend_803Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer)>>, - ffi.Bool)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< + late final __objc_msgSend_930Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_804( + void _objc_msgSend_931( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22588,18 +25949,18 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function(ffi.Pointer)>>, ffi.Bool)>> value, ) { - return __objc_msgSend_804( + return __objc_msgSend_931( obj, sel, value, ); } - late final __objc_msgSend_804Ptr = _lookup< + late final __objc_msgSend_931Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22610,9 +25971,10 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>>)>>('objc_msgSend'); - late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< + late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22622,7 +25984,8 @@ class AVFAudio { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>>)>(); late final _sel_usesStrongWriteBarrier1 = @@ -22635,107 +25998,107 @@ class AVFAudio { _registerName1("setUsesWeakReadAndWriteBarriers:"); late final _sel_initWithPointerFunctions_1 = _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_805( + instancetype _objc_msgSend_932( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_805( + return __objc_msgSend_932( obj, sel, functions, ); } - late final __objc_msgSend_805Ptr = _lookup< + late final __objc_msgSend_932Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerArrayWithOptions_1 = _registerName1("pointerArrayWithOptions:"); - ffi.Pointer _objc_msgSend_806( + ffi.Pointer _objc_msgSend_933( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_806( + return __objc_msgSend_933( obj, sel, options, ); } - late final __objc_msgSend_806Ptr = _lookup< + late final __objc_msgSend_933Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< + late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pointerArrayWithPointerFunctions_1 = _registerName1("pointerArrayWithPointerFunctions:"); - ffi.Pointer _objc_msgSend_807( + ffi.Pointer _objc_msgSend_934( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_807( + return __objc_msgSend_934( obj, sel, functions, ); } - late final __objc_msgSend_807Ptr = _lookup< + late final __objc_msgSend_934Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< + late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); - ffi.Pointer _objc_msgSend_808( + ffi.Pointer _objc_msgSend_935( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_808( + return __objc_msgSend_935( obj, sel, ); } - late final __objc_msgSend_808Ptr = _lookup< + late final __objc_msgSend_935Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< + late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); - ffi.Pointer _objc_msgSend_809( + ffi.Pointer _objc_msgSend_936( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_809( + return __objc_msgSend_936( obj, sel, index, ); } - late final __objc_msgSend_809Ptr = _lookup< + late final __objc_msgSend_936Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -22746,13 +26109,13 @@ class AVFAudio { _registerName1("insertPointer:atIndex:"); late final _sel_replacePointerAtIndex_withPointer_1 = _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_810( + void _objc_msgSend_937( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer item, ) { - return __objc_msgSend_810( + return __objc_msgSend_937( obj, sel, index, @@ -22760,11 +26123,11 @@ class AVFAudio { ); } - late final __objc_msgSend_810Ptr = _lookup< + late final __objc_msgSend_937Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -22776,21 +26139,21 @@ class AVFAudio { _registerName1("pointerArrayWithWeakObjects"); late final _sel_strongObjectsPointerArray1 = _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_811( + ffi.Pointer _objc_msgSend_938( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_811( + return __objc_msgSend_938( obj, sel, ); } - late final __objc_msgSend_811Ptr = _lookup< + late final __objc_msgSend_938Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< + late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22798,21 +26161,21 @@ class AVFAudio { _registerName1("weakObjectsPointerArray"); late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_812( + ffi.Pointer _objc_msgSend_939( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_812( + return __objc_msgSend_939( obj, sel, ); } - late final __objc_msgSend_812Ptr = _lookup< + late final __objc_msgSend_939Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< + late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22829,22 +26192,26 @@ class AVFAudio { _registerName1("operatingSystemVersionString"); late final _sel_operatingSystemVersion1 = _registerName1("operatingSystemVersion"); - NSOperatingSystemVersion _objc_msgSend_813( + void _objc_msgSend_940( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_813( + return __objc_msgSend_940( + stret, obj, sel, ); } - late final __objc_msgSend_813Ptr = _lookup< + late final __objc_msgSend_940Ptr = _lookup< ffi.NativeFunction< - NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< - NSOperatingSystemVersion Function( + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_processorCount1 = _registerName1("processorCount"); @@ -22853,23 +26220,23 @@ class AVFAudio { late final _sel_physicalMemory1 = _registerName1("physicalMemory"); late final _sel_isOperatingSystemAtLeastVersion_1 = _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_814( + bool _objc_msgSend_941( ffi.Pointer obj, ffi.Pointer sel, NSOperatingSystemVersion version, ) { - return __objc_msgSend_814( + return __objc_msgSend_941( obj, sel, version, ); } - late final __objc_msgSend_814Ptr = _lookup< + late final __objc_msgSend_941Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>(); @@ -22888,13 +26255,13 @@ class AVFAudio { _registerName1("setAutomaticTerminationSupportEnabled:"); late final _sel_beginActivityWithOptions_reason_1 = _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_815( + ffi.Pointer _objc_msgSend_942( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ) { - return __objc_msgSend_815( + return __objc_msgSend_942( obj, sel, options, @@ -22902,28 +26269,28 @@ class AVFAudio { ); } - late final __objc_msgSend_815Ptr = _lookup< + late final __objc_msgSend_942Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_endActivity_1 = _registerName1("endActivity:"); late final _sel_performActivityWithOptions_reason_usingBlock_1 = _registerName1("performActivityWithOptions:reason:usingBlock:"); - void _objc_msgSend_816( + void _objc_msgSend_943( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_816( + return __objc_msgSend_943( obj, sel, options, @@ -22932,7 +26299,7 @@ class AVFAudio { ); } - late final __objc_msgSend_816Ptr = _lookup< + late final __objc_msgSend_943Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22940,19 +26307,19 @@ class AVFAudio { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< + late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performExpiringActivityWithReason_usingBlock_1 = _registerName1("performExpiringActivityWithReason:usingBlock:"); - void _objc_msgSend_817( + void _objc_msgSend_944( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_817( + return __objc_msgSend_944( obj, sel, reason, @@ -22960,35 +26327,35 @@ class AVFAudio { ); } - late final __objc_msgSend_817Ptr = _lookup< + late final __objc_msgSend_944Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< + late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_userName1 = _registerName1("userName"); late final _sel_fullUserName1 = _registerName1("fullUserName"); late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_818( + int _objc_msgSend_945( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_818( + return __objc_msgSend_945( obj, sel, ); } - late final __objc_msgSend_818Ptr = _lookup< + late final __objc_msgSend_945Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< + late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_isLowPowerModeEnabled1 = @@ -22997,40 +26364,40 @@ class AVFAudio { late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_819( + int _objc_msgSend_946( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_819( + return __objc_msgSend_946( obj, sel, ); } - late final __objc_msgSend_819Ptr = _lookup< + late final __objc_msgSend_946Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< + late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_range1 = _registerName1("range"); late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_820( + ffi.Pointer _objc_msgSend_947( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_820( + return __objc_msgSend_947( obj, sel, ); } - late final __objc_msgSend_820Ptr = _lookup< + late final __objc_msgSend_947Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23042,14 +26409,14 @@ class AVFAudio { late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); late final _sel_regularExpressionWithPattern_options_error_1 = _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_821( + ffi.Pointer _objc_msgSend_948( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_821( + return __objc_msgSend_948( obj, sel, pattern, @@ -23058,7 +26425,7 @@ class AVFAudio { ); } - late final __objc_msgSend_821Ptr = _lookup< + late final __objc_msgSend_948Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -23066,7 +26433,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< + late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -23076,14 +26443,14 @@ class AVFAudio { late final _sel_initWithPattern_options_error_1 = _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_822( + instancetype _objc_msgSend_949( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_822( + return __objc_msgSend_949( obj, sel, pattern, @@ -23092,7 +26459,7 @@ class AVFAudio { ); } - late final __objc_msgSend_822Ptr = _lookup< + late final __objc_msgSend_949Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23100,7 +26467,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< + late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23110,21 +26477,21 @@ class AVFAudio { late final _sel_pattern1 = _registerName1("pattern"); late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_823( + int _objc_msgSend_950( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_823( + return __objc_msgSend_950( obj, sel, ); } - late final __objc_msgSend_823Ptr = _lookup< + late final __objc_msgSend_950Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< + late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_numberOfCaptureGroups1 = @@ -23133,15 +26500,15 @@ class AVFAudio { _registerName1("escapedPatternForString:"); late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_824( + void _objc_msgSend_951( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_824( + return __objc_msgSend_951( obj, sel, string, @@ -23151,29 +26518,29 @@ class AVFAudio { ); } - late final __objc_msgSend_824Ptr = _lookup< + late final __objc_msgSend_951Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< + late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); late final _sel_matchesInString_options_range_1 = _registerName1("matchesInString:options:range:"); - ffi.Pointer _objc_msgSend_825( + ffi.Pointer _objc_msgSend_952( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_825( + return __objc_msgSend_952( obj, sel, string, @@ -23182,28 +26549,28 @@ class AVFAudio { ); } - late final __objc_msgSend_825Ptr = _lookup< + late final __objc_msgSend_952Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_numberOfMatchesInString_options_range_1 = _registerName1("numberOfMatchesInString:options:range:"); - int _objc_msgSend_826( + int _objc_msgSend_953( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_826( + return __objc_msgSend_953( obj, sel, string, @@ -23212,24 +26579,28 @@ class AVFAudio { ); } - late final __objc_msgSend_826Ptr = _lookup< + late final __objc_msgSend_953Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Pointer, int, _NSRange)>(); late final _sel_firstMatchInString_options_range_1 = _registerName1("firstMatchInString:options:range:"); - ffi.Pointer _objc_msgSend_827( + ffi.Pointer _objc_msgSend_954( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_827( + return __objc_msgSend_954( obj, sel, string, @@ -23238,28 +26609,30 @@ class AVFAudio { ); } - late final __objc_msgSend_827Ptr = _lookup< + late final __objc_msgSend_954Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfFirstMatchInString_options_range_1 = _registerName1("rangeOfFirstMatchInString:options:range:"); - NSRange _objc_msgSend_828( + void _objc_msgSend_955( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_828( + return __objc_msgSend_955( + stret, obj, sel, string, @@ -23268,26 +26641,31 @@ class AVFAudio { ); } - late final __objc_msgSend_828Ptr = _lookup< + late final __objc_msgSend_955Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = _registerName1( "stringByReplacingMatchesInString:options:range:withTemplate:"); - ffi.Pointer _objc_msgSend_829( + ffi.Pointer _objc_msgSend_956( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_829( + return __objc_msgSend_956( obj, sel, string, @@ -23297,35 +26675,35 @@ class AVFAudio { ); } - late final __objc_msgSend_829Ptr = _lookup< + late final __objc_msgSend_956Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< + late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - NSRange, + _NSRange, ffi.Pointer)>(); late final _sel_replaceMatchesInString_options_range_withTemplate_1 = _registerName1("replaceMatchesInString:options:range:withTemplate:"); - int _objc_msgSend_830( + int _objc_msgSend_957( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_830( + return __objc_msgSend_957( obj, sel, string, @@ -23335,22 +26713,22 @@ class AVFAudio { ); } - late final __objc_msgSend_830Ptr = _lookup< + late final __objc_msgSend_957Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< + late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_replacementStringForResult_inString_offset_template_1 = _registerName1("replacementStringForResult:inString:offset:template:"); - ffi.Pointer _objc_msgSend_831( + ffi.Pointer _objc_msgSend_958( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, @@ -23358,7 +26736,7 @@ class AVFAudio { int offset, ffi.Pointer templ, ) { - return __objc_msgSend_831( + return __objc_msgSend_958( obj, sel, result, @@ -23368,16 +26746,16 @@ class AVFAudio { ); } - late final __objc_msgSend_831Ptr = _lookup< + late final __objc_msgSend_958Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< + late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -23389,21 +26767,21 @@ class AVFAudio { late final _sel_escapedTemplateForString_1 = _registerName1("escapedTemplateForString:"); late final _sel_regularExpression1 = _registerName1("regularExpression"); - ffi.Pointer _objc_msgSend_832( + ffi.Pointer _objc_msgSend_959( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_832( + return __objc_msgSend_959( obj, sel, ); } - late final __objc_msgSend_832Ptr = _lookup< + late final __objc_msgSend_959Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< + late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23413,36 +26791,36 @@ class AVFAudio { late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); late final _sel_resultByAdjustingRangesWithOffset_1 = _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_833( + ffi.Pointer _objc_msgSend_960( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_833( + return __objc_msgSend_960( obj, sel, offset, ); } - late final __objc_msgSend_833Ptr = _lookup< + late final __objc_msgSend_960Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_addressComponents1 = _registerName1("addressComponents"); late final _sel_orthographyCheckingResultWithRange_orthography_1 = _registerName1("orthographyCheckingResultWithRange:orthography:"); - ffi.Pointer _objc_msgSend_834( + ffi.Pointer _objc_msgSend_961( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer orthography, ) { - return __objc_msgSend_834( + return __objc_msgSend_961( obj, sel, range, @@ -23450,48 +26828,48 @@ class AVFAudio { ); } - late final __objc_msgSend_834Ptr = _lookup< + late final __objc_msgSend_961Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< + late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_spellCheckingResultWithRange_1 = _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_835( + ffi.Pointer _objc_msgSend_962( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_835( + return __objc_msgSend_962( obj, sel, range, ); } - late final __objc_msgSend_835Ptr = _lookup< + late final __objc_msgSend_962Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_grammarCheckingResultWithRange_details_1 = _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_836( + ffi.Pointer _objc_msgSend_963( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer details, ) { - return __objc_msgSend_836( + return __objc_msgSend_963( obj, sel, range, @@ -23499,26 +26877,26 @@ class AVFAudio { ); } - late final __objc_msgSend_836Ptr = _lookup< + late final __objc_msgSend_963Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< + late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_1 = _registerName1("dateCheckingResultWithRange:date:"); - ffi.Pointer _objc_msgSend_837( + ffi.Pointer _objc_msgSend_964( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer date, ) { - return __objc_msgSend_837( + return __objc_msgSend_964( obj, sel, range, @@ -23526,28 +26904,28 @@ class AVFAudio { ); } - late final __objc_msgSend_837Ptr = _lookup< + late final __objc_msgSend_964Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< + late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); - ffi.Pointer _objc_msgSend_838( + ffi.Pointer _objc_msgSend_965( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer date, ffi.Pointer timeZone, double duration, ) { - return __objc_msgSend_838( + return __objc_msgSend_965( obj, sel, range, @@ -23557,33 +26935,33 @@ class AVFAudio { ); } - late final __objc_msgSend_838Ptr = _lookup< + late final __objc_msgSend_965Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer, double)>(); late final _sel_addressCheckingResultWithRange_components_1 = _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_839( + ffi.Pointer _objc_msgSend_966( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer components, ) { - return __objc_msgSend_839( + return __objc_msgSend_966( obj, sel, range, @@ -23591,26 +26969,26 @@ class AVFAudio { ); } - late final __objc_msgSend_839Ptr = _lookup< + late final __objc_msgSend_966Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< + late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_linkCheckingResultWithRange_URL_1 = _registerName1("linkCheckingResultWithRange:URL:"); - ffi.Pointer _objc_msgSend_840( + ffi.Pointer _objc_msgSend_967( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer url, ) { - return __objc_msgSend_840( + return __objc_msgSend_967( obj, sel, range, @@ -23618,26 +26996,26 @@ class AVFAudio { ); } - late final __objc_msgSend_840Ptr = _lookup< + late final __objc_msgSend_967Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< + late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_quoteCheckingResultWithRange_replacementString_1 = _registerName1("quoteCheckingResultWithRange:replacementString:"); - ffi.Pointer _objc_msgSend_841( + ffi.Pointer _objc_msgSend_968( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacementString, ) { - return __objc_msgSend_841( + return __objc_msgSend_968( obj, sel, range, @@ -23645,16 +27023,16 @@ class AVFAudio { ); } - late final __objc_msgSend_841Ptr = _lookup< + late final __objc_msgSend_968Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< + late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dashCheckingResultWithRange_replacementString_1 = _registerName1("dashCheckingResultWithRange:replacementString:"); @@ -23665,14 +27043,14 @@ class AVFAudio { late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = _registerName1( "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_842( + ffi.Pointer _objc_msgSend_969( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacementString, ffi.Pointer alternativeStrings, ) { - return __objc_msgSend_842( + return __objc_msgSend_969( obj, sel, range, @@ -23681,33 +27059,33 @@ class AVFAudio { ); } - late final __objc_msgSend_842Ptr = _lookup< + late final __objc_msgSend_969Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< + late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer)>(); late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = _registerName1( "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_843( + ffi.Pointer _objc_msgSend_970( ffi.Pointer obj, ffi.Pointer sel, - NSRangePointer ranges, + ffi.Pointer<_NSRange> ranges, int count, ffi.Pointer regularExpression, ) { - return __objc_msgSend_843( + return __objc_msgSend_970( obj, sel, ranges, @@ -23716,19 +27094,19 @@ class AVFAudio { ); } - late final __objc_msgSend_843Ptr = _lookup< + late final __objc_msgSend_970Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRangePointer, - NSUInteger, + ffi.Pointer<_NSRange>, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRangePointer, + ffi.Pointer<_NSRange>, int, ffi.Pointer)>(); @@ -23738,55 +27116,55 @@ class AVFAudio { _registerName1("transitInformationCheckingResultWithRange:components:"); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_844( + ffi.Pointer _objc_msgSend_971( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_844( + return __objc_msgSend_971( obj, sel, ); } - late final __objc_msgSend_844Ptr = _lookup< + late final __objc_msgSend_971Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< + late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_845( + void _objc_msgSend_972( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_845( + return __objc_msgSend_972( obj, sel, value, ); } - late final __objc_msgSend_845Ptr = _lookup< + late final __objc_msgSend_972Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< + late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_846( + instancetype _objc_msgSend_973( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer path, ) { - return __objc_msgSend_846( + return __objc_msgSend_973( obj, sel, memoryCapacity, @@ -23795,28 +27173,28 @@ class AVFAudio { ); } - late final __objc_msgSend_846Ptr = _lookup< + late final __objc_msgSend_973Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSUInteger, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< + late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); - instancetype _objc_msgSend_847( + instancetype _objc_msgSend_974( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer directoryURL, ) { - return __objc_msgSend_847( + return __objc_msgSend_974( obj, sel, memoryCapacity, @@ -23825,28 +27203,28 @@ class AVFAudio { ); } - late final __objc_msgSend_847Ptr = _lookup< + late final __objc_msgSend_974Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSUInteger, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); late final _sel_initWithResponse_data_1 = _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_848( + instancetype _objc_msgSend_975( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, ffi.Pointer data, ) { - return __objc_msgSend_848( + return __objc_msgSend_975( obj, sel, response, @@ -23854,20 +27232,20 @@ class AVFAudio { ); } - late final __objc_msgSend_848Ptr = _lookup< + late final __objc_msgSend_975Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< + late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = _registerName1("initWithResponse:data:userInfo:storagePolicy:"); - instancetype _objc_msgSend_849( + instancetype _objc_msgSend_976( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, @@ -23875,7 +27253,7 @@ class AVFAudio { ffi.Pointer userInfo, int storagePolicy, ) { - return __objc_msgSend_849( + return __objc_msgSend_976( obj, sel, response, @@ -23885,7 +27263,7 @@ class AVFAudio { ); } - late final __objc_msgSend_849Ptr = _lookup< + late final __objc_msgSend_976Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23894,7 +27272,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< + late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23903,55 +27281,73 @@ class AVFAudio { ffi.Pointer, int)>(); + ffi.Pointer _objc_msgSend_977( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_977( + obj, + sel, + ); + } + + late final __objc_msgSend_977Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_850( + int _objc_msgSend_978( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_850( + return __objc_msgSend_978( obj, sel, ); } - late final __objc_msgSend_850Ptr = _lookup< + late final __objc_msgSend_978Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< + late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_cachedResponseForRequest_1 = _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_851( + ffi.Pointer _objc_msgSend_979( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_851( + return __objc_msgSend_979( obj, sel, request, ); } - late final __objc_msgSend_851Ptr = _lookup< + late final __objc_msgSend_979Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_storeCachedResponse_forRequest_1 = _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_852( + void _objc_msgSend_980( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer request, ) { - return __objc_msgSend_852( + return __objc_msgSend_980( obj, sel, cachedResponse, @@ -23959,36 +27355,36 @@ class AVFAudio { ); } - late final __objc_msgSend_852Ptr = _lookup< + late final __objc_msgSend_980Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< + late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeCachedResponseForRequest_1 = _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_853( + void _objc_msgSend_981( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_853( + return __objc_msgSend_981( obj, sel, request, ); } - late final __objc_msgSend_853Ptr = _lookup< + late final __objc_msgSend_981Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< + late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24005,13 +27401,13 @@ class AVFAudio { late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); late final _sel_storeCachedResponse_forDataTask_1 = _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_854( + void _objc_msgSend_982( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer dataTask, ) { - return __objc_msgSend_854( + return __objc_msgSend_982( obj, sel, cachedResponse, @@ -24019,26 +27415,26 @@ class AVFAudio { ); } - late final __objc_msgSend_854Ptr = _lookup< + late final __objc_msgSend_982Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< + late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCachedResponseForDataTask_completionHandler_1 = _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_855( + void _objc_msgSend_983( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_855( + return __objc_msgSend_983( obj, sel, dataTask, @@ -24046,50 +27442,50 @@ class AVFAudio { ); } - late final __objc_msgSend_855Ptr = _lookup< + late final __objc_msgSend_983Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< + late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_removeCachedResponseForDataTask_1 = _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_856( + void _objc_msgSend_984( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ) { - return __objc_msgSend_856( + return __objc_msgSend_984( obj, sel, dataTask, ); } - late final __objc_msgSend_856Ptr = _lookup< + late final __objc_msgSend_984Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< + late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); late final _sel_initWithRequest_delegate_startImmediately_1 = _registerName1("initWithRequest:delegate:startImmediately:"); - instancetype _objc_msgSend_857( + instancetype _objc_msgSend_985( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, bool startImmediately, ) { - return __objc_msgSend_857( + return __objc_msgSend_985( obj, sel, request, @@ -24098,7 +27494,7 @@ class AVFAudio { ); } - late final __objc_msgSend_857Ptr = _lookup< + late final __objc_msgSend_985Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24106,19 +27502,19 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< + late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithRequest_delegate_1 = _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_858( + instancetype _objc_msgSend_986( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_858( + return __objc_msgSend_986( obj, sel, request, @@ -24126,26 +27522,26 @@ class AVFAudio { ); } - late final __objc_msgSend_858Ptr = _lookup< + late final __objc_msgSend_986Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< + late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRequest_delegate_1 = _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_859( + ffi.Pointer _objc_msgSend_987( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_859( + return __objc_msgSend_987( obj, sel, request, @@ -24153,74 +27549,92 @@ class AVFAudio { ); } - late final __objc_msgSend_859Ptr = _lookup< + late final __objc_msgSend_987Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< + late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer _objc_msgSend_988( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_988( + obj, + sel, + ); + } + + late final __objc_msgSend_988Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_unscheduleFromRunLoop_forMode_1 = _registerName1("unscheduleFromRunLoop:forMode:"); late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); - void _objc_msgSend_860( + void _objc_msgSend_989( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer queue, ) { - return __objc_msgSend_860( + return __objc_msgSend_989( obj, sel, queue, ); } - late final __objc_msgSend_860Ptr = _lookup< + late final __objc_msgSend_989Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< + late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); - bool _objc_msgSend_861( + bool _objc_msgSend_990( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_861( + return __objc_msgSend_990( obj, sel, request, ); } - late final __objc_msgSend_861Ptr = _lookup< + late final __objc_msgSend_990Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< + late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sendSynchronousRequest_returningResponse_error_1 = _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_862( + ffi.Pointer _objc_msgSend_991( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer> response, ffi.Pointer> error, ) { - return __objc_msgSend_862( + return __objc_msgSend_991( obj, sel, request, @@ -24229,7 +27643,7 @@ class AVFAudio { ); } - late final __objc_msgSend_862Ptr = _lookup< + late final __objc_msgSend_991Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24237,7 +27651,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24247,14 +27661,14 @@ class AVFAudio { late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_863( + void _objc_msgSend_992( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer queue, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_863( + return __objc_msgSend_992( obj, sel, request, @@ -24263,7 +27677,7 @@ class AVFAudio { ); } - late final __objc_msgSend_863Ptr = _lookup< + late final __objc_msgSend_992Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24271,7 +27685,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< + late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24281,33 +27695,33 @@ class AVFAudio { late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_864( + int _objc_msgSend_993( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_864( + return __objc_msgSend_993( obj, sel, ); } - late final __objc_msgSend_864Ptr = _lookup< + late final __objc_msgSend_993Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< + late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithUser_password_persistence_1 = _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_865( + instancetype _objc_msgSend_994( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_865( + return __objc_msgSend_994( obj, sel, user, @@ -24316,7 +27730,7 @@ class AVFAudio { ); } - late final __objc_msgSend_865Ptr = _lookup< + late final __objc_msgSend_994Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24324,20 +27738,20 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_credentialWithUser_password_persistence_1 = _registerName1("credentialWithUser:password:persistence:"); - ffi.Pointer _objc_msgSend_866( + ffi.Pointer _objc_msgSend_995( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_866( + return __objc_msgSend_995( obj, sel, user, @@ -24346,7 +27760,7 @@ class AVFAudio { ); } - late final __objc_msgSend_866Ptr = _lookup< + late final __objc_msgSend_995Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24354,7 +27768,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24365,14 +27779,14 @@ class AVFAudio { late final _sel_hasPassword1 = _registerName1("hasPassword"); late final _sel_initWithIdentity_certificates_persistence_1 = _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_867( + instancetype _objc_msgSend_996( ffi.Pointer obj, ffi.Pointer sel, - SecIdentityRef identity, + ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_867( + return __objc_msgSend_996( obj, sel, identity, @@ -24381,28 +27795,28 @@ class AVFAudio { ); } - late final __objc_msgSend_867Ptr = _lookup< + late final __objc_msgSend_996Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - SecIdentityRef, + ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< + late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - SecIdentityRef, ffi.Pointer, int)>(); + ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); late final _sel_credentialWithIdentity_certificates_persistence_1 = _registerName1("credentialWithIdentity:certificates:persistence:"); - ffi.Pointer _objc_msgSend_868( + ffi.Pointer _objc_msgSend_997( ffi.Pointer obj, ffi.Pointer sel, - SecIdentityRef identity, + ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_868( + return __objc_msgSend_997( obj, sel, identity, @@ -24411,87 +27825,88 @@ class AVFAudio { ); } - late final __objc_msgSend_868Ptr = _lookup< + late final __objc_msgSend_997Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - SecIdentityRef, + ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - SecIdentityRef, + ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); late final _sel_identity1 = _registerName1("identity"); - SecIdentityRef _objc_msgSend_869( + ffi.Pointer<__SecIdentity> _objc_msgSend_998( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_869( + return __objc_msgSend_998( obj, sel, ); } - late final __objc_msgSend_869Ptr = _lookup< + late final __objc_msgSend_998Ptr = _lookup< ffi.NativeFunction< - SecIdentityRef Function( + ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< - SecIdentityRef Function(ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_certificates1 = _registerName1("certificates"); late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); - instancetype _objc_msgSend_870( + instancetype _objc_msgSend_999( ffi.Pointer obj, ffi.Pointer sel, - SecTrustRef trust, + ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_870( + return __objc_msgSend_999( obj, sel, trust, ); } - late final __objc_msgSend_870Ptr = _lookup< + late final __objc_msgSend_999Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - SecTrustRef)>>('objc_msgSend'); - late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, SecTrustRef)>(); + ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecTrust>)>(); late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); - ffi.Pointer _objc_msgSend_871( + ffi.Pointer _objc_msgSend_1000( ffi.Pointer obj, ffi.Pointer sel, - SecTrustRef trust, + ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_871( + return __objc_msgSend_1000( obj, sel, trust, ); } - late final __objc_msgSend_871Ptr = _lookup< + late final __objc_msgSend_1000Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, SecTrustRef)>>('objc_msgSend'); - late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, SecTrustRef)>(); + ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); - instancetype _objc_msgSend_872( + instancetype _objc_msgSend_1001( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -24500,7 +27915,7 @@ class AVFAudio { ffi.Pointer realm, ffi.Pointer authenticationMethod, ) { - return __objc_msgSend_872( + return __objc_msgSend_1001( obj, sel, host, @@ -24511,17 +27926,17 @@ class AVFAudio { ); } - late final __objc_msgSend_872Ptr = _lookup< + late final __objc_msgSend_1001Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< + late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24543,77 +27958,78 @@ class AVFAudio { _registerName1("authenticationMethod"); late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); late final _sel_serverTrust1 = _registerName1("serverTrust"); - SecTrustRef _objc_msgSend_873( + ffi.Pointer<__SecTrust> _objc_msgSend_1002( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_873( + return __objc_msgSend_1002( obj, sel, ); } - late final __objc_msgSend_873Ptr = _lookup< + late final __objc_msgSend_1002Ptr = _lookup< ffi.NativeFunction< - SecTrustRef Function( + ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< - SecTrustRef Function(ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLCredentialStorage1 = _getClass1("NSURLCredentialStorage"); late final _sel_sharedCredentialStorage1 = _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_874( + ffi.Pointer _objc_msgSend_1003( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_874( + return __objc_msgSend_1003( obj, sel, ); } - late final __objc_msgSend_874Ptr = _lookup< + late final __objc_msgSend_1003Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_credentialsForProtectionSpace_1 = _registerName1("credentialsForProtectionSpace:"); - ffi.Pointer _objc_msgSend_875( + ffi.Pointer _objc_msgSend_1004( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_875( + return __objc_msgSend_1004( obj, sel, space, ); } - late final __objc_msgSend_875Ptr = _lookup< + late final __objc_msgSend_1004Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< + late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allCredentials1 = _registerName1("allCredentials"); late final _sel_setCredential_forProtectionSpace_1 = _registerName1("setCredential:forProtectionSpace:"); - void _objc_msgSend_876( + void _objc_msgSend_1005( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ) { - return __objc_msgSend_876( + return __objc_msgSend_1005( obj, sel, credential, @@ -24621,14 +28037,14 @@ class AVFAudio { ); } - late final __objc_msgSend_876Ptr = _lookup< + late final __objc_msgSend_1005Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< + late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24636,14 +28052,14 @@ class AVFAudio { _registerName1("removeCredential:forProtectionSpace:"); late final _sel_removeCredential_forProtectionSpace_options_1 = _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_877( + void _objc_msgSend_1006( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ffi.Pointer options, ) { - return __objc_msgSend_877( + return __objc_msgSend_1006( obj, sel, credential, @@ -24652,7 +28068,7 @@ class AVFAudio { ); } - late final __objc_msgSend_877Ptr = _lookup< + late final __objc_msgSend_1006Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24660,7 +28076,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< + late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24670,23 +28086,23 @@ class AVFAudio { late final _sel_defaultCredentialForProtectionSpace_1 = _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_878( + ffi.Pointer _objc_msgSend_1007( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_878( + return __objc_msgSend_1007( obj, sel, space, ); } - late final __objc_msgSend_878Ptr = _lookup< + late final __objc_msgSend_1007Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< + late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24695,14 +28111,14 @@ class AVFAudio { late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = _registerName1( "getCredentialsForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_879( + void _objc_msgSend_1008( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer protectionSpace, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_879( + return __objc_msgSend_1008( obj, sel, protectionSpace, @@ -24711,7 +28127,7 @@ class AVFAudio { ); } - late final __objc_msgSend_879Ptr = _lookup< + late final __objc_msgSend_1008Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24719,7 +28135,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24729,14 +28145,14 @@ class AVFAudio { late final _sel_setCredential_forProtectionSpace_task_1 = _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_880( + void _objc_msgSend_1009( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer protectionSpace, ffi.Pointer task, ) { - return __objc_msgSend_880( + return __objc_msgSend_1009( obj, sel, credential, @@ -24745,7 +28161,7 @@ class AVFAudio { ); } - late final __objc_msgSend_880Ptr = _lookup< + late final __objc_msgSend_1009Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24753,7 +28169,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< + late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24763,7 +28179,7 @@ class AVFAudio { late final _sel_removeCredential_forProtectionSpace_options_task_1 = _registerName1("removeCredential:forProtectionSpace:options:task:"); - void _objc_msgSend_881( + void _objc_msgSend_1010( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, @@ -24771,7 +28187,7 @@ class AVFAudio { ffi.Pointer options, ffi.Pointer task, ) { - return __objc_msgSend_881( + return __objc_msgSend_1010( obj, sel, credential, @@ -24781,7 +28197,7 @@ class AVFAudio { ); } - late final __objc_msgSend_881Ptr = _lookup< + late final __objc_msgSend_1010Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24790,7 +28206,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< + late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24802,14 +28218,14 @@ class AVFAudio { late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = _registerName1( "getDefaultCredentialForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_882( + void _objc_msgSend_1011( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_882( + return __objc_msgSend_1011( obj, sel, space, @@ -24818,7 +28234,7 @@ class AVFAudio { ); } - late final __objc_msgSend_882Ptr = _lookup< + late final __objc_msgSend_1011Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24826,7 +28242,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< + late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24839,14 +28255,14 @@ class AVFAudio { late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); late final _sel_initWithRequest_cachedResponse_client_1 = _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_883( + instancetype _objc_msgSend_1012( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_883( + return __objc_msgSend_1012( obj, sel, request, @@ -24855,7 +28271,7 @@ class AVFAudio { ); } - late final __objc_msgSend_883Ptr = _lookup< + late final __objc_msgSend_1012Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24863,7 +28279,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< + late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24874,56 +28290,56 @@ class AVFAudio { late final _sel_client1 = _registerName1("client"); late final _sel_request1 = _registerName1("request"); late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_884( + ffi.Pointer _objc_msgSend_1013( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_884( + return __objc_msgSend_1013( obj, sel, ); } - late final __objc_msgSend_884Ptr = _lookup< + late final __objc_msgSend_1013Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< + late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); late final _sel_canonicalRequestForRequest_1 = _registerName1("canonicalRequestForRequest:"); - ffi.Pointer _objc_msgSend_885( + ffi.Pointer _objc_msgSend_1014( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_885( + return __objc_msgSend_1014( obj, sel, request, ); } - late final __objc_msgSend_885Ptr = _lookup< + late final __objc_msgSend_1014Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< + late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_requestIsCacheEquivalent_toRequest_1 = _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_886( + bool _objc_msgSend_1015( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer a, ffi.Pointer b, ) { - return __objc_msgSend_886( + return __objc_msgSend_1015( obj, sel, a, @@ -24931,14 +28347,14 @@ class AVFAudio { ); } - late final __objc_msgSend_886Ptr = _lookup< + late final __objc_msgSend_1015Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< + late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24946,13 +28362,13 @@ class AVFAudio { late final _sel_stopLoading1 = _registerName1("stopLoading"); late final _sel_propertyForKey_inRequest_1 = _registerName1("propertyForKey:inRequest:"); - ffi.Pointer _objc_msgSend_887( + ffi.Pointer _objc_msgSend_1016( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_887( + return __objc_msgSend_1016( obj, sel, key, @@ -24960,14 +28376,14 @@ class AVFAudio { ); } - late final __objc_msgSend_887Ptr = _lookup< + late final __objc_msgSend_1016Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< + late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24976,67 +28392,47 @@ class AVFAudio { late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); late final _sel_setURL_1 = _registerName1("setURL:"); - void _objc_msgSend_888( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_888( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_888Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_889( + void _objc_msgSend_1017( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_889( + return __objc_msgSend_1017( obj, sel, value, ); } - late final __objc_msgSend_889Ptr = _lookup< + late final __objc_msgSend_1017Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< + late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); late final _sel_setNetworkServiceType_1 = _registerName1("setNetworkServiceType:"); - void _objc_msgSend_890( + void _objc_msgSend_1018( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_890( + return __objc_msgSend_1018( obj, sel, value, ); } - late final __objc_msgSend_890Ptr = _lookup< + late final __objc_msgSend_1018Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAllowsCellularAccess_1 = @@ -25048,71 +28444,98 @@ class AVFAudio { late final _sel_setAssumesHTTP3Capable_1 = _registerName1("setAssumesHTTP3Capable:"); late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_891( + void _objc_msgSend_1019( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_891( + return __objc_msgSend_1019( obj, sel, value, ); } - late final __objc_msgSend_891Ptr = _lookup< + late final __objc_msgSend_1019Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< + late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_setRequiresDNSSECValidation_1 = + _registerName1("setRequiresDNSSECValidation:"); late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); late final _sel_setAllHTTPHeaderFields_1 = _registerName1("setAllHTTPHeaderFields:"); late final _sel_setValue_forHTTPHeaderField_1 = _registerName1("setValue:forHTTPHeaderField:"); + void _objc_msgSend_1020( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer field, + ) { + return __objc_msgSend_1020( + obj, + sel, + value, + field, + ); + } + + late final __objc_msgSend_1020Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_addValue_forHTTPHeaderField_1 = _registerName1("addValue:forHTTPHeaderField:"); late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_892( + void _objc_msgSend_1021( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_892( + return __objc_msgSend_1021( obj, sel, value, ); } - late final __objc_msgSend_892Ptr = _lookup< + late final __objc_msgSend_1021Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_893( + void _objc_msgSend_1022( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_893( + return __objc_msgSend_1022( obj, sel, value, ); } - late final __objc_msgSend_893Ptr = _lookup< + late final __objc_msgSend_1022Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< + late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25122,14 +28545,14 @@ class AVFAudio { _registerName1("setHTTPShouldUsePipelining:"); late final _sel_setProperty_forKey_inRequest_1 = _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_894( + void _objc_msgSend_1023( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_894( + return __objc_msgSend_1023( obj, sel, value, @@ -25138,7 +28561,7 @@ class AVFAudio { ); } - late final __objc_msgSend_894Ptr = _lookup< + late final __objc_msgSend_1023Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -25146,7 +28569,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< + late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -25156,13 +28579,13 @@ class AVFAudio { late final _sel_removePropertyForKey_inRequest_1 = _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_895( + void _objc_msgSend_1024( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_895( + return __objc_msgSend_1024( obj, sel, key, @@ -25170,50 +28593,50 @@ class AVFAudio { ); } - late final __objc_msgSend_895Ptr = _lookup< + late final __objc_msgSend_1024Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< + late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_registerClass_1 = _registerName1("registerClass:"); late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); - bool _objc_msgSend_896( + bool _objc_msgSend_1025( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ) { - return __objc_msgSend_896( + return __objc_msgSend_1025( obj, sel, task, ); } - late final __objc_msgSend_896Ptr = _lookup< + late final __objc_msgSend_1025Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTask_cachedResponse_client_1 = _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_897( + instancetype _objc_msgSend_1026( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_897( + return __objc_msgSend_1026( obj, sel, task, @@ -25222,7 +28645,7 @@ class AVFAudio { ); } - late final __objc_msgSend_897Ptr = _lookup< + late final __objc_msgSend_1026Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25230,7 +28653,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -25239,43 +28662,43 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_898( + ffi.Pointer _objc_msgSend_1027( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_898( + return __objc_msgSend_1027( obj, sel, ); } - late final __objc_msgSend_898Ptr = _lookup< + late final __objc_msgSend_1027Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_899( + instancetype _objc_msgSend_1028( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer stream, ) { - return __objc_msgSend_899( + return __objc_msgSend_1028( obj, sel, stream, ); } - late final __objc_msgSend_899Ptr = _lookup< + late final __objc_msgSend_1028Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25289,65 +28712,65 @@ class AVFAudio { _registerName1("setShouldReportNamespacePrefixes:"); late final _sel_externalEntityResolvingPolicy1 = _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_900( + int _objc_msgSend_1029( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_900( + return __objc_msgSend_1029( obj, sel, ); } - late final __objc_msgSend_900Ptr = _lookup< + late final __objc_msgSend_1029Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setExternalEntityResolvingPolicy_1 = _registerName1("setExternalEntityResolvingPolicy:"); - void _objc_msgSend_901( + void _objc_msgSend_1030( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_901( + return __objc_msgSend_1030( obj, sel, value, ); } - late final __objc_msgSend_901Ptr = _lookup< + late final __objc_msgSend_1030Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_allowedExternalEntityURLs1 = _registerName1("allowedExternalEntityURLs"); late final _sel_setAllowedExternalEntityURLs_1 = _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_902( + void _objc_msgSend_1031( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_902( + return __objc_msgSend_1031( obj, sel, value, ); } - late final __objc_msgSend_902Ptr = _lookup< + late final __objc_msgSend_1031Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25365,14 +28788,14 @@ class AVFAudio { late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); late final _sel_initWithURL_options_error_1 = _registerName1("initWithURL:options:error:"); - instancetype _objc_msgSend_903( + instancetype _objc_msgSend_1032( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_903( + return __objc_msgSend_1032( obj, sel, url, @@ -25381,7 +28804,7 @@ class AVFAudio { ); } - late final __objc_msgSend_903Ptr = _lookup< + late final __objc_msgSend_1032Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25389,7 +28812,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -25419,14 +28842,14 @@ class AVFAudio { _registerName1("matchesContentsOfURL:"); late final _sel_readFromURL_options_error_1 = _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_904( + bool _objc_msgSend_1033( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_904( + return __objc_msgSend_1033( obj, sel, url, @@ -25435,7 +28858,7 @@ class AVFAudio { ); } - late final __objc_msgSend_904Ptr = _lookup< + late final __objc_msgSend_1033Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -25443,7 +28866,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -25453,7 +28876,7 @@ class AVFAudio { late final _sel_writeToURL_options_originalContentsURL_error_1 = _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_905( + bool _objc_msgSend_1034( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -25461,7 +28884,7 @@ class AVFAudio { ffi.Pointer originalContentsURL, ffi.Pointer> outError, ) { - return __objc_msgSend_905( + return __objc_msgSend_1034( obj, sel, url, @@ -25471,7 +28894,7 @@ class AVFAudio { ); } - late final __objc_msgSend_905Ptr = _lookup< + late final __objc_msgSend_1034Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -25480,7 +28903,7 @@ class AVFAudio { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -25492,35 +28915,35 @@ class AVFAudio { late final _sel_serializedRepresentation1 = _registerName1("serializedRepresentation"); late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); - ffi.Pointer _objc_msgSend_906( + ffi.Pointer _objc_msgSend_1035( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_906( + return __objc_msgSend_1035( obj, sel, child, ); } - late final __objc_msgSend_906Ptr = _lookup< + late final __objc_msgSend_1035Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< + late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addRegularFileWithContents_preferredFilename_1 = _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_907( + ffi.Pointer _objc_msgSend_1036( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer fileName, ) { - return __objc_msgSend_907( + return __objc_msgSend_1036( obj, sel, data, @@ -25528,14 +28951,14 @@ class AVFAudio { ); } - late final __objc_msgSend_907Ptr = _lookup< + late final __objc_msgSend_1036Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< + late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25543,28 +28966,48 @@ class AVFAudio { ffi.Pointer)>(); late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_908( + void _objc_msgSend_1037( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_908( + return __objc_msgSend_1037( obj, sel, child, ); } - late final __objc_msgSend_908Ptr = _lookup< + late final __objc_msgSend_1037Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< + late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileWrappers1 = _registerName1("fileWrappers"); late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); + ffi.Pointer _objc_msgSend_1038( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + ) { + return __objc_msgSend_1038( + obj, + sel, + child, + ); + } + + late final __objc_msgSend_1038Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_regularFileContents1 = _registerName1("regularFileContents"); late final _sel_symbolicLinkDestinationURL1 = _registerName1("symbolicLinkDestinationURL"); @@ -25575,14 +29018,14 @@ class AVFAudio { late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); late final _sel_writeToFile_atomically_updateFilenames_1 = _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_909( + bool _objc_msgSend_1039( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool atomicFlag, bool updateFilenamesFlag, ) { - return __objc_msgSend_909( + return __objc_msgSend_1039( obj, sel, path, @@ -25591,11 +29034,11 @@ class AVFAudio { ); } - late final __objc_msgSend_909Ptr = _lookup< + late final __objc_msgSend_1039Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< + late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, bool)>(); @@ -25606,21 +29049,21 @@ class AVFAudio { _registerName1("symbolicLinkDestination"); late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_910( + ffi.Pointer _objc_msgSend_1040( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_910( + return __objc_msgSend_1040( obj, sel, ); } - late final __objc_msgSend_910Ptr = _lookup< + late final __objc_msgSend_1040Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< + late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -25628,21 +29071,21 @@ class AVFAudio { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_911( + ffi.Pointer _objc_msgSend_1041( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_911( + return __objc_msgSend_1041( obj, sel, ); } - late final __objc_msgSend_911Ptr = _lookup< + late final __objc_msgSend_1041Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< + late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -25650,23 +29093,23 @@ class AVFAudio { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_912( + ffi.Pointer _objc_msgSend_1042( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_912( + return __objc_msgSend_1042( obj, sel, identifier, ); } - late final __objc_msgSend_912Ptr = _lookup< + late final __objc_msgSend_1042Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< + late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25702,42 +29145,42 @@ class AVFAudio { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_913( + int _objc_msgSend_1043( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_913( + return __objc_msgSend_1043( obj, sel, ); } - late final __objc_msgSend_913Ptr = _lookup< + late final __objc_msgSend_1043Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< + late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_914( + void _objc_msgSend_1044( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_914( + return __objc_msgSend_1044( obj, sel, value, ); } - late final __objc_msgSend_914Ptr = _lookup< + late final __objc_msgSend_1044Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -25746,42 +29189,42 @@ class AVFAudio { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_915( + int _objc_msgSend_1045( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_915( + return __objc_msgSend_1045( obj, sel, ); } - late final __objc_msgSend_915Ptr = _lookup< + late final __objc_msgSend_1045Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_916( + void _objc_msgSend_1046( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_916( + return __objc_msgSend_1046( obj, sel, value, ); } - late final __objc_msgSend_916Ptr = _lookup< + late final __objc_msgSend_1046Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< + late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -25805,134 +29248,228 @@ class AVFAudio { late final _sel_setHTTPMaximumConnectionsPerHost_1 = _registerName1("setHTTPMaximumConnectionsPerHost:"); late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); + ffi.Pointer _objc_msgSend_1047( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1047( + obj, + sel, + ); + } + + late final __objc_msgSend_1047Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_917( + void _objc_msgSend_1048( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_917( + return __objc_msgSend_1048( obj, sel, value, ); } - late final __objc_msgSend_917Ptr = _lookup< + late final __objc_msgSend_1048Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCredentialStorage1 = _registerName1("URLCredentialStorage"); + ffi.Pointer _objc_msgSend_1049( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1049( + obj, + sel, + ); + } + + late final __objc_msgSend_1049Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_918( + void _objc_msgSend_1050( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_918( + return __objc_msgSend_1050( obj, sel, value, ); } - late final __objc_msgSend_918Ptr = _lookup< + late final __objc_msgSend_1050Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< + late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCache1 = _registerName1("URLCache"); + ffi.Pointer _objc_msgSend_1051( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1051( + obj, + sel, + ); + } + + late final __objc_msgSend_1051Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCache_1 = _registerName1("setURLCache:"); + void _objc_msgSend_1052( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1052( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1052Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_shouldUseExtendedBackgroundIdleMode1 = _registerName1("shouldUseExtendedBackgroundIdleMode"); late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = _registerName1("setShouldUseExtendedBackgroundIdleMode:"); late final _sel_protocolClasses1 = _registerName1("protocolClasses"); late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); + void _objc_msgSend_1053( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1053( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1053Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1053 = __objc_msgSend_1053Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_919( + int _objc_msgSend_1054( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_919( + return __objc_msgSend_1054( obj, sel, ); } - late final __objc_msgSend_919Ptr = _lookup< + late final __objc_msgSend_1054Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< + late final __objc_msgSend_1054 = __objc_msgSend_1054Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_920( + void _objc_msgSend_1055( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_920( + return __objc_msgSend_1055( obj, sel, value, ); } - late final __objc_msgSend_920Ptr = _lookup< + late final __objc_msgSend_1055Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< + late final __objc_msgSend_1055 = __objc_msgSend_1055Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_backgroundSessionConfiguration_1 = _registerName1("backgroundSessionConfiguration:"); late final _sel_sessionWithConfiguration_1 = _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_921( + ffi.Pointer _objc_msgSend_1056( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_921( + return __objc_msgSend_1056( obj, sel, configuration, ); } - late final __objc_msgSend_921Ptr = _lookup< + late final __objc_msgSend_1056Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< + late final __objc_msgSend_1056 = __objc_msgSend_1056Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); - ffi.Pointer _objc_msgSend_922( + ffi.Pointer _objc_msgSend_1057( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_922( + return __objc_msgSend_1057( obj, sel, configuration, @@ -25941,7 +29478,7 @@ class AVFAudio { ); } - late final __objc_msgSend_922Ptr = _lookup< + late final __objc_msgSend_1057Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25949,7 +29486,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< + late final __objc_msgSend_1057 = __objc_msgSend_1057Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25971,102 +29508,124 @@ class AVFAudio { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_923( + void _objc_msgSend_1058( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_923( + return __objc_msgSend_1058( obj, sel, completionHandler, ); } - late final __objc_msgSend_923Ptr = _lookup< + late final __objc_msgSend_1058Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< + late final __objc_msgSend_1058 = __objc_msgSend_1058Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_924( + void _objc_msgSend_1059( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_924( + return __objc_msgSend_1059( obj, sel, completionHandler, ); } - late final __objc_msgSend_924Ptr = _lookup< + late final __objc_msgSend_1059Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< + late final __objc_msgSend_1059 = __objc_msgSend_1059Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_925( + ffi.Pointer _objc_msgSend_1060( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_925( + return __objc_msgSend_1060( obj, sel, request, ); } - late final __objc_msgSend_925Ptr = _lookup< + late final __objc_msgSend_1060Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< + late final __objc_msgSend_1060 = __objc_msgSend_1060Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_926( + ffi.Pointer _objc_msgSend_1061( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_926( + return __objc_msgSend_1061( obj, sel, url, ); } - late final __objc_msgSend_926Ptr = _lookup< + late final __objc_msgSend_1061Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< + late final __objc_msgSend_1061 = __objc_msgSend_1061Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLSessionUploadTask1 = _getClass1("NSURLSessionUploadTask"); + late final _sel_cancelByProducingResumeData_1 = + _registerName1("cancelByProducingResumeData:"); + void _objc_msgSend_1062( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_1062( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_1062Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_927( + ffi.Pointer _objc_msgSend_1063( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_927( + return __objc_msgSend_1063( obj, sel, request, @@ -26074,14 +29633,14 @@ class AVFAudio { ); } - late final __objc_msgSend_927Ptr = _lookup< + late final __objc_msgSend_1063Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< + late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26090,13 +29649,13 @@ class AVFAudio { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_928( + ffi.Pointer _objc_msgSend_1064( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_928( + return __objc_msgSend_1064( obj, sel, request, @@ -26104,129 +29663,129 @@ class AVFAudio { ); } - late final __objc_msgSend_928Ptr = _lookup< + late final __objc_msgSend_1064Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< + late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_uploadTaskWithStreamedRequest_1 = - _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_929( + late final _sel_uploadTaskWithResumeData_1 = + _registerName1("uploadTaskWithResumeData:"); + ffi.Pointer _objc_msgSend_1065( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer resumeData, ) { - return __objc_msgSend_929( + return __objc_msgSend_1065( obj, sel, - request, + resumeData, ); } - late final __objc_msgSend_929Ptr = _lookup< + late final __objc_msgSend_1065Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< + late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURLSessionDownloadTask1 = - _getClass1("NSURLSessionDownloadTask"); - late final _sel_cancelByProducingResumeData_1 = - _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_930( + late final _sel_uploadTaskWithStreamedRequest_1 = + _registerName1("uploadTaskWithStreamedRequest:"); + ffi.Pointer _objc_msgSend_1066( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer request, ) { - return __objc_msgSend_930( + return __objc_msgSend_1066( obj, sel, - completionHandler, + request, ); } - late final __objc_msgSend_930Ptr = _lookup< + late final __objc_msgSend_1066Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSURLSessionDownloadTask1 = + _getClass1("NSURLSessionDownloadTask"); late final _sel_downloadTaskWithRequest_1 = _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_931( + ffi.Pointer _objc_msgSend_1067( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_931( + return __objc_msgSend_1067( obj, sel, request, ); } - late final __objc_msgSend_931Ptr = _lookup< + late final __objc_msgSend_1067Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< + late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_932( + ffi.Pointer _objc_msgSend_1068( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_932( + return __objc_msgSend_1068( obj, sel, url, ); } - late final __objc_msgSend_932Ptr = _lookup< + late final __objc_msgSend_1068Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< + late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_933( + ffi.Pointer _objc_msgSend_1069( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_933( + return __objc_msgSend_1069( obj, sel, resumeData, ); } - late final __objc_msgSend_933Ptr = _lookup< + late final __objc_msgSend_1069Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< + late final __objc_msgSend_1069 = __objc_msgSend_1069Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26235,7 +29794,7 @@ class AVFAudio { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_934( + void _objc_msgSend_1070( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -26243,7 +29802,7 @@ class AVFAudio { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_934( + return __objc_msgSend_1070( obj, sel, minBytes, @@ -26253,29 +29812,29 @@ class AVFAudio { ); } - late final __objc_msgSend_934Ptr = _lookup< + late final __objc_msgSend_1070Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSUInteger, - NSTimeInterval, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< + late final __objc_msgSend_1070 = __objc_msgSend_1070Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int, double, ffi.Pointer<_ObjCBlock>)>(); late final _sel_writeData_timeout_completionHandler_1 = _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_935( + void _objc_msgSend_1071( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_935( + return __objc_msgSend_1071( obj, sel, data, @@ -26284,15 +29843,15 @@ class AVFAudio { ); } - late final __objc_msgSend_935Ptr = _lookup< + late final __objc_msgSend_1071Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< + late final __objc_msgSend_1071 = __objc_msgSend_1071Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -26305,13 +29864,13 @@ class AVFAudio { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_936( + ffi.Pointer _objc_msgSend_1072( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_936( + return __objc_msgSend_1072( obj, sel, hostname, @@ -26319,21 +29878,21 @@ class AVFAudio { ); } - late final __objc_msgSend_936Ptr = _lookup< + late final __objc_msgSend_1072Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_1072 = __objc_msgSend_1072Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSNetService1 = _getClass1("NSNetService"); late final _sel_initWithDomain_type_name_port_1 = _registerName1("initWithDomain:type:name:port:"); - instancetype _objc_msgSend_937( + instancetype _objc_msgSend_1073( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer domain, @@ -26341,7 +29900,7 @@ class AVFAudio { ffi.Pointer name, int port, ) { - return __objc_msgSend_937( + return __objc_msgSend_1073( obj, sel, domain, @@ -26351,7 +29910,7 @@ class AVFAudio { ); } - late final __objc_msgSend_937Ptr = _lookup< + late final __objc_msgSend_1073Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26360,7 +29919,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< + late final __objc_msgSend_1073 = __objc_msgSend_1073Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26371,87 +29930,118 @@ class AVFAudio { late final _sel_initWithDomain_type_name_1 = _registerName1("initWithDomain:type:name:"); + instancetype _objc_msgSend_1074( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer domain, + ffi.Pointer type, + ffi.Pointer name, + ) { + return __objc_msgSend_1074( + obj, + sel, + domain, + type, + name, + ); + } + + late final __objc_msgSend_1074Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1074 = __objc_msgSend_1074Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); late final _sel_setIncludesPeerToPeer_1 = _registerName1("setIncludesPeerToPeer:"); late final _sel_type1 = _registerName1("type"); - late final _sel_publish1 = _registerName1("publish"); late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_938( + void _objc_msgSend_1075( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_938( + return __objc_msgSend_1075( obj, sel, options, ); } - late final __objc_msgSend_938Ptr = _lookup< + late final __objc_msgSend_1075Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< + late final __objc_msgSend_1075 = __objc_msgSend_1075Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_resolve1 = _registerName1("resolve"); late final _sel_stop1 = _registerName1("stop"); late final _sel_dictionaryFromTXTRecordData_1 = _registerName1("dictionaryFromTXTRecordData:"); - ffi.Pointer _objc_msgSend_939( + ffi.Pointer _objc_msgSend_1076( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtData, ) { - return __objc_msgSend_939( + return __objc_msgSend_1076( obj, sel, txtData, ); } - late final __objc_msgSend_939Ptr = _lookup< + late final __objc_msgSend_1076Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< + late final __objc_msgSend_1076 = __objc_msgSend_1076Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataFromTXTRecordDictionary_1 = _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_940( + ffi.Pointer _objc_msgSend_1077( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtDictionary, ) { - return __objc_msgSend_940( + return __objc_msgSend_1077( obj, sel, txtDictionary, ); } - late final __objc_msgSend_940Ptr = _lookup< + late final __objc_msgSend_1077Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + late final __objc_msgSend_1077 = __objc_msgSend_1077Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); late final _sel_getInputStream_outputStream_1 = _registerName1("getInputStream:outputStream:"); - bool _objc_msgSend_941( + bool _objc_msgSend_1078( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_941( + return __objc_msgSend_1078( obj, sel, inputStream, @@ -26459,14 +30049,14 @@ class AVFAudio { ); } - late final __objc_msgSend_941Ptr = _lookup< + late final __objc_msgSend_1078Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< + late final __objc_msgSend_1078 = __objc_msgSend_1078Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -26474,28 +30064,48 @@ class AVFAudio { ffi.Pointer>)>(); late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); + bool _objc_msgSend_1079( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer recordData, + ) { + return __objc_msgSend_1079( + obj, + sel, + recordData, + ); + } + + late final __objc_msgSend_1079Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1079 = __objc_msgSend_1079Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); late final _sel_startMonitoring1 = _registerName1("startMonitoring"); late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_942( + ffi.Pointer _objc_msgSend_1080( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_942( + return __objc_msgSend_1080( obj, sel, service, ); } - late final __objc_msgSend_942Ptr = _lookup< + late final __objc_msgSend_1080Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< + late final __objc_msgSend_1080 = __objc_msgSend_1080Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26503,32 +30113,32 @@ class AVFAudio { _getClass1("NSURLSessionWebSocketTask"); late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_943( + int _objc_msgSend_1081( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_943( + return __objc_msgSend_1081( obj, sel, ); } - late final __objc_msgSend_943Ptr = _lookup< + late final __objc_msgSend_1081Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< + late final __objc_msgSend_1081 = __objc_msgSend_1081Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_944( + void _objc_msgSend_1082( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_944( + return __objc_msgSend_1082( obj, sel, message, @@ -26536,70 +30146,70 @@ class AVFAudio { ); } - late final __objc_msgSend_944Ptr = _lookup< + late final __objc_msgSend_1082Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< + late final __objc_msgSend_1082 = __objc_msgSend_1082Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_945( + void _objc_msgSend_1083( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_945( + return __objc_msgSend_1083( obj, sel, completionHandler, ); } - late final __objc_msgSend_945Ptr = _lookup< + late final __objc_msgSend_1083Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< + late final __objc_msgSend_1083 = __objc_msgSend_1083Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_946( + void _objc_msgSend_1084( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_946( + return __objc_msgSend_1084( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_946Ptr = _lookup< + late final __objc_msgSend_1084Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< + late final __objc_msgSend_1084 = __objc_msgSend_1084Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_947( + void _objc_msgSend_1085( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_947( + return __objc_msgSend_1085( obj, sel, closeCode, @@ -26607,11 +30217,11 @@ class AVFAudio { ); } - late final __objc_msgSend_947Ptr = _lookup< + late final __objc_msgSend_1085Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< + late final __objc_msgSend_1085 = __objc_msgSend_1085Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -26619,55 +30229,55 @@ class AVFAudio { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_948( + int _objc_msgSend_1086( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_948( + return __objc_msgSend_1086( obj, sel, ); } - late final __objc_msgSend_948Ptr = _lookup< + late final __objc_msgSend_1086Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< + late final __objc_msgSend_1086 = __objc_msgSend_1086Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_949( + ffi.Pointer _objc_msgSend_1087( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_949( + return __objc_msgSend_1087( obj, sel, url, ); } - late final __objc_msgSend_949Ptr = _lookup< + late final __objc_msgSend_1087Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< + late final __objc_msgSend_1087 = __objc_msgSend_1087Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_950( + ffi.Pointer _objc_msgSend_1088( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_950( + return __objc_msgSend_1088( obj, sel, url, @@ -26675,14 +30285,14 @@ class AVFAudio { ); } - late final __objc_msgSend_950Ptr = _lookup< + late final __objc_msgSend_1088Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< + late final __objc_msgSend_1088 = __objc_msgSend_1088Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26691,35 +30301,35 @@ class AVFAudio { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_951( + ffi.Pointer _objc_msgSend_1089( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_951( + return __objc_msgSend_1089( obj, sel, request, ); } - late final __objc_msgSend_951Ptr = _lookup< + late final __objc_msgSend_1089Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< + late final __objc_msgSend_1089 = __objc_msgSend_1089Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_952( + ffi.Pointer _objc_msgSend_1090( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_952( + return __objc_msgSend_1090( obj, sel, request, @@ -26727,14 +30337,14 @@ class AVFAudio { ); } - late final __objc_msgSend_952Ptr = _lookup< + late final __objc_msgSend_1090Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< + late final __objc_msgSend_1090 = __objc_msgSend_1090Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26743,13 +30353,13 @@ class AVFAudio { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_953( + ffi.Pointer _objc_msgSend_1091( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_953( + return __objc_msgSend_1091( obj, sel, url, @@ -26757,14 +30367,14 @@ class AVFAudio { ); } - late final __objc_msgSend_953Ptr = _lookup< + late final __objc_msgSend_1091Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< + late final __objc_msgSend_1091 = __objc_msgSend_1091Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26773,14 +30383,14 @@ class AVFAudio { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_954( + ffi.Pointer _objc_msgSend_1092( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_954( + return __objc_msgSend_1092( obj, sel, request, @@ -26789,7 +30399,7 @@ class AVFAudio { ); } - late final __objc_msgSend_954Ptr = _lookup< + late final __objc_msgSend_1092Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26797,7 +30407,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< + late final __objc_msgSend_1092 = __objc_msgSend_1092Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26807,14 +30417,14 @@ class AVFAudio { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_955( + ffi.Pointer _objc_msgSend_1093( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_955( + return __objc_msgSend_1093( obj, sel, request, @@ -26823,7 +30433,7 @@ class AVFAudio { ); } - late final __objc_msgSend_955Ptr = _lookup< + late final __objc_msgSend_1093Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26831,7 +30441,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + late final __objc_msgSend_1093 = __objc_msgSend_1093Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26839,15 +30449,45 @@ class AVFAudio { ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithResumeData_completionHandler_1 = + _registerName1("uploadTaskWithResumeData:completionHandler:"); + ffi.Pointer _objc_msgSend_1094( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer resumeData, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_1094( + obj, + sel, + resumeData, + completionHandler, + ); + } + + late final __objc_msgSend_1094Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1094 = __objc_msgSend_1094Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_downloadTaskWithRequest_completionHandler_1 = _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_956( + ffi.Pointer _objc_msgSend_1095( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_956( + return __objc_msgSend_1095( obj, sel, request, @@ -26855,14 +30495,14 @@ class AVFAudio { ); } - late final __objc_msgSend_956Ptr = _lookup< + late final __objc_msgSend_1095Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< + late final __objc_msgSend_1095 = __objc_msgSend_1095Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26871,13 +30511,13 @@ class AVFAudio { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_957( + ffi.Pointer _objc_msgSend_1096( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_957( + return __objc_msgSend_1096( obj, sel, url, @@ -26885,14 +30525,14 @@ class AVFAudio { ); } - late final __objc_msgSend_957Ptr = _lookup< + late final __objc_msgSend_1096Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< + late final __objc_msgSend_1096 = __objc_msgSend_1096Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26901,13 +30541,13 @@ class AVFAudio { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_958( + ffi.Pointer _objc_msgSend_1097( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_958( + return __objc_msgSend_1097( obj, sel, resumeData, @@ -26915,14 +30555,14 @@ class AVFAudio { ); } - late final __objc_msgSend_958Ptr = _lookup< + late final __objc_msgSend_1097Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< + late final __objc_msgSend_1097 = __objc_msgSend_1097Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26930,33 +30570,51 @@ class AVFAudio { ffi.Pointer<_ObjCBlock>)>(); late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); - ffi.Pointer _objc_msgSend_959( + ffi.Pointer _objc_msgSend_1098( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_959( + return __objc_msgSend_1098( obj, sel, ); } - late final __objc_msgSend_959Ptr = _lookup< + late final __objc_msgSend_1098Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< + late final __objc_msgSend_1098 = __objc_msgSend_1098Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_1099( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1099( + obj, + sel, + ); + } + + late final __objc_msgSend_1099Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1099 = __objc_msgSend_1099Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_protocolCheckerWithTarget_protocol_1 = _registerName1("protocolCheckerWithTarget:protocol:"); - instancetype _objc_msgSend_960( + instancetype _objc_msgSend_1100( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aProtocol, ) { - return __objc_msgSend_960( + return __objc_msgSend_1100( obj, sel, anObject, @@ -26964,14 +30622,14 @@ class AVFAudio { ); } - late final __objc_msgSend_960Ptr = _lookup< + late final __objc_msgSend_1100Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< + late final __objc_msgSend_1100 = __objc_msgSend_1100Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26996,68 +30654,68 @@ class AVFAudio { late final _sel_isRunning1 = _registerName1("isRunning"); late final _sel_terminationStatus1 = _registerName1("terminationStatus"); late final _sel_terminationReason1 = _registerName1("terminationReason"); - int _objc_msgSend_961( + int _objc_msgSend_1101( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_961( + return __objc_msgSend_1101( obj, sel, ); } - late final __objc_msgSend_961Ptr = _lookup< + late final __objc_msgSend_1101Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< + late final __objc_msgSend_1101 = __objc_msgSend_1101Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_terminationHandler1 = _registerName1("terminationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_962( + ffi.Pointer<_ObjCBlock> _objc_msgSend_1102( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_962( + return __objc_msgSend_1102( obj, sel, ); } - late final __objc_msgSend_962Ptr = _lookup< + late final __objc_msgSend_1102Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< + late final __objc_msgSend_1102 = __objc_msgSend_1102Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setTerminationHandler_1 = _registerName1("setTerminationHandler:"); - void _objc_msgSend_963( + void _objc_msgSend_1103( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_963( + return __objc_msgSend_1103( obj, sel, value, ); } - late final __objc_msgSend_963Ptr = _lookup< + late final __objc_msgSend_1103Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< + late final __objc_msgSend_1103 = __objc_msgSend_1103Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = _registerName1( "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); - ffi.Pointer _objc_msgSend_964( + ffi.Pointer _objc_msgSend_1104( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -27065,7 +30723,7 @@ class AVFAudio { ffi.Pointer> error, ffi.Pointer<_ObjCBlock> terminationHandler, ) { - return __objc_msgSend_964( + return __objc_msgSend_1104( obj, sel, url, @@ -27075,7 +30733,7 @@ class AVFAudio { ); } - late final __objc_msgSend_964Ptr = _lookup< + late final __objc_msgSend_1104Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27084,7 +30742,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer>, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< + late final __objc_msgSend_1104 = __objc_msgSend_1104Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27101,13 +30759,13 @@ class AVFAudio { late final _sel_launch1 = _registerName1("launch"); late final _sel_launchedTaskWithLaunchPath_arguments_1 = _registerName1("launchedTaskWithLaunchPath:arguments:"); - ffi.Pointer _objc_msgSend_965( + ffi.Pointer _objc_msgSend_1105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer arguments, ) { - return __objc_msgSend_965( + return __objc_msgSend_1105( obj, sel, path, @@ -27115,14 +30773,14 @@ class AVFAudio { ); } - late final __objc_msgSend_965Ptr = _lookup< + late final __objc_msgSend_1105Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< + late final __objc_msgSend_1105 = __objc_msgSend_1105Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27132,35 +30790,35 @@ class AVFAudio { late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); late final _sel_initWithKind_1 = _registerName1("initWithKind:"); - instancetype _objc_msgSend_966( + instancetype _objc_msgSend_1106( ffi.Pointer obj, ffi.Pointer sel, int kind, ) { - return __objc_msgSend_966( + return __objc_msgSend_1106( obj, sel, kind, ); } - late final __objc_msgSend_966Ptr = _lookup< + late final __objc_msgSend_1106Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< + late final __objc_msgSend_1106 = __objc_msgSend_1106Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithKind_options_1 = _registerName1("initWithKind:options:"); - instancetype _objc_msgSend_967( + instancetype _objc_msgSend_1107( ffi.Pointer obj, ffi.Pointer sel, int kind, int options, ) { - return __objc_msgSend_967( + return __objc_msgSend_1107( obj, sel, kind, @@ -27168,52 +30826,80 @@ class AVFAudio { ); } - late final __objc_msgSend_967Ptr = _lookup< + late final __objc_msgSend_1107Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< + late final __objc_msgSend_1107 = __objc_msgSend_1107Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_document1 = _registerName1("document"); late final _sel_documentWithRootElement_1 = _registerName1("documentWithRootElement:"); - ffi.Pointer _objc_msgSend_968( + ffi.Pointer _objc_msgSend_1108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer element, ) { - return __objc_msgSend_968( + return __objc_msgSend_1108( obj, sel, element, ); } - late final __objc_msgSend_968Ptr = _lookup< + late final __objc_msgSend_1108Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< + late final __objc_msgSend_1108 = __objc_msgSend_1108Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_elementWithName_1 = _registerName1("elementWithName:"); late final _sel_elementWithName_URI_1 = _registerName1("elementWithName:URI:"); + ffi.Pointer _objc_msgSend_1109( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer URI, + ) { + return __objc_msgSend_1109( + obj, + sel, + name, + URI, + ); + } + + late final __objc_msgSend_1109Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1109 = __objc_msgSend_1109Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_elementWithName_stringValue_1 = _registerName1("elementWithName:stringValue:"); late final _sel_elementWithName_children_attributes_1 = _registerName1("elementWithName:children:attributes:"); - ffi.Pointer _objc_msgSend_969( + ffi.Pointer _objc_msgSend_1110( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer children, ffi.Pointer attributes, ) { - return __objc_msgSend_969( + return __objc_msgSend_1110( obj, sel, name, @@ -27222,7 +30908,7 @@ class AVFAudio { ); } - late final __objc_msgSend_969Ptr = _lookup< + late final __objc_msgSend_1110Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27230,7 +30916,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< + late final __objc_msgSend_1110 = __objc_msgSend_1110Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27252,22 +30938,21 @@ class AVFAudio { _registerName1("textWithStringValue:"); late final _sel_DTDNodeWithXMLString_1 = _registerName1("DTDNodeWithXMLString:"); - late final _sel_kind1 = _registerName1("kind"); - int _objc_msgSend_970( + int _objc_msgSend_1111( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_970( + return __objc_msgSend_1111( obj, sel, ); } - late final __objc_msgSend_970Ptr = _lookup< + late final __objc_msgSend_1111Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< + late final __objc_msgSend_1111 = __objc_msgSend_1111Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_objectValue1 = _registerName1("objectValue"); @@ -27275,13 +30960,13 @@ class AVFAudio { late final _sel_setStringValue_1 = _registerName1("setStringValue:"); late final _sel_setStringValue_resolvingEntities_1 = _registerName1("setStringValue:resolvingEntities:"); - void _objc_msgSend_971( + void _objc_msgSend_1112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, bool resolve, ) { - return __objc_msgSend_971( + return __objc_msgSend_1112( obj, sel, string, @@ -27289,11 +30974,11 @@ class AVFAudio { ); } - late final __objc_msgSend_971Ptr = _lookup< + late final __objc_msgSend_1112Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< + late final __objc_msgSend_1112 = __objc_msgSend_1112Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -27302,14 +30987,14 @@ class AVFAudio { late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); late final _sel_initWithXMLString_options_error_1 = _registerName1("initWithXMLString:options:error:"); - instancetype _objc_msgSend_972( + instancetype _objc_msgSend_1113( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_972( + return __objc_msgSend_1113( obj, sel, string, @@ -27318,7 +31003,7 @@ class AVFAudio { ); } - late final __objc_msgSend_972Ptr = _lookup< + late final __objc_msgSend_1113Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27326,7 +31011,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< + late final __objc_msgSend_1113 = __objc_msgSend_1113Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27334,14 +31019,14 @@ class AVFAudio { int, ffi.Pointer>)>(); - instancetype _objc_msgSend_973( + instancetype _objc_msgSend_1114( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_973( + return __objc_msgSend_1114( obj, sel, url, @@ -27350,7 +31035,7 @@ class AVFAudio { ); } - late final __objc_msgSend_973Ptr = _lookup< + late final __objc_msgSend_1114Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27358,7 +31043,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< + late final __objc_msgSend_1114 = __objc_msgSend_1114Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27368,14 +31053,14 @@ class AVFAudio { late final _sel_initWithData_options_error_1 = _registerName1("initWithData:options:error:"); - instancetype _objc_msgSend_974( + instancetype _objc_msgSend_1115( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_974( + return __objc_msgSend_1115( obj, sel, data, @@ -27384,7 +31069,7 @@ class AVFAudio { ); } - late final __objc_msgSend_974Ptr = _lookup< + late final __objc_msgSend_1115Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27392,7 +31077,7 @@ class AVFAudio { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< + late final __objc_msgSend_1115 = __objc_msgSend_1115Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27402,6 +31087,26 @@ class AVFAudio { late final _sel_initWithRootElement_1 = _registerName1("initWithRootElement:"); + instancetype _objc_msgSend_1116( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer element, + ) { + return __objc_msgSend_1116( + obj, + sel, + element, + ); + } + + late final __objc_msgSend_1116Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1116 = __objc_msgSend_1116Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_replacementClassForClass_1 = _registerName1("replacementClassForClass:"); late final _sel_characterEncoding1 = _registerName1("characterEncoding"); @@ -27410,42 +31115,42 @@ class AVFAudio { late final _sel_isStandalone1 = _registerName1("isStandalone"); late final _sel_setStandalone_1 = _registerName1("setStandalone:"); late final _sel_documentContentKind1 = _registerName1("documentContentKind"); - int _objc_msgSend_975( + int _objc_msgSend_1117( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_975( + return __objc_msgSend_1117( obj, sel, ); } - late final __objc_msgSend_975Ptr = _lookup< + late final __objc_msgSend_1117Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< + late final __objc_msgSend_1117 = __objc_msgSend_1117Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDocumentContentKind_1 = _registerName1("setDocumentContentKind:"); - void _objc_msgSend_976( + void _objc_msgSend_1118( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_976( + return __objc_msgSend_1118( obj, sel, value, ); } - late final __objc_msgSend_976Ptr = _lookup< + late final __objc_msgSend_1118Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< + late final __objc_msgSend_1118 = __objc_msgSend_1118Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); @@ -27454,13 +31159,13 @@ class AVFAudio { late final _sel_setSystemID_1 = _registerName1("setSystemID:"); late final _sel_insertChild_atIndex_1 = _registerName1("insertChild:atIndex:"); - void _objc_msgSend_977( + void _objc_msgSend_1119( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int index, ) { - return __objc_msgSend_977( + return __objc_msgSend_1119( obj, sel, child, @@ -27468,23 +31173,23 @@ class AVFAudio { ); } - late final __objc_msgSend_977Ptr = _lookup< + late final __objc_msgSend_1119Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1119 = __objc_msgSend_1119Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_insertChildren_atIndex_1 = _registerName1("insertChildren:atIndex:"); - void _objc_msgSend_978( + void _objc_msgSend_1120( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer children, int index, ) { - return __objc_msgSend_978( + return __objc_msgSend_1120( obj, sel, children, @@ -27492,46 +31197,46 @@ class AVFAudio { ); } - late final __objc_msgSend_978Ptr = _lookup< + late final __objc_msgSend_1120Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1120 = __objc_msgSend_1120Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); late final _sel_setChildren_1 = _registerName1("setChildren:"); late final _sel_addChild_1 = _registerName1("addChild:"); - void _objc_msgSend_979( + void _objc_msgSend_1121( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_979( + return __objc_msgSend_1121( obj, sel, child, ); } - late final __objc_msgSend_979Ptr = _lookup< + late final __objc_msgSend_1121Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< + late final __objc_msgSend_1121 = __objc_msgSend_1121Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceChildAtIndex_withNode_1 = _registerName1("replaceChildAtIndex:withNode:"); - void _objc_msgSend_980( + void _objc_msgSend_1122( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer node, ) { - return __objc_msgSend_980( + return __objc_msgSend_1122( obj, sel, index, @@ -27539,52 +31244,52 @@ class AVFAudio { ); } - late final __objc_msgSend_980Ptr = _lookup< + late final __objc_msgSend_1122Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1122 = __objc_msgSend_1122Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); late final _sel_DTDKind1 = _registerName1("DTDKind"); - int _objc_msgSend_981( + int _objc_msgSend_1123( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_981( + return __objc_msgSend_1123( obj, sel, ); } - late final __objc_msgSend_981Ptr = _lookup< + late final __objc_msgSend_1123Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< + late final __objc_msgSend_1123 = __objc_msgSend_1123Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); - void _objc_msgSend_982( + void _objc_msgSend_1124( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_982( + return __objc_msgSend_1124( obj, sel, value, ); } - late final __objc_msgSend_982Ptr = _lookup< + late final __objc_msgSend_1124Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< + late final __objc_msgSend_1124 = __objc_msgSend_1124Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isExternal1 = _registerName1("isExternal"); @@ -27594,45 +31299,45 @@ class AVFAudio { late final _sel_prefixForName_1 = _registerName1("prefixForName:"); late final _sel_predefinedNamespaceForPrefix_1 = _registerName1("predefinedNamespaceForPrefix:"); - ffi.Pointer _objc_msgSend_983( + ffi.Pointer _objc_msgSend_1125( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_983( + return __objc_msgSend_1125( obj, sel, name, ); } - late final __objc_msgSend_983Ptr = _lookup< + late final __objc_msgSend_1125Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< + late final __objc_msgSend_1125 = __objc_msgSend_1125Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_entityDeclarationForName_1 = _registerName1("entityDeclarationForName:"); - ffi.Pointer _objc_msgSend_984( + ffi.Pointer _objc_msgSend_1126( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_984( + return __objc_msgSend_1126( obj, sel, name, ); } - late final __objc_msgSend_984Ptr = _lookup< + late final __objc_msgSend_1126Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< + late final __objc_msgSend_1126 = __objc_msgSend_1126Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27642,13 +31347,13 @@ class AVFAudio { _registerName1("elementDeclarationForName:"); late final _sel_attributeDeclarationForName_elementName_1 = _registerName1("attributeDeclarationForName:elementName:"); - ffi.Pointer _objc_msgSend_985( + ffi.Pointer _objc_msgSend_1127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer elementName, ) { - return __objc_msgSend_985( + return __objc_msgSend_1127( obj, sel, name, @@ -27656,14 +31361,14 @@ class AVFAudio { ); } - late final __objc_msgSend_985Ptr = _lookup< + late final __objc_msgSend_1127Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< + late final __objc_msgSend_1127 = __objc_msgSend_1127Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27673,117 +31378,117 @@ class AVFAudio { late final _sel_predefinedEntityDeclarationForName_1 = _registerName1("predefinedEntityDeclarationForName:"); late final _sel_DTD1 = _registerName1("DTD"); - ffi.Pointer _objc_msgSend_986( + ffi.Pointer _objc_msgSend_1128( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_986( + return __objc_msgSend_1128( obj, sel, ); } - late final __objc_msgSend_986Ptr = _lookup< + late final __objc_msgSend_1128Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< + late final __objc_msgSend_1128 = __objc_msgSend_1128Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTD_1 = _registerName1("setDTD:"); - void _objc_msgSend_987( + void _objc_msgSend_1129( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_987( + return __objc_msgSend_1129( obj, sel, value, ); } - late final __objc_msgSend_987Ptr = _lookup< + late final __objc_msgSend_1129Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< + late final __objc_msgSend_1129 = __objc_msgSend_1129Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setRootElement_1 = _registerName1("setRootElement:"); - void _objc_msgSend_988( + void _objc_msgSend_1130( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer root, ) { - return __objc_msgSend_988( + return __objc_msgSend_1130( obj, sel, root, ); } - late final __objc_msgSend_988Ptr = _lookup< + late final __objc_msgSend_1130Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + late final __objc_msgSend_1130 = __objc_msgSend_1130Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_rootElement1 = _registerName1("rootElement"); - ffi.Pointer _objc_msgSend_989( + ffi.Pointer _objc_msgSend_1131( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_989( + return __objc_msgSend_1131( obj, sel, ); } - late final __objc_msgSend_989Ptr = _lookup< + late final __objc_msgSend_1131Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< + late final __objc_msgSend_1131 = __objc_msgSend_1131Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_XMLData1 = _registerName1("XMLData"); late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); - ffi.Pointer _objc_msgSend_990( + ffi.Pointer _objc_msgSend_1132( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_990( + return __objc_msgSend_1132( obj, sel, options, ); } - late final __objc_msgSend_990Ptr = _lookup< + late final __objc_msgSend_1132Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< + late final __objc_msgSend_1132 = __objc_msgSend_1132Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_objectByApplyingXSLT_arguments_error_1 = _registerName1("objectByApplyingXSLT:arguments:error:"); - ffi.Pointer _objc_msgSend_991( + ffi.Pointer _objc_msgSend_1133( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_991( + return __objc_msgSend_1133( obj, sel, xslt, @@ -27792,7 +31497,7 @@ class AVFAudio { ); } - late final __objc_msgSend_991Ptr = _lookup< + late final __objc_msgSend_1133Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27800,7 +31505,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< + late final __objc_msgSend_1133 = __objc_msgSend_1133Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27810,14 +31515,14 @@ class AVFAudio { late final _sel_objectByApplyingXSLTString_arguments_error_1 = _registerName1("objectByApplyingXSLTString:arguments:error:"); - ffi.Pointer _objc_msgSend_992( + ffi.Pointer _objc_msgSend_1134( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_992( + return __objc_msgSend_1134( obj, sel, xslt, @@ -27826,7 +31531,7 @@ class AVFAudio { ); } - late final __objc_msgSend_992Ptr = _lookup< + late final __objc_msgSend_1134Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27834,7 +31539,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< + late final __objc_msgSend_1134 = __objc_msgSend_1134Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27844,14 +31549,14 @@ class AVFAudio { late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); - ffi.Pointer _objc_msgSend_993( + ffi.Pointer _objc_msgSend_1135( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xsltURL, ffi.Pointer argument, ffi.Pointer> error, ) { - return __objc_msgSend_993( + return __objc_msgSend_1135( obj, sel, xsltURL, @@ -27860,7 +31565,7 @@ class AVFAudio { ); } - late final __objc_msgSend_993Ptr = _lookup< + late final __objc_msgSend_1135Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27868,7 +31573,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< + late final __objc_msgSend_1135 = __objc_msgSend_1135Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27879,63 +31584,63 @@ class AVFAudio { late final _sel_validateAndReturnError_1 = _registerName1("validateAndReturnError:"); late final _sel_rootDocument1 = _registerName1("rootDocument"); - ffi.Pointer _objc_msgSend_994( + ffi.Pointer _objc_msgSend_1136( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_994( + return __objc_msgSend_1136( obj, sel, ); } - late final __objc_msgSend_994Ptr = _lookup< + late final __objc_msgSend_1136Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + late final __objc_msgSend_1136 = __objc_msgSend_1136Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_parent1 = _registerName1("parent"); - ffi.Pointer _objc_msgSend_995( + ffi.Pointer _objc_msgSend_1137( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_995( + return __objc_msgSend_1137( obj, sel, ); } - late final __objc_msgSend_995Ptr = _lookup< + late final __objc_msgSend_1137Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< + late final __objc_msgSend_1137 = __objc_msgSend_1137Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_childCount1 = _registerName1("childCount"); late final _sel_children1 = _registerName1("children"); late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); - ffi.Pointer _objc_msgSend_996( + ffi.Pointer _objc_msgSend_1138( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_996( + return __objc_msgSend_1138( obj, sel, index, ); } - late final __objc_msgSend_996Ptr = _lookup< + late final __objc_msgSend_1138Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1138 = __objc_msgSend_1138Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -27952,45 +31657,45 @@ class AVFAudio { late final _sel_XMLString1 = _registerName1("XMLString"); late final _sel_XMLStringWithOptions_1 = _registerName1("XMLStringWithOptions:"); - ffi.Pointer _objc_msgSend_997( + ffi.Pointer _objc_msgSend_1139( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_997( + return __objc_msgSend_1139( obj, sel, options, ); } - late final __objc_msgSend_997Ptr = _lookup< + late final __objc_msgSend_1139Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< + late final __objc_msgSend_1139 = __objc_msgSend_1139Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_canonicalXMLStringPreservingComments_1 = _registerName1("canonicalXMLStringPreservingComments:"); - ffi.Pointer _objc_msgSend_998( + ffi.Pointer _objc_msgSend_1140( ffi.Pointer obj, ffi.Pointer sel, bool comments, ) { - return __objc_msgSend_998( + return __objc_msgSend_1140( obj, sel, comments, ); } - late final __objc_msgSend_998Ptr = _lookup< + late final __objc_msgSend_1140Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + late final __objc_msgSend_1140 = __objc_msgSend_1140Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -27998,14 +31703,14 @@ class AVFAudio { _registerName1("nodesForXPath:error:"); late final _sel_objectsForXQuery_constants_error_1 = _registerName1("objectsForXQuery:constants:error:"); - ffi.Pointer _objc_msgSend_999( + ffi.Pointer _objc_msgSend_1141( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xquery, ffi.Pointer constants, ffi.Pointer> error, ) { - return __objc_msgSend_999( + return __objc_msgSend_1141( obj, sel, xquery, @@ -28014,7 +31719,7 @@ class AVFAudio { ); } - late final __objc_msgSend_999Ptr = _lookup< + late final __objc_msgSend_1141Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28022,7 +31727,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + late final __objc_msgSend_1141 = __objc_msgSend_1141Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28033,6 +31738,31 @@ class AVFAudio { late final _sel_objectsForXQuery_error_1 = _registerName1("objectsForXQuery:error:"); late final _sel_initWithName_URI_1 = _registerName1("initWithName:URI:"); + instancetype _objc_msgSend_1142( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer URI, + ) { + return __objc_msgSend_1142( + obj, + sel, + name, + URI, + ); + } + + late final __objc_msgSend_1142Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1142 = __objc_msgSend_1142Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithName_stringValue_1 = _registerName1("initWithName:stringValue:"); late final _sel_initWithXMLString_error_1 = @@ -28040,6 +31770,34 @@ class AVFAudio { late final _sel_elementsForName_1 = _registerName1("elementsForName:"); late final _sel_elementsForLocalName_URI_1 = _registerName1("elementsForLocalName:URI:"); + ffi.Pointer _objc_msgSend_1143( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer localName, + ffi.Pointer URI, + ) { + return __objc_msgSend_1143( + obj, + sel, + localName, + URI, + ); + } + + late final __objc_msgSend_1143Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1143 = __objc_msgSend_1143Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_addAttribute_1 = _registerName1("addAttribute:"); late final _sel_removeAttributeForName_1 = _registerName1("removeAttributeForName:"); @@ -28050,13 +31808,13 @@ class AVFAudio { late final _sel_attributeForName_1 = _registerName1("attributeForName:"); late final _sel_attributeForLocalName_URI_1 = _registerName1("attributeForLocalName:URI:"); - ffi.Pointer _objc_msgSend_1000( + ffi.Pointer _objc_msgSend_1144( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localName, ffi.Pointer URI, ) { - return __objc_msgSend_1000( + return __objc_msgSend_1144( obj, sel, localName, @@ -28064,14 +31822,14 @@ class AVFAudio { ); } - late final __objc_msgSend_1000Ptr = _lookup< + late final __objc_msgSend_1144Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + late final __objc_msgSend_1144 = __objc_msgSend_1144Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28094,21 +31852,21 @@ class AVFAudio { _registerName1("setAttributesAsDictionary:"); late final _class_AVAudioSession1 = _getClass1("AVAudioSession"); late final _sel_sharedInstance1 = _registerName1("sharedInstance"); - ffi.Pointer _objc_msgSend_1001( + ffi.Pointer _objc_msgSend_1145( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1001( + return __objc_msgSend_1145( obj, sel, ); } - late final __objc_msgSend_1001Ptr = _lookup< + late final __objc_msgSend_1145Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< + late final __objc_msgSend_1145 = __objc_msgSend_1145Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -28116,14 +31874,14 @@ class AVFAudio { late final _sel_setCategory_error_1 = _registerName1("setCategory:error:"); late final _sel_setCategory_withOptions_error_1 = _registerName1("setCategory:withOptions:error:"); - bool _objc_msgSend_1002( + bool _objc_msgSend_1146( ffi.Pointer obj, ffi.Pointer sel, - AVAudioSessionCategory category, + ffi.Pointer category, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_1002( + return __objc_msgSend_1146( obj, sel, category, @@ -28132,29 +31890,33 @@ class AVFAudio { ); } - late final __objc_msgSend_1002Ptr = _lookup< + late final __objc_msgSend_1146Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - AVAudioSessionCategory, + ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - AVAudioSessionCategory, int, ffi.Pointer>)>(); + late final __objc_msgSend_1146 = __objc_msgSend_1146Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); late final _sel_setCategory_mode_options_error_1 = _registerName1("setCategory:mode:options:error:"); - bool _objc_msgSend_1003( + bool _objc_msgSend_1147( ffi.Pointer obj, ffi.Pointer sel, - AVAudioSessionCategory category, - AVAudioSessionMode mode, + ffi.Pointer category, + ffi.Pointer mode, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_1003( + return __objc_msgSend_1147( obj, sel, category, @@ -28164,36 +31926,36 @@ class AVFAudio { ); } - late final __objc_msgSend_1003Ptr = _lookup< + late final __objc_msgSend_1147Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - AVAudioSessionCategory, - AVAudioSessionMode, + ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< + late final __objc_msgSend_1147 = __objc_msgSend_1147Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, - AVAudioSessionCategory, - AVAudioSessionMode, + ffi.Pointer, + ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_setCategory_mode_routeSharingPolicy_options_error_1 = _registerName1("setCategory:mode:routeSharingPolicy:options:error:"); - bool _objc_msgSend_1004( + bool _objc_msgSend_1148( ffi.Pointer obj, ffi.Pointer sel, - AVAudioSessionCategory category, - AVAudioSessionMode mode, + ffi.Pointer category, + ffi.Pointer mode, int policy, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_1004( + return __objc_msgSend_1148( obj, sel, category, @@ -28204,61 +31966,61 @@ class AVFAudio { ); } - late final __objc_msgSend_1004Ptr = _lookup< + late final __objc_msgSend_1148Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - AVAudioSessionCategory, - AVAudioSessionMode, + ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< + late final __objc_msgSend_1148 = __objc_msgSend_1148Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, - AVAudioSessionCategory, - AVAudioSessionMode, + ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer>)>(); late final _sel_category1 = _registerName1("category"); late final _sel_categoryOptions1 = _registerName1("categoryOptions"); - int _objc_msgSend_1005( + int _objc_msgSend_1149( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1005( + return __objc_msgSend_1149( obj, sel, ); } - late final __objc_msgSend_1005Ptr = _lookup< + late final __objc_msgSend_1149Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< + late final __objc_msgSend_1149 = __objc_msgSend_1149Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_routeSharingPolicy1 = _registerName1("routeSharingPolicy"); - int _objc_msgSend_1006( + int _objc_msgSend_1150( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1006( + return __objc_msgSend_1150( obj, sel, ); } - late final __objc_msgSend_1006Ptr = _lookup< + late final __objc_msgSend_1150Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< + late final __objc_msgSend_1150 = __objc_msgSend_1150Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_availableModes1 = _registerName1("availableModes"); @@ -28266,13 +32028,13 @@ class AVFAudio { late final _sel_mode1 = _registerName1("mode"); late final _sel_setAllowHapticsAndSystemSoundsDuringRecording_error_1 = _registerName1("setAllowHapticsAndSystemSoundsDuringRecording:error:"); - bool _objc_msgSend_1007( + bool _objc_msgSend_1151( ffi.Pointer obj, ffi.Pointer sel, bool inValue, ffi.Pointer> outError, ) { - return __objc_msgSend_1007( + return __objc_msgSend_1151( obj, sel, inValue, @@ -28280,65 +32042,65 @@ class AVFAudio { ); } - late final __objc_msgSend_1007Ptr = _lookup< + late final __objc_msgSend_1151Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< + late final __objc_msgSend_1151 = __objc_msgSend_1151Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, bool, ffi.Pointer>)>(); late final _sel_allowHapticsAndSystemSoundsDuringRecording1 = _registerName1("allowHapticsAndSystemSoundsDuringRecording"); late final _sel_recordPermission1 = _registerName1("recordPermission"); - int _objc_msgSend_1008( + int _objc_msgSend_1152( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1008( + return __objc_msgSend_1152( obj, sel, ); } - late final __objc_msgSend_1008Ptr = _lookup< + late final __objc_msgSend_1152Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< + late final __objc_msgSend_1152 = __objc_msgSend_1152Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_requestRecordPermission_1 = _registerName1("requestRecordPermission:"); - void _objc_msgSend_1009( + void _objc_msgSend_1153( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> response, ) { - return __objc_msgSend_1009( + return __objc_msgSend_1153( obj, sel, response, ); } - late final __objc_msgSend_1009Ptr = _lookup< + late final __objc_msgSend_1153Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< + late final __objc_msgSend_1153 = __objc_msgSend_1153Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_overrideOutputAudioPort_error_1 = _registerName1("overrideOutputAudioPort:error:"); - bool _objc_msgSend_1010( + bool _objc_msgSend_1154( ffi.Pointer obj, ffi.Pointer sel, int portOverride, ffi.Pointer> outError, ) { - return __objc_msgSend_1010( + return __objc_msgSend_1154( obj, sel, portOverride, @@ -28346,14 +32108,14 @@ class AVFAudio { ); } - late final __objc_msgSend_1010Ptr = _lookup< + late final __objc_msgSend_1154Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< + late final __objc_msgSend_1154 = __objc_msgSend_1154Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -28382,35 +32144,60 @@ class AVFAudio { _registerName1("preferredPolarPattern"); late final _sel_setPreferredPolarPattern_error_1 = _registerName1("setPreferredPolarPattern:error:"); + bool _objc_msgSend_1155( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pattern, + ffi.Pointer> outError, + ) { + return __objc_msgSend_1155( + obj, + sel, + pattern, + outError, + ); + } + + late final __objc_msgSend_1155Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1155 = __objc_msgSend_1155Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + late final _sel_selectedDataSource1 = _registerName1("selectedDataSource"); - ffi.Pointer _objc_msgSend_1011( + ffi.Pointer _objc_msgSend_1156( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1011( + return __objc_msgSend_1156( obj, sel, ); } - late final __objc_msgSend_1011Ptr = _lookup< + late final __objc_msgSend_1156Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< + late final __objc_msgSend_1156 = __objc_msgSend_1156Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_preferredDataSource1 = _registerName1("preferredDataSource"); late final _sel_setPreferredDataSource_error_1 = _registerName1("setPreferredDataSource:error:"); - bool _objc_msgSend_1012( + bool _objc_msgSend_1157( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataSource, ffi.Pointer> outError, ) { - return __objc_msgSend_1012( + return __objc_msgSend_1157( obj, sel, dataSource, @@ -28418,26 +32205,26 @@ class AVFAudio { ); } - late final __objc_msgSend_1012Ptr = _lookup< + late final __objc_msgSend_1157Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< + late final __objc_msgSend_1157 = __objc_msgSend_1157Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_setPreferredInput_error_1 = _registerName1("setPreferredInput:error:"); - bool _objc_msgSend_1013( + bool _objc_msgSend_1158( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer inPort, ffi.Pointer> outError, ) { - return __objc_msgSend_1013( + return __objc_msgSend_1158( obj, sel, inPort, @@ -28445,33 +32232,33 @@ class AVFAudio { ); } - late final __objc_msgSend_1013Ptr = _lookup< + late final __objc_msgSend_1158Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< + late final __objc_msgSend_1158 = __objc_msgSend_1158Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_preferredInput1 = _registerName1("preferredInput"); - ffi.Pointer _objc_msgSend_1014( + ffi.Pointer _objc_msgSend_1159( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1014( + return __objc_msgSend_1159( obj, sel, ); } - late final __objc_msgSend_1014Ptr = _lookup< + late final __objc_msgSend_1159Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< + late final __objc_msgSend_1159 = __objc_msgSend_1159Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -28482,14 +32269,14 @@ class AVFAudio { late final _sel_setActive_error_1 = _registerName1("setActive:error:"); late final _sel_setActive_withOptions_error_1 = _registerName1("setActive:withOptions:error:"); - bool _objc_msgSend_1015( + bool _objc_msgSend_1160( ffi.Pointer obj, ffi.Pointer sel, bool active, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_1015( + return __objc_msgSend_1160( obj, sel, active, @@ -28498,7 +32285,7 @@ class AVFAudio { ); } - late final __objc_msgSend_1015Ptr = _lookup< + late final __objc_msgSend_1160Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -28506,19 +32293,19 @@ class AVFAudio { ffi.Bool, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< + late final __objc_msgSend_1160 = __objc_msgSend_1160Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, bool, int, ffi.Pointer>)>(); late final _sel_activateWithOptions_completionHandler_1 = _registerName1("activateWithOptions:completionHandler:"); - void _objc_msgSend_1016( + void _objc_msgSend_1161( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_1016( + return __objc_msgSend_1161( obj, sel, options, @@ -28526,23 +32313,23 @@ class AVFAudio { ); } - late final __objc_msgSend_1016Ptr = _lookup< + late final __objc_msgSend_1161Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< + late final __objc_msgSend_1161 = __objc_msgSend_1161Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_setPreferredSampleRate_error_1 = _registerName1("setPreferredSampleRate:error:"); - bool _objc_msgSend_1017( + bool _objc_msgSend_1162( ffi.Pointer obj, ffi.Pointer sel, double sampleRate, ffi.Pointer> outError, ) { - return __objc_msgSend_1017( + return __objc_msgSend_1162( obj, sel, sampleRate, @@ -28550,14 +32337,14 @@ class AVFAudio { ); } - late final __objc_msgSend_1017Ptr = _lookup< + late final __objc_msgSend_1162Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< + late final __objc_msgSend_1162 = __objc_msgSend_1162Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer>)>(); @@ -28568,13 +32355,13 @@ class AVFAudio { _registerName1("preferredIOBufferDuration"); late final _sel_setPreferredInputNumberOfChannels_error_1 = _registerName1("setPreferredInputNumberOfChannels:error:"); - bool _objc_msgSend_1018( + bool _objc_msgSend_1163( ffi.Pointer obj, ffi.Pointer sel, int count, ffi.Pointer> outError, ) { - return __objc_msgSend_1018( + return __objc_msgSend_1163( obj, sel, count, @@ -28582,14 +32369,11 @@ class AVFAudio { ); } - late final __objc_msgSend_1018Ptr = _lookup< + late final __objc_msgSend_1163Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Long, ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1163 = __objc_msgSend_1163Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -28601,13 +32385,13 @@ class AVFAudio { _registerName1("preferredOutputNumberOfChannels"); late final _sel_setPreferredInputOrientation_error_1 = _registerName1("setPreferredInputOrientation:error:"); - bool _objc_msgSend_1019( + bool _objc_msgSend_1164( ffi.Pointer obj, ffi.Pointer sel, int orientation, ffi.Pointer> outError, ) { - return __objc_msgSend_1019( + return __objc_msgSend_1164( obj, sel, orientation, @@ -28615,34 +32399,34 @@ class AVFAudio { ); } - late final __objc_msgSend_1019Ptr = _lookup< + late final __objc_msgSend_1164Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< + late final __objc_msgSend_1164 = __objc_msgSend_1164Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_preferredInputOrientation1 = _registerName1("preferredInputOrientation"); - int _objc_msgSend_1020( + int _objc_msgSend_1165( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1020( + return __objc_msgSend_1165( obj, sel, ); } - late final __objc_msgSend_1020Ptr = _lookup< + late final __objc_msgSend_1165Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< + late final __objc_msgSend_1165 = __objc_msgSend_1165Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_inputOrientation1 = _registerName1("inputOrientation"); @@ -28651,13 +32435,13 @@ class AVFAudio { late final _sel_maximumOutputNumberOfChannels1 = _registerName1("maximumOutputNumberOfChannels"); late final _sel_setInputGain_error_1 = _registerName1("setInputGain:error:"); - bool _objc_msgSend_1021( + bool _objc_msgSend_1166( ffi.Pointer obj, ffi.Pointer sel, double gain, ffi.Pointer> outError, ) { - return __objc_msgSend_1021( + return __objc_msgSend_1166( obj, sel, gain, @@ -28665,14 +32449,14 @@ class AVFAudio { ); } - late final __objc_msgSend_1021Ptr = _lookup< + late final __objc_msgSend_1166Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Float, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< + late final __objc_msgSend_1166 = __objc_msgSend_1166Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer>)>(); @@ -28700,21 +32484,21 @@ class AVFAudio { _registerName1("secondaryAudioShouldBeSilencedHint"); late final _sel_outputVolume1 = _registerName1("outputVolume"); late final _sel_promptStyle1 = _registerName1("promptStyle"); - int _objc_msgSend_1022( + int _objc_msgSend_1167( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1022( + return __objc_msgSend_1167( obj, sel, ); } - late final __objc_msgSend_1022Ptr = _lookup< + late final __objc_msgSend_1167Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< + late final __objc_msgSend_1167 = __objc_msgSend_1167Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_availableInputs1 = _registerName1("availableInputs"); @@ -28723,33 +32507,33 @@ class AVFAudio { late final _sel_inputs1 = _registerName1("inputs"); late final _sel_outputs1 = _registerName1("outputs"); late final _sel_currentRoute1 = _registerName1("currentRoute"); - ffi.Pointer _objc_msgSend_1023( + ffi.Pointer _objc_msgSend_1168( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1023( + return __objc_msgSend_1168( obj, sel, ); } - late final __objc_msgSend_1023Ptr = _lookup< + late final __objc_msgSend_1168Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< + late final __objc_msgSend_1168 = __objc_msgSend_1168Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setAggregatedIOPreference_error_1 = _registerName1("setAggregatedIOPreference:error:"); - bool _objc_msgSend_1024( + bool _objc_msgSend_1169( ffi.Pointer obj, ffi.Pointer sel, int inIOType, ffi.Pointer> outError, ) { - return __objc_msgSend_1024( + return __objc_msgSend_1169( obj, sel, inIOType, @@ -28757,14 +32541,14 @@ class AVFAudio { ); } - late final __objc_msgSend_1024Ptr = _lookup< + late final __objc_msgSend_1169Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< + late final __objc_msgSend_1169 = __objc_msgSend_1169Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -28772,16 +32556,20 @@ class AVFAudio { _registerName1("setSupportsMultichannelContent:error:"); late final _sel_supportsMultichannelContent1 = _registerName1("supportsMultichannelContent"); + late final _sel_setPrefersInterruptionOnRouteDisconnect_error_1 = + _registerName1("setPrefersInterruptionOnRouteDisconnect:error:"); + late final _sel_prefersInterruptionOnRouteDisconnect1 = + _registerName1("prefersInterruptionOnRouteDisconnect"); late final _sel_setActive_withFlags_error_1 = _registerName1("setActive:withFlags:error:"); - bool _objc_msgSend_1025( + bool _objc_msgSend_1170( ffi.Pointer obj, ffi.Pointer sel, bool active, int flags, ffi.Pointer> outError, ) { - return __objc_msgSend_1025( + return __objc_msgSend_1170( obj, sel, active, @@ -28790,15 +32578,15 @@ class AVFAudio { ); } - late final __objc_msgSend_1025Ptr = _lookup< + late final __objc_msgSend_1170Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Bool, - NSInteger, + ffi.Long, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< + late final __objc_msgSend_1170 = __objc_msgSend_1170Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, bool, int, ffi.Pointer>)>(); @@ -28815,13 +32603,13 @@ class AVFAudio { _registerName1("preferredHardwareSampleRate"); late final _class_AVAudioPlayer1 = _getClass1("AVAudioPlayer"); late final _sel_initWithData_error_1 = _registerName1("initWithData:error:"); - instancetype _objc_msgSend_1026( + instancetype _objc_msgSend_1171( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer> outError, ) { - return __objc_msgSend_1026( + return __objc_msgSend_1171( obj, sel, data, @@ -28829,27 +32617,27 @@ class AVFAudio { ); } - late final __objc_msgSend_1026Ptr = _lookup< + late final __objc_msgSend_1171Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< + late final __objc_msgSend_1171 = __objc_msgSend_1171Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_initWithContentsOfURL_fileTypeHint_error_1 = _registerName1("initWithContentsOfURL:fileTypeHint:error:"); - instancetype _objc_msgSend_1027( + instancetype _objc_msgSend_1172( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer utiString, ffi.Pointer> outError, ) { - return __objc_msgSend_1027( + return __objc_msgSend_1172( obj, sel, url, @@ -28858,7 +32646,7 @@ class AVFAudio { ); } - late final __objc_msgSend_1027Ptr = _lookup< + late final __objc_msgSend_1172Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -28866,7 +32654,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< + late final __objc_msgSend_1172 = __objc_msgSend_1172Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -28876,14 +32664,14 @@ class AVFAudio { late final _sel_initWithData_fileTypeHint_error_1 = _registerName1("initWithData:fileTypeHint:error:"); - instancetype _objc_msgSend_1028( + instancetype _objc_msgSend_1173( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer utiString, ffi.Pointer> outError, ) { - return __objc_msgSend_1028( + return __objc_msgSend_1173( obj, sel, data, @@ -28892,7 +32680,7 @@ class AVFAudio { ); } - late final __objc_msgSend_1028Ptr = _lookup< + late final __objc_msgSend_1173Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -28900,7 +32688,7 @@ class AVFAudio { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< + late final __objc_msgSend_1173 = __objc_msgSend_1173Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -28911,23 +32699,23 @@ class AVFAudio { late final _sel_prepareToPlay1 = _registerName1("prepareToPlay"); late final _sel_play1 = _registerName1("play"); late final _sel_playAtTime_1 = _registerName1("playAtTime:"); - bool _objc_msgSend_1029( + bool _objc_msgSend_1174( ffi.Pointer obj, ffi.Pointer sel, double time, ) { - return __objc_msgSend_1029( + return __objc_msgSend_1174( obj, sel, time, ); } - late final __objc_msgSend_1029Ptr = _lookup< + late final __objc_msgSend_1174Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_1174 = __objc_msgSend_1174Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_isPlaying1 = _registerName1("isPlaying"); @@ -28941,13 +32729,13 @@ class AVFAudio { late final _sel_setVolume_1 = _registerName1("setVolume:"); late final _sel_setVolume_fadeDuration_1 = _registerName1("setVolume:fadeDuration:"); - void _objc_msgSend_1030( + void _objc_msgSend_1175( ffi.Pointer obj, ffi.Pointer sel, double volume, double duration, ) { - return __objc_msgSend_1030( + return __objc_msgSend_1175( obj, sel, volume, @@ -28955,11 +32743,11 @@ class AVFAudio { ); } - late final __objc_msgSend_1030Ptr = _lookup< + late final __objc_msgSend_1175Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Float, NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< + ffi.Float, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_1175 = __objc_msgSend_1175Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, double, double)>(); @@ -28976,120 +32764,140 @@ class AVFAudio { late final _class_AVAudioFormat1 = _getClass1("AVAudioFormat"); late final _sel_initWithStreamDescription_1 = _registerName1("initWithStreamDescription:"); - instancetype _objc_msgSend_1031( + instancetype _objc_msgSend_1176( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer asbd, ) { - return __objc_msgSend_1031( + return __objc_msgSend_1176( obj, sel, asbd, ); } - late final __objc_msgSend_1031Ptr = _lookup< + late final __objc_msgSend_1176Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< + late final __objc_msgSend_1176 = __objc_msgSend_1176Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_AVAudioChannelLayout1 = _getClass1("AVAudioChannelLayout"); late final _sel_initWithLayoutTag_1 = _registerName1("initWithLayoutTag:"); - instancetype _objc_msgSend_1032( + instancetype _objc_msgSend_1177( ffi.Pointer obj, ffi.Pointer sel, int layoutTag, ) { - return __objc_msgSend_1032( + return __objc_msgSend_1177( obj, sel, layoutTag, ); } - late final __objc_msgSend_1032Ptr = _lookup< + late final __objc_msgSend_1177Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - AudioChannelLayoutTag)>>('objc_msgSend'); - late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_1177 = __objc_msgSend_1177Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLayout_1 = _registerName1("initWithLayout:"); - instancetype _objc_msgSend_1033( + instancetype _objc_msgSend_1178( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer layout, ) { - return __objc_msgSend_1033( + return __objc_msgSend_1178( obj, sel, layout, ); } - late final __objc_msgSend_1033Ptr = _lookup< + late final __objc_msgSend_1178Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< + late final __objc_msgSend_1178 = __objc_msgSend_1178Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqual_1 = _registerName1("isEqual:"); late final _sel_layoutWithLayoutTag_1 = _registerName1("layoutWithLayoutTag:"); + instancetype _objc_msgSend_1179( + ffi.Pointer obj, + ffi.Pointer sel, + int layoutTag, + ) { + return __objc_msgSend_1179( + obj, + sel, + layoutTag, + ); + } + + late final __objc_msgSend_1179Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_1179 = __objc_msgSend_1179Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_layoutWithLayout_1 = _registerName1("layoutWithLayout:"); late final _sel_layoutTag1 = _registerName1("layoutTag"); late final _sel_layout1 = _registerName1("layout"); - ffi.Pointer _objc_msgSend_1034( + ffi.Pointer _objc_msgSend_1180( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1034( + return __objc_msgSend_1180( obj, sel, ); } - late final __objc_msgSend_1034Ptr = _lookup< + late final __objc_msgSend_1180Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< + late final __objc_msgSend_1180 = __objc_msgSend_1180Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_channelCount1 = _registerName1("channelCount"); - int _objc_msgSend_1035( + int _objc_msgSend_1181( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1035( + return __objc_msgSend_1181( obj, sel, ); } - late final __objc_msgSend_1035Ptr = _lookup< + late final __objc_msgSend_1181Ptr = _lookup< ffi.NativeFunction< - AVAudioChannelCount Function( + ffi.Uint32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< + late final __objc_msgSend_1181 = __objc_msgSend_1181Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithStreamDescription_channelLayout_1 = _registerName1("initWithStreamDescription:channelLayout:"); - instancetype _objc_msgSend_1036( + instancetype _objc_msgSend_1182( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer asbd, ffi.Pointer layout, ) { - return __objc_msgSend_1036( + return __objc_msgSend_1182( obj, sel, asbd, @@ -29097,26 +32905,26 @@ class AVFAudio { ); } - late final __objc_msgSend_1036Ptr = _lookup< + late final __objc_msgSend_1182Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< + late final __objc_msgSend_1182 = __objc_msgSend_1182Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initStandardFormatWithSampleRate_channels_1 = _registerName1("initStandardFormatWithSampleRate:channels:"); - instancetype _objc_msgSend_1037( + instancetype _objc_msgSend_1183( ffi.Pointer obj, ffi.Pointer sel, double sampleRate, int channels, ) { - return __objc_msgSend_1037( + return __objc_msgSend_1183( obj, sel, sampleRate, @@ -29124,23 +32932,23 @@ class AVFAudio { ); } - late final __objc_msgSend_1037Ptr = _lookup< + late final __objc_msgSend_1183Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Double, AVAudioChannelCount)>>('objc_msgSend'); - late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< + ffi.Double, ffi.Uint32)>>('objc_msgSend'); + late final __objc_msgSend_1183 = __objc_msgSend_1183Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, double, int)>(); late final _sel_initStandardFormatWithSampleRate_channelLayout_1 = _registerName1("initStandardFormatWithSampleRate:channelLayout:"); - instancetype _objc_msgSend_1038( + instancetype _objc_msgSend_1184( ffi.Pointer obj, ffi.Pointer sel, double sampleRate, ffi.Pointer layout, ) { - return __objc_msgSend_1038( + return __objc_msgSend_1184( obj, sel, sampleRate, @@ -29148,17 +32956,17 @@ class AVFAudio { ); } - late final __objc_msgSend_1038Ptr = _lookup< + late final __objc_msgSend_1184Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< + late final __objc_msgSend_1184 = __objc_msgSend_1184Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_initWithCommonFormat_sampleRate_channels_interleaved_1 = _registerName1("initWithCommonFormat:sampleRate:channels:interleaved:"); - instancetype _objc_msgSend_1039( + instancetype _objc_msgSend_1185( ffi.Pointer obj, ffi.Pointer sel, int format, @@ -29166,7 +32974,7 @@ class AVFAudio { int channels, bool interleaved, ) { - return __objc_msgSend_1039( + return __objc_msgSend_1185( obj, sel, format, @@ -29176,23 +32984,18 @@ class AVFAudio { ); } - late final __objc_msgSend_1039Ptr = _lookup< + late final __objc_msgSend_1185Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Double, - AVAudioChannelCount, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Double, ffi.Uint32, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_1185 = __objc_msgSend_1185Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, double, int, bool)>(); late final _sel_initWithCommonFormat_sampleRate_interleaved_channelLayout_1 = _registerName1( "initWithCommonFormat:sampleRate:interleaved:channelLayout:"); - instancetype _objc_msgSend_1040( + instancetype _objc_msgSend_1186( ffi.Pointer obj, ffi.Pointer sel, int format, @@ -29200,7 +33003,7 @@ class AVFAudio { bool interleaved, ffi.Pointer layout, ) { - return __objc_msgSend_1040( + return __objc_msgSend_1186( obj, sel, format, @@ -29210,7 +33013,7 @@ class AVFAudio { ); } - late final __objc_msgSend_1040Ptr = _lookup< + late final __objc_msgSend_1186Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29219,127 +33022,127 @@ class AVFAudio { ffi.Double, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< + late final __objc_msgSend_1186 = __objc_msgSend_1186Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, double, bool, ffi.Pointer)>(); late final _sel_initWithSettings_1 = _registerName1("initWithSettings:"); late final _sel_initWithCMAudioFormatDescription_1 = _registerName1("initWithCMAudioFormatDescription:"); - instancetype _objc_msgSend_1041( + instancetype _objc_msgSend_1187( ffi.Pointer obj, ffi.Pointer sel, - CMAudioFormatDescriptionRef formatDescription, + ffi.Pointer formatDescription, ) { - return __objc_msgSend_1041( + return __objc_msgSend_1187( obj, sel, formatDescription, ); } - late final __objc_msgSend_1041Ptr = _lookup< + late final __objc_msgSend_1187Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - CMAudioFormatDescriptionRef)>>('objc_msgSend'); - late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1187 = __objc_msgSend_1187Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - CMAudioFormatDescriptionRef)>(); + ffi.Pointer)>(); late final _sel_isStandard1 = _registerName1("isStandard"); late final _sel_commonFormat1 = _registerName1("commonFormat"); - int _objc_msgSend_1042( + int _objc_msgSend_1188( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1042( + return __objc_msgSend_1188( obj, sel, ); } - late final __objc_msgSend_1042Ptr = _lookup< + late final __objc_msgSend_1188Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< + late final __objc_msgSend_1188 = __objc_msgSend_1188Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_isInterleaved1 = _registerName1("isInterleaved"); late final _sel_streamDescription1 = _registerName1("streamDescription"); - ffi.Pointer _objc_msgSend_1043( + ffi.Pointer _objc_msgSend_1189( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1043( + return __objc_msgSend_1189( obj, sel, ); } - late final __objc_msgSend_1043Ptr = _lookup< + late final __objc_msgSend_1189Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< + late final __objc_msgSend_1189 = __objc_msgSend_1189Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_channelLayout1 = _registerName1("channelLayout"); - ffi.Pointer _objc_msgSend_1044( + ffi.Pointer _objc_msgSend_1190( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1044( + return __objc_msgSend_1190( obj, sel, ); } - late final __objc_msgSend_1044Ptr = _lookup< + late final __objc_msgSend_1190Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< + late final __objc_msgSend_1190 = __objc_msgSend_1190Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_magicCookie1 = _registerName1("magicCookie"); late final _sel_setMagicCookie_1 = _registerName1("setMagicCookie:"); late final _sel_formatDescription1 = _registerName1("formatDescription"); - CMAudioFormatDescriptionRef _objc_msgSend_1045( + ffi.Pointer _objc_msgSend_1191( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1045( + return __objc_msgSend_1191( obj, sel, ); } - late final __objc_msgSend_1045Ptr = _lookup< + late final __objc_msgSend_1191Ptr = _lookup< ffi.NativeFunction< - CMAudioFormatDescriptionRef Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< - CMAudioFormatDescriptionRef Function( + late final __objc_msgSend_1191 = __objc_msgSend_1191Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_1046( + ffi.Pointer _objc_msgSend_1192( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1046( + return __objc_msgSend_1192( obj, sel, ); } - late final __objc_msgSend_1046Ptr = _lookup< + late final __objc_msgSend_1192Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< + late final __objc_msgSend_1192 = __objc_msgSend_1192Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -29348,23 +33151,23 @@ class AVFAudio { late final _sel_updateMeters1 = _registerName1("updateMeters"); late final _sel_peakPowerForChannel_1 = _registerName1("peakPowerForChannel:"); - double _objc_msgSend_1047( + double _objc_msgSend_1193( ffi.Pointer obj, ffi.Pointer sel, int channelNumber, ) { - return __objc_msgSend_1047( + return __objc_msgSend_1193( obj, sel, channelNumber, ); } - late final __objc_msgSend_1047Ptr = _lookup< + late final __objc_msgSend_1193Ptr = _lookup< ffi.NativeFunction< ffi.Float Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend_fpret'); + late final __objc_msgSend_1193 = __objc_msgSend_1193Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_averagePowerForChannel_1 = @@ -29410,6 +33213,14 @@ class _ObjCWrapper implements ffi.Finalizable { @override int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer get pointer => _id; + + ffi.Pointer _retainAndReturnId() { + _lib._objc_retain(_id.cast()); + return _id; + } } class NSObject extends _ObjCWrapper { @@ -29435,11 +33246,11 @@ class NSObject extends _ObjCWrapper { } static void load(AVFAudio _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); } static void initialize(AVFAudio _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } NSObject init() { @@ -29464,11 +33275,11 @@ class NSObject extends _ObjCWrapper { } void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } NSObject copy() { @@ -29500,24 +33311,25 @@ class NSObject extends _ObjCWrapper { _lib._sel_instancesRespondToSelector_1, aSelector); } - static bool conformsToProtocol_(AVFAudio _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + static bool conformsToProtocol_(AVFAudio _lib, Protocol protocol) { + return _lib._objc_msgSend_5( + _lib._class_NSObject1, _lib._sel_conformsToProtocol_1, protocol._id); } - IMP methodForSelector_(ffi.Pointer aSelector) { + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); } - static IMP instanceMethodForSelector_( - AVFAudio _lib, ffi.Pointer aSelector) { + static ffi.Pointer> + instanceMethodForSelector_( + AVFAudio _lib, ffi.Pointer aSelector) { return _lib._objc_msgSend_6(_lib._class_NSObject1, _lib._sel_instanceMethodForSelector_1, aSelector); } void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); } NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { @@ -29526,21 +33338,21 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - void forwardInvocation_(NSInvocation? anInvocation) { - return _lib._objc_msgSend_372( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation anInvocation) { + _lib._objc_msgSend_421( + _id, _lib._sel_forwardInvocation_1, anInvocation._id); } NSMethodSignature methodSignatureForSelector_( ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_373( + final _ret = _lib._objc_msgSend_422( _id, _lib._sel_methodSignatureForSelector_1, aSelector); return NSMethodSignature._(_ret, _lib, retain: true, release: true); } static NSMethodSignature instanceMethodSignatureForSelector_( AVFAudio _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_373(_lib._class_NSObject1, + final _ret = _lib._objc_msgSend_422(_lib._class_NSObject1, _lib._sel_instanceMethodSignatureForSelector_1, aSelector); return NSMethodSignature._(_ret, _lib, retain: true, release: true); } @@ -29585,22 +33397,22 @@ class NSObject extends _ObjCWrapper { static NSString description(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); + _lib._objc_msgSend_21(_lib._class_NSObject1, _lib._sel_description1); return NSString._(_ret, _lib, retain: true, release: true); } static NSString debugDescription(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_20( + final _ret = _lib._objc_msgSend_21( _lib._class_NSObject1, _lib._sel_debugDescription1); return NSString._(_ret, _lib, retain: true, release: true); } static int version(AVFAudio _lib) { - return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); + return _lib._objc_msgSend_83(_lib._class_NSObject1, _lib._sel_version1); } static void setVersion_(AVFAudio _lib, int aVersion) { - return _lib._objc_msgSend_374( + _lib._objc_msgSend_423( _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); } @@ -29609,20 +33421,24 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? replacementObjectForCoder_(NSCoder coder) { + final _ret = _lib._objc_msgSend_47( + _id, _lib._sel_replacementObjectForCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject awakeAfterUsingCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + NSObject? awakeAfterUsingCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_awakeAfterUsingCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } static void poseAsClass_(AVFAudio _lib, NSObject aClass) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); } @@ -29634,51 +33450,51 @@ class NSObject extends _ObjCWrapper { void attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, + NSError error, int recoveryOptionIndex, - NSObject delegate, + NSObject? delegate, ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo) { - return _lib._objc_msgSend_375( + _lib._objc_msgSend_424( _id, _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, + error._id, recoveryOptionIndex, - delegate._id, + delegate?._id ?? ffi.nullptr, didRecoverSelector, contextInfo); } bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_376( + NSError error, int recoveryOptionIndex) { + return _lib._objc_msgSend_425( _id, _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, + error._id, recoveryOptionIndex); } void performSelector_withObject_afterDelay_inModes_( ffi.Pointer aSelector, - NSObject anArgument, + NSObject? anArgument, double delay, - NSArray? modes) { - return _lib._objc_msgSend_377( + NSArray modes) { + _lib._objc_msgSend_426( _id, _lib._sel_performSelector_withObject_afterDelay_inModes_1, aSelector, - anArgument._id, + anArgument?._id ?? ffi.nullptr, delay, - modes?._id ?? ffi.nullptr); + modes._id); } void performSelector_withObject_afterDelay_( - ffi.Pointer aSelector, NSObject anArgument, double delay) { - return _lib._objc_msgSend_378( + ffi.Pointer aSelector, NSObject? anArgument, double delay) { + _lib._objc_msgSend_427( _id, _lib._sel_performSelector_withObject_afterDelay_1, aSelector, - anArgument._id, + anArgument?._id ?? ffi.nullptr, delay); } @@ -29686,59 +33502,53 @@ class NSObject extends _ObjCWrapper { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSObject1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSObject1, + _lib._objc_msgSend_15(_lib._class_NSObject1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - return _lib._objc_msgSend_379( - _id, - _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, - newBytes?._id ?? ffi.nullptr); + void URL_resourceDataDidBecomeAvailable_(NSURL sender, NSData newBytes) { + _lib._objc_msgSend_428(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender._id, newBytes._id); } - void URLResourceDidFinishLoading_(NSURL? sender) { - return _lib._objc_msgSend_380(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); + void URLResourceDidFinishLoading_(NSURL sender) { + _lib._objc_msgSend_429( + _id, _lib._sel_URLResourceDidFinishLoading_1, sender._id); } - void URLResourceDidCancelLoading_(NSURL? sender) { - return _lib._objc_msgSend_380(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); + void URLResourceDidCancelLoading_(NSURL sender) { + _lib._objc_msgSend_429( + _id, _lib._sel_URLResourceDidCancelLoading_1, sender._id); } - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - return _lib._objc_msgSend_381( + void URL_resourceDidFailLoadingWithReason_(NSURL sender, NSString reason) { + _lib._objc_msgSend_430( _id, _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); + sender._id, + reason._id); } bool fileManager_shouldProceedAfterError_( - NSFileManager? fm, NSDictionary? errorInfo) { - return _lib._objc_msgSend_407( - _id, - _lib._sel_fileManager_shouldProceedAfterError_1, - fm?._id ?? ffi.nullptr, - errorInfo?._id ?? ffi.nullptr); + NSFileManager fm, NSDictionary errorInfo) { + return _lib._objc_msgSend_467(_id, + _lib._sel_fileManager_shouldProceedAfterError_1, fm._id, errorInfo._id); } - void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - return _lib._objc_msgSend_408(_id, _lib._sel_fileManager_willProcessPath_1, - fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + void fileManager_willProcessPath_(NSFileManager fm, NSString path) { + _lib._objc_msgSend_468( + _id, _lib._sel_fileManager_willProcessPath_1, fm._id, path._id); } static bool getAccessInstanceVariablesDirectly(AVFAudio _lib) { @@ -29746,111 +33556,111 @@ class NSObject extends _ObjCWrapper { _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); } - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_valueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } bool validateValue_forKey_error_(ffi.Pointer> ioValue, - NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_220(_id, _lib._sel_validateValue_forKey_error_1, - ioValue, inKey?._id ?? ffi.nullptr, outError); + NSString inKey, ffi.Pointer> outError) { + return _lib._objc_msgSend_244(_id, _lib._sel_validateValue_forKey_error_1, + ioValue, inKey._id, outError); } - NSMutableArray mutableArrayValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_425( - _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); + NSMutableArray mutableArrayValueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_488( + _id, _lib._sel_mutableArrayValueForKey_1, key._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_441( - _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); + NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_506( + _id, _lib._sel_mutableOrderedSetValueForKey_1, key._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSMutableSet mutableSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_442( - _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); + NSMutableSet mutableSetValueForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_507(_id, _lib._sel_mutableSetValueForKey_1, key._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSObject valueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForKeyPath_(NSString keyPath) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_valueForKeyPath_1, keyPath._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_122(_id, _lib._sel_setValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); + void setValue_forKeyPath_(NSObject? value, NSString keyPath) { + _lib._objc_msgSend_135(_id, _lib._sel_setValue_forKeyPath_1, + value?._id ?? ffi.nullptr, keyPath._id); } bool validateValue_forKeyPath_error_( ffi.Pointer> ioValue, - NSString? inKeyPath, + NSString inKeyPath, ffi.Pointer> outError) { - return _lib._objc_msgSend_220( + return _lib._objc_msgSend_244( _id, _lib._sel_validateValue_forKeyPath_error_1, ioValue, - inKeyPath?._id ?? ffi.nullptr, + inKeyPath._id, outError); } - NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_425(_id, - _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + NSMutableArray mutableArrayValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_488( + _id, _lib._sel_mutableArrayValueForKeyPath_1, keyPath._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_441( - _id, - _lib._sel_mutableOrderedSetValueForKeyPath_1, - keyPath?._id ?? ffi.nullptr); + NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_506( + _id, _lib._sel_mutableOrderedSetValueForKeyPath_1, keyPath._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_442(_id, - _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + NSMutableSet mutableSetValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_507( + _id, _lib._sel_mutableSetValueForKeyPath_1, keyPath._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSObject valueForUndefinedKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForUndefinedKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_valueForUndefinedKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setValue_forUndefinedKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_setValue_forUndefinedKey_1, - value._id, key?._id ?? ffi.nullptr); + void setValue_forUndefinedKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_setValue_forUndefinedKey_1, + value?._id ?? ffi.nullptr, key._id); } - void setNilValueForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); + void setNilValueForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_setNilValueForKey_1, key._id); } - NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_443( - _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); + NSDictionary dictionaryWithValuesForKeys_(NSArray keys) { + final _ret = _lib._objc_msgSend_508( + _id, _lib._sel_dictionaryWithValuesForKeys_1, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - return _lib._objc_msgSend_444( - _id, - _lib._sel_setValuesForKeysWithDictionary_1, - keyedValues?._id ?? ffi.nullptr); + void setValuesForKeysWithDictionary_(NSDictionary keyedValues) { + _lib._objc_msgSend_509( + _id, _lib._sel_setValuesForKeysWithDictionary_1, keyedValues._id); } static bool useStoredAccessor(AVFAudio _lib) { @@ -29858,193 +33668,177 @@ class NSObject extends _ObjCWrapper { _lib._class_NSObject1, _lib._sel_useStoredAccessor1); } - NSObject storedValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? storedValueForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_storedValueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void takeStoredValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_takeStoredValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); + void takeStoredValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_takeStoredValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); } - void takeValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void takeValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_takeValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } - void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_122(_id, _lib._sel_takeValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); + void takeValue_forKeyPath_(NSObject? value, NSString keyPath) { + _lib._objc_msgSend_135(_id, _lib._sel_takeValue_forKeyPath_1, + value?._id ?? ffi.nullptr, keyPath._id); } - NSObject handleQueryWithUnboundKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? handleQueryWithUnboundKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_handleQueryWithUnboundKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, - key?._id ?? ffi.nullptr); + void handleTakeValue_forUnboundKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_handleTakeValue_forUnboundKey_1, + value?._id ?? ffi.nullptr, key._id); } - void unableToSetNilForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); + void unableToSetNilForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_unableToSetNilForKey_1, key._id); } - NSDictionary valuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_443( - _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); + NSDictionary valuesForKeys_(NSArray keys) { + final _ret = + _lib._objc_msgSend_508(_id, _lib._sel_valuesForKeys_1, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - void takeValuesFromDictionary_(NSDictionary? properties) { - return _lib._objc_msgSend_444(_id, _lib._sel_takeValuesFromDictionary_1, - properties?._id ?? ffi.nullptr); + void takeValuesFromDictionary_(NSDictionary properties) { + _lib._objc_msgSend_509( + _id, _lib._sel_takeValuesFromDictionary_1, properties._id); } void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, - NSObject object, NSDictionary? change, ffi.Pointer context) { - return _lib._objc_msgSend_445( + NSObject? object, NSDictionary? change, ffi.Pointer context) { + _lib._objc_msgSend_510( _id, _lib._sel_observeValueForKeyPath_ofObject_change_context_1, keyPath?._id ?? ffi.nullptr, - object._id, + object?._id ?? ffi.nullptr, change?._id ?? ffi.nullptr, context); } - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - void willChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); + void willChangeValueForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_willChangeValueForKey_1, key._id); } - void didChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); + void didChangeValueForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_didChangeValueForKey_1, key._id); } void willChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_446( - _id, - _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + int changeKind, NSIndexSet indexes, NSString key) { + _lib._objc_msgSend_511(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, indexes._id, key._id); } void didChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_446( - _id, - _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + int changeKind, NSIndexSet indexes, NSString key) { + _lib._objc_msgSend_511(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, indexes._id, key._id); } void willChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_447( + NSString key, int mutationKind, NSSet objects) { + _lib._objc_msgSend_512( _id, _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, + key._id, mutationKind, - objects?._id ?? ffi.nullptr); + objects._id); } void didChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_447( + NSString key, int mutationKind, NSSet objects) { + _lib._objc_msgSend_512( _id, _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, + key._id, mutationKind, - objects?._id ?? ffi.nullptr); + objects._id); } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSObject1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSObject1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSObject1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSObject1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } ffi.Pointer get observationInfo { - return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + return _lib._objc_msgSend_20(_id, _lib._sel_observationInfo1); } set observationInfo(ffi.Pointer value) { - _lib._objc_msgSend_448(_id, _lib._sel_setObservationInfo_1, value); + return _lib._objc_msgSend_513(_id, _lib._sel_setObservationInfo_1, value); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSObject1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } - NSObject get classForKeyedArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get classForKeyedArchiver { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_classForKeyedArchiver1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { - final _ret = _lib._objc_msgSend_461( - _id, - _lib._sel_replacementObjectForKeyedArchiver_1, - archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? replacementObjectForKeyedArchiver_(NSKeyedArchiver archiver) { + final _ret = _lib._objc_msgSend_528( + _id, _lib._sel_replacementObjectForKeyedArchiver_1, archiver._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -30056,68 +33850,78 @@ class NSObject extends _ObjCWrapper { } void performSelectorOnMainThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_462( + ffi.Pointer aSelector, + NSObject? arg, + bool wait, + NSArray? array) { + _lib._objc_msgSend_529( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, aSelector, - arg._id, + arg?._id ?? ffi.nullptr, wait, array?._id ?? ffi.nullptr); } void performSelectorOnMainThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSObject arg, bool wait) { - return _lib._objc_msgSend_463( + ffi.Pointer aSelector, NSObject? arg, bool wait) { + _lib._objc_msgSend_530( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, aSelector, - arg._id, + arg?._id ?? ffi.nullptr, wait); } void performSelector_onThread_withObject_waitUntilDone_modes_( ffi.Pointer aSelector, - NSThread? thr, - NSObject arg, + NSThread thr, + NSObject? arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_480( + _lib._objc_msgSend_548( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, aSelector, - thr?._id ?? ffi.nullptr, - arg._id, + thr._id, + arg?._id ?? ffi.nullptr, wait, array?._id ?? ffi.nullptr); } void performSelector_onThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - return _lib._objc_msgSend_481( + ffi.Pointer aSelector, NSThread thr, NSObject? arg, bool wait) { + _lib._objc_msgSend_549( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, aSelector, - thr?._id ?? ffi.nullptr, - arg._id, + thr._id, + arg?._id ?? ffi.nullptr, wait); } void performSelectorInBackground_withObject_( - ffi.Pointer aSelector, NSObject arg) { - return _lib._objc_msgSend_82(_id, - _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); + ffi.Pointer aSelector, NSObject? arg) { + _lib._objc_msgSend_90( + _id, + _lib._sel_performSelectorInBackground_withObject_1, + aSelector, + arg?._id ?? ffi.nullptr); } - NSObject get classForArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get classForArchiver { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_classForArchiver1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForArchiver_(NSArchiver? archiver) { - final _ret = _lib._objc_msgSend_484(_id, - _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? replacementObjectForArchiver_(NSArchiver archiver) { + final _ret = _lib._objc_msgSend_552( + _id, _lib._sel_replacementObjectForArchiver_1, archiver._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSObject get classForPortCoder { @@ -30125,231 +33929,225 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { - final _ret = _lib._objc_msgSend_522(_id, - _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSClassDescription? get classDescription { - final _ret = _lib._objc_msgSend_525(_id, _lib._sel_classDescription1); + NSObject? replacementObjectForPortCoder_(NSPortCoder coder) { + final _ret = _lib._objc_msgSend_597( + _id, _lib._sel_replacementObjectForPortCoder_1, coder._id); return _ret.address == 0 ? null - : NSClassDescription._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSClassDescription get classDescription { + final _ret = _lib._objc_msgSend_600(_id, _lib._sel_classDescription1); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get attributeKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_attributeKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toOneRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toManyRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject scriptingValueForSpecifier_( - NSScriptObjectSpecifier? objectSpecifier) { - final _ret = _lib._objc_msgSend_569( - _id, - _lib._sel_scriptingValueForSpecifier_1, - objectSpecifier?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? inverseForRelationshipKey_(NSString relationshipKey) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_inverseForRelationshipKey_1, relationshipKey._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject? scriptingValueForSpecifier_( + NSScriptObjectSpecifier objectSpecifier) { + final _ret = _lib._objc_msgSend_649( + _id, _lib._sel_scriptingValueForSpecifier_1, objectSpecifier._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get scriptingProperties { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_scriptingProperties1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_scriptingProperties1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set scriptingProperties(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); } - NSObject copyScriptingValue_forKey_withProperties_( - NSObject value, NSString? key, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_570( + NSObject? copyScriptingValue_forKey_withProperties_( + NSObject value, NSString key, NSDictionary properties) { + final _ret = _lib._objc_msgSend_650( _id, _lib._sel_copyScriptingValue_forKey_withProperties_1, value._id, - key?._id ?? ffi.nullptr, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + key._id, + properties._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } - NSObject + NSObject? newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( NSObject objectClass, - NSString? key, - NSObject contentsValue, - NSDictionary? properties) { - final _ret = _lib._objc_msgSend_571( + NSString key, + NSObject? contentsValue, + NSDictionary properties) { + final _ret = _lib._objc_msgSend_651( _id, _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, objectClass._id, - key?._id ?? ffi.nullptr, - contentsValue._id, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + key._id, + contentsValue?._id ?? ffi.nullptr, + properties._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } int get classCode { - return _lib._objc_msgSend_191(_id, _lib._sel_classCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_classCode1); } NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_className1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { - final _ret = _lib._objc_msgSend_572( - _id, - _lib._sel_valueAtIndex_inPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueAtIndex_inPropertyWithKey_(int index, NSString key) { + final _ret = _lib._objc_msgSend_652( + _id, _lib._sel_valueAtIndex_inPropertyWithKey_1, index, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { - final _ret = _lib._objc_msgSend_159( - _id, - _lib._sel_valueWithName_inPropertyWithKey_1, - name?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueWithName_inPropertyWithKey_(NSString name, NSString key) { + final _ret = _lib._objc_msgSend_175( + _id, _lib._sel_valueWithName_inPropertyWithKey_1, name._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject valueWithUniqueID_inPropertyWithKey_( - NSObject uniqueID, NSString? key) { - final _ret = _lib._objc_msgSend_272( - _id, - _lib._sel_valueWithUniqueID_inPropertyWithKey_1, - uniqueID._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueWithUniqueID_inPropertyWithKey_( + NSObject uniqueID, NSString key) { + final _ret = _lib._objc_msgSend_311(_id, + _lib._sel_valueWithUniqueID_inPropertyWithKey_1, uniqueID._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void insertValue_atIndex_inPropertyWithKey_( - NSObject value, int index, NSString? key) { - return _lib._objc_msgSend_573( + NSObject value, int index, NSString key) { + _lib._objc_msgSend_653( _id, _lib._sel_insertValue_atIndex_inPropertyWithKey_1, value._id, index, - key?._id ?? ffi.nullptr); + key._id); } - void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { - return _lib._objc_msgSend_574( - _id, - _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); + void removeValueAtIndex_fromPropertyWithKey_(int index, NSString key) { + _lib._objc_msgSend_654(_id, + _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, index, key._id); } void replaceValueAtIndex_inPropertyWithKey_withValue_( - int index, NSString? key, NSObject value) { - return _lib._objc_msgSend_575( + int index, NSString key, NSObject value) { + _lib._objc_msgSend_655( _id, _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, index, - key?._id ?? ffi.nullptr, + key._id, value._id); } - void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_insertValue_inPropertyWithKey_1, - value._id, - key?._id ?? ffi.nullptr); + void insertValue_inPropertyWithKey_(NSObject value, NSString key) { + _lib._objc_msgSend_656( + _id, _lib._sel_insertValue_inPropertyWithKey_1, value._id, key._id); } - NSObject coerceValue_forKey_(NSObject value, NSString? key) { - final _ret = _lib._objc_msgSend_272(_id, _lib._sel_coerceValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? coerceValue_forKey_(NSObject? value, NSString key) { + final _ret = _lib._objc_msgSend_657(_id, _lib._sel_coerceValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier? get objectSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_objectSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_objectSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( - NSScriptObjectSpecifier? specifier) { - final _ret = _lib._objc_msgSend_576( - _id, - _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, - specifier?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? indicesOfObjectsByEvaluatingObjectSpecifier_( + NSScriptObjectSpecifier specifier) { + final _ret = _lib._objc_msgSend_658(_id, + _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, specifier._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool isEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); + bool isEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isEqualTo_1, object?._id ?? ffi.nullptr); } - bool isLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isLessThanOrEqualTo_1, object._id); + bool isLessThanOrEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isLessThanOrEqualTo_1, object?._id ?? ffi.nullptr); } - bool isLessThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); + bool isLessThan_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isLessThan_1, object?._id ?? ffi.nullptr); } - bool isGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); + bool isGreaterThanOrEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isGreaterThanOrEqualTo_1, object?._id ?? ffi.nullptr); } - bool isGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); + bool isGreaterThan_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isGreaterThan_1, object?._id ?? ffi.nullptr); } - bool isNotEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); + bool isNotEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isNotEqualTo_1, object?._id ?? ffi.nullptr); } bool doesContain_(NSObject object) { return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); } - bool isLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); + bool isLike_(NSString object) { + return _lib._objc_msgSend_64(_id, _lib._sel_isLike_1, object._id); } - bool isCaseInsensitiveLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); + bool isCaseInsensitiveLike_(NSString object) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isCaseInsensitiveLike_1, object._id); } bool scriptingIsEqualTo_(NSObject object) { @@ -30396,6 +34194,7 @@ final class ObjCSel extends ffi.Opaque {} final class ObjCObject extends ffi.Opaque {} typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = NSObject; final class _NSZone extends ffi.Opaque {} @@ -30422,8 +34221,6 @@ class Protocol extends _ObjCWrapper { } } -typedef IMP = ffi.Pointer>; - class NSInvocation extends NSObject { NSInvocation._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -30448,68 +34245,80 @@ class NSInvocation extends NSObject { } static NSInvocation invocationWithMethodSignature_( - AVFAudio _lib, NSMethodSignature? sig) { - final _ret = _lib._objc_msgSend_366(_lib._class_NSInvocation1, - _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); + AVFAudio _lib, NSMethodSignature sig) { + final _ret = _lib._objc_msgSend_414(_lib._class_NSInvocation1, + _lib._sel_invocationWithMethodSignature_1, sig._id); return NSInvocation._(_ret, _lib, retain: true, release: true); } - NSMethodSignature? get methodSignature { - final _ret = _lib._objc_msgSend_367(_id, _lib._sel_methodSignature1); - return _ret.address == 0 - ? null - : NSMethodSignature._(_ret, _lib, retain: true, release: true); + NSMethodSignature get methodSignature { + final _ret = _lib._objc_msgSend_415(_id, _lib._sel_methodSignature1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } void retainArguments() { - return _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); } bool get argumentsRetained { return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); } - NSObject get target { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get target { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_target1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set target(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setTarget_1, value._id); + set target(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setTarget_1, value?._id ?? ffi.nullptr); } ffi.Pointer get selector { - return _lib._objc_msgSend_369(_id, _lib._sel_selector1); + return _lib._objc_msgSend_417(_id, _lib._sel_selector1); } set selector(ffi.Pointer value) { - _lib._objc_msgSend_370(_id, _lib._sel_setSelector_1, value); + return _lib._objc_msgSend_418(_id, _lib._sel_setSelector_1, value); } void getReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + _lib._objc_msgSend_52(_id, _lib._sel_getReturnValue_1, retLoc); } void setReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + _lib._objc_msgSend_52(_id, _lib._sel_setReturnValue_1, retLoc); } void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_371( + _lib._objc_msgSend_419( _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); } void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_371( + _lib._objc_msgSend_419( _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); } void invoke() { - return _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + _lib._objc_msgSend_1(_id, _lib._sel_invoke1); } void invokeWithTarget_(NSObject target) { - return _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + } + + void invokeUsingIMP_( + ffi.Pointer> imp) { + _lib._objc_msgSend_420(_id, _lib._sel_invokeUsingIMP_1, imp); + } + + @override + NSInvocation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInvocation._(_ret, _lib, retain: true, release: true); } static NSInvocation new1(AVFAudio _lib) { @@ -30518,6 +34327,12 @@ class NSInvocation extends NSObject { return NSInvocation._(_ret, _lib, retain: false, release: true); } + static NSInvocation allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInvocation1, _lib._sel_allocWithZone_1, zone); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + static NSInvocation alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); @@ -30528,18 +34343,18 @@ class NSInvocation extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInvocation1, + _lib._objc_msgSend_15(_lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -30554,33 +34369,29 @@ class NSInvocation extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInvocation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSInvocation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInvocation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSInvocation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSInvocation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -30616,11 +34427,13 @@ class NSMethodSignature extends NSObject { obj._lib._class_NSMethodSignature1); } - static NSMethodSignature signatureWithObjCTypes_( + static NSMethodSignature? signatureWithObjCTypes_( AVFAudio _lib, ffi.Pointer types) { final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, _lib._sel_signatureWithObjCTypes_1, types); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); } int get numberOfArguments { @@ -30647,12 +34460,25 @@ class NSMethodSignature extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); } + @override + NSMethodSignature init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + static NSMethodSignature new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); return NSMethodSignature._(_ret, _lib, retain: false, release: true); } + static NSMethodSignature allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMethodSignature1, _lib._sel_allocWithZone_1, zone); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); + } + static NSMethodSignature alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); @@ -30663,18 +34489,18 @@ class NSMethodSignature extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, + _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -30689,33 +34515,29 @@ class NSMethodSignature extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMethodSignature1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMethodSignature1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMethodSignature1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMethodSignature1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMethodSignature1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMethodSignature1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMethodSignature1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -30727,8 +34549,6 @@ class NSMethodSignature extends NSObject { } } -typedef NSUInteger = ffi.UnsignedLong; - class NSSet extends NSObject { NSSet._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -30755,13 +34575,15 @@ class NSSet extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - NSObject member_(NSObject object) { + NSObject? member_(NSObject object) { final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -30773,111 +34595,110 @@ class NSSet extends NSObject { NSSet initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allObjects1); + NSSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSSet._(_ret, _lib, retain: true, release: true); } - NSObject anyObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray get allObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? anyObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_anyObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } bool containsObject_(NSObject anObject) { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? otherSet) { - return _lib._objc_msgSend_355( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + bool intersectsSet_(NSSet otherSet) { + return _lib._objc_msgSend_403(_id, _lib._sel_intersectsSet_1, otherSet._id); } - bool isEqualToSet_(NSSet? otherSet) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + bool isEqualToSet_(NSSet otherSet) { + return _lib._objc_msgSend_403(_id, _lib._sel_isEqualToSet_1, otherSet._id); } - bool isSubsetOfSet_(NSSet? otherSet) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + bool isSubsetOfSet_(NSSet otherSet) { + return _lib._objc_msgSend_403(_id, _lib._sel_isSubsetOfSet_1, otherSet._id); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( + _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_82( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_90( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, - argument._id); + argument?._id ?? ffi.nullptr); } NSSet setByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_356( + final _ret = _lib._objc_msgSend_404( _id, _lib._sel_setByAddingObject_1, anObject._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromSet_(NSSet? other) { - final _ret = _lib._objc_msgSend_357( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromSet_(NSSet other) { + final _ret = _lib._objc_msgSend_405( + _id, _lib._sel_setByAddingObjectsFromSet_1, other._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_358(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromArray_(NSArray other) { + final _ret = _lib._objc_msgSend_406( + _id, _lib._sel_setByAddingObjectsFromArray_1, other._id); return NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock13 block) { - return _lib._objc_msgSend_359( + void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_407( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock13 block) { - return _lib._objc_msgSend_360(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_408(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - NSSet objectsPassingTest_(ObjCBlock14 predicate) { - final _ret = _lib._objc_msgSend_361( + NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_409( _id, _lib._sel_objectsPassingTest_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock14 predicate) { - final _ret = _lib._objc_msgSend_362( + NSSet objectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_410( _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -30888,113 +34709,104 @@ class NSSet extends NSObject { } static NSSet setWithObject_(AVFAudio _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_count_( AVFAudio _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_(AVFAudio _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithSet_(AVFAudio _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + static NSSet setWithSet_(AVFAudio _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411( + _lib._class_NSSet1, _lib._sel_setWithSet_1, set._id); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithArray_(AVFAudio _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + static NSSet setWithArray_(AVFAudio _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSSet1, _lib._sel_setWithArray_1, array._id); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_363( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + NSSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSSet._(_ret, _lib, retain: false, release: true); } - NSSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSSet._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_365(_id, - _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); + NSSet filteredSetUsingPredicate_(NSPredicate predicate) { + final _ret = _lib._objc_msgSend_413( + _id, _lib._sel_filteredSetUsingPredicate_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -31003,6 +34815,12 @@ class NSSet extends NSObject { return NSSet._(_ret, _lib, retain: false, release: true); } + static NSSet allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSSet1, _lib._sel_allocWithZone_1, zone); + return NSSet._(_ret, _lib, retain: false, release: true); + } + static NSSet alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); return NSSet._(_ret, _lib, retain: false, release: true); @@ -31012,18 +34830,18 @@ class NSSet extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._objc_msgSend_15(_lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -31038,33 +34856,29 @@ class NSSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -31099,17 +34913,36 @@ class NSEnumerator extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); } - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); + NSObject? nextObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_nextObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); return NSObject._(_ret, _lib, retain: true, release: true); } + @override + NSEnumerator init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + static NSEnumerator new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); return NSEnumerator._(_ret, _lib, retain: false, release: true); } + static NSEnumerator allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSEnumerator1, _lib._sel_allocWithZone_1, zone); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + static NSEnumerator alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); @@ -31120,18 +34953,18 @@ class NSEnumerator extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._objc_msgSend_15(_lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -31146,33 +34979,29 @@ class NSEnumerator extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSEnumerator1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSEnumerator1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSEnumerator1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSEnumerator1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSEnumerator1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -31207,20 +35036,25 @@ class NSString extends NSObject { } factory NSString(AVFAudio _lib, String str) { - final cstr = str.toNativeUtf8(); - final nsstr = stringWithCString_encoding_(_lib, cstr.cast(), 4 /* UTF8 */); + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); pkg_ffi.calloc.free(cstr); return nsstr; } @override - String toString() => (UTF8String).cast().toDartString(); + String toString() { + final data = + dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + return data!.bytes.cast().toDartString(length: length); + } + int get length { return _lib._objc_msgSend_10(_id, _lib._sel_length1); } int characterAtIndex_(int index) { - return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + return _lib._objc_msgSend_18(_id, _lib._sel_characterAtIndex_1, index); } @override @@ -31229,290 +35063,276 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString substringFromIndex_(int from) { final _ret = - _lib._objc_msgSend_293(_id, _lib._sel_substringFromIndex_1, from); + _lib._objc_msgSend_332(_id, _lib._sel_substringFromIndex_1, from); return NSString._(_ret, _lib, retain: true, release: true); } NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_293(_id, _lib._sel_substringToIndex_1, to); + final _ret = _lib._objc_msgSend_332(_id, _lib._sel_substringToIndex_1, to); return NSString._(_ret, _lib, retain: true, release: true); } - NSString substringWithRange_(NSRange range) { + NSString substringWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_294(_id, _lib._sel_substringWithRange_1, range); + _lib._objc_msgSend_333(_id, _lib._sel_substringWithRange_1, range); return NSString._(_ret, _lib, retain: true, release: true); } - void getCharacters_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_295( - _id, _lib._sel_getCharacters_range_1, buffer, range); + void getCharacters_range_( + ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_334(_id, _lib._sel_getCharacters_range_1, buffer, range); } - int compare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + int compare_(NSString string) { + return _lib._objc_msgSend_335(_id, _lib._sel_compare_1, string._id); } - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_297( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + int compare_options_(NSString string, int mask) { + return _lib._objc_msgSend_336( + _id, _lib._sel_compare_options_1, string._id, mask); } int compare_options_range_( - NSString? string, int mask, NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_298(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + NSString string, int mask, _NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_337(_id, _lib._sel_compare_options_range_1, + string._id, mask, rangeOfReceiverToCompare); } - int compare_options_range_locale_(NSString? string, int mask, - NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_299(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + int compare_options_range_locale_(NSString string, int mask, + _NSRange rangeOfReceiverToCompare, NSObject? locale) { + return _lib._objc_msgSend_338(_id, _lib._sel_compare_options_range_locale_1, + string._id, mask, rangeOfReceiverToCompare, locale?._id ?? ffi.nullptr); } - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + int caseInsensitiveCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_caseInsensitiveCompare_1, string._id); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + int localizedCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_localizedCompare_1, string._id); } - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + int localizedCaseInsensitiveCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_localizedCaseInsensitiveCompare_1, string._id); } - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + int localizedStandardCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_localizedStandardCompare_1, string._id); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + bool isEqualToString_(NSString aString) { + return _lib._objc_msgSend_64(_id, _lib._sel_isEqualToString_1, aString._id); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + bool hasPrefix_(NSString str) { + return _lib._objc_msgSend_64(_id, _lib._sel_hasPrefix_1, str._id); } - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + bool hasSuffix_(NSString str) { + return _lib._objc_msgSend_64(_id, _lib._sel_hasSuffix_1, str._id); } - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_300( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); + NSString commonPrefixWithString_options_(NSString str, int mask) { + final _ret = _lib._objc_msgSend_339( + _id, _lib._sel_commonPrefixWithString_options_1, str._id, mask); return NSString._(_ret, _lib, retain: true, release: true); } - bool containsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + bool containsString_(NSString str) { + return _lib._objc_msgSend_64(_id, _lib._sel_containsString_1, str._id); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + bool localizedCaseInsensitiveContainsString_(NSString str) { + return _lib._objc_msgSend_64( + _id, _lib._sel_localizedCaseInsensitiveContainsString_1, str._id); } - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_59(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + bool localizedStandardContainsString_(NSString str) { + return _lib._objc_msgSend_64( + _id, _lib._sel_localizedStandardContainsString_1, str._id); } - NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_301(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + void localizedStandardRangeOfString_( + ffi.Pointer<_NSRange> stret, NSString str) { + _lib._objc_msgSend_340( + stret, _id, _lib._sel_localizedStandardRangeOfString_1, str._id); } - NSRange rangeOfString_(NSString? searchString) { - return _lib._objc_msgSend_301( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + void rangeOfString_(ffi.Pointer<_NSRange> stret, NSString searchString) { + _lib._objc_msgSend_340( + stret, _id, _lib._sel_rangeOfString_1, searchString._id); } - NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_302(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + void rangeOfString_options_( + ffi.Pointer<_NSRange> stret, NSString searchString, int mask) { + _lib._objc_msgSend_341( + stret, _id, _lib._sel_rangeOfString_options_1, searchString._id, mask); } - NSRange rangeOfString_options_range_( - NSString? searchString, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_303(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + void rangeOfString_options_range_(ffi.Pointer<_NSRange> stret, + NSString searchString, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_342(stret, _id, _lib._sel_rangeOfString_options_range_1, + searchString._id, mask, rangeOfReceiverToSearch); } - NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, - NSRange rangeOfReceiverToSearch, NSLocale? locale) { - return _lib._objc_msgSend_304( + void rangeOfString_options_range_locale_( + ffi.Pointer<_NSRange> stret, + NSString searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + NSLocale? locale) { + _lib._objc_msgSend_343( + stret, _id, _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, + searchString._id, mask, rangeOfReceiverToSearch, locale?._id ?? ffi.nullptr); } - NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { - return _lib._objc_msgSend_305(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + void rangeOfCharacterFromSet_( + ffi.Pointer<_NSRange> stret, NSCharacterSet searchSet) { + _lib._objc_msgSend_344( + stret, _id, _lib._sel_rangeOfCharacterFromSet_1, searchSet._id); } - NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { - return _lib._objc_msgSend_306( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + void rangeOfCharacterFromSet_options_( + ffi.Pointer<_NSRange> stret, NSCharacterSet searchSet, int mask) { + _lib._objc_msgSend_345(stret, _id, + _lib._sel_rangeOfCharacterFromSet_options_1, searchSet._id, mask); } - NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_307( + void rangeOfCharacterFromSet_options_range_(ffi.Pointer<_NSRange> stret, + NSCharacterSet searchSet, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_346( + stret, _id, _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, + searchSet._id, mask, rangeOfReceiverToSearch); } - NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { - return _lib._objc_msgSend_308( - _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + void rangeOfComposedCharacterSequenceAtIndex_( + ffi.Pointer<_NSRange> stret, int index) { + _lib._objc_msgSend_347( + stret, _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); } - NSRange rangeOfComposedCharacterSequencesForRange_(NSRange range) { - return _lib._objc_msgSend_309( - _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + void rangeOfComposedCharacterSequencesForRange_( + ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_348(stret, _id, + _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); } - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + NSString stringByAppendingString_(NSString aString) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_stringByAppendingString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + NSString stringByAppendingFormat_(NSString format) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_stringByAppendingFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } double get doubleValue { - return _lib._objc_msgSend_149(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_165(_id, _lib._sel_doubleValue1); } double get floatValue { - return _lib._objc_msgSend_215(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_239(_id, _lib._sel_floatValue1); } int get intValue { - return _lib._objc_msgSend_213(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_237(_id, _lib._sel_intValue1); } int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_integerValue1); } int get longLongValue { - return _lib._objc_msgSend_214(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_238(_id, _lib._sel_longLongValue1); } bool get boolValue { return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); } - NSString? get uppercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_uppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get uppercaseString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_uppercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get lowercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get lowercaseString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_lowercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get capitalizedString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_capitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get capitalizedString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_capitalizedString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedUppercaseString { + NSString get localizedUppercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedUppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedUppercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedLowercaseString { + NSString get localizedLowercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedLowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedLowercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedCapitalizedString { + NSString get localizedCapitalizedString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedCapitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedCapitalizedString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_349( _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString lowercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_349( _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_310(_id, + final _ret = _lib._objc_msgSend_349(_id, _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { - return _lib._objc_msgSend_311( + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + _lib._objc_msgSend_350( _id, _lib._sel_getLineStart_end_contentsEnd_forRange_1, startPtr, @@ -31521,16 +35341,16 @@ class NSString extends NSObject { range); } - NSRange lineRangeForRange_(NSRange range) { - return _lib._objc_msgSend_309(_id, _lib._sel_lineRangeForRange_1, range); + void lineRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_348(stret, _id, _lib._sel_lineRangeForRange_1, range); } void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { - return _lib._objc_msgSend_311( + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + _lib._objc_msgSend_350( _id, _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, startPtr, @@ -31539,14 +35359,14 @@ class NSString extends NSObject { range); } - NSRange paragraphRangeForRange_(NSRange range) { - return _lib._objc_msgSend_309( - _id, _lib._sel_paragraphRangeForRange_1, range); + void paragraphRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_348( + stret, _id, _lib._sel_paragraphRangeForRange_1, range); } - void enumerateSubstringsInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock10 block) { - return _lib._objc_msgSend_312( + void enumerateSubstringsInRange_options_usingBlock_(_NSRange range, int opts, + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_351( _id, _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, range, @@ -31554,8 +35374,8 @@ class NSString extends NSObject { block._id); } - void enumerateLinesUsingBlock_(ObjCBlock11 block) { - return _lib._objc_msgSend_313( + void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { + _lib._objc_msgSend_352( _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); } @@ -31571,20 +35391,24 @@ class NSString extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); } - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_314(_id, + NSData? dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData dataUsingEncoding_(int encoding) { + NSData? dataUsingEncoding_(int encoding) { final _ret = - _lib._objc_msgSend_315(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_354(_id, _lib._sel_dataUsingEncoding_1, encoding); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } bool canBeConvertedToEncoding_(int encoding) { - return _lib._objc_msgSend_89( + return _lib._objc_msgSend_97( _id, _lib._sel_canBeConvertedToEncoding_1, encoding); } @@ -31595,7 +35419,7 @@ class NSString extends NSObject { bool getCString_maxLength_encoding_( ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_316( + return _lib._objc_msgSend_355( _id, _lib._sel_getCString_maxLength_encoding_1, buffer, @@ -31606,12 +35430,12 @@ class NSString extends NSObject { bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( ffi.Pointer buffer, int maxBufferCount, - ffi.Pointer usedBufferCount, + ffi.Pointer usedBufferCount, int encoding, int options, - NSRange range, - NSRangePointer leftover) { - return _lib._objc_msgSend_317( + _NSRange range, + ffi.Pointer<_NSRange> leftover) { + return _lib._objc_msgSend_356( _id, _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, buffer, @@ -31624,23 +35448,23 @@ class NSString extends NSObject { } int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); } int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); } - static ffi.Pointer getAvailableStringEncodings( + static ffi.Pointer getAvailableStringEncodings( AVFAudio _lib) { - return _lib._objc_msgSend_318( + return _lib._objc_msgSend_357( _lib._class_NSString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_(AVFAudio _lib, int encoding) { - final _ret = _lib._objc_msgSend_293(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_332(_lib._class_NSString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } @@ -31650,71 +35474,61 @@ class NSString extends NSObject { _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); } - NSString? get decomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( + NSString get decomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_decomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( + NSString get precomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_precomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get decomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( + NSString get decomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_decomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( + NSString get precomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_precomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_119(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_358( + _id, _lib._sel_componentsSeparatedByString_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_319( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet separator) { + final _ret = _lib._objc_msgSend_359( + _id, _lib._sel_componentsSeparatedByCharactersInSet_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_320(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + NSString stringByTrimmingCharactersInSet_(NSCharacterSet set) { + final _ret = _lib._objc_msgSend_360( + _id, _lib._sel_stringByTrimmingCharactersInSet_1, set._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { - final _ret = _lib._objc_msgSend_321( + int newLength, NSString padString, int padIndex) { + final _ret = _lib._objc_msgSend_361( _id, _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, newLength, - padString?._id ?? ffi.nullptr, + padString._id, padIndex); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_322( + final _ret = _lib._objc_msgSend_362( _id, _lib._sel_stringByFoldingWithOptions_locale_1, options, @@ -31723,77 +35537,77 @@ class NSString extends NSObject { } NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, + NSString target, + NSString replacement, int options, - NSRange searchRange) { - final _ret = _lib._objc_msgSend_323( + _NSRange searchRange) { + final _ret = _lib._objc_msgSend_363( _id, _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, + target._id, + replacement._id, options, searchRange); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { - final _ret = _lib._objc_msgSend_324( + NSString target, NSString replacement) { + final _ret = _lib._objc_msgSend_364( _id, _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); + target._id, + replacement._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingCharactersInRange_withString_( - NSRange range, NSString? replacement) { - final _ret = _lib._objc_msgSend_325( + _NSRange range, NSString replacement) { + final _ret = _lib._objc_msgSend_365( _id, _lib._sel_stringByReplacingCharactersInRange_withString_1, range, - replacement?._id ?? ffi.nullptr); + replacement._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByApplyingTransform_reverse_( - NSStringTransform transform, bool reverse) { - final _ret = _lib._objc_msgSend_326( - _id, _lib._sel_stringByApplyingTransform_reverse_1, transform, reverse); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringByApplyingTransform_reverse_( + NSString transform, bool reverse) { + final _ret = _lib._objc_msgSend_366(_id, + _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, + bool writeToURL_atomically_encoding_error_(NSURL url, bool useAuxiliaryFile, int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_327( + return _lib._objc_msgSend_367( _id, _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, useAuxiliaryFile, enc, error); } bool writeToFile_atomically_encoding_error_( - NSString? path, + NSString path, bool useAuxiliaryFile, int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_328( + return _lib._objc_msgSend_368( _id, _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, useAuxiliaryFile, enc, error); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } int get hash { @@ -31801,8 +35615,8 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_329( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_369( _id, _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, characters, @@ -31812,106 +35626,184 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock12 deallocator) { - final _ret = _lib._objc_msgSend_330( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_370( _id, _lib._sel_initWithCharactersNoCopy_length_deallocator_1, chars, len, - deallocator._id); + deallocator?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: false, release: true); } NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_331( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371( _id, _lib._sel_initWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_332( + NSString? initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_372( _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + NSString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + NSString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_333( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); + NSString format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_373( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_157(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); + NSString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_374(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_334( + NSString format, NSObject? locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_375( _id, _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, + format._id, + locale?._id ?? ffi.nullptr, argList); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_335(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithBytes_length_encoding_( + NSString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_377( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_378( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_379( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithData_encoding_(NSData data, int encoding) { + final _ret = _lib._objc_msgSend_380( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithBytes_length_encoding_( ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_336( + final _ret = _lib._objc_msgSend_381( _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( + NSString? initWithBytesNoCopy_length_encoding_freeWhenDone_( ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_337( + final _ret = _lib._objc_msgSend_382( _id, _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, bytes, len, encoding, freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: false, release: true); } - NSString initWithBytesNoCopy_length_encoding_deallocator_( + NSString? initWithBytesNoCopy_length_encoding_deallocator_( ffi.Pointer bytes, int len, int encoding, - ObjCBlock9 deallocator) { - final _ret = _lib._objc_msgSend_338( + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_383( _id, _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, bytes, len, encoding, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: false, release: true); } static NSString string(AVFAudio _lib) { @@ -31919,161 +35811,212 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + static NSString stringWithString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSString1, _lib._sel_stringWithString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithCharacters_length_( - AVFAudio _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_331(_lib._class_NSString1, + AVFAudio _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithUTF8String_( + static NSString? stringWithUTF8String_( AVFAudio _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_332(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_372(_lib._class_NSString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithFormat_(AVFAudio _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + static NSString stringWithFormat_(AVFAudio _lib, NSString format) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSString1, _lib._sel_stringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString localizedStringWithFormat_(AVFAudio _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + static NSString localizedStringWithFormat_(AVFAudio _lib, NSString format) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCString_encoding_( + static NSString? stringWithValidatedFormat_validFormatSpecifiers_error_( + AVFAudio _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString? + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + AVFAudio _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithCString_encoding_( ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_339(_id, + final _ret = _lib._objc_msgSend_384(_id, _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCString_encoding_( + static NSString? stringWithCString_encoding_( AVFAudio _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_340( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithContentsOfURL_encoding_error_( + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_341( + NSString? initWithContentsOfFile_encoding_error_( + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( _id, _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_encoding_error_(AVFAudio _lib, - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_340( + static NSString? stringWithContentsOfURL_encoding_error_(AVFAudio _lib, + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_encoding_error_(AVFAudio _lib, - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_341( + static NSString? stringWithContentsOfFile_encoding_error_(AVFAudio _lib, + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, + NSString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_342( + final _ret = _lib._objc_msgSend_387( _id, _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, + NSString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_343( + final _ret = _lib._objc_msgSend_388( _id, _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_usedEncoding_error_( + static NSString? stringWithContentsOfURL_usedEncoding_error_( AVFAudio _lib, - NSURL? url, - ffi.Pointer enc, + NSURL url, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_342( + final _ret = _lib._objc_msgSend_387( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_usedEncoding_error_( + static NSString? stringWithContentsOfFile_usedEncoding_error_( AVFAudio _lib, - NSString? path, - ffi.Pointer enc, + NSString path, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_343( + final _ret = _lib._objc_msgSend_388( _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( AVFAudio _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_344( + return _lib._objc_msgSend_389( _lib._class_NSString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); @@ -32084,10 +36027,12 @@ class NSString extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_164( + NSDictionary? propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_390( _id, _lib._sel_propertyListFromStringsFileFormat1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } ffi.Pointer cString() { @@ -32103,17 +36048,17 @@ class NSString extends NSObject { } void getCString_(ffi.Pointer bytes) { - return _lib._objc_msgSend_251(_id, _lib._sel_getCString_1, bytes); + _lib._objc_msgSend_290(_id, _lib._sel_getCString_1, bytes); } void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - return _lib._objc_msgSend_345( + _lib._objc_msgSend_391( _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); } void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - int maxLength, NSRange aRange, NSRangePointer leftoverRange) { - return _lib._objc_msgSend_346( + int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { + _lib._objc_msgSend_392( _id, _lib._sel_getCString_maxLength_range_remainingRange_1, bytes, @@ -32122,181 +36067,183 @@ class NSString extends NSObject { leftoverRange); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - NSObject initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithCStringNoCopy_length_freeWhenDone_( + NSObject? initWithCStringNoCopy_length_freeWhenDone_( ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_347( + final _ret = _lib._objc_msgSend_393( _id, _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, bytes, length, freeBuffer); - return NSObject._(_ret, _lib, retain: false, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } - NSObject initWithCString_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_339( + NSObject? initWithCString_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_384( _id, _lib._sel_initWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithCString_(ffi.Pointer bytes) { + NSObject? initWithCString_(ffi.Pointer bytes) { final _ret = - _lib._objc_msgSend_332(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_372(_id, _lib._sel_initWithCString_1, bytes); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( + static NSObject? stringWithCString_length_( AVFAudio _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSString1, _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( + static NSObject? stringWithCString_( AVFAudio _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_332( + final _ret = _lib._objc_msgSend_372( _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void getCharacters_(ffi.Pointer buffer) { - return _lib._objc_msgSend_348(_id, _lib._sel_getCharacters_1, buffer); + void getCharacters_(ffi.Pointer buffer) { + _lib._objc_msgSend_394(_id, _lib._sel_getCharacters_1, buffer); } NSString variantFittingPresentationWidth_(int width) { - final _ret = _lib._objc_msgSend_349( + final _ret = _lib._objc_msgSend_395( _id, _lib._sel_variantFittingPresentationWidth_1, width); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString pathWithComponents_(AVFAudio _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_350(_lib._class_NSString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + static NSString pathWithComponents_(AVFAudio _lib, NSArray components) { + final _ret = _lib._objc_msgSend_396( + _lib._class_NSString1, _lib._sel_pathWithComponents_1, components._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get pathComponents { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_pathComponents1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool get absolutePath { return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); } - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get lastPathComponent { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_lastPathComponent1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByDeletingLastPathComponent { - final _ret = _lib._objc_msgSend_20( + NSString get stringByDeletingLastPathComponent { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_stringByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingPathComponent_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); + NSString stringByAppendingPathComponent_(NSString str) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_stringByAppendingPathComponent_1, str._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get pathExtension { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_pathExtension1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByDeletingPathExtension { + NSString get stringByDeletingPathExtension { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAppendingPathExtension_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); + _lib._objc_msgSend_21(_id, _lib._sel_stringByDeletingPathExtension1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByAbbreviatingWithTildeInPath { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + NSString? stringByAppendingPathExtension_(NSString str) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_stringByAppendingPathExtension_1, str._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByExpandingTildeInPath { + NSString get stringByAbbreviatingWithTildeInPath { + final _ret = _lib._objc_msgSend_21( + _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get stringByExpandingTildeInPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByExpandingTildeInPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByStandardizingPath { + NSString get stringByStandardizingPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByStandardizingPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByStandardizingPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByResolvingSymlinksInPath { + NSString get stringByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByResolvingSymlinksInPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray stringsByAppendingPaths_(NSArray? paths) { - final _ret = _lib._objc_msgSend_63( - _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); + NSArray stringsByAppendingPaths_(NSArray paths) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_stringsByAppendingPaths_1, paths._id); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -32305,7 +36252,7 @@ class NSString extends NSObject { bool flag, ffi.Pointer> outputArray, NSArray? filterTypes) { - return _lib._objc_msgSend_351( + return _lib._objc_msgSend_397( _id, _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, outputName, @@ -32320,50 +36267,56 @@ class NSString extends NSObject { bool getFileSystemRepresentation_maxLength_( ffi.Pointer cname, int max) { - return _lib._objc_msgSend_218( + return _lib._objc_msgSend_242( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); } - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_320( + NSString? stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet allowedCharacters) { + final _ret = _lib._objc_msgSend_398( _id, _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, - allowedCharacters?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + allowedCharacters._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get stringByRemovingPercentEncoding { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByRemovingPercentEncoding1); + _lib._objc_msgSend_44(_id, _lib._sel_stringByRemovingPercentEncoding1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_293( + NSString? stringByAddingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_399( _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_293( + NSString? stringByReplacingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_399( _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + NSString scheme, int options, NSOrthography? orthography, ffi.Pointer> tokenRanges) { - final _ret = _lib._objc_msgSend_353( + final _ret = _lib._objc_msgSend_401( _id, _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, range, - scheme, + scheme._id, options, orthography?._id ?? ffi.nullptr, tokenRanges); @@ -32371,16 +36324,16 @@ class NSString extends NSObject { } void enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_( - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + NSString scheme, int options, NSOrthography? orthography, - ObjCBlock10 block) { - return _lib._objc_msgSend_354( + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_402( _id, _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, range, - scheme, + scheme._id, options, orthography?._id ?? ffi.nullptr, block._id); @@ -32391,6 +36344,12 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: false, release: true); } + static NSString allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSString1, _lib._sel_allocWithZone_1, zone); + return NSString._(_ret, _lib, retain: false, release: true); + } + static NSString alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); return NSString._(_ret, _lib, retain: false, release: true); @@ -32400,18 +36359,18 @@ class NSString extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSString1, + _lib._objc_msgSend_15(_lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32426,33 +36385,29 @@ class NSString extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -32468,8 +36423,6 @@ extension StringToNSString on String { NSString toNSString(AVFAudio lib) => NSString(lib, this); } -typedef unichar = ffi.UnsignedShort; - class NSCoder extends NSObject { NSCoder._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -32494,425 +36447,423 @@ class NSCoder extends NSObject { void encodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer addr) { - return _lib._objc_msgSend_18( + _lib._objc_msgSend_19( _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); } - void encodeDataObject_(NSData? data) { - return _lib._objc_msgSend_248( - _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); + void encodeDataObject_(NSData data) { + _lib._objc_msgSend_285(_id, _lib._sel_encodeDataObject_1, data._id); } - NSData decodeDataObject() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? decodeDataObject() { + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_decodeDataObject1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void decodeValueOfObjCType_at_size_( ffi.Pointer type, ffi.Pointer data, int size) { - return _lib._objc_msgSend_249( + _lib._objc_msgSend_287( _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); } - int versionForClassName_(NSString? className) { - return _lib._objc_msgSend_250( - _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); + int versionForClassName_(NSString className) { + return _lib._objc_msgSend_288( + _id, _lib._sel_versionForClassName_1, className._id); } - void encodeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); + void encodeObject_(NSObject? object) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeObject_1, object?._id ?? ffi.nullptr); } void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } - void encodeBycopyObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeBycopyObject_1, anObject._id); + void encodeBycopyObject_(NSObject? anObject) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeBycopyObject_1, anObject?._id ?? ffi.nullptr); } - void encodeByrefObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeByrefObject_1, anObject._id); + void encodeByrefObject_(NSObject? anObject) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeByrefObject_1, anObject?._id ?? ffi.nullptr); } - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); + void encodeConditionalObject_(NSObject? object) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeConditionalObject_1, object?._id ?? ffi.nullptr); } void encodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_251( - _id, _lib._sel_encodeValuesOfObjCTypes_1, types); + _lib._objc_msgSend_290(_id, _lib._sel_encodeValuesOfObjCTypes_1, types); } void encodeArrayOfObjCType_count_at_( ffi.Pointer type, int count, ffi.Pointer array) { - return _lib._objc_msgSend_252( + _lib._objc_msgSend_291( _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); } void encodeBytes_length_(ffi.Pointer byteaddr, int length) { - return _lib._objc_msgSend_21( + _lib._objc_msgSend_22( _id, _lib._sel_encodeBytes_length_1, byteaddr, length); } - NSObject decodeObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodeObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectAndReturnError_( + NSObject? decodeTopLevelObjectAndReturnError_( ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_253( + final _ret = _lib._objc_msgSend_292( _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void decodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_251( - _id, _lib._sel_decodeValuesOfObjCTypes_1, types); + _lib._objc_msgSend_290(_id, _lib._sel_decodeValuesOfObjCTypes_1, types); } void decodeArrayOfObjCType_count_at_( ffi.Pointer itemType, int count, ffi.Pointer array) { - return _lib._objc_msgSend_252(_id, - _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); + _lib._objc_msgSend_291(_id, _lib._sel_decodeArrayOfObjCType_count_at_1, + itemType, count, array); } ffi.Pointer decodeBytesWithReturnedLength_( - ffi.Pointer lengthp) { - return _lib._objc_msgSend_254( + ffi.Pointer lengthp) { + return _lib._objc_msgSend_293( _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); } void encodePropertyList_(NSObject aPropertyList) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _id, _lib._sel_encodePropertyList_1, aPropertyList._id); } - NSObject decodePropertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodePropertyList() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodePropertyList1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setObjectZone_(ffi.Pointer zone) { - return _lib._objc_msgSend_255(_id, _lib._sel_setObjectZone_1, zone); + void setObjectZone_(ffi.Pointer<_NSZone> zone) { + _lib._objc_msgSend_294(_id, _lib._sel_setObjectZone_1, zone); } - ffi.Pointer objectZone() { - return _lib._objc_msgSend_256(_id, _lib._sel_objectZone1); + ffi.Pointer<_NSZone> objectZone() { + return _lib._objc_msgSend_295(_id, _lib._sel_objectZone1); } int get systemVersion { - return _lib._objc_msgSend_191(_id, _lib._sel_systemVersion1); + return _lib._objc_msgSend_214(_id, _lib._sel_systemVersion1); } bool get allowsKeyedCoding { return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); } - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + void encodeObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + void encodeConditionalObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeConditionalObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_257( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeBool_forKey_(bool value, NSString key) { + _lib._objc_msgSend_296(_id, _lib._sel_encodeBool_forKey_1, value, key._id); } - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_258( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt_forKey_(int value, NSString key) { + _lib._objc_msgSend_297(_id, _lib._sel_encodeInt_forKey_1, value, key._id); } - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_259( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt32_forKey_(int value, NSString key) { + _lib._objc_msgSend_298(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); } - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_260( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt64_forKey_(int value, NSString key) { + _lib._objc_msgSend_299(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); } - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_261( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeFloat_forKey_(double value, NSString key) { + _lib._objc_msgSend_300(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); } - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_262( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeDouble_forKey_(double value, NSString key) { + _lib._objc_msgSend_301( + _id, _lib._sel_encodeDouble_forKey_1, value, key._id); } void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_263(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + ffi.Pointer bytes, int length, NSString key) { + _lib._objc_msgSend_302( + _id, _lib._sel_encodeBytes_length_forKey_1, bytes, length, key._id); } - bool containsValueForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); + bool containsValueForKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_containsValueForKey_1, key._id); } - NSObject decodeObjectForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodeObjectForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObjectForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_decodeObjectForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectForKey_error_( - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_264( - _id, - _lib._sel_decodeTopLevelObjectForKey_error_1, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeTopLevelObjectForKey_error_( + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_303( + _id, _lib._sel_decodeTopLevelObjectForKey_error_1, key._id, error); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool decodeBoolForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); + bool decodeBoolForKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_decodeBoolForKey_1, key._id); } - int decodeIntForKey_(NSString? key) { - return _lib._objc_msgSend_265( - _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); + int decodeIntForKey_(NSString key) { + return _lib._objc_msgSend_304(_id, _lib._sel_decodeIntForKey_1, key._id); } - int decodeInt32ForKey_(NSString? key) { - return _lib._objc_msgSend_266( - _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); + int decodeInt32ForKey_(NSString key) { + return _lib._objc_msgSend_305(_id, _lib._sel_decodeInt32ForKey_1, key._id); } - int decodeInt64ForKey_(NSString? key) { - return _lib._objc_msgSend_267( - _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); + int decodeInt64ForKey_(NSString key) { + return _lib._objc_msgSend_306(_id, _lib._sel_decodeInt64ForKey_1, key._id); } - double decodeFloatForKey_(NSString? key) { - return _lib._objc_msgSend_268( - _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); + double decodeFloatForKey_(NSString key) { + return _lib._objc_msgSend_307(_id, _lib._sel_decodeFloatForKey_1, key._id); } - double decodeDoubleForKey_(NSString? key) { - return _lib._objc_msgSend_269( - _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); + double decodeDoubleForKey_(NSString key) { + return _lib._objc_msgSend_308(_id, _lib._sel_decodeDoubleForKey_1, key._id); } ffi.Pointer decodeBytesForKey_returnedLength_( - NSString? key, ffi.Pointer lengthp) { - return _lib._objc_msgSend_270( - _id, - _lib._sel_decodeBytesForKey_returnedLength_1, - key?._id ?? ffi.nullptr, - lengthp); + NSString key, ffi.Pointer lengthp) { + return _lib._objc_msgSend_309( + _id, _lib._sel_decodeBytesForKey_returnedLength_1, key._id, lengthp); } - void encodeInteger_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_271( - _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInteger_forKey_(int value, NSString key) { + _lib._objc_msgSend_310( + _id, _lib._sel_encodeInteger_forKey_1, value, key._id); } - int decodeIntegerForKey_(NSString? key) { - return _lib._objc_msgSend_250( - _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); + int decodeIntegerForKey_(NSString key) { + return _lib._objc_msgSend_288( + _id, _lib._sel_decodeIntegerForKey_1, key._id); } bool get requiresSecureCoding { return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { - final _ret = _lib._objc_msgSend_272( - _id, - _lib._sel_decodeObjectOfClass_forKey_1, - aClass._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObjectOfClass_forKey_(NSObject aClass, NSString key) { + final _ret = _lib._objc_msgSend_311( + _id, _lib._sel_decodeObjectOfClass_forKey_1, aClass._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_273( + NSObject? decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_312( _id, _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, aClass._id, - key?._id ?? ffi.nullptr, + key._id, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { - final _ret = _lib._objc_msgSend_274( - _id, - _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, - cls._id, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString key) { + final _ret = _lib._objc_msgSend_313( + _id, _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, cls._id, key._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( - NSObject keyCls, NSObject objectCls, NSString? key) { - final _ret = _lib._objc_msgSend_275( + NSDictionary? decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( + NSObject keyCls, NSObject objectCls, NSString key) { + final _ret = _lib._objc_msgSend_314( _id, _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, keyCls._id, objectCls._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + key._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_276( + NSObject? decodeObjectOfClasses_forKey_(NSSet? classes, NSString key) { + final _ret = _lib._objc_msgSend_315( _id, _lib._sel_decodeObjectOfClasses_forKey_1, classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_277( + NSObject? decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_316( _id, _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr, + key._id, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_278( - _id, - _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? decodeArrayOfObjectsOfClasses_forKey_(NSSet classes, NSString key) { + final _ret = _lib._objc_msgSend_317(_id, + _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, classes._id, key._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( - NSSet? keyClasses, NSSet? objectClasses, NSString? key) { - final _ret = _lib._objc_msgSend_279( + NSDictionary? decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( + NSSet keyClasses, NSSet objectClasses, NSString key) { + final _ret = _lib._objc_msgSend_318( _id, _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, - keyClasses?._id ?? ffi.nullptr, - objectClasses?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + keyClasses._id, + objectClasses._id, + key._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject decodePropertyListForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodePropertyListForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodePropertyListForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_decodePropertyListForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSSet? get allowedClasses { - final _ret = _lib._objc_msgSend_280(_id, _lib._sel_allowedClasses1); + final _ret = _lib._objc_msgSend_319(_id, _lib._sel_allowedClasses1); return _ret.address == 0 ? null : NSSet._(_ret, _lib, retain: true, release: true); } - void failWithError_(NSError? error) { - return _lib._objc_msgSend_281( - _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); + void failWithError_(NSError error) { + _lib._objc_msgSend_320(_id, _lib._sel_failWithError_1, error._id); } int get decodingFailurePolicy { - return _lib._objc_msgSend_282(_id, _lib._sel_decodingFailurePolicy1); + return _lib._objc_msgSend_321(_id, _lib._sel_decodingFailurePolicy1); } NSError? get error { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); } void encodeNXObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); } - NSObject decodeNXObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeNXObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodeNXObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void decodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer data) { - return _lib._objc_msgSend_18( + _lib._objc_msgSend_19( _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); } - void encodePoint_(NSPoint point) { - return _lib._objc_msgSend_284(_id, _lib._sel_encodePoint_1, point); + void encodePoint_(CGPoint point) { + _lib._objc_msgSend_323(_id, _lib._sel_encodePoint_1, point); } - NSPoint decodePoint() { - return _lib._objc_msgSend_54(_id, _lib._sel_decodePoint1); + void decodePoint(ffi.Pointer stret) { + _lib._objc_msgSend_59(stret, _id, _lib._sel_decodePoint1); } - void encodeSize_(NSSize size) { - return _lib._objc_msgSend_285(_id, _lib._sel_encodeSize_1, size); + void encodeSize_(CGSize size) { + _lib._objc_msgSend_324(_id, _lib._sel_encodeSize_1, size); } - NSSize decodeSize() { - return _lib._objc_msgSend_55(_id, _lib._sel_decodeSize1); + void decodeSize(ffi.Pointer stret) { + _lib._objc_msgSend_60(stret, _id, _lib._sel_decodeSize1); } - void encodeRect_(NSRect rect) { - return _lib._objc_msgSend_286(_id, _lib._sel_encodeRect_1, rect); + void encodeRect_(CGRect rect) { + _lib._objc_msgSend_325(_id, _lib._sel_encodeRect_1, rect); } - NSRect decodeRect() { - return _lib._objc_msgSend_56(_id, _lib._sel_decodeRect1); + void decodeRect(ffi.Pointer stret) { + _lib._objc_msgSend_61(stret, _id, _lib._sel_decodeRect1); } - void encodePoint_forKey_(NSPoint point, NSString? key) { - return _lib._objc_msgSend_287( - _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); + void encodePoint_forKey_(CGPoint point, NSString key) { + _lib._objc_msgSend_326(_id, _lib._sel_encodePoint_forKey_1, point, key._id); } - void encodeSize_forKey_(NSSize size, NSString? key) { - return _lib._objc_msgSend_288( - _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); + void encodeSize_forKey_(CGSize size, NSString key) { + _lib._objc_msgSend_327(_id, _lib._sel_encodeSize_forKey_1, size, key._id); } - void encodeRect_forKey_(NSRect rect, NSString? key) { - return _lib._objc_msgSend_289( - _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); + void encodeRect_forKey_(CGRect rect, NSString key) { + _lib._objc_msgSend_328(_id, _lib._sel_encodeRect_forKey_1, rect, key._id); } - NSPoint decodePointForKey_(NSString? key) { - return _lib._objc_msgSend_290( - _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); + void decodePointForKey_(ffi.Pointer stret, NSString key) { + _lib._objc_msgSend_329(stret, _id, _lib._sel_decodePointForKey_1, key._id); } - NSSize decodeSizeForKey_(NSString? key) { - return _lib._objc_msgSend_291( - _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); + void decodeSizeForKey_(ffi.Pointer stret, NSString key) { + _lib._objc_msgSend_330(stret, _id, _lib._sel_decodeSizeForKey_1, key._id); } - NSRect decodeRectForKey_(NSString? key) { - return _lib._objc_msgSend_292( - _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); + void decodeRectForKey_(ffi.Pointer stret, NSString key) { + _lib._objc_msgSend_331(stret, _id, _lib._sel_decodeRectForKey_1, key._id); + } + + @override + NSCoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCoder._(_ret, _lib, retain: true, release: true); } static NSCoder new1(AVFAudio _lib) { @@ -32920,6 +36871,12 @@ class NSCoder extends NSObject { return NSCoder._(_ret, _lib, retain: false, release: true); } + static NSCoder allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCoder1, _lib._sel_allocWithZone_1, zone); + return NSCoder._(_ret, _lib, retain: false, release: true); + } + static NSCoder alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); return NSCoder._(_ret, _lib, retain: false, release: true); @@ -32929,18 +36886,18 @@ class NSCoder extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCoder1, + _lib._objc_msgSend_15(_lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32955,33 +36912,29 @@ class NSCoder extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -33020,67 +36973,63 @@ class NSData extends NSObject { } ffi.Pointer get bytes { - return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); + return _lib._objc_msgSend_20(_id, _lib._sel_bytes1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } void getBytes_length_(ffi.Pointer buffer, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_getBytes_length_1, buffer, length); + _lib._objc_msgSend_22(_id, _lib._sel_getBytes_length_1, buffer, length); } - void getBytes_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_22( - _id, _lib._sel_getBytes_range_1, buffer, range); + void getBytes_range_(ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_23(_id, _lib._sel_getBytes_range_1, buffer, range); } - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_23( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + bool isEqualToData_(NSData other) { + return _lib._objc_msgSend_24(_id, _lib._sel_isEqualToData_1, other._id); } - NSData subdataWithRange_(NSRange range) { + NSData subdataWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_24(_id, _lib._sel_subdataWithRange_1, range); + _lib._objc_msgSend_25(_id, _lib._sel_subdataWithRange_1, range); return NSData._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - bool writeToFile_options_error_(NSString? path, int writeOptionsMask, + bool writeToFile_options_error_(NSString path, int writeOptionsMask, ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_233(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_269(_id, _lib._sel_writeToFile_options_error_1, + path._id, writeOptionsMask, errorPtr); } - bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, + bool writeToURL_options_error_(NSURL url, int writeOptionsMask, ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_234(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_270(_id, _lib._sel_writeToURL_options_error_1, + url._id, writeOptionsMask, errorPtr); } - NSRange rangeOfData_options_range_( - NSData? dataToFind, int mask, NSRange searchRange) { - return _lib._objc_msgSend_235(_id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); + void rangeOfData_options_range_(ffi.Pointer<_NSRange> stret, + NSData dataToFind, int mask, _NSRange searchRange) { + _lib._objc_msgSend_271(stret, _id, _lib._sel_rangeOfData_options_range_1, + dataToFind._id, mask, searchRange); } - void enumerateByteRangesUsingBlock_(ObjCBlock8 block) { - return _lib._objc_msgSend_236( + void enumerateByteRangesUsingBlock_( + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_272( _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); } @@ -33091,215 +37040,254 @@ class NSData extends NSObject { static NSData dataWithBytes_length_( AVFAudio _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237( + final _ret = _lib._objc_msgSend_273( _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } static NSData dataWithBytesNoCopy_length_( AVFAudio _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_273(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } static NSData dataWithBytesNoCopy_length_freeWhenDone_( AVFAudio _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_238(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_274(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSData._(_ret, _lib, retain: false, release: true); } - static NSData dataWithContentsOfFile_options_error_( + static NSData? dataWithContentsOfFile_options_error_( AVFAudio _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_239( + final _ret = _lib._objc_msgSend_275( _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_options_error_(AVFAudio _lib, NSURL? url, + static NSData? dataWithContentsOfURL_options_error_(AVFAudio _lib, NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_240( + final _ret = _lib._objc_msgSend_276( _lib._class_NSData1, _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237( + final _ret = _lib._objc_msgSend_273( _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237( + final _ret = _lib._objc_msgSend_273( _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } NSData initWithBytesNoCopy_length_freeWhenDone_( ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_238(_id, + final _ret = _lib._objc_msgSend_274(_id, _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, int length, ObjCBlock9 deallocator) { - final _ret = _lib._objc_msgSend_241( + NSData initWithBytesNoCopy_length_deallocator_(ffi.Pointer bytes, + int length, ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_278( _id, _lib._sel_initWithBytesNoCopy_length_deallocator_1, bytes, length, - deallocator._id); + deallocator?._id ?? ffi.nullptr); return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithContentsOfFile_options_error_(NSString? path, + NSData? initWithContentsOfFile_options_error_(NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_239( + final _ret = _lib._objc_msgSend_275( _id, _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, + NSData? initWithContentsOfURL_options_error_(NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_240( + final _ret = _lib._objc_msgSend_276( _id, _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithData_(AVFAudio _lib, NSData? data) { - final _ret = _lib._objc_msgSend_242(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSData dataWithData_(AVFAudio _lib, NSData data) { + final _ret = _lib._objc_msgSend_279( + _lib._class_NSData1, _lib._sel_dataWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_243( + NSData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_280( _id, _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, + base64String._id, options); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_244( + final _ret = _lib._objc_msgSend_281( _id, _lib._sel_base64EncodedStringWithOptions_1, options); return NSString._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_245( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithBase64EncodedData_options_(NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_246( + final _ret = _lib._objc_msgSend_283( _id, _lib._sel_base64EncodedDataWithOptions_1, options); return NSData._(_ret, _lib, retain: true, release: true); } - NSData decompressedDataUsingAlgorithm_error_( + NSData? decompressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_247(_id, + final _ret = _lib._objc_msgSend_284(_id, _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData compressedDataUsingAlgorithm_error_( + NSData? compressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_247( + final _ret = _lib._objc_msgSend_284( _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void getBytes_(ffi.Pointer buffer) { - return _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); + _lib._objc_msgSend_52(_id, _lib._sel_getBytes_1, buffer); } - static NSObject dataWithContentsOfMappedFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dataWithContentsOfMappedFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfMappedFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfMappedFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithBase64Encoding_(NSString? base64String) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_initWithBase64Encoding_1, - base64String?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithBase64Encoding_(NSString base64String) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithBase64Encoding_1, base64String._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSString base64Encoding() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_base64Encoding1); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSData._(_ret, _lib, retain: true, release: true); + } + static NSData new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); return NSData._(_ret, _lib, retain: false, release: true); } + static NSData allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSData1, _lib._sel_allocWithZone_1, zone); + return NSData._(_ret, _lib, retain: false, release: true); + } + static NSData alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); return NSData._(_ret, _lib, retain: false, release: true); @@ -33309,18 +37297,18 @@ class NSData extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSData1, + _lib._objc_msgSend_15(_lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -33335,33 +37323,29 @@ class NSData extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -33373,13 +37357,11 @@ class NSData extends NSObject { } } -typedef NSRange = _NSRange; - final class _NSRange extends ffi.Struct { - @NSUInteger() + @ffi.UnsignedLong() external int location; - @NSUInteger() + @ffi.UnsignedLong() external int length; } @@ -33405,92 +37387,88 @@ class NSURL extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); } - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { - final _ret = _lib._objc_msgSend_26( + NSURL? initWithScheme_host_path_( + NSString scheme, NSString? host, NSString path) { + final _ret = _lib._objc_msgSend_27( _id, _lib._sel_initWithScheme_host_path_1, - scheme?._id ?? ffi.nullptr, + scheme._id, host?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + path._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_27( + NSString path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( _id, _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, isDir, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + NSURL initFileURLWithPath_relativeToURL_(NSString path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_29( _id, _lib._sel_initFileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initFileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + NSURL initFileURLWithPath_isDirectory_(NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initFileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + NSURL initFileURLWithPath_(NSString path) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initFileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_isDirectory_relativeToURL_( - AVFAudio _lib, NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_31( + AVFAudio _lib, NSString path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_32( _lib._class_NSURL1, _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, isDir, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_relativeToURL_( - AVFAudio _lib, NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_32( + AVFAudio _lib, NSString path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_33( _lib._class_NSURL1, _lib._sel_fileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_isDirectory_( - AVFAudio _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_33( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + AVFAudio _lib, NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL fileURLWithPath_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + static NSURL fileURLWithPath_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_35( + _lib._class_NSURL1, _lib._sel_fileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_35( + final _ret = _lib._objc_msgSend_36( _id, _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, path, @@ -33501,7 +37479,7 @@ class NSURL extends NSObject { static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( AVFAudio _lib, ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_36( + final _ret = _lib._objc_msgSend_37( _lib._class_NSURL1, _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, path, @@ -33510,184 +37488,211 @@ class NSURL extends NSObject { return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? initWithString_(NSString URLString) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + NSURL? initWithString_relativeToURL_(NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( _id, _lib._sel_initWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, + URLString._id, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_(AVFAudio _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSURL1, - _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? URLWithString_(AVFAudio _lib, NSString URLString) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, _lib._sel_URLWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_relativeToURL_( - AVFAudio _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + static NSURL? URLWithString_relativeToURL_( + AVFAudio _lib, NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( _lib._class_NSURL1, _lib._sel_URLWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, + URLString._id, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( + NSURL? initWithString_encodingInvalidCharacters_( + NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_40( + _id, + _lib._sel_initWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL? URLWithString_encodingInvalidCharacters_( + AVFAudio _lib, NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_40( + _lib._class_NSURL1, + _lib._sel_URLWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initWithDataRepresentation_relativeToURL_(NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL URLWithDataRepresentation_relativeToURL_( - AVFAudio _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( + AVFAudio _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_42( _lib._class_NSURL1, _lib._sel_URLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( + NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - AVFAudio _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( + AVFAudio _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_42( _lib._class_NSURL1, _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSData? get dataRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_dataRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get dataRepresentation { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_dataRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } NSString? get absoluteString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_absoluteString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get relativeString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativeString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get relativeString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_relativeString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSURL? get baseURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_baseURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_absoluteURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get scheme { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scheme1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_resourceSpecifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_host1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSNumber? get port { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_port1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_port1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_path1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get fragment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fragment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get parameterString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_parameterString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get query { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_query1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get relativePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_relativePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -33699,7 +37704,7 @@ class NSURL extends NSObject { bool getFileSystemRepresentation_maxLength_( ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_218( + return _lib._objc_msgSend_242( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, buffer, @@ -33715,7 +37720,7 @@ class NSURL extends NSObject { } NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_standardizedURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -33723,7 +37728,7 @@ class NSURL extends NSObject { bool checkResourceIsReachableAndReturnError_( ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); } @@ -33731,13 +37736,15 @@ class NSURL extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); } - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? fileReferenceURL() { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileReferenceURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_filePathURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -33745,111 +37752,273 @@ class NSURL extends NSObject { bool getResourceValue_forKey_error_( ffi.Pointer> value, - NSURLResourceKey key, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_244( + _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); + } + + NSObject? resourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_245( + _id, _lib._sel_resourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + bool setResourceValue_forKey_error_(NSObject? value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_220( - _id, _lib._sel_getResourceValue_forKey_error_1, value, key, error); + return _lib._objc_msgSend_246( + _id, + _lib._sel_setResourceValue_forKey_error_1, + value?._id ?? ffi.nullptr, + key._id, + error); + } + + bool setResourceValues_error_( + NSObject keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_247( + _id, _lib._sel_setResourceValues_error_1, keyedValues._id, error); + } + + void removeCachedResourceValueForKey_(NSString key) { + _lib._objc_msgSend_248( + _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); + } + + void removeAllCachedResourceValues() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + } + + void setTemporaryResourceValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_setTemporaryResourceValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); + } + + NSData? + bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( + int options, + NSArray? keys, + NSURL? relativeURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_249( + _id, + _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, + options, + keys?._id ?? ffi.nullptr, + relativeURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSURL? + initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_250( + _id, + _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData._id, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL? + URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + AVFAudio _lib, + NSData bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_250( + _lib._class_NSURL1, + _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData._id, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSObject? resourceValuesForKeys_fromBookmarkData_( + AVFAudio _lib, NSArray keys, NSData bookmarkData) { + final _ret = _lib._objc_msgSend_251( + _lib._class_NSURL1, + _lib._sel_resourceValuesForKeys_fromBookmarkData_1, + keys._id, + bookmarkData._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static bool writeBookmarkData_toURL_options_error_( + AVFAudio _lib, + NSData bookmarkData, + NSURL bookmarkFileURL, + int options, + ffi.Pointer> error) { + return _lib._objc_msgSend_252( + _lib._class_NSURL1, + _lib._sel_writeBookmarkData_toURL_options_error_1, + bookmarkData._id, + bookmarkFileURL._id, + options, + error); + } + + static NSData? bookmarkDataWithContentsOfURL_error_(AVFAudio _lib, + NSURL bookmarkFileURL, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_253( + _lib._class_NSURL1, + _lib._sel_bookmarkDataWithContentsOfURL_error_1, + bookmarkFileURL._id, + error); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + static NSURL? URLByResolvingAliasFileAtURL_options_error_(AVFAudio _lib, + NSURL url, int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSURL1, + _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, + url._id, + options, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + bool startAccessingSecurityScopedResource() { + return _lib._objc_msgSend_12( + _id, _lib._sel_startAccessingSecurityScopedResource1); + } + + void stopAccessingSecurityScopedResource() { + _lib._objc_msgSend_1(_id, _lib._sel_stopAccessingSecurityScopedResource1); } bool getPromisedItemResourceValue_forKey_error_( ffi.Pointer> value, - NSURLResourceKey key, + NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_220( + return _lib._objc_msgSend_244( _id, _lib._sel_getPromisedItemResourceValue_forKey_error_1, value, - key, + key._id, error); } - NSDictionary promisedItemResourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_221( - _id, - _lib._sel_promisedItemResourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? promisedItemResourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_255(_id, + _lib._sel_promisedItemResourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } bool checkPromisedItemIsReachableAndReturnError_( ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); } - static NSURL fileURLWithPathComponents_(AVFAudio _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_222(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? fileURLWithPathComponents_(AVFAudio _lib, NSArray components) { + final _ret = _lib._objc_msgSend_256(_lib._class_NSURL1, + _lib._sel_fileURLWithPathComponents_1, components._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_pathComponents1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_pathComponents1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_lastPathComponent1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_pathExtension1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathComponent_(NSString? pathComponent) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathComponent_1, - pathComponent?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? URLByAppendingPathComponent_(NSString pathComponent) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_URLByAppendingPathComponent_1, pathComponent._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathComponent_isDirectory_( - NSString? pathComponent, bool isDirectory) { - final _ret = _lib._objc_msgSend_33( + NSURL? URLByAppendingPathComponent_isDirectory_( + NSString pathComponent, bool isDirectory) { + final _ret = _lib._objc_msgSend_258( _id, _lib._sel_URLByAppendingPathComponent_isDirectory_1, - pathComponent?._id ?? ffi.nullptr, + pathComponent._id, isDirectory); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get URLByDeletingLastPathComponent { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); + _lib._objc_msgSend_45(_id, _lib._sel_URLByDeletingLastPathComponent1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathExtension_(NSString? pathExtension) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathExtension_1, - pathExtension?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? URLByAppendingPathExtension_(NSString pathExtension) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_URLByAppendingPathExtension_1, pathExtension._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get URLByDeletingPathExtension { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingPathExtension1); + _lib._objc_msgSend_45(_id, _lib._sel_URLByDeletingPathExtension1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get URLByStandardizingPath { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URLByStandardizingPath1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URLByStandardizingPath1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -33857,47 +38026,58 @@ class NSURL extends NSObject { NSURL? get URLByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByResolvingSymlinksInPath1); + _lib._objc_msgSend_45(_id, _lib._sel_URLByResolvingSymlinksInPath1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_223( + NSData? resourceDataUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_259( _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void loadResourceDataNotifyingClient_usingCache_( NSObject client, bool shouldUseCache) { - return _lib._objc_msgSend_224( + _lib._objc_msgSend_260( _id, _lib._sel_loadResourceDataNotifyingClient_usingCache_1, client._id, shouldUseCache); } - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? propertyForKey_(NSString propertyKey) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_propertyForKey_1, propertyKey._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); + bool setResourceData_(NSData data) { + return _lib._objc_msgSend_24(_id, _lib._sel_setResourceData_1, data._id); } - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_225(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); + bool setProperty_forKey_(NSObject property, NSString propertyKey) { + return _lib._objc_msgSend_261( + _id, _lib._sel_setProperty_forKey_1, property._id, propertyKey._id); } - NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_232( + NSURLHandle? URLHandleUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_268( _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURLHandle._(_ret, _lib, retain: true, release: true); + } + + @override + NSURL init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL new1(AVFAudio _lib) { @@ -33905,6 +38085,12 @@ class NSURL extends NSObject { return NSURL._(_ret, _lib, retain: false, release: true); } + static NSURL allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURL1, _lib._sel_allocWithZone_1, zone); + return NSURL._(_ret, _lib, retain: false, release: true); + } + static NSURL alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); return NSURL._(_ret, _lib, retain: false, release: true); @@ -33914,18 +38100,18 @@ class NSURL extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURL1, + _lib._objc_msgSend_15(_lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -33940,33 +38126,29 @@ class NSURL extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURL1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURL1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURL1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURL1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURL1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34001,121 +38183,123 @@ class NSNumber extends NSValue { } @override - NSNumber initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithChar_(int value) { - final _ret = _lib._objc_msgSend_196(_id, _lib._sel_initWithChar_1, value); + final _ret = _lib._objc_msgSend_220(_id, _lib._sel_initWithChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedChar_(int value) { final _ret = - _lib._objc_msgSend_197(_id, _lib._sel_initWithUnsignedChar_1, value); + _lib._objc_msgSend_221(_id, _lib._sel_initWithUnsignedChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_initWithShort_1, value); + final _ret = _lib._objc_msgSend_222(_id, _lib._sel_initWithShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedShort_(int value) { final _ret = - _lib._objc_msgSend_199(_id, _lib._sel_initWithUnsignedShort_1, value); + _lib._objc_msgSend_223(_id, _lib._sel_initWithUnsignedShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_200(_id, _lib._sel_initWithInt_1, value); + final _ret = _lib._objc_msgSend_224(_id, _lib._sel_initWithInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedInt_(int value) { final _ret = - _lib._objc_msgSend_201(_id, _lib._sel_initWithUnsignedInt_1, value); + _lib._objc_msgSend_225(_id, _lib._sel_initWithUnsignedInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_202(_id, _lib._sel_initWithLong_1, value); + final _ret = _lib._objc_msgSend_226(_id, _lib._sel_initWithLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLong_(int value) { final _ret = - _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedLong_1, value); + _lib._objc_msgSend_227(_id, _lib._sel_initWithUnsignedLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLongLong_(int value) { final _ret = - _lib._objc_msgSend_204(_id, _lib._sel_initWithLongLong_1, value); + _lib._objc_msgSend_228(_id, _lib._sel_initWithLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLongLong_(int value) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_229( _id, _lib._sel_initWithUnsignedLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithFloat_1, value); + final _ret = _lib._objc_msgSend_230(_id, _lib._sel_initWithFloat_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_207(_id, _lib._sel_initWithDouble_1, value); + final _ret = _lib._objc_msgSend_231(_id, _lib._sel_initWithDouble_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_208(_id, _lib._sel_initWithBool_1, value); + final _ret = _lib._objc_msgSend_232(_id, _lib._sel_initWithBool_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithInteger_(int value) { final _ret = - _lib._objc_msgSend_202(_id, _lib._sel_initWithInteger_1, value); + _lib._objc_msgSend_226(_id, _lib._sel_initWithInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedInteger_(int value) { final _ret = - _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedInteger_1, value); + _lib._objc_msgSend_227(_id, _lib._sel_initWithUnsignedInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } int get charValue { - return _lib._objc_msgSend_209(_id, _lib._sel_charValue1); + return _lib._objc_msgSend_233(_id, _lib._sel_charValue1); } int get unsignedCharValue { - return _lib._objc_msgSend_210(_id, _lib._sel_unsignedCharValue1); + return _lib._objc_msgSend_234(_id, _lib._sel_unsignedCharValue1); } int get shortValue { - return _lib._objc_msgSend_211(_id, _lib._sel_shortValue1); + return _lib._objc_msgSend_235(_id, _lib._sel_shortValue1); } int get unsignedShortValue { - return _lib._objc_msgSend_212(_id, _lib._sel_unsignedShortValue1); + return _lib._objc_msgSend_236(_id, _lib._sel_unsignedShortValue1); } int get intValue { - return _lib._objc_msgSend_213(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_237(_id, _lib._sel_intValue1); } int get unsignedIntValue { - return _lib._objc_msgSend_191(_id, _lib._sel_unsignedIntValue1); + return _lib._objc_msgSend_214(_id, _lib._sel_unsignedIntValue1); } int get longValue { - return _lib._objc_msgSend_78(_id, _lib._sel_longValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_longValue1); } int get unsignedLongValue { @@ -34123,19 +38307,19 @@ class NSNumber extends NSValue { } int get longLongValue { - return _lib._objc_msgSend_214(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_238(_id, _lib._sel_longLongValue1); } int get unsignedLongLongValue { - return _lib._objc_msgSend_148(_id, _lib._sel_unsignedLongLongValue1); + return _lib._objc_msgSend_164(_id, _lib._sel_unsignedLongLongValue1); } double get floatValue { - return _lib._objc_msgSend_215(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_239(_id, _lib._sel_floatValue1); } double get doubleValue { - return _lib._objc_msgSend_149(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_165(_id, _lib._sel_doubleValue1); } bool get boolValue { @@ -34143,188 +38327,205 @@ class NSNumber extends NSValue { } int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_integerValue1); } int get unsignedIntegerValue { return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get stringValue { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_stringValue1); + return NSString._(_ret, _lib, retain: true, release: true); } - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_216( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + int compare_(NSNumber otherNumber) { + return _lib._objc_msgSend_240(_id, _lib._sel_compare_1, otherNumber._id); } - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_217( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + bool isEqualToNumber_(NSNumber number) { + return _lib._objc_msgSend_241(_id, _lib._sel_isEqualToNumber_1, number._id); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithChar_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_196( + final _ret = _lib._objc_msgSend_220( _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedChar_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_197( + final _ret = _lib._objc_msgSend_221( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithShort_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_198( + final _ret = _lib._objc_msgSend_222( _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedShort_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_199( + final _ret = _lib._objc_msgSend_223( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInt_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_200( + final _ret = _lib._objc_msgSend_224( _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInt_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_201( + final _ret = _lib._objc_msgSend_225( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLong_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_202( + final _ret = _lib._objc_msgSend_226( _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLong_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_203( + final _ret = _lib._objc_msgSend_227( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLongLong_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_204( + final _ret = _lib._objc_msgSend_228( _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLongLong_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_229( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithFloat_(AVFAudio _lib, double value) { - final _ret = _lib._objc_msgSend_206( + final _ret = _lib._objc_msgSend_230( _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithDouble_(AVFAudio _lib, double value) { - final _ret = _lib._objc_msgSend_207( + final _ret = _lib._objc_msgSend_231( _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithBool_(AVFAudio _lib, bool value) { - final _ret = _lib._objc_msgSend_208( + final _ret = _lib._objc_msgSend_232( _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInteger_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_202( + final _ret = _lib._objc_msgSend_226( _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInteger_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_203( + final _ret = _lib._objc_msgSend_227( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } + @override + NSNumber initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_46( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + static NSValue valueWithBytes_objCType_( AVFAudio _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43(_lib._class_NSNumber1, + final _ret = _lib._objc_msgSend_48(_lib._class_NSNumber1, _lib._sel_valueWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue value_withObjCType_( AVFAudio _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( + final _ret = _lib._objc_msgSend_48( _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithNonretainedObject_(AVFAudio _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + static NSValue valueWithNonretainedObject_( + AVFAudio _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( AVFAudio _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( + final _ret = _lib._objc_msgSend_50( _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRange_(AVFAudio _lib, NSRange range) { - final _ret = _lib._objc_msgSend_48( + static NSValue valueWithRange_(AVFAudio _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_53( _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithPoint_(AVFAudio _lib, NSPoint point) { - final _ret = _lib._objc_msgSend_50( + static NSValue valueWithPoint_(AVFAudio _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_55( _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithSize_(AVFAudio _lib, NSSize size) { - final _ret = _lib._objc_msgSend_51( + static NSValue valueWithSize_(AVFAudio _lib, CGSize size) { + final _ret = _lib._objc_msgSend_56( _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRect_(AVFAudio _lib, NSRect rect) { - final _ret = _lib._objc_msgSend_52( + static NSValue valueWithRect_(AVFAudio _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_57( _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithEdgeInsets_(AVFAudio _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( + final _ret = _lib._objc_msgSend_58( _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); return NSValue._(_ret, _lib, retain: true, release: true); } + @override + NSNumber init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + static NSNumber new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); return NSNumber._(_ret, _lib, retain: false, release: true); } + static NSNumber allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNumber1, _lib._sel_allocWithZone_1, zone); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + static NSNumber alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); return NSNumber._(_ret, _lib, retain: false, release: true); @@ -34334,18 +38535,18 @@ class NSNumber extends NSValue { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNumber1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumber1, + _lib._objc_msgSend_15(_lib._class_NSNumber1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -34360,33 +38561,29 @@ class NSNumber extends NSValue { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumber1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNumber1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNumber1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNumber1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNumber1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34421,7 +38618,7 @@ class NSValue extends NSObject { } void getValue_size_(ffi.Pointer value, int size) { - return _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); + _lib._objc_msgSend_22(_id, _lib._sel_getValue_size_1, value, size); } ffi.Pointer get objCType { @@ -34430,110 +38627,120 @@ class NSValue extends NSObject { NSValue initWithBytes_objCType_( ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_41( + final _ret = _lib._objc_msgSend_46( _id, _lib._sel_initWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } - NSValue initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSValue._(_ret, _lib, retain: true, release: true); + NSValue? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithBytes_objCType_( AVFAudio _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( + final _ret = _lib._objc_msgSend_48( _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue value_withObjCType_( AVFAudio _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( + final _ret = _lib._objc_msgSend_48( _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithNonretainedObject_(AVFAudio _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + static NSValue valueWithNonretainedObject_( + AVFAudio _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSValue1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); return NSValue._(_ret, _lib, retain: true, release: true); } - NSObject get nonretainedObjectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get nonretainedObjectValue { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_nonretainedObjectValue1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( AVFAudio _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( + final _ret = _lib._objc_msgSend_50( _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); return NSValue._(_ret, _lib, retain: true, release: true); } ffi.Pointer get pointerValue { - return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); + return _lib._objc_msgSend_20(_id, _lib._sel_pointerValue1); } - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_46( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + bool isEqualToValue_(NSValue value) { + return _lib._objc_msgSend_51(_id, _lib._sel_isEqualToValue_1, value._id); } void getValue_(ffi.Pointer value) { - return _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + _lib._objc_msgSend_52(_id, _lib._sel_getValue_1, value); } - static NSValue valueWithRange_(AVFAudio _lib, NSRange range) { - final _ret = _lib._objc_msgSend_48( + static NSValue valueWithRange_(AVFAudio _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_53( _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); return NSValue._(_ret, _lib, retain: true, release: true); } - NSRange get rangeValue { - return _lib._objc_msgSend_49(_id, _lib._sel_rangeValue1); + void getRangeValue(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_rangeValue1); } - static NSValue valueWithPoint_(AVFAudio _lib, NSPoint point) { - final _ret = _lib._objc_msgSend_50( + static NSValue valueWithPoint_(AVFAudio _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_55( _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithSize_(AVFAudio _lib, NSSize size) { - final _ret = _lib._objc_msgSend_51( + static NSValue valueWithSize_(AVFAudio _lib, CGSize size) { + final _ret = _lib._objc_msgSend_56( _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRect_(AVFAudio _lib, NSRect rect) { - final _ret = _lib._objc_msgSend_52( + static NSValue valueWithRect_(AVFAudio _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_57( _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithEdgeInsets_(AVFAudio _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( + final _ret = _lib._objc_msgSend_58( _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); return NSValue._(_ret, _lib, retain: true, release: true); } - NSPoint get pointValue { - return _lib._objc_msgSend_54(_id, _lib._sel_pointValue1); + void getPointValue(ffi.Pointer stret) { + _lib._objc_msgSend_59(stret, _id, _lib._sel_pointValue1); + } + + void getSizeValue(ffi.Pointer stret) { + _lib._objc_msgSend_60(stret, _id, _lib._sel_sizeValue1); } - NSSize get sizeValue { - return _lib._objc_msgSend_55(_id, _lib._sel_sizeValue1); + void getRectValue(ffi.Pointer stret) { + _lib._objc_msgSend_61(stret, _id, _lib._sel_rectValue1); } - NSRect get rectValue { - return _lib._objc_msgSend_56(_id, _lib._sel_rectValue1); + void getEdgeInsetsValue(ffi.Pointer stret) { + _lib._objc_msgSend_62(stret, _id, _lib._sel_edgeInsetsValue1); } - NSEdgeInsets get edgeInsetsValue { - return _lib._objc_msgSend_57(_id, _lib._sel_edgeInsetsValue1); + @override + NSValue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue new1(AVFAudio _lib) { @@ -34541,6 +38748,12 @@ class NSValue extends NSObject { return NSValue._(_ret, _lib, retain: false, release: true); } + static NSValue allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSValue1, _lib._sel_allocWithZone_1, zone); + return NSValue._(_ret, _lib, retain: false, release: true); + } + static NSValue alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); return NSValue._(_ret, _lib, retain: false, release: true); @@ -34550,18 +38763,18 @@ class NSValue extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSValue1, + _lib._objc_msgSend_15(_lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -34576,33 +38789,29 @@ class NSValue extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSValue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSValue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSValue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSValue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSValue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34614,29 +38823,22 @@ class NSValue extends NSObject { } } -typedef NSPoint = CGPoint; - final class CGPoint extends ffi.Struct { - @CGFloat() + @ffi.Double() external double x; - @CGFloat() + @ffi.Double() external double y; } -typedef CGFloat = ffi.Double; -typedef NSSize = CGSize; - final class CGSize extends ffi.Struct { - @CGFloat() + @ffi.Double() external double width; - @CGFloat() + @ffi.Double() external double height; } -typedef NSRect = CGRect; - final class CGRect extends ffi.Struct { external CGPoint origin; @@ -34644,16 +38846,16 @@ final class CGRect extends ffi.Struct { } final class NSEdgeInsets extends ffi.Struct { - @CGFloat() + @ffi.Double() external double top; - @CGFloat() + @ffi.Double() external double left; - @CGFloat() + @ffi.Double() external double bottom; - @CGFloat() + @ffi.Double() external double right; } @@ -34684,7 +38886,7 @@ class NSArray extends NSObject { } NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, index); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndex_1, index); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -34696,34 +38898,34 @@ class NSArray extends NSObject { NSArray initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } NSArray arrayByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_62( + final _ret = _lib._objc_msgSend_67( _id, _lib._sel_arrayByAddingObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); + NSArray arrayByAddingObjectsFromArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_arrayByAddingObjectsFromArray_1, otherArray._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + NSString componentsJoinedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_componentsJoinedByString_1, separator._id); return NSString._(_ret, _lib, retain: true, release: true); } @@ -34731,96 +38933,100 @@ class NSArray extends NSObject { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); return NSString._(_ret, _lib, retain: true, release: true); } - NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_67(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? firstObjectCommonWithArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_72( + _id, _lib._sel_firstObjectCommonWithArray_1, otherArray._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void getObjects_range_( - ffi.Pointer> objects, NSRange range) { - return _lib._objc_msgSend_68( - _id, _lib._sel_getObjects_range_1, objects, range); + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_73(_id, _lib._sel_getObjects_range_1, objects, range); } int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, anObject._id); + return _lib._objc_msgSend_74(_id, _lib._sel_indexOfObject_1, anObject._id); } - int indexOfObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_70( + int indexOfObject_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_75( _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); } int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_69( + return _lib._objc_msgSend_74( _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); } - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_70( + int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_75( _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); } - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_71( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + bool isEqualToArray_(NSArray otherArray) { + return _lib._objc_msgSend_76( + _id, _lib._sel_isEqualToArray_1, otherArray._id); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get firstObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_firstObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get lastObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_lastObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_reverseObjectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_sortedArrayHint1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get sortedArrayHint { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_sortedArrayHint1); + return NSData._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayUsingFunction_context_( ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context) { - final _ret = _lib._objc_msgSend_73( + final _ret = _lib._objc_msgSend_78( _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34828,12 +39034,12 @@ class NSArray extends NSObject { NSArray sortedArrayUsingFunction_context_hint_( ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context, NSData? hint) { - final _ret = _lib._objc_msgSend_74( + final _ret = _lib._objc_msgSend_79( _id, _lib._sel_sortedArrayUsingFunction_context_hint_1, comparator, @@ -34843,98 +39049,103 @@ class NSArray extends NSObject { } NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( + final _ret = _lib._objc_msgSend_80( _id, _lib._sel_sortedArrayUsingSelector_1, comparator); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray subarrayWithRange_(NSRange range) { + NSArray subarrayWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_76(_id, _lib._sel_subarrayWithRange_1, range); + _lib._objc_msgSend_81(_id, _lib._sel_subarrayWithRange_1, range); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_81( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_writeToURL_error_1, url._id, error); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( + _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_82( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_90( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, - argument._id); + argument?._id ?? ffi.nullptr); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_111(_id, _lib._sel_objectsAtIndexes_1, indexes._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSObject objectAtIndexedSubscript_(int idx) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndexedSubscript_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock3 block) { - return _lib._objc_msgSend_104( + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_112( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_105(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_113(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_106( + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_114( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, + s._id, opts, block._id); } - int indexOfObjectPassingTest_(ObjCBlock4 predicate) { - return _lib._objc_msgSend_107( + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_115( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_108(_id, + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_116(_id, _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_109( + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_117( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_110( + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_118( _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_111( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_119( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, opts, @@ -34942,39 +39153,43 @@ class NSArray extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_112( + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_120( _id, _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSArray sortedArrayUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_113( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_114( - _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_122(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, NSRange r, int opts, NSComparator cmp) { - return _lib._objc_msgSend_115( + NSObject obj, + _NSRange r, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_123( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, obj._id, r, opts, - cmp); + cmp._id); } static NSArray array(AVFAudio _lib) { @@ -34983,205 +39198,234 @@ class NSArray extends NSObject { } static NSArray arrayWithObject_(AVFAudio _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_count_( AVFAudio _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_(AVFAudio _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithArray_(AVFAudio _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + static NSArray arrayWithArray_(AVFAudio _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSArray1, _lib._sel_arrayWithArray_1, array._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + NSArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); return NSArray._(_ret, _lib, retain: false, release: true); } - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_117( + NSArray? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_127( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? arrayWithContentsOfURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_127(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_usingEquivalenceTest_( + NSArray other, int options, ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_128( _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other._id, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_117( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSObject differenceFromArray_withOptions_(NSArray other, int options) { + final _ret = _lib._objc_msgSend_129( + _id, _lib._sel_differenceFromArray_withOptions_1, other._id, options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_(NSArray other) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_differenceFromArray_1, other._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? arrayByApplyingDifference_(NSObject difference) { + final _ret = _lib._objc_msgSend_130( + _id, _lib._sel_arrayByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } void getObjects_(ffi.Pointer> objects) { - return _lib._objc_msgSend_118(_id, _lib._sel_getObjects_1, objects); + _lib._objc_msgSend_131(_id, _lib._sel_getObjects_1, objects); } - static NSArray arrayWithContentsOfFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_119(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_132( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_120(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_133( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_132( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_120( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_133(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - NSArray pathsMatchingExtensions_(NSArray? filterTypes) { - final _ret = _lib._objc_msgSend_63(_id, _lib._sel_pathsMatchingExtensions_1, - filterTypes?._id ?? ffi.nullptr); + NSArray pathsMatchingExtensions_(NSArray filterTypes) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_pathsMatchingExtensions_1, filterTypes._id); return NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } void addObserver_toObjectsAtIndexes_forKeyPath_options_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, + NSObject observer, + NSIndexSet indexes, + NSString keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_123( + _lib._objc_msgSend_136( _id, _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + indexes._id, + keyPath._id, options, context); } void removeObserver_fromObjectsAtIndexes_forKeyPath_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, + NSObject observer, + NSIndexSet indexes, + NSString keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_124( + _lib._objc_msgSend_137( _id, _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + indexes._id, + keyPath._id, context); } void removeObserver_fromObjectsAtIndexes_forKeyPath_( - NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { - return _lib._objc_msgSend_125( + NSObject observer, NSIndexSet indexes, NSString keyPath) { + _lib._objc_msgSend_138( _id, _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr); + observer._id, + indexes._id, + keyPath._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_195(_id, - _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); + NSArray filteredArrayUsingPredicate_(NSPredicate predicate) { + final _ret = _lib._objc_msgSend_219( + _id, _lib._sel_filteredArrayUsingPredicate_1, predicate._id); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -35190,6 +39434,12 @@ class NSArray extends NSObject { return NSArray._(_ret, _lib, retain: false, release: true); } + static NSArray allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSArray1, _lib._sel_allocWithZone_1, zone); + return NSArray._(_ret, _lib, retain: false, release: true); + } + static NSArray alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); return NSArray._(_ret, _lib, retain: false, release: true); @@ -35199,18 +39449,18 @@ class NSArray extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArray1, + _lib._objc_msgSend_15(_lib._class_NSArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -35225,33 +39475,29 @@ class NSArray extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -35263,8 +39509,6 @@ class NSArray extends NSObject { } } -typedef NSInteger = ffi.Long; - class NSError extends NSObject { NSError._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -35287,25 +39531,116 @@ class NSError extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); } - NSError initWithDomain_code_userInfo_(NSErrorDomain domain, int code) { - final _ret = _lib._objc_msgSend_77( - _id, _lib._sel_initWithDomain_code_userInfo_1, domain, code); + NSError initWithDomain_code_userInfo_( + NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_82( + _id, + _lib._sel_initWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); return NSError._(_ret, _lib, retain: true, release: true); } static NSError errorWithDomain_code_userInfo_( - AVFAudio _lib, NSErrorDomain domain, int code) { - final _ret = _lib._objc_msgSend_77(_lib._class_NSError1, - _lib._sel_errorWithDomain_code_userInfo_1, domain, code); + AVFAudio _lib, NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_82( + _lib._class_NSError1, + _lib._sel_errorWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); return NSError._(_ret, _lib, retain: true, release: true); } - NSErrorDomain get domain { - return _lib._objc_msgSend_20(_id, _lib._sel_domain1); + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } int get code { - return _lib._objc_msgSend_78(_id, _lib._sel_code1); + return _lib._objc_msgSend_83(_id, _lib._sel_code1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get localizedDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localizedDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedFailureReason { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localizedFailureReason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedRecoverySuggestion { + final _ret = + _lib._objc_msgSend_44(_id, _lib._sel_localizedRecoverySuggestion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localizedRecoveryOptions { + final _ret = + _lib._objc_msgSend_84(_id, _lib._sel_localizedRecoveryOptions1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? get recoveryAttempter { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_recoveryAttempter1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get helpAnchor { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_helpAnchor1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray get underlyingErrors { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_underlyingErrors1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static void setUserInfoValueProviderForDomain_provider_(AVFAudio _lib, + NSString errorDomain, ObjCBlock_ObjCObject_NSError_NSString? provider) { + _lib._objc_msgSend_86( + _lib._class_NSError1, + _lib._sel_setUserInfoValueProviderForDomain_provider_1, + errorDomain._id, + provider?._id ?? ffi.nullptr); + } + + static ObjCBlock_ObjCObject_NSError_NSString? userInfoValueProviderForDomain_( + AVFAudio _lib, NSError err, NSString userInfoKey, NSString errorDomain) { + final _ret = _lib._objc_msgSend_87( + _lib._class_NSError1, + _lib._sel_userInfoValueProviderForDomain_1, + err._id, + userInfoKey._id, + errorDomain._id); + return _ret.address == 0 + ? null + : ObjCBlock_ObjCObject_NSError_NSString._(_ret, _lib, + retain: true, release: true); + } + + @override + NSError init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSError._(_ret, _lib, retain: true, release: true); } static NSError new1(AVFAudio _lib) { @@ -35313,6 +39648,12 @@ class NSError extends NSObject { return NSError._(_ret, _lib, retain: false, release: true); } + static NSError allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSError1, _lib._sel_allocWithZone_1, zone); + return NSError._(_ret, _lib, retain: false, release: true); + } + static NSError alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); return NSError._(_ret, _lib, retain: false, release: true); @@ -35322,18 +39663,18 @@ class NSError extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSError1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSError1, + _lib._objc_msgSend_15(_lib._class_NSError1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -35348,33 +39689,29 @@ class NSError extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSError1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSError1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSError1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSError1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSError1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -35386,7 +39723,190 @@ class NSError extends NSObject { } } -typedef NSErrorDomain = ffi.Pointer; +class _ObjCBlockBase implements ffi.Finalizable { + final ffi.Pointer<_ObjCBlock> _id; + final AVFAudio _lib; + bool _pendingRelease; + + _ObjCBlockBase._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._Block_copy(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); + } + } + + /// Releases the reference to the underlying ObjC block held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._Block_release(_id.cast()); + _lib._objc_releaseFinalizer11.detach(this); + } else { + throw StateError( + 'Released an ObjC block that was unowned or already released.'); + } + } + + @override + bool operator ==(Object other) { + return other is _ObjCBlockBase && _id == other._id; + } + + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer<_ObjCBlock> get pointer => _id; + + ffi.Pointer<_ObjCBlock> _retainAndReturnId() { + _lib._Block_copy(_id.cast()); + return _id; + } +} + +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry = Function( + ffi.Pointer, ffi.Pointer)>{}; +int _ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex; + _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer + _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { + ObjCBlock_ObjCObject_NSError_NSString._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ObjCObject_NSError_NSString.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ObjCObject_NSError_NSString.fromFunction( + AVFAudio lib, NSObject? Function(NSError, NSString) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline) + .cast(), + _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSError._(arg0, lib, retain: true, release: true), NSString._(arg1, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + NSObject? call(NSError arg0, NSString arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>() + (_id, arg0._id, arg1._id) + .address == + 0 + ? null + : NSObject._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>()(_id, arg0._id, arg1._id), + _lib, + retain: false, + release: true); +} + +final class _ObjCBlockDesc extends ffi.Struct { + @ffi.UnsignedLong() + external int reserved; + + @ffi.UnsignedLong() + external int size; + + external ffi.Pointer copy_helper; + + external ffi.Pointer dispose_helper; + + external ffi.Pointer signature; +} + +final class _ObjCBlock extends ffi.Struct { + external ffi.Pointer isa; + + @ffi.Int() + external int flags; + + @ffi.Int() + external int reserved; + + external ffi.Pointer invoke; + + external ffi.Pointer<_ObjCBlockDesc> descriptor; + + external ffi.Pointer target; +} class NSIndexSet extends NSObject { NSIndexSet._(ffi.Pointer id, AVFAudio lib, @@ -35417,37 +39937,37 @@ class NSIndexSet extends NSObject { } static NSIndexSet indexSetWithIndex_(AVFAudio _lib, int value) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSetWithIndexesInRange_(AVFAudio _lib, NSRange range) { - final _ret = _lib._objc_msgSend_83( + static NSIndexSet indexSetWithIndexesInRange_(AVFAudio _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_91( _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexesInRange_(NSRange range) { + NSIndexSet initWithIndexesInRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_83(_id, _lib._sel_initWithIndexesInRange_1, range); + _lib._objc_msgSend_91(_id, _lib._sel_initWithIndexesInRange_1, range); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_84( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + NSIndexSet initWithIndexSet_(NSIndexSet indexSet) { + final _ret = + _lib._objc_msgSend_92(_id, _lib._sel_initWithIndexSet_1, indexSet._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, value); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_initWithIndex_1, value); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_85( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + bool isEqualToIndexSet_(NSIndexSet indexSet) { + return _lib._objc_msgSend_93( + _id, _lib._sel_isEqualToIndexSet_1, indexSet._id); } int get count { @@ -35463,26 +39983,28 @@ class NSIndexSet extends NSObject { } int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexGreaterThanIndex_1, value); + return _lib._objc_msgSend_94(_id, _lib._sel_indexGreaterThanIndex_1, value); } int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexLessThanIndex_1, value); + return _lib._objc_msgSend_94(_id, _lib._sel_indexLessThanIndex_1, value); } int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); } int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); } - int getIndexes_maxCount_inIndexRange_(ffi.Pointer indexBuffer, - int bufferSize, NSRangePointer range) { - return _lib._objc_msgSend_87( + int getIndexes_maxCount_inIndexRange_( + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range) { + return _lib._objc_msgSend_95( _id, _lib._sel_getIndexes_maxCount_inIndexRange_1, indexBuffer, @@ -35490,42 +40012,44 @@ class NSIndexSet extends NSObject { range); } - int countOfIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_88(_id, _lib._sel_countOfIndexesInRange_1, range); + int countOfIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_96(_id, _lib._sel_countOfIndexesInRange_1, range); } bool containsIndex_(int value) { - return _lib._objc_msgSend_89(_id, _lib._sel_containsIndex_1, value); + return _lib._objc_msgSend_97(_id, _lib._sel_containsIndex_1, value); } - bool containsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_90( + bool containsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_98( _id, _lib._sel_containsIndexesInRange_1, range); } - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_85( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + bool containsIndexes_(NSIndexSet indexSet) { + return _lib._objc_msgSend_93( + _id, _lib._sel_containsIndexes_1, indexSet._id); } - bool intersectsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_90( + bool intersectsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_98( _id, _lib._sel_intersectsIndexesInRange_1, range); } - void enumerateIndexesUsingBlock_(ObjCBlock block) { - return _lib._objc_msgSend_91( + void enumerateIndexesUsingBlock_( + ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_99( _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); } - void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock block) { - return _lib._objc_msgSend_92(_id, + void enumerateIndexesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_100(_id, _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); } void enumerateIndexesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock block) { - return _lib._objc_msgSend_93( + _NSRange range, int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_101( _id, _lib._sel_enumerateIndexesInRange_options_usingBlock_1, range, @@ -35533,19 +40057,20 @@ class NSIndexSet extends NSObject { block._id); } - int indexPassingTest_(ObjCBlock1 predicate) { - return _lib._objc_msgSend_94( + int indexPassingTest_(ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_102( _id, _lib._sel_indexPassingTest_1, predicate._id); } - int indexWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { - return _lib._objc_msgSend_95( + int indexWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_103( _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); } int indexInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock1 predicate) { - return _lib._objc_msgSend_96( + _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_104( _id, _lib._sel_indexInRange_options_passingTest_1, range, @@ -35553,21 +40078,23 @@ class NSIndexSet extends NSObject { predicate._id); } - NSIndexSet indexesPassingTest_(ObjCBlock1 predicate) { - final _ret = _lib._objc_msgSend_97( + NSIndexSet indexesPassingTest_( + ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_105( _id, _lib._sel_indexesPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { - final _ret = _lib._objc_msgSend_98( + NSIndexSet indexesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_106( _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock1 predicate) { - final _ret = _lib._objc_msgSend_99( + _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_107( _id, _lib._sel_indexesInRange_options_passingTest_1, range, @@ -35576,19 +40103,20 @@ class NSIndexSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesUsingBlock_(ObjCBlock2 block) { - return _lib._objc_msgSend_100( + void enumerateRangesUsingBlock_(ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_108( _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); } - void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_101(_id, + void enumerateRangesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_109(_id, _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); } void enumerateRangesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_102( + _NSRange range, int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_110( _id, _lib._sel_enumerateRangesInRange_options_usingBlock_1, range, @@ -35596,11 +40124,23 @@ class NSIndexSet extends NSObject { block._id); } + @override + NSIndexSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + static NSIndexSet new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); return NSIndexSet._(_ret, _lib, retain: false, release: true); } + static NSIndexSet allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexSet1, _lib._sel_allocWithZone_1, zone); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + static NSIndexSet alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); @@ -35611,18 +40151,18 @@ class NSIndexSet extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSIndexSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._objc_msgSend_15(_lib._class_NSIndexSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -35637,33 +40177,29 @@ class NSIndexSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSIndexSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSIndexSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSIndexSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -35675,145 +40211,114 @@ class NSIndexSet extends NSObject { } } -typedef NSRangePointer = ffi.Pointer; - -class _ObjCBlockBase implements ffi.Finalizable { - final ffi.Pointer<_ObjCBlock> _id; - final AVFAudio _lib; - bool _pendingRelease; - - _ObjCBlockBase._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._Block_copy(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); - } - } - - /// Releases the reference to the underlying ObjC block held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._Block_release(_id.cast()); - _lib._objc_releaseFinalizer11.detach(this); - } else { - throw StateError( - 'Released an ObjC block that was unowned or already released.'); - } - } - - @override - bool operator ==(Object other) { - return other is _ObjCBlockBase && _id == other._id; - } - - @override - int get hashCode => _id.hashCode; -} - -void _ObjCBlock_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock_closureRegistry = {}; -int _ObjCBlock_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_registerClosure(Function fn) { - final id = ++_ObjCBlock_closureRegistryIndex; - _ObjCBlock_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + void Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock extends _ObjCBlockBase { - ObjCBlock._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - NSUInteger arg0, ffi.Pointer arg1)>> + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock.fromFunction( - AVFAudio lib, void Function(int arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunction( + AVFAudio lib, void Function(int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) .cast(), - _ObjCBlock_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), lib); - void call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -final class _ObjCBlockDesc extends ffi.Struct { - @ffi.UnsignedLong() - external int reserved; - - @ffi.UnsignedLong() - external int size; - - external ffi.Pointer copy_helper; - - external ffi.Pointer dispose_helper; - - external ffi.Pointer signature; -} - -final class _ObjCBlock extends ffi.Struct { - external ffi.Pointer isa; - - @ffi.Int() - external int flags; - - @ffi.Int() - external int reserved; - - external ffi.Pointer invoke; - - external ffi.Pointer<_ObjCBlockDesc> descriptor; + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.listener( + AVFAudio lib, void Function(int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.UnsignedLong, + ffi.Pointer)>? _dartFuncListenerTrampoline; - external ffi.Pointer target; + void call(int arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, int, + ffi.Pointer)>()(_id, arg0, arg1); } abstract class NSEnumerationOptions { @@ -35821,360 +40326,490 @@ abstract class NSEnumerationOptions { static const int NSEnumerationReverse = 2; } -bool _ObjCBlock1_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock1_closureRegistry = {}; -int _ObjCBlock1_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { - final id = ++_ObjCBlock1_closureRegistryIndex; - _ObjCBlock1_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry = + )>{}; +int _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + bool Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock1_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +bool _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock1 extends _ObjCBlockBase { - ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock1.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Bool Function( - NSUInteger arg0, ffi.Pointer arg1)>> + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline, false) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, + false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock1.fromFunction( - AVFAudio lib, bool Function(int arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunction( + AVFAudio lib, bool Function(int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline, false) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline, + false) .cast(), - _ObjCBlock1_registerClosure(fn)), + _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), lib); - bool call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; -void _ObjCBlock2_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return block.ref.target + bool call(int arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>>() + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() .asFunction< - void Function( - NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); + bool Function(ffi.Pointer<_ObjCBlock>, int, + ffi.Pointer)>()(_id, arg0, arg1); } -final _ObjCBlock2_closureRegistry = {}; -int _ObjCBlock2_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { - final id = ++_ObjCBlock2_closureRegistryIndex; - _ObjCBlock2_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(_NSRange, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + void Function(_NSRange, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock2 extends _ObjCBlockBase { - ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSRange_bool._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock2.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSRange_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>> + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock2.fromFunction( - AVFAudio lib, void Function(NSRange arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSRange_bool.fromFunction( + AVFAudio lib, void Function(_NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock2_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (_NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), lib); - void call(NSRange arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSRange_bool.listener( + AVFAudio lib, void Function(_NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (_NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, _NSRange, ffi.Pointer)>? + _dartFuncListenerTrampoline; -void _ObjCBlock3_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target + void call(_NSRange arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>()(_id, arg0, arg1); } -final _ObjCBlock3_closureRegistry = {}; -int _ObjCBlock3_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { - final id = ++_ObjCBlock3_closureRegistryIndex; - _ObjCBlock3_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock3_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock3_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock3 extends _ObjCBlockBase { - ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock3.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0, - NSUInteger arg1, ffi.Pointer arg2)>> + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock3_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock3.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunction( + AVFAudio lib, void Function(NSObject, int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock3_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) .cast(), - _ObjCBlock3_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.listener( + AVFAudio lib, void Function(NSObject, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>? _dartFuncListenerTrampoline; -bool _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void call(NSObject arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); } -final _ObjCBlock4_closureRegistry = {}; -int _ObjCBlock4_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { - final id = ++_ObjCBlock4_closureRegistryIndex; - _ObjCBlock4_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + bool Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock4_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock4 extends _ObjCBlockBase { - ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock4.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer arg0, - NSUInteger arg1, ffi.Pointer arg2)>> + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline, + false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock4.fromFunction( - AVFAudio lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunction( + AVFAudio lib, bool Function(NSObject, int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, false) .cast(), - _ObjCBlock4_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -typedef NSComparator = ffi.Pointer<_ObjCBlock>; -int _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + bool call(NSObject arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); } -final _ObjCBlock5_closureRegistry = {}; -int _ObjCBlock5_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { - final id = ++_ObjCBlock5_closureRegistryIndex; - _ObjCBlock5_closureRegistry[id] = fn; +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + int Function(ffi.Pointer, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -int _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock5_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock5 extends _ObjCBlockBase { - ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject + extends _ObjCBlockBase { + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock5.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -36183,48 +40818,48 @@ class ObjCBlock5 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock5_fnPtrTrampoline, 0) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline, + 0) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock5.fromFunction( - AVFAudio lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunction( + AVFAudio lib, int Function(NSObject, NSObject) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock5_closureTrampoline, 0) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, 0) .cast(), - _ObjCBlock5_registerClosure(fn)), + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true)))), lib); - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + int call(NSObject arg0, NSObject arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); } abstract class NSComparisonResult { @@ -36244,6 +40879,112 @@ abstract class NSBinarySearchingOptions { static const int NSBinarySearchingInsertionIndex = 1024; } +abstract class NSOrderedCollectionDifferenceCalculationOptions { + static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = + 1; + static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = + 2; + static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi + .NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunction( + AVFAudio lib, bool Function(NSObject, NSObject) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSObject arg0, NSObject arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} + abstract class NSKeyValueObservingOptions { static const int NSKeyValueObservingOptionNew = 1; static const int NSKeyValueObservingOptionOld = 2; @@ -36275,84 +41016,87 @@ class NSPredicate extends NSObject { } static NSPredicate predicateWithFormat_argumentArray_( - AVFAudio _lib, NSString? predicateFormat, NSArray? arguments) { - final _ret = _lib._objc_msgSend_129( + AVFAudio _lib, NSString predicateFormat, NSArray? arguments) { + final _ret = _lib._objc_msgSend_142( _lib._class_NSPredicate1, _lib._sel_predicateWithFormat_argumentArray_1, - predicateFormat?._id ?? ffi.nullptr, + predicateFormat._id, arguments?._id ?? ffi.nullptr); return NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate predicateWithFormat_( - AVFAudio _lib, NSString? predicateFormat) { - final _ret = _lib._objc_msgSend_130(_lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); + AVFAudio _lib, NSString predicateFormat) { + final _ret = _lib._objc_msgSend_143(_lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_1, predicateFormat._id); return NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate predicateWithFormat_arguments_(AVFAudio _lib, - NSString? predicateFormat, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_131( + NSString predicateFormat, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_144( _lib._class_NSPredicate1, _lib._sel_predicateWithFormat_arguments_1, - predicateFormat?._id ?? ffi.nullptr, + predicateFormat._id, argList); return NSPredicate._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateFromMetadataQueryString_( - AVFAudio _lib, NSString? queryString) { - final _ret = _lib._objc_msgSend_130( - _lib._class_NSPredicate1, - _lib._sel_predicateFromMetadataQueryString_1, - queryString?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + static NSPredicate? predicateFromMetadataQueryString_( + AVFAudio _lib, NSString queryString) { + final _ret = _lib._objc_msgSend_145(_lib._class_NSPredicate1, + _lib._sel_predicateFromMetadataQueryString_1, queryString._id); + return _ret.address == 0 + ? null + : NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate predicateWithValue_(AVFAudio _lib, bool value) { - final _ret = _lib._objc_msgSend_132( + final _ret = _lib._objc_msgSend_146( _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); return NSPredicate._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithBlock_(AVFAudio _lib, ObjCBlock6 block) { - final _ret = _lib._objc_msgSend_193( + static NSPredicate predicateWithBlock_( + AVFAudio _lib, ObjCBlock_bool_ObjCObject_NSDictionary block) { + final _ret = _lib._objc_msgSend_216( _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSString? get predicateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get predicateFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_predicateFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { - final _ret = _lib._objc_msgSend_143( - _id, - _lib._sel_predicateWithSubstitutionVariables_1, - variables?._id ?? ffi.nullptr); + NSPredicate predicateWithSubstitutionVariables_(NSDictionary variables) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_predicateWithSubstitutionVariables_1, variables._id); return NSPredicate._(_ret, _lib, retain: true, release: true); } - bool evaluateWithObject_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_evaluateWithObject_1, object._id); + bool evaluateWithObject_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_evaluateWithObject_1, object?._id ?? ffi.nullptr); } bool evaluateWithObject_substitutionVariables_( - NSObject object, NSDictionary? bindings) { - return _lib._objc_msgSend_194( + NSObject? object, NSDictionary? bindings) { + return _lib._objc_msgSend_218( _id, _lib._sel_evaluateWithObject_substitutionVariables_1, - object._id, + object?._id ?? ffi.nullptr, bindings?._id ?? ffi.nullptr); } void allowEvaluation() { - return _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + } + + @override + NSPredicate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate new1(AVFAudio _lib) { @@ -36360,6 +41104,12 @@ class NSPredicate extends NSObject { return NSPredicate._(_ret, _lib, retain: false, release: true); } + static NSPredicate allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPredicate1, _lib._sel_allocWithZone_1, zone); + return NSPredicate._(_ret, _lib, retain: false, release: true); + } + static NSPredicate alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); @@ -36370,18 +41120,18 @@ class NSPredicate extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPredicate1, + _lib._objc_msgSend_15(_lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36396,33 +41146,29 @@ class NSPredicate extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPredicate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPredicate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPredicate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPredicate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPredicate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -36446,37 +41192,47 @@ final class __va_list_tag extends ffi.Struct { external ffi.Pointer reg_save_area; } -bool _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock6_closureRegistry = {}; -int _ObjCBlock6_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { - final id = ++_ObjCBlock6_closureRegistryIndex; - _ObjCBlock6_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock6 extends _ObjCBlockBase { - ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock6.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -36485,48 +41241,51 @@ class ObjCBlock6 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline, + false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock6.fromFunction( - AVFAudio lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunction( + AVFAudio lib, bool Function(NSObject?, NSDictionary?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_closureTrampoline, false) - .cast(), - _ObjCBlock6_registerClosure(fn)), + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSDictionary._(arg1, lib, retain: true, release: true)))), lib); - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + bool call(NSObject? arg0, NSDictionary? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } class NSDictionary extends NSObject { @@ -36556,13 +41315,15 @@ class NSDictionary extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - NSObject objectForKey_(NSObject aKey) { + NSObject? objectForKey_(NSObject aKey) { final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_keyEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_keyEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -36576,173 +41337,195 @@ class NSDictionary extends NSObject { ffi.Pointer> objects, ffi.Pointer> keys, int cnt) { - final _ret = _lib._objc_msgSend_133( + final _ret = _lib._objc_msgSend_147( _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allKeys1); + NSDictionary? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray get allKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSArray allKeysForObject_(NSObject anObject) { final _ret = - _lib._objc_msgSend_62(_id, _lib._sel_allKeysForObject_1, anObject._id); + _lib._objc_msgSend_67(_id, _lib._sel_allKeysForObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allValues { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allValues1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get allValues { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allValues1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get descriptionInStringsFileFormat { + NSString get descriptionInStringsFileFormat { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_descriptionInStringsFileFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); return NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_134(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + bool isEqualToDictionary_(NSDictionary otherDictionary) { + return _lib._objc_msgSend_148( + _id, _lib._sel_isEqualToDictionary_1, otherDictionary._id); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_135( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); + NSArray objectsForKeys_notFoundMarker_(NSArray keys, NSObject marker) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_objectsForKeys_notFoundMarker_1, keys._id, marker._id); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_81( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_writeToURL_error_1, url._id, error); } NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( + final _ret = _lib._objc_msgSend_80( _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); return NSArray._(_ret, _lib, retain: true, release: true); } void getObjects_andKeys_count_(ffi.Pointer> objects, ffi.Pointer> keys, int count) { - return _lib._objc_msgSend_136( + _lib._objc_msgSend_150( _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); } - NSObject objectForKeyedSubscript_(NSObject key) { + NSObject? objectForKeyedSubscript_(NSObject key) { final _ret = _lib._objc_msgSend_16( _id, _lib._sel_objectForKeyedSubscript_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateKeysAndObjectsUsingBlock_(ObjCBlock7 block) { - return _lib._objc_msgSend_137( + void enumerateKeysAndObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_151( _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); } void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock7 block) { - return _lib._objc_msgSend_138( + int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_152( _id, _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, opts, block._id); } - NSArray keysSortedByValueUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_113( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr); + NSArray keysSortedByValueUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_114(_id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, opts, cmptr); + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_122( + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } + NSObject keysOfEntriesPassingTest_( + ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_153( + _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject keysOfEntriesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_154(_id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + void getObjects_andKeys_(ffi.Pointer> objects, ffi.Pointer> keys) { - return _lib._objc_msgSend_139( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); + _lib._objc_msgSend_155(_id, _lib._sel_getObjects_andKeys_1, objects, keys); } - static NSDictionary dictionaryWithContentsOfFile_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_140(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfFile_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_141(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_157(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_140( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_157(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } static NSDictionary dictionary(AVFAudio _lib) { @@ -36753,7 +41536,7 @@ class NSDictionary extends NSObject { static NSDictionary dictionaryWithObject_forKey_( AVFAudio _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_142(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_158(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -36763,89 +41546,78 @@ class NSDictionary extends NSObject { ffi.Pointer> objects, ffi.Pointer> keys, int cnt) { - final _ret = _lib._objc_msgSend_133(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjectsAndKeys_( AVFAudio _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithDictionary_( - AVFAudio _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_143(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + AVFAudio _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_159(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjects_forKeys_( - AVFAudio _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_144( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + AVFAudio _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_143(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + NSDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_initWithDictionary_1, otherDictionary._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_145( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_161(_id, + _lib._sel_initWithDictionary_copyItems_1, otherDictionary._id, flag); return NSDictionary._(_ret, _lib, retain: false, release: true); } - NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_144( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + NSDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_146( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_162( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_146( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(AVFAudio _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + static NSObject sharedKeySetForKeys_(AVFAudio _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSDictionary1, _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -36853,7 +41625,7 @@ class NSDictionary extends NSObject { ffi.Pointer state, ffi.Pointer> buffer, int len) { - return _lib._objc_msgSend_147( + return _lib._objc_msgSend_163( _id, _lib._sel_countByEnumeratingWithState_objects_count_1, state, @@ -36862,36 +41634,44 @@ class NSDictionary extends NSObject { } int fileSize() { - return _lib._objc_msgSend_148(_id, _lib._sel_fileSize1); + return _lib._objc_msgSend_164(_id, _lib._sel_fileSize1); } - NSDate fileModificationDate() { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileModificationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? fileModificationDate() { + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_fileModificationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSString fileType() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? fileType() { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } int filePosixPermissions() { return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); } - NSString fileOwnerAccountName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? fileOwnerAccountName() { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileOwnerAccountName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString fileGroupOwnerAccountName() { + NSString? fileGroupOwnerAccountName() { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_44(_id, _lib._sel_fileGroupOwnerAccountName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } int fileSystemNumber() { - return _lib._objc_msgSend_78(_id, _lib._sel_fileSystemNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_fileSystemNumber1); } int fileSystemFileNumber() { @@ -36903,11 +41683,11 @@ class NSDictionary extends NSObject { } int fileHFSCreatorCode() { - return _lib._objc_msgSend_191(_id, _lib._sel_fileHFSCreatorCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_fileHFSCreatorCode1); } int fileHFSTypeCode() { - return _lib._objc_msgSend_191(_id, _lib._sel_fileHFSTypeCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_fileHFSTypeCode1); } bool fileIsImmutable() { @@ -36918,27 +41698,34 @@ class NSDictionary extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); } - NSDate fileCreationDate() { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileCreationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? fileCreationDate() { + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_fileCreationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSNumber fileOwnerAccountID() { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_fileOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber? fileOwnerAccountID() { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_fileOwnerAccountID1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSNumber fileGroupOwnerAccountID() { + NSNumber? fileGroupOwnerAccountID() { final _ret = - _lib._objc_msgSend_192(_id, _lib._sel_fileGroupOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_215(_id, _lib._sel_fileGroupOwnerAccountID1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_valueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSDictionary new1(AVFAudio _lib) { @@ -36947,6 +41734,12 @@ class NSDictionary extends NSObject { return NSDictionary._(_ret, _lib, retain: false, release: true); } + static NSDictionary allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDictionary1, _lib._sel_allocWithZone_1, zone); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + static NSDictionary alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); @@ -36957,18 +41750,18 @@ class NSDictionary extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDictionary1, + _lib._objc_msgSend_15(_lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36983,33 +41776,29 @@ class NSDictionary extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -37021,46 +41810,56 @@ class NSDictionary extends NSObject { } } -void _ObjCBlock7_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock7_closureRegistry = {}; -int _ObjCBlock7_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { - final id = ++_ObjCBlock7_closureRegistryIndex; - _ObjCBlock7_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock7_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock7_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock7 extends _ObjCBlockBase { - ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock7.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -37071,74 +41870,226 @@ class ObjCBlock7 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock7_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock7.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunction( + AVFAudio lib, void Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true), arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.listener( + AVFAudio lib, void Function(NSObject, NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock7_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock7_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + arg2))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject arg0, NSObject arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, + ffi.Bool Function( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -final class NSFastEnumerationState extends ffi.Struct { - @ffi.UnsignedLong() - external int state; - - external ffi.Pointer> itemsPtr; - - external ffi.Pointer mutationsPtr; - - @ffi.Array.multi([5]) - external ffi.Array extra; + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class NSDate extends NSObject { - NSDate._(ffi.Pointer id, AVFAudio lib, - {bool retain = false, bool release = false}) +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDate] that points to the same underlying object as [other]. + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunction( + AVFAudio lib, bool Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true), arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSObject arg0, NSObject arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2); +} + +final class NSFastEnumerationState extends ffi.Struct { + @ffi.UnsignedLong() + external int state; + + external ffi.Pointer> itemsPtr; + + external ffi.Pointer mutationsPtr; + + @ffi.Array.multi([5]) + external ffi.Array extra; +} + +class NSDate extends NSObject { + NSDate._(ffi.Pointer id, AVFAudio lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDate] that points to the same underlying object as [other]. static NSDate castFrom(T other) { return NSDate._(other._id, other._lib, retain: true, release: true); } @@ -37156,7 +42107,7 @@ class NSDate extends NSObject { } double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_149( + return _lib._objc_msgSend_165( _id, _lib._sel_timeIntervalSinceReferenceDate1); } @@ -37167,74 +42118,73 @@ class NSDate extends NSObject { } NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_151(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); + double timeIntervalSinceDate_(NSDate anotherDate) { + return _lib._objc_msgSend_167( + _id, _lib._sel_timeIntervalSinceDate_1, anotherDate._id); } double get timeIntervalSinceNow { - return _lib._objc_msgSend_149(_id, _lib._sel_timeIntervalSinceNow1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeIntervalSinceNow1); } double get timeIntervalSince1970 { - return _lib._objc_msgSend_149(_id, _lib._sel_timeIntervalSince19701); + return _lib._objc_msgSend_165(_id, _lib._sel_timeIntervalSince19701); } NSObject addTimeInterval_(double seconds) { final _ret = - _lib._objc_msgSend_150(_id, _lib._sel_addTimeInterval_1, seconds); + _lib._objc_msgSend_166(_id, _lib._sel_addTimeInterval_1, seconds); return NSObject._(_ret, _lib, retain: true, release: true); } NSDate dateByAddingTimeInterval_(double ti) { final _ret = - _lib._objc_msgSend_150(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + _lib._objc_msgSend_166(_id, _lib._sel_dateByAddingTimeInterval_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_152( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + NSDate earlierDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_168(_id, _lib._sel_earlierDate_1, anotherDate._id); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_152( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + NSDate laterDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_168(_id, _lib._sel_laterDate_1, anotherDate._id); return NSDate._(_ret, _lib, retain: true, release: true); } - int compare_(NSDate? other) { - return _lib._objc_msgSend_153( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + int compare_(NSDate other) { + return _lib._objc_msgSend_169(_id, _lib._sel_compare_1, other._id); } - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + bool isEqualToDate_(NSDate otherDate) { + return _lib._objc_msgSend_170( + _id, _lib._sel_isEqualToDate_1, otherDate._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } @@ -37244,104 +42194,96 @@ class NSDate extends NSObject { } static NSDate dateWithTimeIntervalSinceNow_(AVFAudio _lib, double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSinceReferenceDate_( AVFAudio _lib, double ti) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSince1970_(AVFAudio _lib, double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeInterval_sinceDate_( - AVFAudio _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_155( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + AVFAudio _lib, double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantFuture(AVFAudio _lib) { + static NSDate getDistantFuture(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_156(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_172(_lib._class_NSDate1, _lib._sel_distantFuture1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantPast(AVFAudio _lib) { + static NSDate getDistantPast(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_156(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_172(_lib._class_NSDate1, _lib._sel_distantPast1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getNow(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + static NSDate getNow(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_172(_lib._class_NSDate1, _lib._sel_now1); + return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_155( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_id, + _lib._sel_initWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_locale_( - AVFAudio _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_157( + static NSObject? dateWithNaturalLanguageString_locale_( + AVFAudio _lib, NSString string, NSObject? locale) { + final _ret = _lib._objc_msgSend_173( _lib._class_NSDate1, _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + string._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_( - AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dateWithNaturalLanguageString_( + AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSDate1, + _lib._sel_dateWithNaturalLanguageString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_(AVFAudio _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + static NSObject dateWithString_(AVFAudio _lib, NSString aString) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSDate1, _lib._sel_dateWithString_1, aString._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSCalendarDate dateWithCalendarFormat_timeZone_( NSString? format, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_189( + final _ret = _lib._objc_msgSend_212( _id, _lib._sel_dateWithCalendarFormat_timeZone_1, format?._id ?? ffi.nullptr, @@ -37349,21 +42291,25 @@ class NSDate extends NSObject { return NSCalendarDate._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithCalendarFormat_timeZone_locale_( - NSString? format, NSTimeZone? aTimeZone, NSObject locale) { - final _ret = _lib._objc_msgSend_190( + NSString? descriptionWithCalendarFormat_timeZone_locale_( + NSString? format, NSTimeZone? aTimeZone, NSObject? locale) { + final _ret = _lib._objc_msgSend_213( _id, _lib._sel_descriptionWithCalendarFormat_timeZone_locale_1, format?._id ?? ffi.nullptr, aTimeZone?._id ?? ffi.nullptr, - locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithString_(NSString description) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, description._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSDate new1(AVFAudio _lib) { @@ -37371,6 +42317,12 @@ class NSDate extends NSObject { return NSDate._(_ret, _lib, retain: false, release: true); } + static NSDate allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDate1, _lib._sel_allocWithZone_1, zone); + return NSDate._(_ret, _lib, retain: false, release: true); + } + static NSDate alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); return NSDate._(_ret, _lib, retain: false, release: true); @@ -37380,18 +42332,18 @@ class NSDate extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDate1, + _lib._objc_msgSend_15(_lib._class_NSDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37406,33 +42358,29 @@ class NSDate extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -37444,8 +42392,6 @@ class NSDate extends NSObject { } } -typedef NSTimeInterval = ffi.Double; - class NSCalendarDate extends NSDate { NSCalendarDate._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -37475,25 +42421,26 @@ class NSCalendarDate extends NSDate { return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_calendarFormat_locale_( - AVFAudio _lib, NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_158( + static NSObject? dateWithString_calendarFormat_locale_( + AVFAudio _lib, NSString description, NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_174( _lib._class_NSCalendarDate1, _lib._sel_dateWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + description._id, + format._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_calendarFormat_( - AVFAudio _lib, NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dateWithString_calendarFormat_( + AVFAudio _lib, NSString description, NSString format) { + final _ret = _lib._objc_msgSend_175(_lib._class_NSCalendarDate1, + _lib._sel_dateWithString_calendarFormat_1, description._id, format._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSObject dateWithYear_month_day_hour_minute_second_timeZone_( @@ -37505,7 +42452,7 @@ class NSCalendarDate extends NSDate { int minute, int second, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_184( + final _ret = _lib._objc_msgSend_206( _lib._class_NSCalendarDate1, _lib._sel_dateWithYear_month_day_hour_minute_second_timeZone_1, year, @@ -37520,7 +42467,7 @@ class NSCalendarDate extends NSDate { NSCalendarDate dateByAddingYears_months_days_hours_minutes_seconds_( int year, int month, int day, int hour, int minute, int second) { - final _ret = _lib._objc_msgSend_185( + final _ret = _lib._objc_msgSend_207( _id, _lib._sel_dateByAddingYears_months_days_hours_minutes_seconds_1, year, @@ -37533,100 +42480,103 @@ class NSCalendarDate extends NSDate { } int dayOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfCommonEra1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfCommonEra1); } int dayOfMonth() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfMonth1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfMonth1); } int dayOfWeek() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfWeek1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfWeek1); } int dayOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfYear1); } int hourOfDay() { - return _lib._objc_msgSend_78(_id, _lib._sel_hourOfDay1); + return _lib._objc_msgSend_83(_id, _lib._sel_hourOfDay1); } int minuteOfHour() { - return _lib._objc_msgSend_78(_id, _lib._sel_minuteOfHour1); + return _lib._objc_msgSend_83(_id, _lib._sel_minuteOfHour1); } int monthOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_monthOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_monthOfYear1); } int secondOfMinute() { - return _lib._objc_msgSend_78(_id, _lib._sel_secondOfMinute1); + return _lib._objc_msgSend_83(_id, _lib._sel_secondOfMinute1); } int yearOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_yearOfCommonEra1); + return _lib._objc_msgSend_83(_id, _lib._sel_yearOfCommonEra1); } NSString calendarFormat() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarFormat1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarFormat1); return NSString._(_ret, _lib, retain: true, release: true); } NSString descriptionWithCalendarFormat_locale_( - NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_167( + NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_208( _id, _lib._sel_descriptionWithCalendarFormat_locale_1, - format?._id ?? ffi.nullptr, - locale._id); + format._id, + locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithCalendarFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_descriptionWithCalendarFormat_1, format?._id ?? ffi.nullptr); + NSString descriptionWithCalendarFormat_(NSString format) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_descriptionWithCalendarFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } @override - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSTimeZone timeZone() { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); + final _ret = _lib._objc_msgSend_179(_id, _lib._sel_timeZone1); return NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_calendarFormat_locale_( - NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_158( + NSObject? initWithString_calendarFormat_locale_( + NSString description, NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_174( _id, _lib._sel_initWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + description._id, + format._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_calendarFormat_( - NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_159( - _id, - _lib._sel_initWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithString_calendarFormat_( + NSString description, NSString format) { + final _ret = _lib._objc_msgSend_175(_id, + _lib._sel_initWithString_calendarFormat_1, description._id, format._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } @override - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithString_(NSString description) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, description._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSObject initWithYear_month_day_hour_minute_second_timeZone_( @@ -37637,7 +42587,7 @@ class NSCalendarDate extends NSDate { int minute, int second, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_184( + final _ret = _lib._objc_msgSend_206( _id, _lib._sel_initWithYear_month_day_hour_minute_second_timeZone_1, year, @@ -37651,24 +42601,24 @@ class NSCalendarDate extends NSDate { } void setCalendarFormat_(NSString? format) { - return _lib._objc_msgSend_186( + _lib._objc_msgSend_209( _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); } void setTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_187( + _lib._objc_msgSend_210( _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); } void years_months_days_hours_minutes_seconds_sinceDate_( - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, - NSCalendarDate? date) { - return _lib._objc_msgSend_188( + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, + NSCalendarDate date) { + _lib._objc_msgSend_211( _id, _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, yp, @@ -37677,23 +42627,48 @@ class NSCalendarDate extends NSDate { hp, mip, sp, - date?._id ?? ffi.nullptr); + date._id); } - static NSDate? getDistantFuture(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_156( + static NSDate getDistantFuture(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_172( _lib._class_NSCalendarDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantPast(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_156( + static NSDate getDistantPast(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_172( _lib._class_NSCalendarDate1, _lib._sel_distantPast1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSinceReferenceDate_(double ti) { + final _ret = _lib._objc_msgSend_166( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_166(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate date(AVFAudio _lib) { @@ -37704,63 +42679,84 @@ class NSCalendarDate extends NSDate { static NSCalendarDate dateWithTimeIntervalSinceNow_( AVFAudio _lib, double secs) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSCalendarDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSCalendarDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate dateWithTimeIntervalSinceReferenceDate_( AVFAudio _lib, double ti) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSCalendarDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSCalendarDate1, _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate dateWithTimeIntervalSince1970_( AVFAudio _lib, double secs) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSCalendarDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSCalendarDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate dateWithTimeInterval_sinceDate_( - AVFAudio _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_155( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + AVFAudio _lib, double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getNow(AVFAudio _lib) { + static NSDate getNow(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_172(_lib._class_NSCalendarDate1, _lib._sel_now1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_166( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_166( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeInterval_sinceDate_( + double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_id, + _lib._sel_initWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_locale_( - AVFAudio _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_157( + static NSObject? dateWithNaturalLanguageString_locale_( + AVFAudio _lib, NSString string, NSObject? locale) { + final _ret = _lib._objc_msgSend_173( _lib._class_NSCalendarDate1, _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + string._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_( - AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dateWithNaturalLanguageString_( + AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSCalendarDate1, + _lib._sel_dateWithNaturalLanguageString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_(AVFAudio _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + static NSObject dateWithString_(AVFAudio _lib, NSString aString) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSCalendarDate1, _lib._sel_dateWithString_1, aString._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -37770,6 +42766,13 @@ class NSCalendarDate extends NSDate { return NSCalendarDate._(_ret, _lib, retain: false, release: true); } + static NSCalendarDate allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendarDate1, _lib._sel_allocWithZone_1, zone); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + static NSCalendarDate alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); @@ -37780,18 +42783,18 @@ class NSCalendarDate extends NSDate { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCalendarDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, + _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37806,33 +42809,29 @@ class NSCalendarDate extends NSDate { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendarDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCalendarDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendarDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCalendarDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCalendarDate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCalendarDate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -37866,118 +42865,104 @@ class NSTimeZone extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimeZone1); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } - int secondsFromGMTForDate_(NSDate? aDate) { - return _lib._objc_msgSend_160( - _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); + int secondsFromGMTForDate_(NSDate aDate) { + return _lib._objc_msgSend_176( + _id, _lib._sel_secondsFromGMTForDate_1, aDate._id); } - NSString abbreviationForDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_161( - _id, _lib._sel_abbreviationForDate_1, aDate?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? abbreviationForDate_(NSDate aDate) { + final _ret = + _lib._objc_msgSend_177(_id, _lib._sel_abbreviationForDate_1, aDate._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool isDaylightSavingTimeForDate_(NSDate? aDate) { - return _lib._objc_msgSend_154(_id, _lib._sel_isDaylightSavingTimeForDate_1, - aDate?._id ?? ffi.nullptr); + bool isDaylightSavingTimeForDate_(NSDate aDate) { + return _lib._objc_msgSend_170( + _id, _lib._sel_isDaylightSavingTimeForDate_1, aDate._id); } - double daylightSavingTimeOffsetForDate_(NSDate? aDate) { - return _lib._objc_msgSend_151(_id, - _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); + double daylightSavingTimeOffsetForDate_(NSDate aDate) { + return _lib._objc_msgSend_167( + _id, _lib._sel_daylightSavingTimeOffsetForDate_1, aDate._id); } - NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_152( - _id, - _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, - aDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? nextDaylightSavingTimeTransitionAfterDate_(NSDate aDate) { + final _ret = _lib._objc_msgSend_178( + _id, _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, aDate._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSTimeZone? getSystemTimeZone(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_162( + static NSTimeZone getSystemTimeZone(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_179( _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } static void resetSystemTimeZone(AVFAudio _lib) { - return _lib._objc_msgSend_1( + _lib._objc_msgSend_1( _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); } - static NSTimeZone? getDefaultTimeZone(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_162( + static NSTimeZone getDefaultTimeZone(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_179( _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - static void setDefaultTimeZone(AVFAudio _lib, NSTimeZone? value) { - _lib._objc_msgSend_163(_lib._class_NSTimeZone1, - _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); + static void setDefaultTimeZone(AVFAudio _lib, NSTimeZone value) { + return _lib._objc_msgSend_180( + _lib._class_NSTimeZone1, _lib._sel_setDefaultTimeZone_1, value._id); } - static NSTimeZone? getLocalTimeZone(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_162( + static NSTimeZone getLocalTimeZone(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_179( _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSArray? getKnownTimeZoneNames(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getKnownTimeZoneNames(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSDictionary? getAbbreviationDictionary(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_164( + static NSDictionary getAbbreviationDictionary(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_181( _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static void setAbbreviationDictionary(AVFAudio _lib, NSDictionary? value) { - _lib._objc_msgSend_165(_lib._class_NSTimeZone1, - _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); + static void setAbbreviationDictionary(AVFAudio _lib, NSDictionary value) { + return _lib._objc_msgSend_182(_lib._class_NSTimeZone1, + _lib._sel_setAbbreviationDictionary_1, value._id); } - static NSString? getTimeZoneDataVersion(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_20( + static NSString getTimeZoneDataVersion(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_21( _lib._class_NSTimeZone1, _lib._sel_timeZoneDataVersion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } int get secondsFromGMT { - return _lib._objc_msgSend_78(_id, _lib._sel_secondsFromGMT1); + return _lib._objc_msgSend_83(_id, _lib._sel_secondsFromGMT1); } NSString? get abbreviation { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_abbreviation1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -37988,73 +42973,89 @@ class NSTimeZone extends NSObject { } double get daylightSavingTimeOffset { - return _lib._objc_msgSend_149(_id, _lib._sel_daylightSavingTimeOffset1); + return _lib._objc_msgSend_165(_id, _lib._sel_daylightSavingTimeOffset1); } NSDate? get nextDaylightSavingTimeTransition { - final _ret = _lib._objc_msgSend_156( + final _ret = _lib._objc_msgSend_183( _id, _lib._sel_nextDaylightSavingTimeTransition1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_166( - _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + bool isEqualToTimeZone_(NSTimeZone aTimeZone) { + return _lib._objc_msgSend_184( + _id, _lib._sel_isEqualToTimeZone_1, aTimeZone._id); } - NSString localizedName_locale_(int style, NSLocale? locale) { - final _ret = _lib._objc_msgSend_181(_id, _lib._sel_localizedName_locale_1, + NSString? localizedName_locale_(int style, NSLocale? locale) { + final _ret = _lib._objc_msgSend_203(_id, _lib._sel_localizedName_locale_1, style, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithName_(AVFAudio _lib, NSString? tzName) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + static NSTimeZone? timeZoneWithName_(AVFAudio _lib, NSString tzName) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSTimeZone1, _lib._sel_timeZoneWithName_1, tzName._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithName_data_( - AVFAudio _lib, NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_182( + static NSTimeZone? timeZoneWithName_data_( + AVFAudio _lib, NSString tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_204( _lib._class_NSTimeZone1, _lib._sel_timeZoneWithName_data_1, - tzName?._id ?? ffi.nullptr, + tzName._id, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSTimeZone initWithName_(NSString? tzName) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone? initWithName_(NSString tzName) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithName_1, tzName._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_initWithName_data_1, - tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone? initWithName_data_(NSString tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_204(_id, _lib._sel_initWithName_data_1, + tzName._id, aData?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } static NSTimeZone timeZoneForSecondsFromGMT_(AVFAudio _lib, int seconds) { - final _ret = _lib._objc_msgSend_183(_lib._class_NSTimeZone1, + final _ret = _lib._objc_msgSend_205(_lib._class_NSTimeZone1, _lib._sel_timeZoneForSecondsFromGMT_1, seconds); return NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithAbbreviation_( - AVFAudio _lib, NSString? abbreviation) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithAbbreviation_1, abbreviation?._id ?? ffi.nullptr); + static NSTimeZone? timeZoneWithAbbreviation_( + AVFAudio _lib, NSString abbreviation) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSTimeZone1, + _lib._sel_timeZoneWithAbbreviation_1, abbreviation._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + @override + NSTimeZone init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSTimeZone._(_ret, _lib, retain: true, release: true); } @@ -38063,6 +43064,12 @@ class NSTimeZone extends NSObject { return NSTimeZone._(_ret, _lib, retain: false, release: true); } + static NSTimeZone allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTimeZone1, _lib._sel_allocWithZone_1, zone); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + static NSTimeZone alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); @@ -38073,18 +43080,18 @@ class NSTimeZone extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._objc_msgSend_15(_lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -38099,33 +43106,29 @@ class NSTimeZone extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimeZone1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTimeZone1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTimeZone1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTimeZone1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTimeZone1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -38168,254 +43171,246 @@ class NSLocale extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); } - NSObject objectForKey_(NSLocaleKey key) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_objectForKey_1, key); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString displayNameForKey_value_(NSLocaleKey key, NSObject value) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_displayNameForKey_value_1, key, value._id); - return NSString._(_ret, _lib, retain: true, release: true); + NSObject? objectForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_objectForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSLocale initWithLocaleIdentifier_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); + NSString? displayNameForKey_value_(NSString key, NSObject value) { + final _ret = _lib._objc_msgSend_185( + _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSLocale initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSLocale initWithLocaleIdentifier_(NSString string) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_initWithLocaleIdentifier_1, string._id); return NSLocale._(_ret, _lib, retain: true, release: true); } - NSString? get localeIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); + NSLocale? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSLocale._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + NSString get localeIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localeIdentifier1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString localizedStringForLocaleIdentifier_(NSString localeIdentifier) { + final _ret = _lib._objc_msgSend_69(_id, + _lib._sel_localizedStringForLocaleIdentifier_1, localeIdentifier._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLanguageCode_(NSString? languageCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLanguageCode_1, - languageCode?._id ?? ffi.nullptr); + NSString get languageCode { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_languageCode1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get countryCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_countryCode1); + NSString? localizedStringForLanguageCode_(NSString languageCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForLanguageCode_1, languageCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCountryCode_(NSString? countryCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCountryCode_1, - countryCode?._id ?? ffi.nullptr); + NSString get languageIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_languageIdentifier1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get scriptCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptCode1); + NSString? get countryCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_countryCode1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForScriptCode_(NSString? scriptCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForScriptCode_1, - scriptCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get variantCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_variantCode1); + NSString? localizedStringForCountryCode_(NSString countryCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForCountryCode_1, countryCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForVariantCode_(NSString? variantCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForVariantCode_1, - variantCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get regionCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_regionCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get exemplarCharacterSet { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_exemplarCharacterSet1); + NSString? get scriptCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scriptCode1); return _ret.address == 0 ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + NSString? localizedStringForScriptCode_(NSString scriptCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForScriptCode_1, scriptCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCalendarIdentifier_1, - calendarIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get variantCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_variantCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get collationIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collationIdentifier1); + NSString? localizedStringForVariantCode_(NSString variantCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForVariantCode_1, variantCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCollationIdentifier_( - NSString? collationIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollationIdentifier_1, - collationIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSCharacterSet get exemplarCharacterSet { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_exemplarCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool get usesMetricSystem { - return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); + NSString? localizedStringForCalendarIdentifier_(NSString calendarIdentifier) { + final _ret = _lib._objc_msgSend_186( + _id, + _lib._sel_localizedStringForCalendarIdentifier_1, + calendarIdentifier._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); + NSString? get collationIdentifier { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_collationIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); + NSString? localizedStringForCollationIdentifier_( + NSString collationIdentifier) { + final _ret = _lib._objc_msgSend_186( + _id, + _lib._sel_localizedStringForCollationIdentifier_1, + collationIdentifier._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get usesMetricSystem { + return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); } - NSString localizedStringForCurrencyCode_(NSString? currencyCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCurrencyCode_1, - currencyCode?._id ?? ffi.nullptr); + NSString get decimalSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_decimalSeparator1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get collatorIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collatorIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get groupingSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_groupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollatorIdentifier_1, - collatorIdentifier?._id ?? ffi.nullptr); + NSString get currencySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencySymbol1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get quotationBeginDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationBeginDelimiter1); + NSString? get currencyCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currencyCode1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get quotationEndDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationEndDelimiter1); + NSString? localizedStringForCurrencyCode_(NSString currencyCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForCurrencyCode_1, currencyCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get alternateQuotationBeginDelimiter { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationBeginDelimiter1); + NSString get collatorIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_collatorIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? localizedStringForCollatorIdentifier_(NSString collatorIdentifier) { + final _ret = _lib._objc_msgSend_186( + _id, + _lib._sel_localizedStringForCollatorIdentifier_1, + collatorIdentifier._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get alternateQuotationEndDelimiter { + NSString get quotationBeginDelimiter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationBeginDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get quotationEndDelimiter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationEndDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get alternateQuotationBeginDelimiter { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_alternateQuotationBeginDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get alternateQuotationEndDelimiter { + final _ret = + _lib._objc_msgSend_21(_id, _lib._sel_alternateQuotationEndDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSLocale? getAutoupdatingCurrentLocale(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_176( + static NSLocale getAutoupdatingCurrentLocale(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_197( _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSLocale? getCurrentLocale(AVFAudio _lib) { + static NSLocale getCurrentLocale(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_176(_lib._class_NSLocale1, _lib._sel_currentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_197(_lib._class_NSLocale1, _lib._sel_currentLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSLocale? getSystemLocale(AVFAudio _lib) { + static NSLocale getSystemLocale(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_176(_lib._class_NSLocale1, _lib._sel_systemLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_197(_lib._class_NSLocale1, _lib._sel_systemLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSLocale localeWithLocaleIdentifier_(AVFAudio _lib, NSString? ident) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSLocale1, - _lib._sel_localeWithLocaleIdentifier_1, ident?._id ?? ffi.nullptr); + static NSLocale localeWithLocaleIdentifier_(AVFAudio _lib, NSString ident) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSLocale1, + _lib._sel_localeWithLocaleIdentifier_1, ident._id); return NSLocale._(_ret, _lib, retain: true, release: true); } @@ -38425,112 +43420,96 @@ class NSLocale extends NSObject { return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSArray? getAvailableLocaleIdentifiers(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getAvailableLocaleIdentifiers(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOLanguageCodes(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getISOLanguageCodes(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCountryCodes(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getISOCountryCodes(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCurrencyCodes(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getISOCurrencyCodes(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getCommonISOCurrencyCodes(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getCommonISOCurrencyCodes(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getPreferredLanguages(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getPreferredLanguages(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_preferredLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } static NSDictionary componentsFromLocaleIdentifier_( - AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_140(_lib._class_NSLocale1, - _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_198(_lib._class_NSLocale1, + _lib._sel_componentsFromLocaleIdentifier_1, string._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSString localeIdentifierFromComponents_( - AVFAudio _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_177(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); + AVFAudio _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_199(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromComponents_1, dict._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString canonicalLocaleIdentifierFromString_( - AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLocaleIdentifierFromString_1, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSLocale1, + _lib._sel_canonicalLocaleIdentifierFromString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString canonicalLanguageIdentifierFromString_( - AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLanguageIdentifierFromString_1, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSLocale1, + _lib._sel_canonicalLanguageIdentifierFromString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString localeIdentifierFromWindowsLocaleCode_( + static NSString? localeIdentifierFromWindowsLocaleCode_( AVFAudio _lib, int lcid) { - final _ret = _lib._objc_msgSend_178(_lib._class_NSLocale1, + final _ret = _lib._objc_msgSend_200(_lib._class_NSLocale1, _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int windowsLocaleCodeFromLocaleIdentifier_( - AVFAudio _lib, NSString? localeIdentifier) { - return _lib._objc_msgSend_179( + AVFAudio _lib, NSString localeIdentifier) { + return _lib._objc_msgSend_201( _lib._class_NSLocale1, _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + localeIdentifier._id); } static int characterDirectionForLanguage_( - AVFAudio _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_180( - _lib._class_NSLocale1, - _lib._sel_characterDirectionForLanguage_1, - isoLangCode?._id ?? ffi.nullptr); + AVFAudio _lib, NSString isoLangCode) { + return _lib._objc_msgSend_202(_lib._class_NSLocale1, + _lib._sel_characterDirectionForLanguage_1, isoLangCode._id); } - static int lineDirectionForLanguage_(AVFAudio _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_180(_lib._class_NSLocale1, - _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + static int lineDirectionForLanguage_(AVFAudio _lib, NSString isoLangCode) { + return _lib._objc_msgSend_202(_lib._class_NSLocale1, + _lib._sel_lineDirectionForLanguage_1, isoLangCode._id); } static NSLocale new1(AVFAudio _lib) { @@ -38538,6 +43517,12 @@ class NSLocale extends NSObject { return NSLocale._(_ret, _lib, retain: false, release: true); } + static NSLocale allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSLocale1, _lib._sel_allocWithZone_1, zone); + return NSLocale._(_ret, _lib, retain: false, release: true); + } + static NSLocale alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); return NSLocale._(_ret, _lib, retain: false, release: true); @@ -38547,18 +43532,18 @@ class NSLocale extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSLocale1, + _lib._objc_msgSend_15(_lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -38573,33 +43558,29 @@ class NSLocale extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSLocale1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSLocale1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSLocale1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSLocale1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSLocale1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -38611,8 +43592,6 @@ class NSLocale extends NSObject { } } -typedef NSLocaleKey = ffi.Pointer; - class NSCharacterSet extends NSObject { NSCharacterSet._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -38636,242 +43615,200 @@ class NSCharacterSet extends NSObject { obj._lib._class_NSCharacterSet1); } - static NSCharacterSet? getControlCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getControlCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getWhitespaceCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getWhitespaceCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168(_lib._class_NSCharacterSet1, + static NSCharacterSet getWhitespaceAndNewlineCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187(_lib._class_NSCharacterSet1, _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecimalDigitCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getDecimalDigitCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLetterCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getLetterCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLowercaseLetterCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getLowercaseLetterCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getUppercaseLetterCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getUppercaseLetterCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNonBaseCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getNonBaseCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getAlphanumericCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getAlphanumericCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecomposableCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getDecomposableCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getIllegalCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getIllegalCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getPunctuationCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getPunctuationCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getCapitalizedLetterCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getCapitalizedLetterCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getSymbolCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getSymbolCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNewlineCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getNewlineCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } - static NSCharacterSet characterSetWithRange_(AVFAudio _lib, NSRange aRange) { - final _ret = _lib._objc_msgSend_169( + static NSCharacterSet characterSetWithRange_(AVFAudio _lib, _NSRange aRange) { + final _ret = _lib._objc_msgSend_188( _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet characterSetWithCharactersInString_( - AVFAudio _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_170( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); + AVFAudio _lib, NSString aString) { + final _ret = _lib._objc_msgSend_189(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, aString._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet characterSetWithBitmapRepresentation_( - AVFAudio _lib, NSData? data) { - final _ret = _lib._objc_msgSend_171( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); + AVFAudio _lib, NSData data) { + final _ret = _lib._objc_msgSend_190(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, data._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithContentsOfFile_( - AVFAudio _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_170(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet? characterSetWithContentsOfFile_( + AVFAudio _lib, NSString fName) { + final _ret = _lib._objc_msgSend_191(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName._id); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSCharacterSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSCharacterSet initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_192(_id, _lib._sel_initWithCoder_1, coder._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_172( + return _lib._objc_msgSend_193( _id, _lib._sel_characterIsMember_1, aCharacter); } - NSData? get bitmapRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_bitmapRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get bitmapRepresentation { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_bitmapRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get invertedSet { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_invertedSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSCharacterSet get invertedSet { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_invertedSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_173( + return _lib._objc_msgSend_194( _id, _lib._sel_longCharacterIsMember_1, theLongChar); } - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_174( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + bool isSupersetOfSet_(NSCharacterSet theOtherSet) { + return _lib._objc_msgSend_195( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet._id); } bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_175(_id, _lib._sel_hasMemberInPlane_1, thePlane); + return _lib._objc_msgSend_196(_id, _lib._sel_hasMemberInPlane_1, thePlane); } - static NSCharacterSet? getURLUserAllowedCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLUserAllowedCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLPasswordAllowedCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLPasswordAllowedCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLHostAllowedCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLHostAllowedCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLPathAllowedCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLPathAllowedCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLQueryAllowedCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLQueryAllowedCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLFragmentAllowedCharacterSet(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLFragmentAllowedCharacterSet(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSCharacterSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet new1(AVFAudio _lib) { @@ -38880,6 +43817,13 @@ class NSCharacterSet extends NSObject { return NSCharacterSet._(_ret, _lib, retain: false, release: true); } + static NSCharacterSet allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCharacterSet1, _lib._sel_allocWithZone_1, zone); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + static NSCharacterSet alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); @@ -38890,18 +43834,18 @@ class NSCharacterSet extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, + _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -38916,33 +43860,29 @@ class NSCharacterSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCharacterSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCharacterSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCharacterSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCharacterSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCharacterSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -38954,9 +43894,6 @@ class NSCharacterSet extends NSObject { } } -typedef UTF32Char = UInt32; -typedef UInt32 = ffi.UnsignedInt; - abstract class NSLocaleLanguageDirection { static const int NSLocaleLanguageDirectionUnknown = 0; static const int NSLocaleLanguageDirectionLeftToRight = 1; @@ -38965,9 +43902,22 @@ abstract class NSLocaleLanguageDirection { static const int NSLocaleLanguageDirectionBottomToTop = 4; } -typedef OSType = FourCharCode; -typedef FourCharCode = UInt32; -typedef NSURLResourceKey = ffi.Pointer; +abstract class NSURLBookmarkCreationOptions { + static const int NSURLBookmarkCreationPreferFileIDResolution = 256; + static const int NSURLBookmarkCreationMinimalBookmark = 512; + static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; + static const int NSURLBookmarkCreationWithSecurityScope = 2048; + static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = + 536870912; +} + +abstract class NSURLBookmarkResolutionOptions { + static const int NSURLBookmarkResolutionWithoutUI = 256; + static const int NSURLBookmarkResolutionWithoutMounting = 512; + static const int NSURLBookmarkResolutionWithSecurityScope = 1024; + static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; +} class NSURLHandle extends NSObject { NSURLHandle._(ffi.Pointer id, AVFAudio lib, @@ -38994,123 +43944,124 @@ class NSURLHandle extends NSObject { static void registerURLHandleClass_( AVFAudio _lib, NSObject anURLHandleSubclass) { - return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._objc_msgSend_15(_lib._class_NSURLHandle1, _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); } - static NSObject URLHandleClassForURL_(AVFAudio _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSURLHandle1, - _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); + static NSObject URLHandleClassForURL_(AVFAudio _lib, NSURL anURL) { + final _ret = _lib._objc_msgSend_262( + _lib._class_NSURLHandle1, _lib._sel_URLHandleClassForURL_1, anURL._id); return NSObject._(_ret, _lib, retain: true, release: true); } int status() { - return _lib._objc_msgSend_227(_id, _lib._sel_status1); + return _lib._objc_msgSend_263(_id, _lib._sel_status1); } NSString failureReason() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_failureReason1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_failureReason1); return NSString._(_ret, _lib, retain: true, release: true); } - void addClient_(NSObject? client) { - return _lib._objc_msgSend_15( - _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + void addClient_(NSObject client) { + _lib._objc_msgSend_15(_id, _lib._sel_addClient_1, client._id); } - void removeClient_(NSObject? client) { - return _lib._objc_msgSend_15( - _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + void removeClient_(NSObject client) { + _lib._objc_msgSend_15(_id, _lib._sel_removeClient_1, client._id); } void loadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); } void cancelLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); } NSData resourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_resourceData1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_resourceData1); return NSData._(_ret, _lib, retain: true, release: true); } NSData availableResourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableResourceData1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_availableResourceData1); return NSData._(_ret, _lib, retain: true, release: true); } int expectedResourceDataSize() { - return _lib._objc_msgSend_214(_id, _lib._sel_expectedResourceDataSize1); + return _lib._objc_msgSend_238(_id, _lib._sel_expectedResourceDataSize1); } void flushCachedData() { - return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); + _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); } - void backgroundLoadDidFailWithReason_(NSString? reason) { - return _lib._objc_msgSend_186( - _id, - _lib._sel_backgroundLoadDidFailWithReason_1, - reason?._id ?? ffi.nullptr); + void backgroundLoadDidFailWithReason_(NSString reason) { + _lib._objc_msgSend_248( + _id, _lib._sel_backgroundLoadDidFailWithReason_1, reason._id); } - void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - return _lib._objc_msgSend_228(_id, _lib._sel_didLoadBytes_loadComplete_1, - newBytes?._id ?? ffi.nullptr, yorn); + void didLoadBytes_loadComplete_(NSData newBytes, bool yorn) { + _lib._objc_msgSend_264( + _id, _lib._sel_didLoadBytes_loadComplete_1, newBytes._id, yorn); } - static bool canInitWithURL_(AVFAudio _lib, NSURL? anURL) { - return _lib._objc_msgSend_229(_lib._class_NSURLHandle1, - _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + static bool canInitWithURL_(AVFAudio _lib, NSURL anURL) { + return _lib._objc_msgSend_265( + _lib._class_NSURLHandle1, _lib._sel_canInitWithURL_1, anURL._id); } - static NSURLHandle cachedHandleForURL_(AVFAudio _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_230(_lib._class_NSURLHandle1, - _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); + static NSURLHandle cachedHandleForURL_(AVFAudio _lib, NSURL anURL) { + final _ret = _lib._objc_msgSend_266( + _lib._class_NSURLHandle1, _lib._sel_cachedHandleForURL_1, anURL._id); return NSURLHandle._(_ret, _lib, retain: true, release: true); } - NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { - final _ret = _lib._objc_msgSend_231(_id, _lib._sel_initWithURL_cached_1, - anURL?._id ?? ffi.nullptr, willCache); + NSObject initWithURL_cached_(NSURL anURL, bool willCache) { + final _ret = _lib._objc_msgSend_267( + _id, _lib._sel_initWithURL_cached_1, anURL._id, willCache); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + NSObject propertyForKey_(NSString propertyKey) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_propertyForKey_1, propertyKey._id); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + NSObject propertyForKeyIfAvailable_(NSString propertyKey) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_propertyForKeyIfAvailable_1, propertyKey._id); return NSObject._(_ret, _lib, retain: true, release: true); } - bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { - return _lib._objc_msgSend_225(_id, _lib._sel_writeProperty_forKey_1, - propertyValue._id, propertyKey?._id ?? ffi.nullptr); + bool writeProperty_forKey_(NSObject propertyValue, NSString propertyKey) { + return _lib._objc_msgSend_261(_id, _lib._sel_writeProperty_forKey_1, + propertyValue._id, propertyKey._id); } - bool writeData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + bool writeData_(NSData data) { + return _lib._objc_msgSend_24(_id, _lib._sel_writeData_1, data._id); } NSData loadInForeground() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_loadInForeground1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_loadInForeground1); return NSData._(_ret, _lib, retain: true, release: true); } void beginLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); } void endLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + } + + @override + NSURLHandle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLHandle._(_ret, _lib, retain: true, release: true); } static NSURLHandle new1(AVFAudio _lib) { @@ -39118,6 +44069,12 @@ class NSURLHandle extends NSObject { return NSURLHandle._(_ret, _lib, retain: false, release: true); } + static NSURLHandle allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLHandle1, _lib._sel_allocWithZone_1, zone); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + static NSURLHandle alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); @@ -39128,18 +44085,18 @@ class NSURLHandle extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._objc_msgSend_15(_lib._class_NSURLHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -39154,33 +44111,29 @@ class NSURLHandle extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -39208,6 +44161,8 @@ abstract class NSDataWritingOptions { static const int NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = 1073741824; + static const int NSDataWritingFileProtectionCompleteWhenUserInactive = + 1342177280; static const int NSDataWritingFileProtectionMask = 4026531840; static const int NSAtomicWrite = 1; } @@ -39217,94 +44172,138 @@ abstract class NSDataSearchOptions { static const int NSDataSearchAnchored = 2; } -void _ObjCBlock8_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock8_closureRegistry = {}; -int _ObjCBlock8_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { - final id = ++_ObjCBlock8_closureRegistryIndex; - _ObjCBlock8_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock8_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock8_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock8 extends _ObjCBlockBase { - ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock8.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock8_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock8.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunction(AVFAudio lib, + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock8_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock8_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), lib); - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.listener(AVFAudio lib, + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>()(_id, arg0, arg1, arg2); } abstract class NSDataReadingOptions { @@ -39316,77 +44315,115 @@ abstract class NSDataReadingOptions { static const int NSUncachedRead = 2; } -void _ObjCBlock9_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} - -final _ObjCBlock9_closureRegistry = {}; -int _ObjCBlock9_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { - final id = ++_ObjCBlock9_closureRegistryIndex; - _ObjCBlock9_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction, int)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock9_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock9_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock9 extends _ObjCBlockBase { - ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock9.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer arg0, NSUInteger arg1)>> + ffi.Pointer arg0, ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock9_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock9.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0, int arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunction( + AVFAudio lib, void Function(ffi.Pointer, int) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock9_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock9_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), lib); - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.listener( + AVFAudio lib, void Function(ffi.Pointer, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.UnsignedLong)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(ffi.Pointer arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } abstract class NSDataBase64DecodingOptions { @@ -39407,8 +44444,6 @@ abstract class NSDataCompressionAlgorithm { static const int NSDataCompressionAlgorithmZlib = 3; } -typedef NSZone = _NSZone; - abstract class NSDecodingFailurePolicy { static const int NSDecodingFailurePolicyRaiseException = 0; static const int NSDecodingFailurePolicySetErrorAndReturn = 1; @@ -39439,277 +44474,416 @@ abstract class NSStringEnumerationOptions { static const int NSStringEnumerationLocalized = 1024; } -void _ObjCBlock10_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - NSRange arg2, ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); -} - -final _ObjCBlock10_closureRegistry = {}; -int _ObjCBlock10_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { - final id = ++_ObjCBlock10_closureRegistryIndex; - _ObjCBlock10_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry = , _NSRange, _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, _NSRange, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock10_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return _ObjCBlock10_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} - -class ObjCBlock10 extends _ObjCBlockBase { - ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) => + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2, arg3); + +class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock10.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - NSRange arg2, ffi.Pointer arg3)>> + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock10_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock10.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunction(AVFAudio lib, + void Function(NSString?, _NSRange, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + fn(arg0.address == 0 ? null : NSString._(arg0, lib, retain: true, release: true), arg1, arg2, arg3))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.listener(AVFAudio lib, + void Function(NSString?, _NSRange, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock10_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock10_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + fn(arg0.address == 0 ? null : NSString._(arg0, lib, retain: true, release: true), arg1, arg2, arg3))), lib); - void call(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSString? arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2, arg3); +} + +void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock11_closureRegistry = {}; -int _ObjCBlock11_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { - final id = ++_ObjCBlock11_closureRegistryIndex; - _ObjCBlock11_closureRegistry[id] = fn; + ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSString_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock11_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock11 extends _ObjCBlockBase { - ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_bool._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock11.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) + : this._( + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_bool.fromFunction( + AVFAudio lib, void Function(NSString, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock11_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) .cast(), - ptr.cast()), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString._(arg0, lib, retain: true, release: true), + arg1))), lib); - - /// Creates a block from a Dart function. - ObjCBlock11.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSString_bool.listener( + AVFAudio lib, void Function(NSString, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock11_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock11_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSString._(arg0, lib, retain: true, release: true), + arg1))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSString arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -typedef NSStringEncoding = NSUInteger; - abstract class NSStringEncodingConversionOptions { static const int NSStringEncodingConversionAllowLossy = 1; static const int NSStringEncodingConversionExternalRepresentation = 2; } -typedef NSStringTransform = ffi.Pointer; -void _ObjCBlock12_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} - -final _ObjCBlock12_closureRegistry = {}; -int _ObjCBlock12_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { - final id = ++_ObjCBlock12_closureRegistryIndex; - _ObjCBlock12_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction, int)>()( + arg0, arg1); +final _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock12_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock12 extends _ObjCBlockBase { - ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1) => + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock12.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, NSUInteger arg1)>> + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock12_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock12.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0, int arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunction( + AVFAudio lib, void Function(ffi.Pointer, int) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock12_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock12_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => + fn(arg0, arg1))), lib); - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.listener( + AVFAudio lib, void Function(ffi.Pointer, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>.listener( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => + fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.UnsignedLong)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(ffi.Pointer arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } -typedef NSLinguisticTagScheme = ffi.Pointer; - abstract class NSLinguisticTaggerOptions { static const int NSLinguisticTaggerOmitWords = 1; static const int NSLinguisticTaggerOmitPunctuation = 2; @@ -39741,85 +44915,82 @@ class NSOrthography extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); } - NSString? get dominantScript { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantScript1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get dominantScript { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dominantScript1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get languageMap { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_languageMap1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get languageMap { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_languageMap1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } NSOrthography initWithDominantScript_languageMap_( - NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_352( - _id, - _lib._sel_initWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - - NSOrthography initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSString script, NSDictionary map) { + final _ret = _lib._objc_msgSend_400(_id, + _lib._sel_initWithDominantScript_languageMap_1, script._id, map._id); return NSOrthography._(_ret, _lib, retain: true, release: true); } - NSArray languagesForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_languagesForScript_1, script?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString dominantLanguageForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get dominantLanguage { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantLanguage1); + NSOrthography? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSOrthography._(_ret, _lib, retain: true, release: true); } - NSArray? get allScripts { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allScripts1); + NSArray? languagesForScript_(NSString script) { + final _ret = + _lib._objc_msgSend_132(_id, _lib._sel_languagesForScript_1, script._id); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allLanguages { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allLanguages1); + NSString? dominantLanguageForScript_(NSString script) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_dominantLanguageForScript_1, script._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get dominantLanguage { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dominantLanguage1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray get allScripts { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allScripts1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray get allLanguages { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allLanguages1); + return NSArray._(_ret, _lib, retain: true, release: true); } static NSOrthography defaultOrthographyForLanguage_( - AVFAudio _lib, NSString? language) { - final _ret = _lib._objc_msgSend_30( - _lib._class_NSOrthography1, - _lib._sel_defaultOrthographyForLanguage_1, - language?._id ?? ffi.nullptr); + AVFAudio _lib, NSString language) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSOrthography1, + _lib._sel_defaultOrthographyForLanguage_1, language._id); return NSOrthography._(_ret, _lib, retain: true, release: true); } static NSOrthography orthographyWithDominantScript_languageMap_( - AVFAudio _lib, NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_352( + AVFAudio _lib, NSString script, NSDictionary map) { + final _ret = _lib._objc_msgSend_400( _lib._class_NSOrthography1, _lib._sel_orthographyWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); + script._id, + map._id); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + @override + NSOrthography init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSOrthography._(_ret, _lib, retain: true, release: true); } @@ -39829,6 +45000,13 @@ class NSOrthography extends NSObject { return NSOrthography._(_ret, _lib, retain: false, release: true); } + static NSOrthography allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrthography1, _lib._sel_allocWithZone_1, zone); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + static NSOrthography alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); @@ -39839,18 +45017,18 @@ class NSOrthography extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrthography1, + _lib._objc_msgSend_15(_lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -39865,33 +45043,29 @@ class NSOrthography extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrthography1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOrthography1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOrthography1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOrthography1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOrthography1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -39903,120 +45077,170 @@ class NSOrthography extends NSObject { } } -void _ObjCBlock13_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock13_closureRegistry = {}; -int _ObjCBlock13_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { - final id = ++_ObjCBlock13_closureRegistryIndex; - _ObjCBlock13_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock13_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock13_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock13 extends _ObjCBlockBase { - ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_bool._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock13.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) + : this._( + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunction( + AVFAudio lib, void Function(NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock13_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) .cast(), - ptr.cast()), + _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSObject._(arg0, lib, retain: true, release: true), + arg1))), lib); - - /// Creates a block from a Dart function. - ObjCBlock13.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_bool.listener( + AVFAudio lib, void Function(NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock13_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock13_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), + arg1))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -bool _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target + void call(NSObject arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -final _ObjCBlock14_closureRegistry = {}; -int _ObjCBlock14_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { - final id = ++_ObjCBlock14_closureRegistryIndex; - _ObjCBlock14_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_ObjCObject_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_bool_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock14 extends _ObjCBlockBase { - ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_bool._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock14.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -40025,48 +45249,48 @@ class ObjCBlock14 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock14.fromFunction( - AVFAudio lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_bool.fromFunction( + AVFAudio lib, bool Function(NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_bool_closureTrampoline, false) .cast(), - _ObjCBlock14_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, + ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1))), lib); - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + bool call(NSObject arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } class NSFileManager extends NSObject { @@ -40092,62 +45316,64 @@ class NSFileManager extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileManager1); } - static NSFileManager? getDefaultManager(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_382( + static NSFileManager getDefaultManager(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_431( _lib._class_NSFileManager1, _lib._sel_defaultManager1); - return _ret.address == 0 - ? null - : NSFileManager._(_ret, _lib, retain: true, release: true); + return NSFileManager._(_ret, _lib, retain: true, release: true); } - NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options_( + NSArray? mountedVolumeURLsIncludingResourceValuesForKeys_options_( NSArray? propertyKeys, int options) { - final _ret = _lib._objc_msgSend_383( + final _ret = _lib._objc_msgSend_432( _id, _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, propertyKeys?._id ?? ffi.nullptr, options); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } void unmountVolumeAtURL_options_completionHandler_( - NSURL? url, int mask, ObjCBlock15 completionHandler) { - return _lib._objc_msgSend_384( + NSURL url, int mask, ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_433( _id, _lib._sel_unmountVolumeAtURL_options_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, mask, completionHandler._id); } - NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( - NSURL? url, + NSArray? contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( + NSURL url, NSArray? keys, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_385( + final _ret = _lib._objc_msgSend_434( _id, _lib._sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1, - url?._id ?? ffi.nullptr, + url._id, keys?._id ?? ffi.nullptr, mask, error); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { - final _ret = _lib._objc_msgSend_386( + final _ret = _lib._objc_msgSend_435( _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL URLForDirectory_inDomain_appropriateForURL_create_error_( + NSURL? URLForDirectory_inDomain_appropriateForURL_create_error_( int directory, int domain, NSURL? url, bool shouldCreate, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_387( + final _ret = _lib._objc_msgSend_436( _id, _lib._sel_URLForDirectory_inDomain_appropriateForURL_create_error_1, directory, @@ -40155,20 +45381,22 @@ class NSFileManager extends NSObject { url?._id ?? ffi.nullptr, shouldCreate, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( ffi.Pointer outRelationship, - NSURL? directoryURL, - NSURL? otherURL, + NSURL directoryURL, + NSURL otherURL, ffi.Pointer> error) { - return _lib._objc_msgSend_388( + return _lib._objc_msgSend_437( _id, _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, outRelationship, - directoryURL?._id ?? ffi.nullptr, - otherURL?._id ?? ffi.nullptr, + directoryURL._id, + otherURL._id, error); } @@ -40176,358 +45404,527 @@ class NSFileManager extends NSObject { ffi.Pointer outRelationship, int directory, int domainMask, - NSURL? url, + NSURL url, ffi.Pointer> error) { - return _lib._objc_msgSend_389( + return _lib._objc_msgSend_438( _id, _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, outRelationship, directory, domainMask, - url?._id ?? ffi.nullptr, + url._id, error); } bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( - NSURL? url, + NSURL url, bool createIntermediates, NSDictionary? attributes, ffi.Pointer> error) { - return _lib._objc_msgSend_390( + return _lib._objc_msgSend_439( _id, _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, - url?._id ?? ffi.nullptr, + url._id, createIntermediates, attributes?._id ?? ffi.nullptr, error); } bool createSymbolicLinkAtURL_withDestinationURL_error_( - NSURL? url, NSURL? destURL, ffi.Pointer> error) { - return _lib._objc_msgSend_391( + NSURL url, NSURL destURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440( _id, _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, - url?._id ?? ffi.nullptr, - destURL?._id ?? ffi.nullptr, + url._id, + destURL._id, error); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - bool setAttributes_ofItemAtPath_error_(NSDictionary? attributes, - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_392( + bool setAttributes_ofItemAtPath_error_(NSDictionary attributes, NSString path, + ffi.Pointer> error) { + return _lib._objc_msgSend_441( _id, _lib._sel_setAttributes_ofItemAtPath_error_1, - attributes?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr, + attributes._id, + path._id, error); } bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( - NSString? path, + NSString path, bool createIntermediates, NSDictionary? attributes, ffi.Pointer> error) { - return _lib._objc_msgSend_393( + return _lib._objc_msgSend_442( _id, _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, - path?._id ?? ffi.nullptr, + path._id, createIntermediates, attributes?._id ?? ffi.nullptr, error); } - NSArray contentsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394( - _id, - _lib._sel_contentsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? contentsOfDirectoryAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_contentsOfDirectoryAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray subpathsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394( - _id, - _lib._sel_subpathsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? subpathsOfDirectoryAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_subpathsOfDirectoryAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_395( - _id, - _lib._sel_attributesOfItemAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? attributesOfItemAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_444( + _id, _lib._sel_attributesOfItemAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfFileSystemForPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_395( - _id, - _lib._sel_attributesOfFileSystemForPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? attributesOfFileSystemForPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_444( + _id, _lib._sel_attributesOfFileSystemForPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, - NSString? destPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396( + bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString path, + NSString destPath, ffi.Pointer> error) { + return _lib._objc_msgSend_445( _id, _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, - path?._id ?? ffi.nullptr, - destPath?._id ?? ffi.nullptr, + path._id, + destPath._id, error); } - NSString destinationOfSymbolicLinkAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_397( - _id, - _lib._sel_destinationOfSymbolicLinkAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? destinationOfSymbolicLinkAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_446(_id, + _lib._sel_destinationOfSymbolicLinkAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + bool copyItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396(_id, _lib._sel_copyItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + return _lib._objc_msgSend_445(_id, _lib._sel_copyItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + bool moveItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396(_id, _lib._sel_moveItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + return _lib._objc_msgSend_445(_id, _lib._sel_moveItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + bool linkItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396(_id, _lib._sel_linkItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + return _lib._objc_msgSend_445(_id, _lib._sel_linkItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } bool removeItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_398(_id, _lib._sel_removeItemAtPath_error_1, - path?._id ?? ffi.nullptr, error); + NSString path, ffi.Pointer> error) { + return _lib._objc_msgSend_447( + _id, _lib._sel_removeItemAtPath_error_1, path._id, error); } - bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_391(_id, _lib._sel_copyItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + bool copyItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440(_id, _lib._sel_copyItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_391(_id, _lib._sel_moveItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + bool moveItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440(_id, _lib._sel_moveItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_391(_id, _lib._sel_linkItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + bool linkItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440(_id, _lib._sel_linkItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } bool removeItemAtURL_error_( - NSURL? URL, ffi.Pointer> error) { - return _lib._objc_msgSend_81( - _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); + NSURL URL, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_removeItemAtURL_error_1, URL._id, error); } bool trashItemAtURL_resultingItemURL_error_( - NSURL? url, + NSURL url, ffi.Pointer> outResultingURL, ffi.Pointer> error) { - return _lib._objc_msgSend_399( + return _lib._objc_msgSend_448( _id, _lib._sel_trashItemAtURL_resultingItemURL_error_1, - url?._id ?? ffi.nullptr, + url._id, outResultingURL, error); } - NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { - final _ret = _lib._objc_msgSend_400( - _id, - _lib._sel_fileAttributesAtPath_traverseLink_1, - path?._id ?? ffi.nullptr, - yorn); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? fileAttributesAtPath_traverseLink_(NSString path, bool yorn) { + final _ret = _lib._objc_msgSend_449( + _id, _lib._sel_fileAttributesAtPath_traverseLink_1, path._id, yorn); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { - return _lib._objc_msgSend_401(_id, _lib._sel_changeFileAttributes_atPath_1, - attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + bool changeFileAttributes_atPath_(NSDictionary attributes, NSString path) { + return _lib._objc_msgSend_450( + _id, _lib._sel_changeFileAttributes_atPath_1, attributes._id, path._id); } - NSArray directoryContentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? directoryContentsAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_132( + _id, _lib._sel_directoryContentsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary fileSystemAttributesAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_140( - _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? fileSystemAttributesAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_fileSystemAttributesAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? pathContentOfSymbolicLinkAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_pathContentOfSymbolicLinkAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } bool createSymbolicLinkAtPath_pathContent_( - NSString? path, NSString? otherpath) { - return _lib._objc_msgSend_402( + NSString path, NSString otherpath) { + return _lib._objc_msgSend_451( _id, _lib._sel_createSymbolicLinkAtPath_pathContent_1, - path?._id ?? ffi.nullptr, - otherpath?._id ?? ffi.nullptr); + path._id, + otherpath._id); } bool createDirectoryAtPath_attributes_( - NSString? path, NSDictionary? attributes) { - return _lib._objc_msgSend_403( - _id, - _lib._sel_createDirectoryAtPath_attributes_1, - path?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); + NSString path, NSDictionary attributes) { + return _lib._objc_msgSend_452(_id, + _lib._sel_createDirectoryAtPath_attributes_1, path._id, attributes._id); } bool linkPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_404(_id, _lib._sel_linkPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + NSString src, NSString dest, NSObject? handler) { + return _lib._objc_msgSend_453(_id, _lib._sel_linkPath_toPath_handler_1, + src._id, dest._id, handler?._id ?? ffi.nullptr); } bool copyPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_404(_id, _lib._sel_copyPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + NSString src, NSString dest, NSObject? handler) { + return _lib._objc_msgSend_453(_id, _lib._sel_copyPath_toPath_handler_1, + src._id, dest._id, handler?._id ?? ffi.nullptr); } bool movePath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_404(_id, _lib._sel_movePath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + NSString src, NSString dest, NSObject? handler) { + return _lib._objc_msgSend_453(_id, _lib._sel_movePath_toPath_handler_1, + src._id, dest._id, handler?._id ?? ffi.nullptr); } - bool removeFileAtPath_handler_(NSString? path, NSObject handler) { - return _lib._objc_msgSend_405(_id, _lib._sel_removeFileAtPath_handler_1, - path?._id ?? ffi.nullptr, handler._id); + bool removeFileAtPath_handler_(NSString path, NSObject? handler) { + return _lib._objc_msgSend_454(_id, _lib._sel_removeFileAtPath_handler_1, + path._id, handler?._id ?? ffi.nullptr); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currentDirectoryPath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currentDirectoryPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool changeCurrentDirectoryPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); + bool changeCurrentDirectoryPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_changeCurrentDirectoryPath_1, path._id); } - bool fileExistsAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); + bool fileExistsAtPath_(NSString path) { + return _lib._objc_msgSend_64(_id, _lib._sel_fileExistsAtPath_1, path._id); } bool fileExistsAtPath_isDirectory_( - NSString? path, ffi.Pointer isDirectory) { - return _lib._objc_msgSend_406(_id, _lib._sel_fileExistsAtPath_isDirectory_1, - path?._id ?? ffi.nullptr, isDirectory); + NSString path, ffi.Pointer isDirectory) { + return _lib._objc_msgSend_455( + _id, _lib._sel_fileExistsAtPath_isDirectory_1, path._id, isDirectory); } - bool isReadableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isReadableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isReadableFileAtPath_1, path._id); } - bool isWritableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isWritableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isWritableFileAtPath_1, path._id); } - bool isExecutableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isExecutableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isExecutableFileAtPath_1, path._id); } - bool isDeletableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isDeletableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isDeletableFileAtPath_1, path._id); } - bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { - return _lib._objc_msgSend_402(_id, _lib._sel_contentsEqualAtPath_andPath_1, - path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); + bool contentsEqualAtPath_andPath_(NSString path1, NSString path2) { + return _lib._objc_msgSend_451( + _id, _lib._sel_contentsEqualAtPath_andPath_1, path1._id, path2._id); } - NSString displayNameAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); + NSString displayNameAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_69(_id, _lib._sel_displayNameAtPath_1, path._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray componentsToDisplayForPath_(NSString? path) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? componentsToDisplayForPath_(NSString path) { + final _ret = _lib._objc_msgSend_132( + _id, _lib._sel_componentsToDisplayForPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? enumeratorAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_enumeratorAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSURL? get homeDirectoryForCurrentUser { + NSObject? enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( + NSURL url, + NSArray? keys, + int mask, + ObjCBlock_bool_NSURL_NSError? handler) { + final _ret = _lib._objc_msgSend_456( + _id, + _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, + url._id, + keys?._id ?? ffi.nullptr, + mask, + handler?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? subpathsAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_132(_id, _lib._sel_subpathsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSData? contentsAtPath_(NSString path) { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_homeDirectoryForCurrentUser1); + _lib._objc_msgSend_457(_id, _lib._sel_contentsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + bool createFileAtPath_contents_attributes_( + NSString path, NSData? data, NSDictionary? attr) { + return _lib._objc_msgSend_458( + _id, + _lib._sel_createFileAtPath_contents_attributes_1, + path._id, + data?._id ?? ffi.nullptr, + attr?._id ?? ffi.nullptr); + } + + ffi.Pointer fileSystemRepresentationWithPath_(NSString path) { + return _lib._objc_msgSend_459( + _id, _lib._sel_fileSystemRepresentationWithPath_1, path._id); + } + + NSString stringWithFileSystemRepresentation_length_( + ffi.Pointer str, int len) { + final _ret = _lib._objc_msgSend_460( + _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool + replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_( + NSURL originalItemURL, + NSURL newItemURL, + NSString? backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_461( + _id, + _lib._sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1, + originalItemURL._id, + newItemURL._id, + backupItemName?._id ?? ffi.nullptr, + options, + resultingURL, + error); + } + + bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL url, + NSURL destinationURL, ffi.Pointer> error) { + return _lib._objc_msgSend_462( + _id, + _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, + flag, + url._id, + destinationURL._id, + error); + } + + bool isUbiquitousItemAtURL_(NSURL url) { + return _lib._objc_msgSend_265( + _id, _lib._sel_isUbiquitousItemAtURL_1, url._id); + } + + bool startDownloadingUbiquitousItemAtURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89(_id, + _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, url._id, error); + } + + bool evictUbiquitousItemAtURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_evictUbiquitousItemAtURL_error_1, url._id, error); + } + + NSURL? URLForUbiquityContainerIdentifier_(NSString? containerIdentifier) { + final _ret = _lib._objc_msgSend_463( + _id, + _lib._sel_URLForUbiquityContainerIdentifier_1, + containerIdentifier?._id ?? ffi.nullptr); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL? get temporaryDirectory { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_temporaryDirectory1); + NSURL? URLForPublishingUbiquitousItemAtURL_expirationDate_error_( + NSURL url, + ffi.Pointer> outDate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_464( + _id, + _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, + url._id, + outDate, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSObject? get ubiquityIdentityToken { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_ubiquityIdentityToken1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void getFileProviderServicesForItemAtURL_completionHandler_( + NSURL url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { + _lib._objc_msgSend_465( + _id, + _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, + url._id, + completionHandler._id); + } + + NSURL? containerURLForSecurityApplicationGroupIdentifier_( + NSString groupIdentifier) { + final _ret = _lib._objc_msgSend_257( + _id, + _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, + groupIdentifier._id); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL homeDirectoryForUser_(NSString? userName) { - final _ret = _lib._objc_msgSend_34( - _id, _lib._sel_homeDirectoryForUser_1, userName?._id ?? ffi.nullptr); + NSURL get homeDirectoryForCurrentUser { + final _ret = + _lib._objc_msgSend_466(_id, _lib._sel_homeDirectoryForCurrentUser1); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL get temporaryDirectory { + final _ret = _lib._objc_msgSend_466(_id, _lib._sel_temporaryDirectory1); return NSURL._(_ret, _lib, retain: true, release: true); } + NSURL? homeDirectoryForUser_(NSString userName) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_homeDirectoryForUser_1, userName._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + @override + NSFileManager init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileManager._(_ret, _lib, retain: true, release: true); + } + static NSFileManager new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); return NSFileManager._(_ret, _lib, retain: false, release: true); } + static NSFileManager allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileManager1, _lib._sel_allocWithZone_1, zone); + return NSFileManager._(_ret, _lib, retain: false, release: true); + } + static NSFileManager alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); @@ -40538,18 +45935,18 @@ class NSFileManager extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileManager1, + _lib._objc_msgSend_15(_lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40564,33 +45961,29 @@ class NSFileManager extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileManager1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFileManager1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileManager1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFileManager1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFileManager1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -40612,33 +46005,38 @@ abstract class NSFileManagerUnmountOptions { static const int NSFileManagerUnmountWithoutUI = 2; } -void _ObjCBlock15_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock15_closureRegistry = {}; -int _ObjCBlock15_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { - final id = ++_ObjCBlock15_closureRegistryIndex; - _ObjCBlock15_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSError_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock15_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock15 extends _ObjCBlockBase { - ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSError._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock15.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -40646,38 +46044,72 @@ class ObjCBlock15 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock15_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock15.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSError.fromFunction( + AVFAudio lib, void Function(NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock15_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) .cast(), - _ObjCBlock15_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSError.listener(AVFAudio lib, void Function(NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSError? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } abstract class NSDirectoryEnumerationOptions { @@ -40732,6 +46164,223 @@ abstract class NSURLRelationship { static const int NSURLRelationshipOther = 2; } +bool _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_NSURL_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_NSURL_NSError_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_bool_NSURL_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_NSURL_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_bool_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_NSURL_NSError.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_NSURL_NSError.fromFunction(AVFAudio lib, bool Function(NSURL, NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_bool_NSURL_NSError_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSURL._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSURL arg0, NSError arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} + +abstract class NSFileManagerItemReplacementOptions { + static const int NSFileManagerItemReplacementUsingNewMetadataOnly = 1; + static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( + AVFAudio lib, void Function(NSDictionary?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSDictionary._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary_NSError.listener( + AVFAudio lib, void Function(NSDictionary?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSDictionary? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} + class NSMutableArray extends NSArray { NSMutableArray._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -40756,24 +46405,24 @@ class NSMutableArray extends NSArray { } void addObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); } void insertObject_atIndex_(NSObject anObject, int index) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); } void removeLastObject() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); } void removeObjectAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeObjectAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeObjectAtIndex_1, index); } void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - return _lib._objc_msgSend_411( + _lib._objc_msgSend_471( _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } @@ -40785,180 +46434,196 @@ class NSMutableArray extends NSArray { NSMutableArray initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableArray._(_ret, _lib, retain: true, release: true); } @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSMutableArray? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - void addObjectsFromArray_(NSArray? otherArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray otherArray) { + _lib._objc_msgSend_472( + _id, _lib._sel_addObjectsFromArray_1, otherArray._id); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_413( + _lib._objc_msgSend_473( _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void removeObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_414( + void removeObject_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_474( _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } void removeObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); } - void removeObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_414( + void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_474( _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } void removeObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - return _lib._objc_msgSend_415( + ffi.Pointer indices, int cnt) { + _lib._objc_msgSend_475( _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } - void removeObjectsInArray_(NSArray? otherArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray otherArray) { + _lib._objc_msgSend_472( + _id, _lib._sel_removeObjectsInArray_1, otherArray._id); } - void removeObjectsInRange_(NSRange range) { - return _lib._objc_msgSend_416(_id, _lib._sel_removeObjectsInRange_1, range); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_removeObjectsInRange_1, range); } void replaceObjectsInRange_withObjectsFromArray_range_( - NSRange range, NSArray? otherArray, NSRange otherRange) { - return _lib._objc_msgSend_417( + _NSRange range, NSArray otherArray, _NSRange otherRange) { + _lib._objc_msgSend_477( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, range, - otherArray?._id ?? ffi.nullptr, + otherArray._id, otherRange); } void replaceObjectsInRange_withObjectsFromArray_( - NSRange range, NSArray? otherArray) { - return _lib._objc_msgSend_418( + _NSRange range, NSArray otherArray) { + _lib._objc_msgSend_478( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, range, - otherArray?._id ?? ffi.nullptr); + otherArray._id); } - void setArray_(NSArray? otherArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + void setArray_(NSArray otherArray) { + _lib._objc_msgSend_472(_id, _lib._sel_setArray_1, otherArray._id); } void sortUsingFunction_context_( ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> compare, ffi.Pointer context) { - return _lib._objc_msgSend_419( + _lib._objc_msgSend_479( _id, _lib._sel_sortUsingFunction_context_1, compare, context); } void sortUsingSelector_(ffi.Pointer comparator) { - return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_420(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_480( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_421( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_481( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_422( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_482(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - void sortUsingComparator_(NSComparator cmptr) { - return _lib._objc_msgSend_423(_id, _lib._sel_sortUsingComparator_1, cmptr); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_483(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { - return _lib._objc_msgSend_424( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_484( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } static NSMutableArray arrayWithCapacity_(AVFAudio _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_425(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfFile_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_485(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_426(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_486(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_425( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSMutableArray? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_485( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_426( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSMutableArray? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_486(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + void applyDifference_(NSObject difference) { + _lib._objc_msgSend_15(_id, _lib._sel_applyDifference_1, difference._id); } - void applyDifference_() { - return _lib._objc_msgSend_1(_id, _lib._sel_applyDifference_1); + void sortUsingDescriptors_(NSArray sortDescriptors) { + _lib._objc_msgSend_472( + _id, _lib._sel_sortUsingDescriptors_1, sortDescriptors._id); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_412(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + void filterUsingPredicate_(NSPredicate predicate) { + _lib._objc_msgSend_487( + _id, _lib._sel_filterUsingPredicate_1, predicate._id); } - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_427( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + @override + NSMutableArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray array(AVFAudio _lib) { @@ -40968,38 +46633,58 @@ class NSMutableArray extends NSArray { } static NSMutableArray arrayWithObject_(AVFAudio _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_count_( AVFAudio _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSMutableArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_(AVFAudio _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableArray1, _lib._sel_arrayWithObjects_1, firstObj._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithArray_(AVFAudio _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + static NSMutableArray arrayWithArray_(AVFAudio _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSMutableArray1, _lib._sel_arrayWithArray_1, array._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_117( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + + static NSArray? arrayWithContentsOfURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_127(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray new1(AVFAudio _lib) { @@ -41008,6 +46693,13 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: false, release: true); } + static NSMutableArray allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableArray1, _lib._sel_allocWithZone_1, zone); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + static NSMutableArray alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); @@ -41018,18 +46710,18 @@ class NSMutableArray extends NSArray { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._objc_msgSend_15(_lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41044,33 +46736,29 @@ class NSMutableArray extends NSArray { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -41107,24 +46795,26 @@ class NSMutableOrderedSet extends NSOrderedSet { } void insertObject_atIndex_(NSObject object, int idx) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_insertObject_atIndex_1, object._id, idx); } void removeObjectAtIndex_(int idx) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeObjectAtIndex_1, idx); + _lib._objc_msgSend_470(_id, _lib._sel_removeObjectAtIndex_1, idx); } void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - return _lib._objc_msgSend_411( + _lib._objc_msgSend_471( _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); } @override - NSMutableOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } @override @@ -41135,53 +46825,50 @@ class NSMutableOrderedSet extends NSOrderedSet { NSMutableOrderedSet initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } void addObjects_count_( ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_435( - _id, _lib._sel_addObjects_count_1, objects, count); + _lib._objc_msgSend_500(_id, _lib._sel_addObjects_count_1, objects, count); } - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_412( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray array) { + _lib._objc_msgSend_472(_id, _lib._sel_addObjectsFromArray_1, array._id); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_413( + _lib._objc_msgSend_473( _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - return _lib._objc_msgSend_436(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, - indexes?._id ?? ffi.nullptr, idx); + void moveObjectsAtIndexes_toIndex_(NSIndexSet indexes, int idx) { + _lib._objc_msgSend_501( + _id, _lib._sel_moveObjectsAtIndexes_toIndex_1, indexes._id, idx); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_420(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_480( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } void setObject_atIndex_(NSObject obj, int idx) { - return _lib._objc_msgSend_409( - _id, _lib._sel_setObject_atIndex_1, obj._id, idx); + _lib._objc_msgSend_469(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } void replaceObjectsInRange_withObjects_count_( - NSRange range, ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_437( + _NSRange range, ffi.Pointer> objects, int count) { + _lib._objc_msgSend_502( _id, _lib._sel_replaceObjectsInRange_withObjects_count_1, range, @@ -41190,100 +46877,99 @@ class NSMutableOrderedSet extends NSOrderedSet { } void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_422( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_482(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } - void removeObjectsInRange_(NSRange range) { - return _lib._objc_msgSend_416(_id, _lib._sel_removeObjectsInRange_1, range); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_removeObjectsInRange_1, range); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_421( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_481( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - void removeObjectsInArray_(NSArray? array) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray array) { + _lib._objc_msgSend_472(_id, _lib._sel_removeObjectsInArray_1, array._id); } - void intersectOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_438( - _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); + void intersectOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_503(_id, _lib._sel_intersectOrderedSet_1, other._id); } - void minusOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_438( - _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); + void minusOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_503(_id, _lib._sel_minusOrderedSet_1, other._id); } - void unionOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_438( - _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); + void unionOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_503(_id, _lib._sel_unionOrderedSet_1, other._id); } - void intersectSet_(NSSet? other) { - return _lib._objc_msgSend_439( - _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); + void intersectSet_(NSSet other) { + _lib._objc_msgSend_504(_id, _lib._sel_intersectSet_1, other._id); } - void minusSet_(NSSet? other) { - return _lib._objc_msgSend_439( - _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); + void minusSet_(NSSet other) { + _lib._objc_msgSend_504(_id, _lib._sel_minusSet_1, other._id); } - void unionSet_(NSSet? other) { - return _lib._objc_msgSend_439( - _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); + void unionSet_(NSSet other) { + _lib._objc_msgSend_504(_id, _lib._sel_unionSet_1, other._id); } - void sortUsingComparator_(NSComparator cmptr) { - return _lib._objc_msgSend_423(_id, _lib._sel_sortUsingComparator_1, cmptr); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_483(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { - return _lib._objc_msgSend_424( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_484( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } - void sortRange_options_usingComparator_( - NSRange range, int opts, NSComparator cmptr) { - return _lib._objc_msgSend_440( - _id, _lib._sel_sortRange_options_usingComparator_1, range, opts, cmptr); + void sortRange_options_usingComparator_(_NSRange range, int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_505(_id, _lib._sel_sortRange_options_usingComparator_1, + range, opts, cmptr._id); } static NSMutableOrderedSet orderedSetWithCapacity_( AVFAudio _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_65(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithCapacity_1, numItems); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - void applyDifference_() { - return _lib._objc_msgSend_1(_id, _lib._sel_applyDifference_1); + void applyDifference_(NSObject difference) { + _lib._objc_msgSend_15(_id, _lib._sel_applyDifference_1, difference._id); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_412(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + void sortUsingDescriptors_(NSArray sortDescriptors) { + _lib._objc_msgSend_472( + _id, _lib._sel_sortUsingDescriptors_1, sortDescriptors._id); } - void filterUsingPredicate_(NSPredicate? p) { - return _lib._objc_msgSend_427( - _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); + void filterUsingPredicate_(NSPredicate p) { + _lib._objc_msgSend_487(_id, _lib._sel_filterUsingPredicate_1, p._id); + } + + @override + NSMutableOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSet(AVFAudio _lib) { @@ -41294,71 +46980,143 @@ class NSMutableOrderedSet extends NSOrderedSet { static NSMutableOrderedSet orderedSetWithObject_( AVFAudio _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithObject_1, object._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithObjects_count_( AVFAudio _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithObjects_count_1, objects, cnt); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithObjects_( AVFAudio _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithObjects_1, firstObj._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithOrderedSet_( - AVFAudio _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_430(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + AVFAudio _lib, NSOrderedSet set) { + final _ret = _lib._objc_msgSend_492(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - AVFAudio _lib, NSOrderedSet? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_431( + AVFAudio _lib, NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493( _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, + set._id, range, flag); return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } static NSMutableOrderedSet orderedSetWithArray_( - AVFAudio _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + AVFAudio _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_1, array._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - AVFAudio _lib, NSArray? array, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_432( + AVFAudio _lib, NSArray array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, + array._id, range, flag); return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSMutableOrderedSet orderedSetWithSet_(AVFAudio _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + static NSMutableOrderedSet orderedSetWithSet_(AVFAudio _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_1, set._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithSet_copyItems_( - AVFAudio _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + AVFAudio _lib, NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet set) { + final _ret = + _lib._objc_msgSend_492(_id, _lib._sel_initWithOrderedSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithOrderedSet_copyItems_( + NSOrderedSet set, bool flag) { + final _ret = _lib._objc_msgSend_495( + _id, _lib._sel_initWithOrderedSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493(_id, + _lib._sel_initWithOrderedSet_range_copyItems_1, set._id, range, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithArray_range_copyItems_( + NSArray set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( + _id, _lib._sel_initWithArray_range_copyItems_1, set._id, range, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } @@ -41368,6 +47126,13 @@ class NSMutableOrderedSet extends NSOrderedSet { return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } + static NSMutableOrderedSet allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + static NSMutableOrderedSet alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); @@ -41378,18 +47143,18 @@ class NSMutableOrderedSet extends NSOrderedSet { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41404,33 +47169,29 @@ class NSMutableOrderedSet extends NSOrderedSet { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -41470,12 +47231,12 @@ class NSOrderedSet extends NSObject { } NSObject objectAtIndex_(int idx) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndex_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } int indexOfObject_(NSObject object) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); + return _lib._objc_msgSend_74(_id, _lib._sel_indexOfObject_1, object._id); } @override @@ -41486,154 +47247,156 @@ class NSOrderedSet extends NSObject { NSOrderedSet initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSOrderedSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); } void getObjects_range_( - ffi.Pointer> objects, NSRange range) { - return _lib._objc_msgSend_68( - _id, _lib._sel_getObjects_range_1, objects, range); + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_73(_id, _lib._sel_getObjects_range_1, objects, range); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_111(_id, _lib._sel_objectsAtIndexes_1, indexes._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get firstObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_firstObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get lastObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_lastObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool isEqualToOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_428( - _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); + bool isEqualToOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_489( + _id, _lib._sel_isEqualToOrderedSet_1, other._id); } bool containsObject_(NSObject object) { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); } - bool intersectsOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_428( - _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); + bool intersectsOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_489( + _id, _lib._sel_intersectsOrderedSet_1, other._id); } - bool intersectsSet_(NSSet? set) { - return _lib._objc_msgSend_355( - _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); + bool intersectsSet_(NSSet set) { + return _lib._objc_msgSend_403(_id, _lib._sel_intersectsSet_1, set._id); } - bool isSubsetOfOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_428( - _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); + bool isSubsetOfOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_489( + _id, _lib._sel_isSubsetOfOrderedSet_1, other._id); } - bool isSubsetOfSet_(NSSet? set) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); + bool isSubsetOfSet_(NSSet set) { + return _lib._objc_msgSend_403(_id, _lib._sel_isSubsetOfSet_1, set._id); } NSObject objectAtIndexedSubscript_(int idx) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndexedSubscript_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_reverseObjectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSOrderedSet? get reversedOrderedSet { - final _ret = _lib._objc_msgSend_429(_id, _lib._sel_reversedOrderedSet1); - return _ret.address == 0 - ? null - : NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSOrderedSet get reversedOrderedSet { + final _ret = _lib._objc_msgSend_490(_id, _lib._sel_reversedOrderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSArray? get array { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_array1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get array { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSSet? get set1 { - final _ret = _lib._objc_msgSend_280(_id, _lib._sel_set1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); + NSSet get set1 { + final _ret = _lib._objc_msgSend_491(_id, _lib._sel_set1); + return NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock3 block) { - return _lib._objc_msgSend_104( + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_112( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_105(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_113(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_106( + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_114( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, + s._id, opts, block._id); } - int indexOfObjectPassingTest_(ObjCBlock4 predicate) { - return _lib._objc_msgSend_107( + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_115( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_108(_id, + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_116(_id, _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_109( + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_117( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_110( + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_118( _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_111( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_119( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, opts, @@ -41641,57 +47404,62 @@ class NSOrderedSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_112( + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_120( _id, _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, NSRange range, int opts, NSComparator cmp) { - return _lib._objc_msgSend_115( + NSObject object, + _NSRange range, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_123( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, object._id, range, opts, - cmp); + cmp._id); } - NSArray sortedArrayUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_113( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_114( - _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_122(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); return NSString._(_ret, _lib, retain: true, release: true); } @@ -41702,198 +47470,212 @@ class NSOrderedSet extends NSObject { } static NSOrderedSet orderedSetWithObject_(AVFAudio _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSOrderedSet1, _lib._sel_orderedSetWithObject_1, object._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithObjects_count_( AVFAudio _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSOrderedSet1, _lib._sel_orderedSetWithObjects_count_1, objects, cnt); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithObjects_(AVFAudio _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSOrderedSet1, _lib._sel_orderedSetWithObjects_1, firstObj._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithOrderedSet_( - AVFAudio _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_430(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + AVFAudio _lib, NSOrderedSet set) { + final _ret = _lib._objc_msgSend_492(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - AVFAudio _lib, NSOrderedSet? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_431( + AVFAudio _lib, NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493( _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, + set._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet orderedSetWithArray_(AVFAudio _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + static NSOrderedSet orderedSetWithArray_(AVFAudio _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithArray_1, array._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithArray_range_copyItems_( - AVFAudio _lib, NSArray? array, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_432( + AVFAudio _lib, NSArray array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, + array._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet orderedSetWithSet_(AVFAudio _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + static NSOrderedSet orderedSetWithSet_(AVFAudio _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411( + _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithSet_copyItems_( - AVFAudio _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + AVFAudio _lib, NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } NSOrderedSet initWithObject_(NSObject object) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObject_1, object._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } NSOrderedSet initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_430( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + NSOrderedSet initWithOrderedSet_(NSOrderedSet set) { + final _ret = + _lib._objc_msgSend_492(_id, _lib._sel_initWithOrderedSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_433( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); + NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet set, bool flag) { + final _ret = _lib._objc_msgSend_495( + _id, _lib._sel_initWithOrderedSet_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_431( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); + NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493(_id, + _lib._sel_initWithOrderedSet_range_copyItems_1, set._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSOrderedSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } NSOrderedSet initWithArray_range_copyItems_( - NSArray? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_432( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); + NSArray set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( + _id, _lib._sel_initWithArray_range_copyItems_1, set._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_363( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + NSOrderedSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( + NSOrderedSet other, + int options, + ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_496( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, + other._id, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_withOptions_( + NSOrderedSet other, int options) { + final _ret = _lib._objc_msgSend_497(_id, + _lib._sel_differenceFromOrderedSet_withOptions_1, other._id, options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_(NSOrderedSet other) { + final _ret = _lib._objc_msgSend_492( + _id, _lib._sel_differenceFromOrderedSet_1, other._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet? orderedSetByApplyingDifference_(NSObject difference) { + final _ret = _lib._objc_msgSend_498( + _id, _lib._sel_orderedSetByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { - final _ret = _lib._objc_msgSend_434(_id, - _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); + NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate p) { + final _ret = _lib._objc_msgSend_499( + _id, _lib._sel_filteredOrderedSetUsingPredicate_1, p._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } @@ -41903,6 +47685,12 @@ class NSOrderedSet extends NSObject { return NSOrderedSet._(_ret, _lib, retain: false, release: true); } + static NSOrderedSet allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + static NSOrderedSet alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); @@ -41913,18 +47701,18 @@ class NSOrderedSet extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41939,33 +47727,29 @@ class NSOrderedSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42001,18 +47785,20 @@ class NSMutableSet extends NSSet { } void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } @override - NSMutableSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSMutableSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableSet._(_ret, _lib, retain: true, release: true); } @override @@ -42023,48 +47809,51 @@ class NSMutableSet extends NSSet { NSMutableSet initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_412( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray array) { + _lib._objc_msgSend_472(_id, _lib._sel_addObjectsFromArray_1, array._id); } - void intersectSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); + void intersectSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_intersectSet_1, otherSet._id); } - void minusSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); + void minusSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_minusSet_1, otherSet._id); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void unionSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); + void unionSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_unionSet_1, otherSet._id); } - void setSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); + void setSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_setSet_1, otherSet._id); } static NSMutableSet setWithCapacity_(AVFAudio _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_427( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + void filterUsingPredicate_(NSPredicate predicate) { + _lib._objc_msgSend_487( + _id, _lib._sel_filterUsingPredicate_1, predicate._id); + } + + @override + NSMutableSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet set1(AVFAudio _lib) { @@ -42074,33 +47863,60 @@ class NSMutableSet extends NSSet { } static NSMutableSet setWithObject_(AVFAudio _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithObjects_count_( AVFAudio _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSMutableSet1, _lib._sel_setWithObjects_count_1, objects, cnt); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithObjects_(AVFAudio _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet setWithSet_(AVFAudio _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + static NSMutableSet setWithSet_(AVFAudio _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411( + _lib._class_NSMutableSet1, _lib._sel_setWithSet_1, set._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet setWithArray_(AVFAudio _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + static NSMutableSet setWithArray_(AVFAudio _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSMutableSet1, _lib._sel_setWithArray_1, array._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); + return NSMutableSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } @@ -42110,6 +47926,12 @@ class NSMutableSet extends NSSet { return NSMutableSet._(_ret, _lib, retain: false, release: true); } + static NSMutableSet allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableSet._(_ret, _lib, retain: false, release: true); + } + static NSMutableSet alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); @@ -42120,18 +47942,18 @@ class NSMutableSet extends NSSet { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._objc_msgSend_15(_lib._class_NSMutableSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42146,33 +47968,29 @@ class NSMutableSet extends NSSet { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42223,154 +48041,146 @@ class NSKeyedArchiver extends NSCoder { } NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { - final _ret = _lib._objc_msgSend_449( + final _ret = _lib._objc_msgSend_514( _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - static NSData archivedDataWithRootObject_requiringSecureCoding_error_( + static NSData? archivedDataWithRootObject_requiringSecureCoding_error_( AVFAudio _lib, NSObject object, bool requiresSecureCoding, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_450( + final _ret = _lib._objc_msgSend_515( _lib._class_NSKeyedArchiver1, _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, object._id, requiresSecureCoding, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } + @override NSKeyedArchiver init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { - final _ret = _lib._objc_msgSend_455(_id, - _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); + NSKeyedArchiver initForWritingWithMutableData_(NSMutableData data) { + final _ret = _lib._objc_msgSend_521( + _id, _lib._sel_initForWritingWithMutableData_1, data._id); return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } static NSData archivedDataWithRootObject_( AVFAudio _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_456(_lib._class_NSKeyedArchiver1, + final _ret = _lib._objc_msgSend_522(_lib._class_NSKeyedArchiver1, _lib._sel_archivedDataWithRootObject_1, rootObject._id); return NSData._(_ret, _lib, retain: true, release: true); } static bool archiveRootObject_toFile_( - AVFAudio _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_225( - _lib._class_NSKeyedArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + AVFAudio _lib, NSObject rootObject, NSString path) { + return _lib._objc_msgSend_261(_lib._class_NSKeyedArchiver1, + _lib._sel_archiveRootObject_toFile_1, rootObject._id, path._id); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } int get outputFormat { - return _lib._objc_msgSend_457(_id, _lib._sel_outputFormat1); + return _lib._objc_msgSend_523(_id, _lib._sel_outputFormat1); } set outputFormat(int value) { - _lib._objc_msgSend_458(_id, _lib._sel_setOutputFormat_1, value); + return _lib._objc_msgSend_524(_id, _lib._sel_setOutputFormat_1, value); } - NSData? get encodedData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get encodedData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_encodedData1); + return NSData._(_ret, _lib, retain: true, release: true); } void finishEncoding() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); } static void setClassName_forClass_( AVFAudio _lib, NSString? codedName, NSObject cls) { - return _lib._objc_msgSend_459( + _lib._objc_msgSend_525( _lib._class_NSKeyedArchiver1, _lib._sel_setClassName_forClass_1, codedName?._id ?? ffi.nullptr, cls._id); } - static NSString classNameForClass_(AVFAudio _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_65( + static NSString? classNameForClass_(AVFAudio _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_526( _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } @override - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + void encodeObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } @override - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + void encodeConditionalObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeConditionalObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } @override - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_257( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeBool_forKey_(bool value, NSString key) { + _lib._objc_msgSend_296(_id, _lib._sel_encodeBool_forKey_1, value, key._id); } @override - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_258( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt_forKey_(int value, NSString key) { + _lib._objc_msgSend_297(_id, _lib._sel_encodeInt_forKey_1, value, key._id); } @override - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_259( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt32_forKey_(int value, NSString key) { + _lib._objc_msgSend_298(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); } @override - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_260( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt64_forKey_(int value, NSString key) { + _lib._objc_msgSend_299(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); } @override - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_261( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeFloat_forKey_(double value, NSString key) { + _lib._objc_msgSend_300(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); } @override - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_262( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeDouble_forKey_(double value, NSString key) { + _lib._objc_msgSend_301( + _id, _lib._sel_encodeDouble_forKey_1, value, key._id); } @override void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_263(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + ffi.Pointer bytes, int length, NSString key) { + _lib._objc_msgSend_302( + _id, _lib._sel_encodeBytes_length_forKey_1, bytes, length, key._id); } @override @@ -42379,7 +48189,8 @@ class NSKeyedArchiver extends NSCoder { } set requiresSecureCoding(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setRequiresSecureCoding_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setRequiresSecureCoding_1, value); } static NSKeyedArchiver new1(AVFAudio _lib) { @@ -42388,6 +48199,13 @@ class NSKeyedArchiver extends NSCoder { return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } + static NSKeyedArchiver allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSKeyedArchiver1, _lib._sel_allocWithZone_1, zone); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + } + static NSKeyedArchiver alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); @@ -42398,18 +48216,18 @@ class NSKeyedArchiver extends NSCoder { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42424,33 +48242,29 @@ class NSKeyedArchiver extends NSCoder { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSKeyedArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSKeyedArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSKeyedArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSKeyedArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSKeyedArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSKeyedArchiver1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSKeyedArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42486,7 +48300,7 @@ class NSMutableData extends NSData { } ffi.Pointer get mutableBytes { - return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); + return _lib._objc_msgSend_20(_id, _lib._sel_mutableBytes1); } @override @@ -42495,42 +48309,38 @@ class NSMutableData extends NSData { } set length(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setLength_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setLength_1, value); } void appendBytes_length_(ffi.Pointer bytes, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_appendBytes_length_1, bytes, length); + _lib._objc_msgSend_22(_id, _lib._sel_appendBytes_length_1, bytes, length); } - void appendData_(NSData? other) { - return _lib._objc_msgSend_248( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + void appendData_(NSData other) { + _lib._objc_msgSend_285(_id, _lib._sel_appendData_1, other._id); } void increaseLengthBy_(int extraLength) { - return _lib._objc_msgSend_410( - _id, _lib._sel_increaseLengthBy_1, extraLength); + _lib._objc_msgSend_470(_id, _lib._sel_increaseLengthBy_1, extraLength); } void replaceBytesInRange_withBytes_( - NSRange range, ffi.Pointer bytes) { - return _lib._objc_msgSend_452( + _NSRange range, ffi.Pointer bytes) { + _lib._objc_msgSend_517( _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } - void resetBytesInRange_(NSRange range) { - return _lib._objc_msgSend_416(_id, _lib._sel_resetBytesInRange_1, range); + void resetBytesInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_resetBytesInRange_1, range); } - void setData_(NSData? data) { - return _lib._objc_msgSend_248( - _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + void setData_(NSData data) { + _lib._objc_msgSend_285(_id, _lib._sel_setData_1, data._id); } - void replaceBytesInRange_withBytes_length_(NSRange range, + void replaceBytesInRange_withBytes_length_(_NSRange range, ffi.Pointer replacementBytes, int replacementLength) { - return _lib._objc_msgSend_453( + _lib._objc_msgSend_518( _id, _lib._sel_replaceBytesInRange_withBytes_length_1, range, @@ -42538,38 +48348,47 @@ class NSMutableData extends NSData { replacementLength); } - static NSMutableData dataWithCapacity_(AVFAudio _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_60( + static NSMutableData? dataWithCapacity_(AVFAudio _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_519( _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithLength_(AVFAudio _lib, int length) { - final _ret = _lib._objc_msgSend_60( + static NSMutableData? dataWithLength_(AVFAudio _lib, int length) { + final _ret = _lib._objc_msgSend_519( _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableData initWithCapacity_(int capacity) { + NSMutableData? initWithCapacity_(int capacity) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_519(_id, _lib._sel_initWithCapacity_1, capacity); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSMutableData? initWithLength_(int length) { + final _ret = + _lib._objc_msgSend_519(_id, _lib._sel_initWithLength_1, length); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } bool decompressUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_454( + return _lib._objc_msgSend_520( _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); } bool compressUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_454( + return _lib._objc_msgSend_520( _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); } @@ -42581,75 +48400,224 @@ class NSMutableData extends NSData { static NSMutableData dataWithBytes_length_( AVFAudio _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_273(_lib._class_NSMutableData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: true, release: true); } static NSMutableData dataWithBytesNoCopy_length_( AVFAudio _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_273(_lib._class_NSMutableData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: false, release: true); } static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( AVFAudio _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_238(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_274(_lib._class_NSMutableData1, _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableData dataWithContentsOfFile_options_error_( + static NSMutableData? dataWithContentsOfFile_options_error_( AVFAudio _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_239( + final _ret = _lib._objc_msgSend_275( _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_options_error_( + static NSMutableData? dataWithContentsOfURL_options_error_( AVFAudio _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_240( + final _ret = _lib._objc_msgSend_276( _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData? dataWithContentsOfFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + static NSMutableData? dataWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_273( + _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + @override + NSMutableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_273( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_274(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, + int length, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_278( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData? initWithContentsOfFile_options_error_(NSString path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_275( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithContentsOfURL_options_error_(NSURL url, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_276( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithData_(AVFAudio _lib, NSData? data) { - final _ret = _lib._objc_msgSend_242(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSMutableData dataWithData_(AVFAudio _lib, NSData data) { + final _ret = _lib._objc_msgSend_279( + _lib._class_NSMutableData1, _lib._sel_dataWithData_1, data._id); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_280( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String._id, + options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithBase64EncodedData_options_( + NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject? dataWithContentsOfMappedFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } static NSMutableData new1(AVFAudio _lib) { @@ -42658,6 +48626,13 @@ class NSMutableData extends NSData { return NSMutableData._(_ret, _lib, retain: false, release: true); } + static NSMutableData allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableData1, _lib._sel_allocWithZone_1, zone); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + static NSMutableData alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); @@ -42668,18 +48643,18 @@ class NSMutableData extends NSData { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableData1, + _lib._objc_msgSend_15(_lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42694,33 +48669,29 @@ class NSMutableData extends NSData { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42760,27 +48731,26 @@ class NSThread extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); } - static NSThread? getCurrentThread(AVFAudio _lib) { + static NSThread getCurrentThread(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_464(_lib._class_NSThread1, _lib._sel_currentThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_531(_lib._class_NSThread1, _lib._sel_currentThread1); + return NSThread._(_ret, _lib, retain: true, release: true); } - static void detachNewThreadWithBlock_(AVFAudio _lib, ObjCBlock16 block) { - return _lib._objc_msgSend_465( + static void detachNewThreadWithBlock_( + AVFAudio _lib, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_532( _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); } static void detachNewThreadSelector_toTarget_withObject_(AVFAudio _lib, - ffi.Pointer selector, NSObject target, NSObject argument) { - return _lib._objc_msgSend_466( + ffi.Pointer selector, NSObject target, NSObject? argument) { + _lib._objc_msgSend_533( _lib._class_NSThread1, _lib._sel_detachNewThreadSelector_toTarget_withObject_1, selector, target._id, - argument._id); + argument?._id ?? ffi.nullptr); } static bool isMultiThreaded(AVFAudio _lib) { @@ -42788,68 +48758,63 @@ class NSThread extends NSObject { _lib._class_NSThread1, _lib._sel_isMultiThreaded1); } - NSMutableDictionary? get threadDictionary { - final _ret = _lib._objc_msgSend_471(_id, _lib._sel_threadDictionary1); - return _ret.address == 0 - ? null - : NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary get threadDictionary { + final _ret = _lib._objc_msgSend_539(_id, _lib._sel_threadDictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static void sleepUntilDate_(AVFAudio _lib, NSDate? date) { - return _lib._objc_msgSend_472(_lib._class_NSThread1, - _lib._sel_sleepUntilDate_1, date?._id ?? ffi.nullptr); + static void sleepUntilDate_(AVFAudio _lib, NSDate date) { + _lib._objc_msgSend_540( + _lib._class_NSThread1, _lib._sel_sleepUntilDate_1, date._id); } static void sleepForTimeInterval_(AVFAudio _lib, double ti) { - return _lib._objc_msgSend_473( + _lib._objc_msgSend_541( _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); } static void exit(AVFAudio _lib) { - return _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); + _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); } double get threadPriority { - return _lib._objc_msgSend_149(_id, _lib._sel_threadPriority1); + return _lib._objc_msgSend_165(_id, _lib._sel_threadPriority1); } set threadPriority(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setThreadPriority_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setThreadPriority_1, value); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } - static NSArray? getCallStackReturnAddresses(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getCallStackReturnAddresses(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getCallStackSymbols(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getCallStackSymbols(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSThread1, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } int get stackSize { @@ -42857,19 +48822,17 @@ class NSThread extends NSObject { } set stackSize(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setStackSize_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setStackSize_1, value); } bool get isMainThread { return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); } - static NSThread? getMainThread(AVFAudio _lib) { + static NSThread getMainThread(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_464(_lib._class_NSThread1, _lib._sel_mainThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_531(_lib._class_NSThread1, _lib._sel_mainThread1); + return NSThread._(_ret, _lib, retain: true, release: true); } @override @@ -42879,19 +48842,19 @@ class NSThread extends NSObject { } NSThread initWithTarget_selector_object_( - NSObject target, ffi.Pointer selector, NSObject argument) { - final _ret = _lib._objc_msgSend_478( + NSObject target, ffi.Pointer selector, NSObject? argument) { + final _ret = _lib._objc_msgSend_546( _id, _lib._sel_initWithTarget_selector_object_1, target._id, selector, - argument._id); + argument?._id ?? ffi.nullptr); return NSThread._(_ret, _lib, retain: true, release: true); } - NSThread initWithBlock_(ObjCBlock16 block) { + NSThread initWithBlock_(ObjCBlock_ffiVoid block) { final _ret = - _lib._objc_msgSend_479(_id, _lib._sel_initWithBlock_1, block._id); + _lib._objc_msgSend_547(_id, _lib._sel_initWithBlock_1, block._id); return NSThread._(_ret, _lib, retain: true, release: true); } @@ -42908,15 +48871,15 @@ class NSThread extends NSObject { } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + _lib._objc_msgSend_1(_id, _lib._sel_start1); } void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); + _lib._objc_msgSend_1(_id, _lib._sel_main1); } static NSThread new1(AVFAudio _lib) { @@ -42924,6 +48887,12 @@ class NSThread extends NSObject { return NSThread._(_ret, _lib, retain: false, release: true); } + static NSThread allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSThread1, _lib._sel_allocWithZone_1, zone); + return NSThread._(_ret, _lib, retain: false, release: true); + } + static NSThread alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); return NSThread._(_ret, _lib, retain: false, release: true); @@ -42933,18 +48902,18 @@ class NSThread extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSThread1, + _lib._objc_msgSend_15(_lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42959,33 +48928,29 @@ class NSThread extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSThread1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSThread1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSThread1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSThread1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSThread1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42997,59 +48962,94 @@ class NSThread extends NSObject { } } -void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock16_closureRegistry = {}; -int _ObjCBlock16_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { - final id = ++_ObjCBlock16_closureRegistryIndex; - _ObjCBlock16_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + block.ref.target + .cast>() + .asFunction()(); +final _ObjCBlock_ffiVoid_closureRegistry = {}; +int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(void Function() fn) { + final id = ++_ObjCBlock_ffiVoid_closureRegistryIndex; + _ObjCBlock_ffiVoid_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return _ObjCBlock16_closureRegistry[block.ref.target.address]!(); -} +void _ObjCBlock_ffiVoid_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + _ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address]!(); -class ObjCBlock16 extends _ObjCBlockBase { - ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock16.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid.fromFunctionPointer( AVFAudio lib, ffi.Pointer> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock16_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock16.fromFunction(AVFAudio lib, void Function() fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid.fromFunction(AVFAudio lib, void Function() fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock16_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_closureTrampoline) .cast(), - _ObjCBlock16_registerClosure(fn)), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), lib); - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid.listener(AVFAudio lib, void Function() fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>)>.listener( + _ObjCBlock_ffiVoid_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), + lib); + static ffi.NativeCallable)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call() => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>>() + .asFunction)>()( + _id, + ); } class NSMutableDictionary extends NSDictionary { @@ -43077,11 +49077,11 @@ class NSMutableDictionary extends NSDictionary { } void removeObjectForKey_(NSObject aKey) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); } void setObject_forKey_(NSObject anObject, NSObject aKey) { - return _lib._objc_msgSend_467( + _lib._objc_msgSend_534( _id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id); } @@ -43093,84 +49093,102 @@ class NSMutableDictionary extends NSDictionary { NSMutableDictionary initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_444(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + void addEntriesFromDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_509( + _id, _lib._sel_addEntriesFromDictionary_1, otherDictionary._id); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void removeObjectsForKeys_(NSArray? keyArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + void removeObjectsForKeys_(NSArray keyArray) { + _lib._objc_msgSend_472(_id, _lib._sel_removeObjectsForKeys_1, keyArray._id); } - void setDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_444( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + void setDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_509(_id, _lib._sel_setDictionary_1, otherDictionary._id); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject key) { - return _lib._objc_msgSend_467( - _id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key._id); + void setObject_forKeyedSubscript_(NSObject? obj, NSObject key) { + _lib._objc_msgSend_535(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj?._id ?? ffi.nullptr, key._id); } static NSMutableDictionary dictionaryWithCapacity_( AVFAudio _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_65(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithCapacity_1, numItems); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_468(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary? dictionaryWithContentsOfFile_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_536(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_469(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary? dictionaryWithContentsOfURL_( + AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_537(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_468( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_536( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_469( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_537(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithSharedKeySet_( AVFAudio _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_470(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_538(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); + } + + @override + NSMutableDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_147( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionary(AVFAudio _lib) { @@ -43181,7 +49199,7 @@ class NSMutableDictionary extends NSDictionary { static NSMutableDictionary dictionaryWithObject_forKey_( AVFAudio _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_142(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_158(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @@ -43191,48 +49209,73 @@ class NSMutableDictionary extends NSDictionary { ffi.Pointer> objects, ffi.Pointer> keys, int cnt) { - final _ret = _lib._objc_msgSend_133(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_147(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjectsAndKeys_( AVFAudio _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithDictionary_( - AVFAudio _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_143(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + AVFAudio _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_159(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjects_forKeys_( - AVFAudio _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_144( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + AVFAudio _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_146( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_initWithDictionary_1, otherDictionary._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(AVFAudio _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + @override + NSMutableDictionary initWithDictionary_copyItems_( + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_161(_id, + _lib._sel_initWithDictionary_copyItems_1, otherDictionary._id, flag); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary? dictionaryWithContentsOfURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSObject sharedKeySetForKeys_(AVFAudio _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_125(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -43242,6 +49285,13 @@ class NSMutableDictionary extends NSDictionary { return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } + static NSMutableDictionary allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + static NSMutableDictionary alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableDictionary1, _lib._sel_alloc1); @@ -43252,18 +49302,18 @@ class NSMutableDictionary extends NSDictionary { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43278,33 +49328,29 @@ class NSMutableDictionary extends NSDictionary { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43346,74 +49392,77 @@ class NSArchiver extends NSCoder { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); } - NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { - final _ret = _lib._objc_msgSend_455(_id, - _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); + NSArchiver initForWritingWithMutableData_(NSMutableData mdata) { + final _ret = _lib._objc_msgSend_521( + _id, _lib._sel_initForWritingWithMutableData_1, mdata._id); return NSArchiver._(_ret, _lib, retain: true, release: true); } - NSMutableData? get archiverData { - final _ret = _lib._objc_msgSend_482(_id, _lib._sel_archiverData1); - return _ret.address == 0 - ? null - : NSMutableData._(_ret, _lib, retain: true, release: true); + NSMutableData get archiverData { + final _ret = _lib._objc_msgSend_550(_id, _lib._sel_archiverData1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } @override void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } @override - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); + void encodeConditionalObject_(NSObject? object) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeConditionalObject_1, object?._id ?? ffi.nullptr); } static NSData archivedDataWithRootObject_( AVFAudio _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_456(_lib._class_NSArchiver1, + final _ret = _lib._objc_msgSend_522(_lib._class_NSArchiver1, _lib._sel_archivedDataWithRootObject_1, rootObject._id); return NSData._(_ret, _lib, retain: true, release: true); } static bool archiveRootObject_toFile_( - AVFAudio _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_225( - _lib._class_NSArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + AVFAudio _lib, NSObject rootObject, NSString path) { + return _lib._objc_msgSend_261(_lib._class_NSArchiver1, + _lib._sel_archiveRootObject_toFile_1, rootObject._id, path._id); } void encodeClassName_intoClassName_( - NSString? trueName, NSString? inArchiveName) { - return _lib._objc_msgSend_483( - _id, - _lib._sel_encodeClassName_intoClassName_1, - trueName?._id ?? ffi.nullptr, - inArchiveName?._id ?? ffi.nullptr); + NSString trueName, NSString inArchiveName) { + _lib._objc_msgSend_551(_id, _lib._sel_encodeClassName_intoClassName_1, + trueName._id, inArchiveName._id); } - NSString classNameEncodedForTrueClassName_(NSString? trueName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_classNameEncodedForTrueClassName_1, - trueName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? classNameEncodedForTrueClassName_(NSString trueName) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_classNameEncodedForTrueClassName_1, trueName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } void replaceObject_withObject_(NSObject object, NSObject newObject) { - return _lib._objc_msgSend_467( + _lib._objc_msgSend_534( _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); } + @override + NSArchiver init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSArchiver._(_ret, _lib, retain: true, release: true); + } + static NSArchiver new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); return NSArchiver._(_ret, _lib, retain: false, release: true); } + static NSArchiver allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSArchiver1, _lib._sel_allocWithZone_1, zone); + return NSArchiver._(_ret, _lib, retain: false, release: true); + } + static NSArchiver alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); @@ -43424,18 +49473,18 @@ class NSArchiver extends NSCoder { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArchiver1, + _lib._objc_msgSend_15(_lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43450,33 +49499,29 @@ class NSArchiver extends NSCoder { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43519,24 +49564,27 @@ class NSPortCoder extends NSCoder { return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); } - void encodePortObject_(NSPort? aport) { - return _lib._objc_msgSend_520( - _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); + void encodePortObject_(NSPort aport) { + _lib._objc_msgSend_593(_id, _lib._sel_encodePortObject_1, aport._id); } - NSPort decodePortObject() { - final _ret = _lib._objc_msgSend_485(_id, _lib._sel_decodePortObject1); - return NSPort._(_ret, _lib, retain: true, release: true); + NSPort? decodePortObject() { + final _ret = _lib._objc_msgSend_594(_id, _lib._sel_decodePortObject1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - NSConnection connection() { - final _ret = _lib._objc_msgSend_504(_id, _lib._sel_connection1); - return NSConnection._(_ret, _lib, retain: true, release: true); + NSConnection? connection() { + final _ret = _lib._objc_msgSend_595(_id, _lib._sel_connection1); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } static NSObject portCoderWithReceivePort_sendPort_components_( AVFAudio _lib, NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_521( + final _ret = _lib._objc_msgSend_596( _lib._class_NSPortCoder1, _lib._sel_portCoderWithReceivePort_sendPort_components_1, rcvPort?._id ?? ffi.nullptr, @@ -43547,7 +49595,7 @@ class NSPortCoder extends NSCoder { NSObject initWithReceivePort_sendPort_components_( NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_521( + final _ret = _lib._objc_msgSend_596( _id, _lib._sel_initWithReceivePort_sendPort_components_1, rcvPort?._id ?? ffi.nullptr, @@ -43557,7 +49605,13 @@ class NSPortCoder extends NSCoder { } void dispatch() { - return _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + } + + @override + NSPortCoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPortCoder._(_ret, _lib, retain: true, release: true); } static NSPortCoder new1(AVFAudio _lib) { @@ -43565,6 +49619,12 @@ class NSPortCoder extends NSCoder { return NSPortCoder._(_ret, _lib, retain: false, release: true); } + static NSPortCoder allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPortCoder1, _lib._sel_allocWithZone_1, zone); + return NSPortCoder._(_ret, _lib, retain: false, release: true); + } + static NSPortCoder alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); @@ -43575,18 +49635,18 @@ class NSPortCoder extends NSCoder { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + _lib._objc_msgSend_15(_lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43601,33 +49661,29 @@ class NSPortCoder extends NSCoder { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPortCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPortCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPortCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43662,12 +49718,12 @@ class NSPort extends NSObject { } static NSPort port(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_485(_lib._class_NSPort1, _lib._sel_port1); + final _ret = _lib._objc_msgSend_553(_lib._class_NSPort1, _lib._sel_port1); return NSPort._(_ret, _lib, retain: true, release: true); } void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } bool get valid { @@ -43675,23 +49731,25 @@ class NSPort extends NSObject { } void setDelegate_(NSObject? anObject) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_289( _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); } - NSObject delegate() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? delegate() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, runLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_removeFromRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_removeFromRunLoop_forMode_1, runLoop._id, mode._id); } int get reservedSpaceLength { @@ -43699,29 +49757,29 @@ class NSPort extends NSObject { } bool sendBeforeDate_components_from_reserved_( - NSDate? limitDate, + NSDate limitDate, NSMutableArray? components, NSPort? receivePort, int headerSpaceReserved) { - return _lib._objc_msgSend_502( + return _lib._objc_msgSend_570( _id, _lib._sel_sendBeforeDate_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, + limitDate._id, components?._id ?? ffi.nullptr, receivePort?._id ?? ffi.nullptr, headerSpaceReserved); } bool sendBeforeDate_msgid_components_from_reserved_( - NSDate? limitDate, + NSDate limitDate, int msgID, NSMutableArray? components, NSPort? receivePort, int headerSpaceReserved) { - return _lib._objc_msgSend_503( + return _lib._objc_msgSend_571( _id, _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, + limitDate._id, msgID, components?._id ?? ffi.nullptr, receivePort?._id ?? ffi.nullptr, @@ -43729,23 +49787,25 @@ class NSPort extends NSObject { } void addConnection_toRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_519( - _id, - _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode); + NSConnection conn, NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_592(_id, _lib._sel_addConnection_toRunLoop_forMode_1, + conn._id, runLoop._id, mode._id); } void removeConnection_fromRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_519( + NSConnection conn, NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_592( _id, _lib._sel_removeConnection_fromRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode); + conn._id, + runLoop._id, + mode._id); + } + + @override + NSPort init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPort._(_ret, _lib, retain: true, release: true); } static NSPort new1(AVFAudio _lib) { @@ -43753,6 +49813,12 @@ class NSPort extends NSObject { return NSPort._(_ret, _lib, retain: false, release: true); } + static NSPort allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPort1, _lib._sel_allocWithZone_1, zone); + return NSPort._(_ret, _lib, retain: false, release: true); + } + static NSPort alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); return NSPort._(_ret, _lib, retain: false, release: true); @@ -43762,18 +49828,18 @@ class NSPort extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._objc_msgSend_15(_lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43788,33 +49854,29 @@ class NSPort extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPort1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPort1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPort1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPort1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPort1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43848,122 +49910,131 @@ class NSRunLoop extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); } - static NSRunLoop? getCurrentRunLoop(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_486( + static NSRunLoop getCurrentRunLoop(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_554( _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - static NSRunLoop? getMainRunLoop(AVFAudio _lib) { + static NSRunLoop getMainRunLoop(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_486(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_554(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - NSRunLoopMode get currentMode { - return _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); + NSString? get currentMode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currentMode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - CFRunLoopRef getCFRunLoop() { - return _lib._objc_msgSend_487(_id, _lib._sel_getCFRunLoop1); + ffi.Pointer<__CFRunLoop> getCFRunLoop() { + return _lib._objc_msgSend_555(_id, _lib._sel_getCFRunLoop1); } - void addTimer_forMode_(NSTimer? timer, NSRunLoopMode mode) { - return _lib._objc_msgSend_494( - _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode); + void addTimer_forMode_(NSTimer timer, NSString mode) { + _lib._objc_msgSend_562( + _id, _lib._sel_addTimer_forMode_1, timer._id, mode._id); } - void addPort_forMode_(NSPort? aPort, NSRunLoopMode mode) { - return _lib._objc_msgSend_495( - _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode); + void addPort_forMode_(NSPort aPort, NSString mode) { + _lib._objc_msgSend_563( + _id, _lib._sel_addPort_forMode_1, aPort._id, mode._id); } - void removePort_forMode_(NSPort? aPort, NSRunLoopMode mode) { - return _lib._objc_msgSend_495( - _id, _lib._sel_removePort_forMode_1, aPort?._id ?? ffi.nullptr, mode); + void removePort_forMode_(NSPort aPort, NSString mode) { + _lib._objc_msgSend_563( + _id, _lib._sel_removePort_forMode_1, aPort._id, mode._id); } - NSDate limitDateForMode_(NSRunLoopMode mode) { + NSDate? limitDateForMode_(NSString mode) { final _ret = - _lib._objc_msgSend_496(_id, _lib._sel_limitDateForMode_1, mode); - return NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_564(_id, _lib._sel_limitDateForMode_1, mode._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void acceptInputForMode_beforeDate_(NSRunLoopMode mode, NSDate? limitDate) { - return _lib._objc_msgSend_497( - _id, - _lib._sel_acceptInputForMode_beforeDate_1, - mode, - limitDate?._id ?? ffi.nullptr); + void acceptInputForMode_beforeDate_(NSString mode, NSDate limitDate) { + _lib._objc_msgSend_565(_id, _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, limitDate._id); } void run() { - return _lib._objc_msgSend_1(_id, _lib._sel_run1); + _lib._objc_msgSend_1(_id, _lib._sel_run1); } - void runUntilDate_(NSDate? limitDate) { - return _lib._objc_msgSend_472( - _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + void runUntilDate_(NSDate limitDate) { + _lib._objc_msgSend_540(_id, _lib._sel_runUntilDate_1, limitDate._id); } - bool runMode_beforeDate_(NSRunLoopMode mode, NSDate? limitDate) { - return _lib._objc_msgSend_498(_id, _lib._sel_runMode_beforeDate_1, mode, - limitDate?._id ?? ffi.nullptr); + bool runMode_beforeDate_(NSString mode, NSDate limitDate) { + return _lib._objc_msgSend_566( + _id, _lib._sel_runMode_beforeDate_1, mode._id, limitDate._id); } void configureAsServer() { - return _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); } - void performInModes_block_(NSArray? modes, ObjCBlock16 block) { - return _lib._objc_msgSend_499(_id, _lib._sel_performInModes_block_1, - modes?._id ?? ffi.nullptr, block._id); + void performInModes_block_(NSArray modes, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_567( + _id, _lib._sel_performInModes_block_1, modes._id, block._id); } - void performBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_465(_id, _lib._sel_performBlock_1, block._id); + void performBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_532(_id, _lib._sel_performBlock_1, block._id); } void performSelector_target_argument_order_modes_( ffi.Pointer aSelector, NSObject target, - NSObject arg, + NSObject? arg, int order, - NSArray? modes) { - return _lib._objc_msgSend_500( + NSArray modes) { + _lib._objc_msgSend_568( _id, _lib._sel_performSelector_target_argument_order_modes_1, aSelector, target._id, - arg._id, + arg?._id ?? ffi.nullptr, order, - modes?._id ?? ffi.nullptr); + modes._id); } void cancelPerformSelector_target_argument_( - ffi.Pointer aSelector, NSObject target, NSObject arg) { - return _lib._objc_msgSend_466( + ffi.Pointer aSelector, NSObject target, NSObject? arg) { + _lib._objc_msgSend_533( _id, _lib._sel_cancelPerformSelector_target_argument_1, aSelector, target._id, - arg._id); + arg?._id ?? ffi.nullptr); } void cancelPerformSelectorsWithTarget_(NSObject target) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); } + @override + NSRunLoop init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); + } + static NSRunLoop new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); return NSRunLoop._(_ret, _lib, retain: false, release: true); } + static NSRunLoop allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSRunLoop1, _lib._sel_allocWithZone_1, zone); + return NSRunLoop._(_ret, _lib, retain: false, release: true); + } + static NSRunLoop alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); return NSRunLoop._(_ret, _lib, retain: false, release: true); @@ -43973,18 +50044,18 @@ class NSRunLoop extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + _lib._objc_msgSend_15(_lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43999,33 +50070,29 @@ class NSRunLoop extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRunLoop1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSRunLoop1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRunLoop1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSRunLoop1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSRunLoop1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -44037,9 +50104,6 @@ class NSRunLoop extends NSObject { } } -typedef NSRunLoopMode = ffi.Pointer; -typedef CFRunLoopRef = ffi.Pointer<__CFRunLoop>; - final class __CFRunLoop extends ffi.Opaque {} class NSTimer extends NSObject { @@ -44065,23 +50129,23 @@ class NSTimer extends NSObject { } static NSTimer timerWithTimeInterval_invocation_repeats_( - AVFAudio _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_488( + AVFAudio _lib, double ti, NSInvocation invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_556( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_invocation_repeats_1, ti, - invocation?._id ?? ffi.nullptr, + invocation._id, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( - AVFAudio _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_488( + AVFAudio _lib, double ti, NSInvocation invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_556( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, ti, - invocation?._id ?? ffi.nullptr, + invocation._id, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } @@ -44091,15 +50155,15 @@ class NSTimer extends NSObject { double ti, NSObject aTarget, ffi.Pointer aSelector, - NSObject userInfo, + NSObject? userInfo, bool yesOrNo) { - final _ret = _lib._objc_msgSend_489( + final _ret = _lib._objc_msgSend_557( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, ti, aTarget._id, aSelector, - userInfo._id, + userInfo?._id ?? ffi.nullptr, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } @@ -44110,22 +50174,22 @@ class NSTimer extends NSObject { double ti, NSObject aTarget, ffi.Pointer aSelector, - NSObject userInfo, + NSObject? userInfo, bool yesOrNo) { - final _ret = _lib._objc_msgSend_489( + final _ret = _lib._objc_msgSend_557( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, ti, aTarget._id, aSelector, - userInfo._id, + userInfo?._id ?? ffi.nullptr, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSTimer timerWithTimeInterval_repeats_block_( - AVFAudio _lib, double interval, bool repeats, ObjCBlock17 block) { - final _ret = _lib._objc_msgSend_490( + static NSTimer timerWithTimeInterval_repeats_block_(AVFAudio _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_558( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_repeats_block_1, interval, @@ -44134,9 +50198,9 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSTimer scheduledTimerWithTimeInterval_repeats_block_( - AVFAudio _lib, double interval, bool repeats, ObjCBlock17 block) { - final _ret = _lib._objc_msgSend_490( + static NSTimer scheduledTimerWithTimeInterval_repeats_block_(AVFAudio _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_558( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, interval, @@ -44145,12 +50209,12 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: true, release: true); } - NSTimer initWithFireDate_interval_repeats_block_( - NSDate? date, double interval, bool repeats, ObjCBlock17 block) { - final _ret = _lib._objc_msgSend_491( + NSTimer initWithFireDate_interval_repeats_block_(NSDate date, double interval, + bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_559( _id, _lib._sel_initWithFireDate_interval_repeats_block_1, - date?._id ?? ffi.nullptr, + date._id, interval, repeats, block._id); @@ -44158,63 +50222,68 @@ class NSTimer extends NSObject { } NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( - NSDate? date, + NSDate date, double ti, NSObject t, ffi.Pointer s, - NSObject ui, + NSObject? ui, bool rep) { - final _ret = _lib._objc_msgSend_492( + final _ret = _lib._objc_msgSend_560( _id, _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, - date?._id ?? ffi.nullptr, + date._id, ti, t._id, s, - ui._id, + ui?._id ?? ffi.nullptr, rep); return NSTimer._(_ret, _lib, retain: true, release: true); } void fire() { - return _lib._objc_msgSend_1(_id, _lib._sel_fire1); + _lib._objc_msgSend_1(_id, _lib._sel_fire1); } - NSDate? get fireDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fireDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + NSDate get fireDate { + final _ret = _lib._objc_msgSend_172(_id, _lib._sel_fireDate1); + return NSDate._(_ret, _lib, retain: true, release: true); } - set fireDate(NSDate? value) { - _lib._objc_msgSend_493( - _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); + set fireDate(NSDate value) { + return _lib._objc_msgSend_561(_id, _lib._sel_setFireDate_1, value._id); } double get timeInterval { - return _lib._objc_msgSend_149(_id, _lib._sel_timeInterval1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeInterval1); } double get tolerance { - return _lib._objc_msgSend_149(_id, _lib._sel_tolerance1); + return _lib._objc_msgSend_165(_id, _lib._sel_tolerance1); } set tolerance(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setTolerance_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setTolerance_1, value); } void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } bool get valid { return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSObject get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get userInfo { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSTimer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTimer._(_ret, _lib, retain: true, release: true); } static NSTimer new1(AVFAudio _lib) { @@ -44222,6 +50291,12 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: false, release: true); } + static NSTimer allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTimer1, _lib._sel_allocWithZone_1, zone); + return NSTimer._(_ret, _lib, retain: false, release: true); + } + static NSTimer alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); return NSTimer._(_ret, _lib, retain: false, release: true); @@ -44231,18 +50306,18 @@ class NSTimer extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._objc_msgSend_15(_lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44257,33 +50332,29 @@ class NSTimer extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTimer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTimer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTimer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTimer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -44295,33 +50366,38 @@ class NSTimer extends NSObject { } } -void _ObjCBlock17_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock17_closureRegistry = {}; -int _ObjCBlock17_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { - final id = ++_ObjCBlock17_closureRegistryIndex; - _ObjCBlock17_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock17_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock17 extends _ObjCBlockBase { - ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock17.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -44329,38 +50405,70 @@ class ObjCBlock17 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock17_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock17.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTimer.fromFunction( + AVFAudio lib, void Function(NSTimer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock17_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) .cast(), - _ObjCBlock17_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTimer_registerClosure( + (ffi.Pointer arg0) => + fn(NSTimer._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTimer.listener(AVFAudio lib, void Function(NSTimer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTimer_registerClosure( + (ffi.Pointer arg0) => + fn(NSTimer._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSTimer arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSConnection extends NSObject { @@ -44386,129 +50494,139 @@ class NSConnection extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); } - NSDictionary? get statistics { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_statistics1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get statistics { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_statistics1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSArray allConnections(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSConnection1, _lib._sel_allConnections1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSConnection defaultConnection(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_504( + final _ret = _lib._objc_msgSend_572( _lib._class_NSConnection1, _lib._sel_defaultConnection1); return NSConnection._(_ret, _lib, retain: true, release: true); } - static NSConnection connectionWithRegisteredName_host_( - AVFAudio _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_159( + static NSConnection? connectionWithRegisteredName_host_( + AVFAudio _lib, NSString name, NSString? hostName) { + final _ret = _lib._objc_msgSend_573( _lib._class_NSConnection1, _lib._sel_connectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSConnection connectionWithRegisteredName_host_usingNameServer_( + static NSConnection? connectionWithRegisteredName_host_usingNameServer_( AVFAudio _lib, - NSString? name, + NSString name, NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_509( + NSPortNameServer server) { + final _ret = _lib._objc_msgSend_578( _lib._class_NSConnection1, _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + server._id); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( - AVFAudio _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_512( + static NSDistantObject? rootProxyForConnectionWithRegisteredName_host_( + AVFAudio _lib, NSString name, NSString? hostName) { + final _ret = _lib._objc_msgSend_583( _lib._class_NSConnection1, _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSDistantObject + static NSDistantObject? rootProxyForConnectionWithRegisteredName_host_usingNameServer_( AVFAudio _lib, - NSString? name, + NSString name, NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_513( + NSPortNameServer server) { + final _ret = _lib._objc_msgSend_584( _lib._class_NSConnection1, _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + server._id); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( - AVFAudio _lib, NSString? name, NSObject root, NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_514( + static NSConnection? serviceConnectionWithName_rootObject_usingNameServer_( + AVFAudio _lib, NSString name, NSObject root, NSPortNameServer server) { + final _ret = _lib._objc_msgSend_585( _lib._class_NSConnection1, _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, - name?._id ?? ffi.nullptr, + name._id, root._id, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + server._id); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSConnection serviceConnectionWithName_rootObject_( - AVFAudio _lib, NSString? name, NSObject root) { - final _ret = _lib._objc_msgSend_157( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_1, - name?._id ?? ffi.nullptr, - root._id); - return NSConnection._(_ret, _lib, retain: true, release: true); + static NSConnection? serviceConnectionWithName_rootObject_( + AVFAudio _lib, NSString name, NSObject root) { + final _ret = _lib._objc_msgSend_586(_lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_1, name._id, root._id); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } double get requestTimeout { - return _lib._objc_msgSend_149(_id, _lib._sel_requestTimeout1); + return _lib._objc_msgSend_165(_id, _lib._sel_requestTimeout1); } set requestTimeout(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setRequestTimeout_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setRequestTimeout_1, value); } double get replyTimeout { - return _lib._objc_msgSend_149(_id, _lib._sel_replyTimeout1); + return _lib._objc_msgSend_165(_id, _lib._sel_replyTimeout1); } set replyTimeout(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setReplyTimeout_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setReplyTimeout_1, value); } - NSObject get rootObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get rootObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_rootObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set rootObject(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setRootObject_1, value._id); + set rootObject(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setRootObject_1, value?._id ?? ffi.nullptr); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -44518,7 +50636,7 @@ class NSConnection extends NSObject { } set independentConversationQueueing(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setIndependentConversationQueueing_1, value); } @@ -44526,123 +50644,119 @@ class NSConnection extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSDistantObject? get rootProxy { - final _ret = _lib._objc_msgSend_515(_id, _lib._sel_rootProxy1); - return _ret.address == 0 - ? null - : NSDistantObject._(_ret, _lib, retain: true, release: true); + NSDistantObject get rootProxy { + final _ret = _lib._objc_msgSend_587(_id, _lib._sel_rootProxy1); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - void addRequestMode_(NSString? rmode) { - return _lib._objc_msgSend_186( - _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); + void addRequestMode_(NSString rmode) { + _lib._objc_msgSend_248(_id, _lib._sel_addRequestMode_1, rmode._id); } - void removeRequestMode_(NSString? rmode) { - return _lib._objc_msgSend_186( - _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); + void removeRequestMode_(NSString rmode) { + _lib._objc_msgSend_248(_id, _lib._sel_removeRequestMode_1, rmode._id); } - NSArray? get requestModes { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_requestModes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get requestModes { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_requestModes1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool registerName_(NSString? name) { - return _lib._objc_msgSend_59( + return _lib._objc_msgSend_588( _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); } - bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { - return _lib._objc_msgSend_516(_id, _lib._sel_registerName_withNameServer_1, - name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); + bool registerName_withNameServer_(NSString? name, NSPortNameServer server) { + return _lib._objc_msgSend_589(_id, _lib._sel_registerName_withNameServer_1, + name?._id ?? ffi.nullptr, server._id); } - static NSConnection connectionWithReceivePort_sendPort_( + static NSConnection? connectionWithReceivePort_sendPort_( AVFAudio _lib, NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_517( + final _ret = _lib._objc_msgSend_590( _lib._class_NSConnection1, _lib._sel_connectionWithReceivePort_sendPort_1, receivePort?._id ?? ffi.nullptr, sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSObject currentConversation(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_2( + static NSObject? currentConversation(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_17( _lib._class_NSConnection1, _lib._sel_currentConversation1); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSConnection initWithReceivePort_sendPort_( + NSConnection? initWithReceivePort_sendPort_( NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_517( + final _ret = _lib._objc_msgSend_590( _id, _lib._sel_initWithReceivePort_sendPort_1, receivePort?._id ?? ffi.nullptr, sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - NSPort? get sendPort { - final _ret = _lib._objc_msgSend_485(_id, _lib._sel_sendPort1); return _ret.address == 0 ? null - : NSPort._(_ret, _lib, retain: true, release: true); + : NSConnection._(_ret, _lib, retain: true, release: true); } - NSPort? get receivePort { - final _ret = _lib._objc_msgSend_485(_id, _lib._sel_receivePort1); - return _ret.address == 0 - ? null - : NSPort._(_ret, _lib, retain: true, release: true); + NSPort get sendPort { + final _ret = _lib._objc_msgSend_553(_id, _lib._sel_sendPort1); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + NSPort get receivePort { + final _ret = _lib._objc_msgSend_553(_id, _lib._sel_receivePort1); + return NSPort._(_ret, _lib, retain: true, release: true); } void enableMultipleThreads() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); + _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); } bool get multipleThreadsEnabled { return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); } - void addRunLoop_(NSRunLoop? runloop) { - return _lib._objc_msgSend_518( - _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); + void addRunLoop_(NSRunLoop runloop) { + _lib._objc_msgSend_591(_id, _lib._sel_addRunLoop_1, runloop._id); } - void removeRunLoop_(NSRunLoop? runloop) { - return _lib._objc_msgSend_518( - _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); + void removeRunLoop_(NSRunLoop runloop) { + _lib._objc_msgSend_591(_id, _lib._sel_removeRunLoop_1, runloop._id); } void runInNewThread() { - return _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); + _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); } - NSArray? get remoteObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_remoteObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get remoteObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_remoteObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get localObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_localObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get localObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_localObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void dispatchWithComponents_(NSArray components) { + _lib._objc_msgSend_472( + _id, _lib._sel_dispatchWithComponents_1, components._id); } - void dispatchWithComponents_(NSArray? components) { - return _lib._objc_msgSend_412(_id, _lib._sel_dispatchWithComponents_1, - components?._id ?? ffi.nullptr); + @override + NSConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSConnection._(_ret, _lib, retain: true, release: true); } static NSConnection new1(AVFAudio _lib) { @@ -44651,6 +50765,12 @@ class NSConnection extends NSObject { return NSConnection._(_ret, _lib, retain: false, release: true); } + static NSConnection allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSConnection1, _lib._sel_allocWithZone_1, zone); + return NSConnection._(_ret, _lib, retain: false, release: true); + } + static NSConnection alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); @@ -44661,18 +50781,18 @@ class NSConnection extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSConnection1, + _lib._objc_msgSend_15(_lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44687,33 +50807,29 @@ class NSConnection extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -44750,31 +50866,39 @@ class NSPortNameServer extends NSObject { } static NSPortNameServer systemDefaultPortNameServer(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_505( + final _ret = _lib._objc_msgSend_574( _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); return NSPortNameServer._(_ret, _lib, retain: true, release: true); } - NSPort portForName_(NSString? name) { - final _ret = _lib._objc_msgSend_506( - _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + NSPort? portForName_(NSString name) { + final _ret = _lib._objc_msgSend_575(_id, _lib._sel_portForName_1, name._id); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - NSPort portForName_host_(NSString? name, NSString? host) { - final _ret = _lib._objc_msgSend_507(_id, _lib._sel_portForName_host_1, - name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + NSPort? portForName_host_(NSString name, NSString? host) { + final _ret = _lib._objc_msgSend_576( + _id, _lib._sel_portForName_host_1, name._id, host?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - bool registerPort_name_(NSPort? port, NSString? name) { - return _lib._objc_msgSend_508(_id, _lib._sel_registerPort_name_1, - port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); + bool registerPort_name_(NSPort port, NSString name) { + return _lib._objc_msgSend_577( + _id, _lib._sel_registerPort_name_1, port._id, name._id); } - bool removePortForName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); + bool removePortForName_(NSString name) { + return _lib._objc_msgSend_64(_id, _lib._sel_removePortForName_1, name._id); + } + + @override + NSPortNameServer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); } static NSPortNameServer new1(AVFAudio _lib) { @@ -44783,6 +50907,13 @@ class NSPortNameServer extends NSObject { return NSPortNameServer._(_ret, _lib, retain: false, release: true); } + static NSPortNameServer allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPortNameServer1, _lib._sel_allocWithZone_1, zone); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); + } + static NSPortNameServer alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); @@ -44793,18 +50924,18 @@ class NSPortNameServer extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, + _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44819,33 +50950,29 @@ class NSPortNameServer extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortNameServer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPortNameServer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortNameServer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPortNameServer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPortNameServer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSPortNameServer1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSPortNameServer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -44881,62 +51008,54 @@ class NSDistantObject extends NSProxy { obj._lib._class_NSDistantObject1); } - static NSObject proxyWithTarget_connection_( - AVFAudio _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? proxyWithTarget_connection_( + AVFAudio _lib, NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_580(_lib._class_NSDistantObject1, + _lib._sel_proxyWithTarget_connection_1, target._id, connection._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithTarget_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _id, - _lib._sel_initWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + NSDistantObject? initWithTarget_connection_( + NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_580( + _id, _lib._sel_initWithTarget_connection_1, target._id, connection._id); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } static NSObject proxyWithLocal_connection_( - AVFAudio _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); + AVFAudio _lib, NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_581(_lib._class_NSDistantObject1, + _lib._sel_proxyWithLocal_connection_1, target._id, connection._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSDistantObject initWithLocal_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _id, - _lib._sel_initWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); + NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_581( + _id, _lib._sel_initWithLocal_connection_1, target._id, connection._id); return NSDistantObject._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + NSDistantObject? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } void setProtocolForProxy_(Protocol? proto) { - return _lib._objc_msgSend_511( + _lib._objc_msgSend_582( _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); } - NSConnection? get connectionForProxy { - final _ret = _lib._objc_msgSend_504(_id, _lib._sel_connectionForProxy1); - return _ret.address == 0 - ? null - : NSConnection._(_ret, _lib, retain: true, release: true); + NSConnection get connectionForProxy { + final _ret = _lib._objc_msgSend_572(_id, _lib._sel_connectionForProxy1); + return NSConnection._(_ret, _lib, retain: true, release: true); } static NSObject alloc(AVFAudio _lib) { @@ -44979,7 +51098,7 @@ class NSProxy extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: false, release: true); } - static NSObject allocWithZone_(AVFAudio _lib, ffi.Pointer zone) { + static NSObject allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); return NSObject._(_ret, _lib, retain: false, release: true); @@ -44990,37 +51109,34 @@ class NSProxy extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - void forwardInvocation_(NSInvocation? invocation) { - return _lib._objc_msgSend_372( - _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation invocation) { + _lib._objc_msgSend_421(_id, _lib._sel_forwardInvocation_1, invocation._id); } - NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { - final _ret = _lib._objc_msgSend_373( + NSMethodSignature? methodSignatureForSelector_(ffi.Pointer sel) { + final _ret = _lib._objc_msgSend_579( _id, _lib._sel_methodSignatureForSelector_1, sel); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); } void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get debugDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get debugDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } static bool respondsToSelector_( @@ -45063,57 +51179,59 @@ class NSClassDescription extends NSObject { } static void registerClassDescription_forClass_( - AVFAudio _lib, NSClassDescription? description, NSObject aClass) { - return _lib._objc_msgSend_523( + AVFAudio _lib, NSClassDescription description, NSObject aClass) { + _lib._objc_msgSend_598( _lib._class_NSClassDescription1, _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, + description._id, aClass._id); } static void invalidateClassDescriptionCache(AVFAudio _lib) { - return _lib._objc_msgSend_1(_lib._class_NSClassDescription1, + _lib._objc_msgSend_1(_lib._class_NSClassDescription1, _lib._sel_invalidateClassDescriptionCache1); } - static NSClassDescription classDescriptionForClass_( + static NSClassDescription? classDescriptionForClass_( AVFAudio _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_524(_lib._class_NSClassDescription1, + final _ret = _lib._objc_msgSend_599(_lib._class_NSClassDescription1, _lib._sel_classDescriptionForClass_1, aClass._id); - return NSClassDescription._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSClassDescription._(_ret, _lib, retain: true, release: true); } @override - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get attributeKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_attributeKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } @override - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toOneRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toManyRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } @override - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toManyRelationshipKeys1); + NSString? inverseForRelationshipKey_(NSString relationshipKey) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_inverseForRelationshipKey_1, relationshipKey._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } @override - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } static NSClassDescription new1(AVFAudio _lib) { @@ -45122,6 +51240,13 @@ class NSClassDescription extends NSObject { return NSClassDescription._(_ret, _lib, retain: false, release: true); } + static NSClassDescription allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSClassDescription._(_ret, _lib, retain: false, release: true); + } + static NSClassDescription alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); @@ -45132,18 +51257,18 @@ class NSClassDescription extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45158,33 +51283,29 @@ class NSClassDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSClassDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSClassDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSClassDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSClassDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSClassDescription1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45221,66 +51342,68 @@ class NSScriptObjectSpecifier extends NSObject { obj._lib._class_NSScriptObjectSpecifier1); } - static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( - AVFAudio _lib, NSAppleEventDescriptor? descriptor) { - final _ret = _lib._objc_msgSend_548( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_objectSpecifierWithDescriptor_1, - descriptor?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + static NSScriptObjectSpecifier? objectSpecifierWithDescriptor_( + AVFAudio _lib, NSAppleEventDescriptor descriptor) { + final _ret = _lib._objc_msgSend_624(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_objectSpecifierWithDescriptor_1, descriptor._id); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier initWithContainerSpecifier_key_( - NSScriptObjectSpecifier? container, NSString? property) { - final _ret = _lib._objc_msgSend_549( + NSScriptObjectSpecifier container, NSString property) { + final _ret = _lib._objc_msgSend_625( _id, _lib._sel_initWithContainerSpecifier_key_1, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); + container._id, + property._id); return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier initWithContainerClassDescription_containerSpecifier_key_( - NSScriptClassDescription? classDesc, + NSScriptClassDescription classDesc, NSScriptObjectSpecifier? container, - NSString? property) { - final _ret = _lib._objc_msgSend_566( + NSString property) { + final _ret = _lib._objc_msgSend_645( _id, _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, - classDesc?._id ?? ffi.nullptr, + classDesc._id, container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); + property._id); return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier? get childSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_childSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_childSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } set childSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_557( + return _lib._objc_msgSend_633( _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); } NSScriptObjectSpecifier? get containerSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_containerSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_containerSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } set containerSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_557( + return _lib._objc_msgSend_633( _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); } @@ -45289,7 +51412,7 @@ class NSScriptObjectSpecifier extends NSObject { } set containerIsObjectBeingTested(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setContainerIsObjectBeingTested_1, value); } @@ -45299,91 +51422,107 @@ class NSScriptObjectSpecifier extends NSObject { } set containerIsRangeContainerObject(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setContainerIsRangeContainerObject_1, value); } - NSString? get key { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get key { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_key1); + return NSString._(_ret, _lib, retain: true, release: true); } - set key(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); + set key(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setKey_1, value._id); } NSScriptClassDescription? get containerClassDescription { final _ret = - _lib._objc_msgSend_552(_id, _lib._sel_containerClassDescription1); + _lib._objc_msgSend_628(_id, _lib._sel_containerClassDescription1); return _ret.address == 0 ? null : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } set containerClassDescription(NSScriptClassDescription? value) { - _lib._objc_msgSend_567(_id, _lib._sel_setContainerClassDescription_1, + return _lib._objc_msgSend_647(_id, _lib._sel_setContainerClassDescription_1, value?._id ?? ffi.nullptr); } NSScriptClassDescription? get keyClassDescription { - final _ret = _lib._objc_msgSend_552(_id, _lib._sel_keyClassDescription1); + final _ret = _lib._objc_msgSend_628(_id, _lib._sel_keyClassDescription1); return _ret.address == 0 ? null : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( - NSObject container, ffi.Pointer count) { - return _lib._objc_msgSend_568( + ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( + NSObject container, ffi.Pointer count) { + return _lib._objc_msgSend_648( _id, _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, container._id, count); } - NSObject objectsByEvaluatingWithContainers_(NSObject containers) { + NSObject? objectsByEvaluatingWithContainers_(NSObject containers) { final _ret = _lib._objc_msgSend_16( _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get objectsByEvaluatingSpecifier { + NSObject? get objectsByEvaluatingSpecifier { final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_17(_id, _lib._sel_objectsByEvaluatingSpecifier1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get evaluationErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_evaluationErrorNumber1); } set evaluationErrorNumber(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setEvaluationErrorNumber_1, value); + return _lib._objc_msgSend_635( + _id, _lib._sel_setEvaluationErrorNumber_1, value); } NSScriptObjectSpecifier? get evaluationErrorSpecifier { final _ret = - _lib._objc_msgSend_556(_id, _lib._sel_evaluationErrorSpecifier1); + _lib._objc_msgSend_632(_id, _lib._sel_evaluationErrorSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor? get descriptor { - final _ret = _lib._objc_msgSend_526(_id, _lib._sel_descriptor1); + final _ret = _lib._objc_msgSend_636(_id, _lib._sel_descriptor1); return _ret.address == 0 ? null : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } + @override + NSScriptObjectSpecifier init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + static NSScriptObjectSpecifier new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } + static NSScriptObjectSpecifier allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_allocWithZone_1, zone); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + } + static NSScriptObjectSpecifier alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); @@ -45394,18 +51533,18 @@ class NSScriptObjectSpecifier extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, + _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45420,33 +51559,29 @@ class NSScriptObjectSpecifier extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptObjectSpecifier1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptObjectSpecifier1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptObjectSpecifier1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45484,88 +51619,92 @@ class NSAppleEventDescriptor extends NSObject { } static NSAppleEventDescriptor nullDescriptor(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_601( _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( + static NSAppleEventDescriptor? descriptorWithDescriptorType_bytes_length_( AVFAudio _lib, int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_527( + final _ret = _lib._objc_msgSend_602( _lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithDescriptorType_bytes_length_1, descriptorType, bytes, byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_data_( + static NSAppleEventDescriptor? descriptorWithDescriptorType_data_( AVFAudio _lib, int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_528( + final _ret = _lib._objc_msgSend_603( _lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithDescriptorType_data_1, descriptorType, data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithBoolean_( AVFAudio _lib, int boolean) { - final _ret = _lib._objc_msgSend_529(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_604(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithBoolean_1, boolean); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithEnumCode_( AVFAudio _lib, int enumerator) { - final _ret = _lib._objc_msgSend_530(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_605(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithEnumCode_1, enumerator); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithInt32_( AVFAudio _lib, int signedInt) { - final _ret = _lib._objc_msgSend_531(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_606(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithInt32_1, signedInt); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithDouble_( AVFAudio _lib, double doubleValue) { - final _ret = _lib._objc_msgSend_532(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_607(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithDouble_1, doubleValue); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithTypeCode_( AVFAudio _lib, int typeCode) { - final _ret = _lib._objc_msgSend_530(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_605(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithTypeCode_1, typeCode); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithString_( - AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_533(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_608(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithString_1, string._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithDate_( - AVFAudio _lib, NSDate? date) { - final _ret = _lib._objc_msgSend_534(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); + AVFAudio _lib, NSDate date) { + final _ret = _lib._objc_msgSend_609(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDate_1, date._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithFileURL_( - AVFAudio _lib, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_535(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); + AVFAudio _lib, NSURL fileURL) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithFileURL_1, fileURL._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @@ -45577,7 +51716,7 @@ class NSAppleEventDescriptor extends NSObject { NSAppleEventDescriptor? targetDescriptor, int returnID, int transactionID) { - final _ret = _lib._objc_msgSend_536( + final _ret = _lib._objc_msgSend_611( _lib._class_NSAppleEventDescriptor1, _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, eventClass, @@ -45589,73 +51728,73 @@ class NSAppleEventDescriptor extends NSObject { } static NSAppleEventDescriptor listDescriptor(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_601( _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor recordDescriptor(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_601( _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor currentProcessDescriptor(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_526(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_601(_lib._class_NSAppleEventDescriptor1, _lib._sel_currentProcessDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithProcessIdentifier_( AVFAudio _lib, int processIdentifier) { - final _ret = _lib._objc_msgSend_531(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_606(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithBundleIdentifier_( - AVFAudio _lib, NSString? bundleIdentifier) { - final _ret = _lib._objc_msgSend_533( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBundleIdentifier_1, - bundleIdentifier?._id ?? ffi.nullptr); + AVFAudio _lib, NSString bundleIdentifier) { + final _ret = _lib._objc_msgSend_608(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBundleIdentifier_1, bundleIdentifier._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithApplicationURL_( - AVFAudio _lib, NSURL? applicationURL) { - final _ret = _lib._objc_msgSend_535( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithApplicationURL_1, - applicationURL?._id ?? ffi.nullptr); + AVFAudio _lib, NSURL applicationURL) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithApplicationURL_1, applicationURL._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { final _ret = - _lib._objc_msgSend_537(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); + _lib._objc_msgSend_612(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - NSAppleEventDescriptor initWithDescriptorType_bytes_length_( + NSAppleEventDescriptor? initWithDescriptorType_bytes_length_( int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_538( + final _ret = _lib._objc_msgSend_613( _id, _lib._sel_initWithDescriptorType_bytes_length_1, descriptorType, bytes, byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor initWithDescriptorType_data_( + NSAppleEventDescriptor? initWithDescriptorType_data_( int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_539( + final _ret = _lib._objc_msgSend_614( _id, _lib._sel_initWithDescriptorType_data_1, descriptorType, data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor @@ -45665,7 +51804,7 @@ class NSAppleEventDescriptor extends NSObject { NSAppleEventDescriptor? targetDescriptor, int returnID, int transactionID) { - final _ret = _lib._objc_msgSend_540( + final _ret = _lib._objc_msgSend_615( _id, _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, eventClass, @@ -45687,121 +51826,119 @@ class NSAppleEventDescriptor extends NSObject { } ffi.Pointer get aeDesc { - return _lib._objc_msgSend_541(_id, _lib._sel_aeDesc1); + return _lib._objc_msgSend_616(_id, _lib._sel_aeDesc1); } int get descriptorType { - return _lib._objc_msgSend_191(_id, _lib._sel_descriptorType1); + return _lib._objc_msgSend_214(_id, _lib._sel_descriptorType1); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } int get booleanValue { - return _lib._objc_msgSend_210(_id, _lib._sel_booleanValue1); + return _lib._objc_msgSend_234(_id, _lib._sel_booleanValue1); } int get enumCodeValue { - return _lib._objc_msgSend_191(_id, _lib._sel_enumCodeValue1); + return _lib._objc_msgSend_214(_id, _lib._sel_enumCodeValue1); } int get int32Value { - return _lib._objc_msgSend_213(_id, _lib._sel_int32Value1); + return _lib._objc_msgSend_237(_id, _lib._sel_int32Value1); } double get doubleValue { - return _lib._objc_msgSend_149(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_165(_id, _lib._sel_doubleValue1); } int get typeCodeValue { - return _lib._objc_msgSend_191(_id, _lib._sel_typeCodeValue1); + return _lib._objc_msgSend_214(_id, _lib._sel_typeCodeValue1); } NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_stringValue1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDate? get dateValue { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_dateValue1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_dateValue1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } NSURL? get fileURLValue { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileURLValue1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } int get eventClass { - return _lib._objc_msgSend_191(_id, _lib._sel_eventClass1); + return _lib._objc_msgSend_214(_id, _lib._sel_eventClass1); } int get eventID { - return _lib._objc_msgSend_191(_id, _lib._sel_eventID1); + return _lib._objc_msgSend_214(_id, _lib._sel_eventID1); } int get returnID { - return _lib._objc_msgSend_211(_id, _lib._sel_returnID1); + return _lib._objc_msgSend_235(_id, _lib._sel_returnID1); } int get transactionID { - return _lib._objc_msgSend_213(_id, _lib._sel_transactionID1); + return _lib._objc_msgSend_237(_id, _lib._sel_transactionID1); } void setParamDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_542( - _id, - _lib._sel_setParamDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, - keyword); + NSAppleEventDescriptor descriptor, int keyword) { + _lib._objc_msgSend_617(_id, _lib._sel_setParamDescriptor_forKeyword_1, + descriptor._id, keyword); } - NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_530( + NSAppleEventDescriptor? paramDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_618( _id, _lib._sel_paramDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void removeParamDescriptorWithKeyword_(int keyword) { - return _lib._objc_msgSend_543( + _lib._objc_msgSend_619( _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); } void setAttributeDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_542( - _id, - _lib._sel_setAttributeDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, - keyword); + NSAppleEventDescriptor descriptor, int keyword) { + _lib._objc_msgSend_617(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, + descriptor._id, keyword); } - NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_530( + NSAppleEventDescriptor? attributeDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_618( _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, + NSAppleEventDescriptor? sendEventWithOptions_timeout_error_(int sendOptions, double timeoutInSeconds, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_544( + final _ret = _lib._objc_msgSend_620( _id, _lib._sel_sendEventWithOptions_timeout_error_1, sendOptions, timeoutInSeconds, error); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } bool get isRecordDescriptor { @@ -45809,51 +51946,61 @@ class NSAppleEventDescriptor extends NSObject { } int get numberOfItems { - return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); + return _lib._objc_msgSend_83(_id, _lib._sel_numberOfItems1); } - void insertDescriptor_atIndex_( - NSAppleEventDescriptor? descriptor, int index) { - return _lib._objc_msgSend_545(_id, _lib._sel_insertDescriptor_atIndex_1, - descriptor?._id ?? ffi.nullptr, index); + void insertDescriptor_atIndex_(NSAppleEventDescriptor descriptor, int index) { + _lib._objc_msgSend_621( + _id, _lib._sel_insertDescriptor_atIndex_1, descriptor._id, index); } - NSAppleEventDescriptor descriptorAtIndex_(int index) { + NSAppleEventDescriptor? descriptorAtIndex_(int index) { final _ret = - _lib._objc_msgSend_546(_id, _lib._sel_descriptorAtIndex_1, index); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_622(_id, _lib._sel_descriptorAtIndex_1, index); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void removeDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_374( - _id, _lib._sel_removeDescriptorAtIndex_1, index); + _lib._objc_msgSend_423(_id, _lib._sel_removeDescriptorAtIndex_1, index); } void setDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_542(_id, _lib._sel_setDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); + NSAppleEventDescriptor descriptor, int keyword) { + _lib._objc_msgSend_617( + _id, _lib._sel_setDescriptor_forKeyword_1, descriptor._id, keyword); } - NSAppleEventDescriptor descriptorForKeyword_(int keyword) { + NSAppleEventDescriptor? descriptorForKeyword_(int keyword) { final _ret = - _lib._objc_msgSend_530(_id, _lib._sel_descriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_618(_id, _lib._sel_descriptorForKeyword_1, keyword); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void removeDescriptorWithKeyword_(int keyword) { - return _lib._objc_msgSend_543( + _lib._objc_msgSend_619( _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); } int keywordForDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_547( + return _lib._objc_msgSend_623( _id, _lib._sel_keywordForDescriptorAtIndex_1, index); } - NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { - final _ret = _lib._objc_msgSend_530( + NSAppleEventDescriptor? coerceToDescriptorType_(int descriptorType) { + final _ret = _lib._objc_msgSend_618( _id, _lib._sel_coerceToDescriptorType_1, descriptorType); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + @override + NSAppleEventDescriptor init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @@ -45863,6 +52010,13 @@ class NSAppleEventDescriptor extends NSObject { return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } + static NSAppleEventDescriptor allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAppleEventDescriptor1, _lib._sel_allocWithZone_1, zone); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + } + static NSAppleEventDescriptor alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); @@ -45873,18 +52027,18 @@ class NSAppleEventDescriptor extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, + _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45899,33 +52053,29 @@ class NSAppleEventDescriptor extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSAppleEventDescriptor1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSAppleEventDescriptor1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSAppleEventDescriptor1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSAppleEventDescriptor1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45937,34 +52087,16 @@ class NSAppleEventDescriptor extends NSObject { } } -typedef DescType = ResType; -typedef ResType = FourCharCode; -typedef Boolean = ffi.UnsignedChar; -typedef SInt32 = ffi.Int; -typedef AEEventClass = FourCharCode; -typedef AEEventID = FourCharCode; -typedef AEReturnID = SInt16; -typedef SInt16 = ffi.Short; -typedef AETransactionID = SInt32; -typedef pid_t = __darwin_pid_t; -typedef __darwin_pid_t = __int32_t; -typedef __int32_t = ffi.Int; - @ffi.Packed(2) final class AEDesc extends ffi.Struct { - @DescType() + @ffi.UnsignedInt() external int descriptorType; - external AEDataStorage dataHandle; + external ffi.Pointer> dataHandle; } -typedef AEDataStorage = ffi.Pointer; -typedef AEDataStorageType = ffi.Pointer; - final class OpaqueAEDataStorageType extends ffi.Opaque {} -typedef AEKeyword = FourCharCode; - abstract class NSAppleEventSendOptions { static const int NSAppleEventSendNoReply = 1; static const int NSAppleEventSendQueueReply = 2; @@ -46004,159 +52136,175 @@ class NSScriptClassDescription extends NSClassDescription { obj._lib._class_NSScriptClassDescription1); } - static NSScriptClassDescription classDescriptionForClass_( + static NSScriptClassDescription? classDescriptionForClass_( AVFAudio _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_550(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_626(_lib._class_NSScriptClassDescription1, _lib._sel_classDescriptionForClass_1, aClass._id); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription initWithSuiteName_className_dictionary_( - NSString? suiteName, - NSString? className, - NSDictionary? classDeclaration) { - final _ret = _lib._objc_msgSend_551( + NSScriptClassDescription? initWithSuiteName_className_dictionary_( + NSString suiteName, NSString className, NSDictionary? classDeclaration) { + final _ret = _lib._objc_msgSend_627( _id, _lib._sel_initWithSuiteName_className_dictionary_1, - suiteName?._id ?? ffi.nullptr, - className?._id ?? ffi.nullptr, + suiteName._id, + className._id, classDeclaration?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suiteName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_className1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get implementationClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_implementationClassName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSScriptClassDescription? get superclassDescription { - final _ret = _lib._objc_msgSend_552(_id, _lib._sel_superclassDescription1); + final _ret = _lib._objc_msgSend_628(_id, _lib._sel_superclassDescription1); return _ret.address == 0 ? null : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } int get appleEventCode { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventCode1); } bool matchesAppleEventCode_(int appleEventCode) { - return _lib._objc_msgSend_173( + return _lib._objc_msgSend_194( _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); } - bool supportsCommand_(NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_562(_id, _lib._sel_supportsCommand_1, - commandDescription?._id ?? ffi.nullptr); + bool supportsCommand_(NSScriptCommandDescription commandDescription) { + return _lib._objc_msgSend_641( + _id, _lib._sel_supportsCommand_1, commandDescription._id); } ffi.Pointer selectorForCommand_( - NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_563(_id, _lib._sel_selectorForCommand_1, - commandDescription?._id ?? ffi.nullptr); + NSScriptCommandDescription commandDescription) { + return _lib._objc_msgSend_642( + _id, _lib._sel_selectorForCommand_1, commandDescription._id); } - NSString typeForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? typeForKey_(NSString key) { + final _ret = _lib._objc_msgSend_186(_id, _lib._sel_typeForKey_1, key._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription classDescriptionForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_564( - _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription? classDescriptionForKey_(NSString key) { + final _ret = _lib._objc_msgSend_643( + _id, _lib._sel_classDescriptionForKey_1, key._id); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - int appleEventCodeForKey_(NSString? key) { - return _lib._objc_msgSend_553( - _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); + int appleEventCodeForKey_(NSString key) { + return _lib._objc_msgSend_629( + _id, _lib._sel_appleEventCodeForKey_1, key._id); } - NSString keyWithAppleEventCode_(int appleEventCode) { - final _ret = _lib._objc_msgSend_565( + NSString? keyWithAppleEventCode_(int appleEventCode) { + final _ret = _lib._objc_msgSend_644( _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get defaultSubcontainerAttributeKey { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); + _lib._objc_msgSend_44(_id, _lib._sel_defaultSubcontainerAttributeKey1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { - return _lib._objc_msgSend_59( + bool isLocationRequiredToCreateForKey_(NSString toManyRelationshipKey) { + return _lib._objc_msgSend_64( _id, _lib._sel_isLocationRequiredToCreateForKey_1, - toManyRelationshipKey?._id ?? ffi.nullptr); + toManyRelationshipKey._id); } - bool hasPropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); + bool hasPropertyForKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_hasPropertyForKey_1, key._id); } - bool hasOrderedToManyRelationshipForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasOrderedToManyRelationshipForKey_1, - key?._id ?? ffi.nullptr); + bool hasOrderedToManyRelationshipForKey_(NSString key) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasOrderedToManyRelationshipForKey_1, key._id); } - bool hasReadablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); + bool hasReadablePropertyForKey_(NSString key) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasReadablePropertyForKey_1, key._id); } - bool hasWritablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); + bool hasWritablePropertyForKey_(NSString key) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasWritablePropertyForKey_1, key._id); } - bool isReadOnlyKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); + bool isReadOnlyKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_isReadOnlyKey_1, key._id); } static void registerClassDescription_forClass_( - AVFAudio _lib, NSClassDescription? description, NSObject aClass) { - return _lib._objc_msgSend_523( + AVFAudio _lib, NSClassDescription description, NSObject aClass) { + _lib._objc_msgSend_598( _lib._class_NSScriptClassDescription1, _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, + description._id, aClass._id); } static void invalidateClassDescriptionCache(AVFAudio _lib) { - return _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, + _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, _lib._sel_invalidateClassDescriptionCache1); } + @override + NSScriptClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + static NSScriptClassDescription new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptClassDescription1, _lib._sel_new1); return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } + static NSScriptClassDescription allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + } + static NSScriptClassDescription alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); @@ -46167,18 +52315,18 @@ class NSScriptClassDescription extends NSClassDescription { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46193,33 +52341,29 @@ class NSScriptClassDescription extends NSClassDescription { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptClassDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptClassDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptClassDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptClassDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -46262,99 +52406,93 @@ class NSScriptCommandDescription extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( - NSString? suiteName, - NSString? commandName, + NSScriptCommandDescription? initWithSuiteName_commandName_dictionary_( + NSString suiteName, + NSString commandName, NSDictionary? commandDeclaration) { - final _ret = _lib._objc_msgSend_551( + final _ret = _lib._objc_msgSend_627( _id, _lib._sel_initWithSuiteName_commandName_dictionary_1, - suiteName?._id ?? ffi.nullptr, - commandName?._id ?? ffi.nullptr, + suiteName._id, + commandName._id, commandDeclaration?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); - } - - NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); - } - - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); } - NSString? get commandName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); + NSScriptCommandDescription? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); + } + + NSString get suiteName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_suiteName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get commandName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_commandName1); + return NSString._(_ret, _lib, retain: true, release: true); } int get appleEventClassCode { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventClassCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventClassCode1); } int get appleEventCode { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventCode1); } - NSString? get commandClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get commandClassName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_commandClassName1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get returnType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_returnType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get appleEventCodeForReturnType { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventCodeForReturnType1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventCodeForReturnType1); } - NSArray? get argumentNames { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_argumentNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get argumentNames { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_argumentNames1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString typeForArgumentWithName_(NSString? argumentName) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? typeForArgumentWithName_(NSString argumentName) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_typeForArgumentWithName_1, argumentName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int appleEventCodeForArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_553( - _id, - _lib._sel_appleEventCodeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + int appleEventCodeForArgumentWithName_(NSString argumentName) { + return _lib._objc_msgSend_629( + _id, _lib._sel_appleEventCodeForArgumentWithName_1, argumentName._id); } - bool isOptionalArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + bool isOptionalArgumentWithName_(NSString argumentName) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isOptionalArgumentWithName_1, argumentName._id); } NSScriptCommand createCommandInstance() { - final _ret = _lib._objc_msgSend_560(_id, _lib._sel_createCommandInstance1); + final _ret = _lib._objc_msgSend_639(_id, _lib._sel_createCommandInstance1); return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer zone) { - final _ret = _lib._objc_msgSend_561( + NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_640( _id, _lib._sel_createCommandInstanceWithZone_1, zone); return NSScriptCommand._(_ret, _lib, retain: true, release: true); } @@ -46366,6 +52504,14 @@ class NSScriptCommandDescription extends NSObject { retain: false, release: true); } + static NSScriptCommandDescription allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSScriptCommandDescription1, + _lib._sel_allocWithZone_1, zone); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); + } + static NSScriptCommandDescription alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); @@ -46377,18 +52523,18 @@ class NSScriptCommandDescription extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, + _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46403,33 +52549,29 @@ class NSScriptCommandDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommandDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptCommandDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommandDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptCommandDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptCommandDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptCommandDescription1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptCommandDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -46466,65 +52608,71 @@ class NSScriptCommand extends NSObject { } NSScriptCommand initWithCommandDescription_( - NSScriptCommandDescription? commandDef) { - final _ret = _lib._objc_msgSend_554(_id, - _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommand initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + NSScriptCommandDescription commandDef) { + final _ret = _lib._objc_msgSend_630( + _id, _lib._sel_initWithCommandDescription_1, commandDef._id); return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription? get commandDescription { - final _ret = _lib._objc_msgSend_555(_id, _lib._sel_commandDescription1); + NSScriptCommand? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); return _ret.address == 0 ? null - : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); + : NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSObject get directParameter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSScriptCommandDescription get commandDescription { + final _ret = _lib._objc_msgSend_631(_id, _lib._sel_commandDescription1); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); + } + + NSObject? get directParameter { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_directParameter1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set directParameter(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setDirectParameter_1, value._id); + set directParameter(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setDirectParameter_1, value?._id ?? ffi.nullptr); } NSScriptObjectSpecifier? get receiversSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_receiversSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_receiversSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } set receiversSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_557( + return _lib._objc_msgSend_633( _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); } - NSObject get evaluatedReceivers { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get evaluatedReceivers { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_evaluatedReceivers1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get arguments { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_arguments1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_arguments1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set arguments(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } NSDictionary? get evaluatedArguments { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_evaluatedArguments1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_evaluatedArguments1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -46534,27 +52682,31 @@ class NSScriptCommand extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); } - NSObject performDefaultImplementation() { + NSObject? performDefaultImplementation() { final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_17(_id, _lib._sel_performDefaultImplementation1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject executeCommand() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? executeCommand() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_executeCommand1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get scriptErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_scriptErrorNumber1); } set scriptErrorNumber(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setScriptErrorNumber_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setScriptErrorNumber_1, value); } NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_636( _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); return _ret.address == 0 ? null @@ -46562,14 +52714,14 @@ class NSScriptCommand extends NSObject { } set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { - _lib._objc_msgSend_559( + return _lib._objc_msgSend_637( _id, _lib._sel_setScriptErrorOffendingObjectDescriptor_1, value?._id ?? ffi.nullptr); } NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_636( _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); return _ret.address == 0 ? null @@ -46577,44 +52729,52 @@ class NSScriptCommand extends NSObject { } set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { - _lib._objc_msgSend_559( + return _lib._objc_msgSend_637( _id, _lib._sel_setScriptErrorExpectedTypeDescriptor_1, value?._id ?? ffi.nullptr); } NSString? get scriptErrorString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scriptErrorString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set scriptErrorString(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); } - static NSScriptCommand currentCommand(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_560( + static NSScriptCommand? currentCommand(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_638( _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSScriptCommand._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor? get appleEvent { - final _ret = _lib._objc_msgSend_526(_id, _lib._sel_appleEvent1); + final _ret = _lib._objc_msgSend_636(_id, _lib._sel_appleEvent1); return _ret.address == 0 ? null : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void suspendExecution() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); } - void resumeExecutionWithResult_(NSObject result) { - return _lib._objc_msgSend_15( - _id, _lib._sel_resumeExecutionWithResult_1, result._id); + void resumeExecutionWithResult_(NSObject? result) { + _lib._objc_msgSend_289( + _id, _lib._sel_resumeExecutionWithResult_1, result?._id ?? ffi.nullptr); + } + + @override + NSScriptCommand init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } static NSScriptCommand new1(AVFAudio _lib) { @@ -46623,6 +52783,13 @@ class NSScriptCommand extends NSObject { return NSScriptCommand._(_ret, _lib, retain: false, release: true); } + static NSScriptCommand allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptCommand1, _lib._sel_allocWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + static NSScriptCommand alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); @@ -46633,18 +52800,18 @@ class NSScriptCommand extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46659,33 +52826,29 @@ class NSScriptCommand extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommand1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptCommand1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommand1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptCommand1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptCommand1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptCommand1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptCommand1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -46727,141 +52890,144 @@ class NSItemProvider extends NSObject { } void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, int visibility, ObjCBlock18 loadHandler) { - return _lib._objc_msgSend_588( + NSString typeIdentifier, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { + _lib._objc_msgSend_673( _id, _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, visibility, loadHandler._id); } void registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, + NSString typeIdentifier, int fileOptions, int visibility, - ObjCBlock20 loadHandler) { - return _lib._objc_msgSend_589( + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { + _lib._objc_msgSend_674( _id, _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, fileOptions, visibility, loadHandler._id); } - NSArray? get registeredTypeIdentifiers { + NSArray get registeredTypeIdentifiers { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_registeredTypeIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_registeredTypeIdentifiers1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_590( + final _ret = _lib._objc_msgSend_675( _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); return NSArray._(_ret, _lib, retain: true, release: true); } - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); + bool hasItemConformingToTypeIdentifier_(NSString typeIdentifier) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasItemConformingToTypeIdentifier_1, typeIdentifier._id); } bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_591( + NSString typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_676( _id, _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, fileOptions); } NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock19 completionHandler) { - final _ret = _lib._objc_msgSend_592( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSData_NSError completionHandler) { + final _ret = _lib._objc_msgSend_677( _id, _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock22 completionHandler) { - final _ret = _lib._objc_msgSend_593( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { + final _ret = _lib._objc_msgSend_678( _id, _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock21 completionHandler) { - final _ret = _lib._objc_msgSend_594( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { + final _ret = _lib._objc_msgSend_679( _id, _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSString? get suggestedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suggestedName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set suggestedName(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); } - NSItemProvider initWithObject_(NSObject? object) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); + NSItemProvider initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObject_1, object._id); return NSItemProvider._(_ret, _lib, retain: true, release: true); } - void registerObject_visibility_(NSObject? object, int visibility) { - return _lib._objc_msgSend_595(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + void registerObject_visibility_(NSObject object, int visibility) { + _lib._objc_msgSend_680( + _id, _lib._sel_registerObject_visibility_1, object._id, visibility); } void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, int visibility, ObjCBlock23 loadHandler) { - return _lib._objc_msgSend_596( + NSObject aClass, + int visibility, + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { + _lib._objc_msgSend_681( _id, _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, + aClass._id, visibility, loadHandler._id); } - bool canLoadObjectOfClass_(NSObject? aClass) { + bool canLoadObjectOfClass_(NSObject aClass) { return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + _id, _lib._sel_canLoadObjectOfClass_1, aClass._id); } NSProgress loadObjectOfClass_completionHandler_( - NSObject? aClass, ObjCBlock24 completionHandler) { - final _ret = _lib._objc_msgSend_597( + NSObject aClass, ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + final _ret = _lib._objc_msgSend_682( _id, _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, + aClass._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSItemProvider initWithItem_typeIdentifier_( NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_683( _id, _lib._sel_initWithItem_typeIdentifier_1, item?._id ?? ffi.nullptr, @@ -46869,48 +53035,61 @@ class NSItemProvider extends NSObject { return NSItemProvider._(_ret, _lib, retain: true, release: true); } - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + NSItemProvider? initWithContentsOfURL_(NSURL fileURL) { + final _ret = _lib._objc_msgSend_277( + _id, _lib._sel_initWithContentsOfURL_1, fileURL._id); + return _ret.address == 0 + ? null + : NSItemProvider._(_ret, _lib, retain: true, release: true); } void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, NSItemProviderLoadHandler loadHandler) { - return _lib._objc_msgSend_598( + NSString typeIdentifier, + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + loadHandler) { + _lib._objc_msgSend_684( _id, _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler); + typeIdentifier._id, + loadHandler._id); } void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, + NSString typeIdentifier, NSDictionary? options, - NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_599( + ObjCBlock_ffiVoid_ObjCObject_NSError1? completionHandler) { + _lib._objc_msgSend_685( _id, _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, options?._id ?? ffi.nullptr, - completionHandler); + completionHandler?._id ?? ffi.nullptr); } - NSItemProviderLoadHandler get previewImageHandler { - return _lib._objc_msgSend_600(_id, _lib._sel_previewImageHandler1); + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary? + get previewImageHandler { + final _ret = _lib._objc_msgSend_686(_id, _lib._sel_previewImageHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + _ret, _lib, + retain: true, release: true); } - set previewImageHandler(NSItemProviderLoadHandler value) { - _lib._objc_msgSend_601(_id, _lib._sel_setPreviewImageHandler_1, value); + set previewImageHandler( + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary? + value) { + return _lib._objc_msgSend_687( + _id, _lib._sel_setPreviewImageHandler_1, value?._id ?? ffi.nullptr); } - void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, - NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_602( + void loadPreviewImageWithOptions_completionHandler_(NSDictionary options, + ObjCBlock_ffiVoid_ObjCObject_NSError1 completionHandler) { + _lib._objc_msgSend_688( _id, _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler); + options._id, + completionHandler._id); } static NSItemProvider new1(AVFAudio _lib) { @@ -46919,6 +53098,13 @@ class NSItemProvider extends NSObject { return NSItemProvider._(_ret, _lib, retain: false, release: true); } + static NSItemProvider allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSItemProvider1, _lib._sel_allocWithZone_1, zone); + return NSItemProvider._(_ret, _lib, retain: false, release: true); + } + static NSItemProvider alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); @@ -46929,18 +53115,18 @@ class NSItemProvider extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSItemProvider1, + _lib._objc_msgSend_15(_lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46955,33 +53141,29 @@ class NSItemProvider extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSItemProvider1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSItemProvider1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSItemProvider1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSItemProvider1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSItemProvider1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -47000,36 +53182,45 @@ abstract class NSItemProviderRepresentationVisibility { static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; } -ffi.Pointer _ObjCBlock18_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock18_closureRegistry = {}; -int _ObjCBlock18_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { - final id = ++_ObjCBlock18_closureRegistryIndex; - _ObjCBlock18_closureRegistry[id] = fn; +ffi.Pointer< + ObjCObject> _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = ++_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock18_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock18 extends _ObjCBlockBase { - ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSDataNSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock18.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47038,40 +53229,57 @@ class ObjCBlock18 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock18_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock18.fromFunction(AVFAudio lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction( + AVFAudio lib, NSProgress? Function(ObjCBlock_ffiVoid_NSData_NSError) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock18_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) .cast(), - _ObjCBlock18_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_NSData_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + NSProgress? call(ObjCBlock_ffiVoid_NSData_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } class NSProgress extends NSObject { @@ -47096,21 +53304,23 @@ class NSProgress extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); } - static NSProgress currentProgress(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_577( + static NSProgress? currentProgress(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_659( _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress progressWithTotalUnitCount_(AVFAudio _lib, int unitCount) { - final _ret = _lib._objc_msgSend_578(_lib._class_NSProgress1, + final _ret = _lib._objc_msgSend_660(_lib._class_NSProgress1, _lib._sel_progressWithTotalUnitCount_1, unitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress discreteProgressWithTotalUnitCount_( AVFAudio _lib, int unitCount) { - final _ret = _lib._objc_msgSend_578(_lib._class_NSProgress1, + final _ret = _lib._objc_msgSend_660(_lib._class_NSProgress1, _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } @@ -47118,33 +53328,35 @@ class NSProgress extends NSObject { static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( AVFAudio _lib, int unitCount, - NSProgress? parent, + NSProgress parent, int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_579( + final _ret = _lib._objc_msgSend_661( _lib._class_NSProgress1, _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, unitCount, - parent?._id ?? ffi.nullptr, + parent._id, portionOfParentTotalUnitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } - NSProgress initWithParent_userInfo_(NSProgress? parentProgressOrNil) { - final _ret = _lib._objc_msgSend_580( + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_662( _id, _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr); + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); return NSProgress._(_ret, _lib, retain: true, release: true); } void becomeCurrentWithPendingUnitCount_(int unitCount) { - return _lib._objc_msgSend_581( + _lib._objc_msgSend_663( _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); } void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock16 work) { - return _lib._objc_msgSend_582( + int unitCount, ObjCBlock_ffiVoid work) { + _lib._objc_msgSend_664( _id, _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, unitCount, @@ -47152,56 +53364,50 @@ class NSProgress extends NSObject { } void resignCurrent() { - return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); } - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - return _lib._objc_msgSend_583( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); + void addChild_withPendingUnitCount_(NSProgress child, int inUnitCount) { + _lib._objc_msgSend_665( + _id, _lib._sel_addChild_withPendingUnitCount_1, child._id, inUnitCount); } int get totalUnitCount { - return _lib._objc_msgSend_584(_id, _lib._sel_totalUnitCount1); + return _lib._objc_msgSend_666(_id, _lib._sel_totalUnitCount1); } set totalUnitCount(int value) { - _lib._objc_msgSend_585(_id, _lib._sel_setTotalUnitCount_1, value); + return _lib._objc_msgSend_667(_id, _lib._sel_setTotalUnitCount_1, value); } int get completedUnitCount { - return _lib._objc_msgSend_584(_id, _lib._sel_completedUnitCount1); + return _lib._objc_msgSend_666(_id, _lib._sel_completedUnitCount1); } set completedUnitCount(int value) { - _lib._objc_msgSend_585(_id, _lib._sel_setCompletedUnitCount_1, value); + return _lib._objc_msgSend_667( + _id, _lib._sel_setCompletedUnitCount_1, value); } - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get localizedDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localizedDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - set localizedDescription(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + set localizedDescription(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setLocalizedDescription_1, value._id); } - NSString? get localizedAdditionalDescription { + NSString get localizedAdditionalDescription { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedAdditionalDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); + set localizedAdditionalDescription(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setLocalizedAdditionalDescription_1, value._id); } bool get cancellable { @@ -47209,7 +53415,7 @@ class NSProgress extends NSObject { } set cancellable(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setCancellable_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setCancellable_1, value); } bool get pausable { @@ -47217,7 +53423,7 @@ class NSProgress extends NSObject { } set pausable(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setPausable_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setPausable_1, value); } bool get cancelled { @@ -47228,37 +53434,45 @@ class NSProgress extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); } - ObjCBlock16 get cancellationHandler { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_cancellationHandler1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get cancellationHandler { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_cancellationHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set cancellationHandler(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setCancellationHandler_1, value._id); + set cancellationHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setCancellationHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock16 get pausingHandler { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_pausingHandler1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get pausingHandler { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_pausingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set pausingHandler(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setPausingHandler_1, value._id); + set pausingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setPausingHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock16 get resumingHandler { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_resumingHandler1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get resumingHandler { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_resumingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set resumingHandler(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setResumingHandler_1, value._id); + set resumingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setResumingHandler_1, value?._id ?? ffi.nullptr); } - void setUserInfoObject_forKey_( - NSObject objectOrNil, NSProgressUserInfoKey key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key); + void setUserInfoObject_forKey_(NSObject? objectOrNil, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_setUserInfoObject_forKey_1, + objectOrNil?._id ?? ffi.nullptr, key._id); } bool get indeterminate { @@ -47266,7 +53480,7 @@ class NSProgress extends NSObject { } double get fractionCompleted { - return _lib._objc_msgSend_149(_id, _lib._sel_fractionCompleted1); + return _lib._objc_msgSend_165(_id, _lib._sel_fractionCompleted1); } bool get finished { @@ -47274,15 +53488,137 @@ class NSProgress extends NSObject { } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } void pause() { - return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + _lib._objc_msgSend_1(_id, _lib._sel_pause1); } void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + _lib._objc_msgSend_1(_id, _lib._sel_resume1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get kind { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_kind1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set kind(NSString? value) { + return _lib._objc_msgSend_545( + _id, _lib._sel_setKind_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set estimatedTimeRemaining(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_throughput1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set throughput(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + } + + NSString? get fileOperationKind { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileOperationKind1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set fileOperationKind(NSString? value) { + return _lib._objc_msgSend_545( + _id, _lib._sel_setFileOperationKind_1, value?._id ?? ffi.nullptr); + } + + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set fileURL(NSURL? value) { + return _lib._objc_msgSend_671( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_fileTotalCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileTotalCount(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileCompletedCount(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + } + + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void unpublish() { + _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + } + + static NSObject addSubscriberForFileURL_withPublishingHandler_(AVFAudio _lib, + NSURL url, ObjCBlock_ffiVoid_NSProgress publishingHandler) { + final _ret = _lib._objc_msgSend_672( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url._id, + publishingHandler._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void removeSubscriber_(AVFAudio _lib, NSObject subscriber) { + _lib._objc_msgSend_15( + _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + } + + bool get old { + return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + } + + @override + NSProgress init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress new1(AVFAudio _lib) { @@ -47290,6 +53626,12 @@ class NSProgress extends NSObject { return NSProgress._(_ret, _lib, retain: false, release: true); } + static NSProgress allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProgress1, _lib._sel_allocWithZone_1, zone); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + static NSProgress alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); @@ -47300,18 +53642,18 @@ class NSProgress extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._objc_msgSend_15(_lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47326,33 +53668,29 @@ class NSProgress extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSProgress1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSProgress1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSProgress1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSProgress1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSProgress1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -47364,38 +53702,142 @@ class NSProgress extends NSObject { } } -typedef NSProgressUserInfoKey = ffi.Pointer; -void _ObjCBlock19_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer)>()(arg0); +final _ObjCBlock_ffiVoid_NSProgress_closureRegistry = + Function(ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -final _ObjCBlock19_closureRegistry = {}; -int _ObjCBlock19_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { - final id = ++_ObjCBlock19_closureRegistryIndex; - _ObjCBlock19_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[block.ref.target.address]!( + arg0); + +class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSProgress._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSProgress.fromFunction( + AVFAudio lib, ObjCBlock_ffiVoid? Function(NSProgress) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSProgress_registerClosure( + (ffi.Pointer arg0) => + fn(NSProgress._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + ObjCBlock_ffiVoid? call(NSProgress arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>() + (_id, arg0._id) + .address == + 0 + ? null + : ObjCBlock_ffiVoid._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -void _ObjCBlock19_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0, arg1); +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class ObjCBlock19 extends _ObjCBlockBase { - ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSError._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock19.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47404,84 +53846,132 @@ class ObjCBlock19 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock19.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSError.fromFunction( + AVFAudio lib, void Function(NSData?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_NSError.listener( + AVFAudio lib, void Function(NSData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock19_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, + retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSData? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } abstract class NSItemProviderFileOptions { static const int NSItemProviderFileOptionOpenInPlace = 1; } -ffi.Pointer _ObjCBlock20_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock20_closureRegistry = {}; -int _ObjCBlock20_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { - final id = ++_ObjCBlock20_closureRegistryIndex; - _ObjCBlock20_closureRegistry[id] = fn; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock20_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock20 extends _ObjCBlockBase { - ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock20.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47490,74 +53980,102 @@ class ObjCBlock20 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock20_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock20.fromFunction(AVFAudio lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunction(AVFAudio lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSURL_bool_NSError) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock20_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) .cast(), - _ObjCBlock20_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_NSURL_bool_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock21_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + NSProgress? call(ObjCBlock_ffiVoid_NSURL_bool_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -final _ObjCBlock21_closureRegistry = {}; -int _ObjCBlock21_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { - final id = ++_ObjCBlock21_closureRegistryIndex; - _ObjCBlock21_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock21_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock21 extends _ObjCBlockBase { - ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock21.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47566,87 +54084,131 @@ class ObjCBlock21 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock21_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock21.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunction( + AVFAudio lib, void Function(NSURL?, bool, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock21_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Bool, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_bool_NSError.listener( + AVFAudio lib, void Function(NSURL?, bool, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Bool, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock21_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError._(arg2, lib, + retain: true, release: true)))), lib); - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock22_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void call(NSURL? arg0, bool arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + bool, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2?._id ?? ffi.nullptr); } -final _ObjCBlock22_closureRegistry = {}; -int _ObjCBlock22_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { - final id = ++_ObjCBlock22_closureRegistryIndex; - _ObjCBlock22_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock22_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock22 extends _ObjCBlockBase { - ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock22.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47655,80 +54217,127 @@ class ObjCBlock22 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock22_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock22.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSError.fromFunction( + AVFAudio lib, void Function(NSURL?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock22_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) .cast(), - _ObjCBlock22_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_NSError.listener( + AVFAudio lib, void Function(NSURL?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -ffi.Pointer _ObjCBlock23_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); + void call(NSURL? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } -final _ObjCBlock23_closureRegistry = {}; -int _ObjCBlock23_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { - final id = ++_ObjCBlock23_closureRegistryIndex; - _ObjCBlock23_closureRegistry[id] = fn; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock23_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock23 extends _ObjCBlockBase { - ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock23.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47737,73 +54346,100 @@ class ObjCBlock23 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock23_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock23.fromFunction(AVFAudio lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunction(AVFAudio lib, + NSProgress? Function(ObjCBlock_ffiVoid_ObjCObject_NSError) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock23_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) .cast(), - _ObjCBlock23_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_ObjCObject_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock24_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + NSProgress? call(ObjCBlock_ffiVoid_ObjCObject_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -final _ObjCBlock24_closureRegistry = {}; -int _ObjCBlock24_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { - final id = ++_ObjCBlock24_closureRegistryIndex; - _ObjCBlock24_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock24_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock24_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock24 extends _ObjCBlockBase { - ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock24.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -47812,154 +54448,363 @@ class ObjCBlock24 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock24_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock24.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunction(AVFAudio lib, void Function(NSObject?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock24_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) .cast(), - _ObjCBlock24_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSError.listener( + AVFAudio lib, void Function(NSObject?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -typedef NSItemProviderLoadHandler = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock25_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void call(NSObject? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } -final _ObjCBlock25_closureRegistry = {}; -int _ObjCBlock25_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { - final id = ++_ObjCBlock25_closureRegistryIndex; - _ObjCBlock25_closureRegistry[id] = fn; +void + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry = + , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock25_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock25_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock25 extends _ObjCBlockBase { - ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock25.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - NSItemProviderCompletionHandler arg0, + ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock25_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock25.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( AVFAudio lib, - void Function(NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, ffi.Pointer arg2) + void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock25_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + ObjCBlock_ffiVoid_ObjCObject_NSError1._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + NSDictionary._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.listener( + AVFAudio lib, + void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock25_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + ObjCBlock_ffiVoid_ObjCObject_NSError1._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + NSDictionary._(arg2, lib, retain: true, release: true)))), lib); - void call(NSItemProviderCompletionHandler arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(ObjCBlock_ffiVoid_ObjCObject_NSError1 arg0, NSObject arg1, + NSDictionary arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>()( + _id, arg0._id, arg1._id, arg2._id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSError1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -typedef NSItemProviderCompletionHandler = ffi.Pointer<_ObjCBlock>; +void _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_NSError1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError1._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError1.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError1.fromFunction(AVFAudio lib, void Function(NSObject?, NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSError1.listener( + AVFAudio lib, void Function(NSObject?, NSError) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject? arg0, NSError arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1._id); +} class NSMutableString extends NSString { NSMutableString._(ffi.Pointer id, AVFAudio lib, @@ -47985,56 +54830,49 @@ class NSMutableString extends NSString { obj._lib._class_NSMutableString1); } - void replaceCharactersInRange_withString_(NSRange range, NSString? aString) { - return _lib._objc_msgSend_603( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); + void replaceCharactersInRange_withString_(_NSRange range, NSString aString) { + _lib._objc_msgSend_689(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, aString._id); } - void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_604(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + void insertString_atIndex_(NSString aString, int loc) { + _lib._objc_msgSend_690( + _id, _lib._sel_insertString_atIndex_1, aString._id, loc); } - void deleteCharactersInRange_(NSRange range) { - return _lib._objc_msgSend_416( - _id, _lib._sel_deleteCharactersInRange_1, range); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_deleteCharactersInRange_1, range); } - void appendString_(NSString? aString) { - return _lib._objc_msgSend_186( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + void appendString_(NSString aString) { + _lib._objc_msgSend_248(_id, _lib._sel_appendString_1, aString._id); } - void appendFormat_(NSString? format) { - return _lib._objc_msgSend_186( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + void appendFormat_(NSString format) { + _lib._objc_msgSend_248(_id, _lib._sel_appendFormat_1, format._id); } - void setString_(NSString? aString) { - return _lib._objc_msgSend_186( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + void setString_(NSString aString) { + _lib._objc_msgSend_248(_id, _lib._sel_setString_1, aString._id); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, NSRange searchRange) { - return _lib._objc_msgSend_605( + int replaceOccurrencesOfString_withString_options_range_(NSString target, + NSString replacement, int options, _NSRange searchRange) { + return _lib._objc_msgSend_691( _id, _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, + target._id, + replacement._id, options, searchRange); } - bool applyTransform_reverse_range_updatedRange_(NSStringTransform transform, - bool reverse, NSRange range, NSRangePointer resultingRange) { - return _lib._objc_msgSend_606( + bool applyTransform_reverse_range_updatedRange_(NSString transform, + bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + return _lib._objc_msgSend_692( _id, _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform, + transform._id, reverse, range, resultingRange); @@ -48042,24 +54880,39 @@ class NSMutableString extends NSString { NSMutableString initWithCapacity_(int capacity) { final _ret = - _lib._objc_msgSend_607(_id, _lib._sel_initWithCapacity_1, capacity); + _lib._objc_msgSend_693(_id, _lib._sel_initWithCapacity_1, capacity); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithCapacity_(AVFAudio _lib, int capacity) { - final _ret = _lib._objc_msgSend_607( + final _ret = _lib._objc_msgSend_693( _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static ffi.Pointer getAvailableStringEncodings( + @override + NSMutableString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static ffi.Pointer getAvailableStringEncodings( AVFAudio _lib) { - return _lib._objc_msgSend_318( + return _lib._objc_msgSend_357( _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_(AVFAudio _lib, int encoding) { - final _ret = _lib._objc_msgSend_293(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_332(_lib._class_NSMutableString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } @@ -48069,147 +54922,481 @@ class NSMutableString extends NSString { _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); } + @override + NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_369( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_370( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_372( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, aString._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithFormat_1, format._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_arguments_( + NSString format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_373( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_374(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_locale_arguments_( + NSString format, NSObject? locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_375( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format._id, + locale?._id ?? ffi.nullptr, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_377( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? + initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_378( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_379( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithData_encoding_(NSData data, int encoding) { + final _ret = _lib._objc_msgSend_380( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_381( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_382( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString? initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_383( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: false, release: true); + } + static NSMutableString string(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + static NSMutableString stringWithString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSMutableString1, _lib._sel_stringWithString_1, string._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithCharacters_length_( - AVFAudio _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_331(_lib._class_NSMutableString1, + AVFAudio _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSMutableString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithUTF8String_( + static NSMutableString? stringWithUTF8String_( AVFAudio _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_332(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_372(_lib._class_NSMutableString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithFormat_(AVFAudio _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + static NSMutableString stringWithFormat_(AVFAudio _lib, NSString format) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSMutableString1, _lib._sel_stringWithFormat_1, format._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString localizedStringWithFormat_( - AVFAudio _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + AVFAudio _lib, NSString format) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, format._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCString_encoding_( + static NSMutableString? + stringWithValidatedFormat_validFormatSpecifiers_error_( + AVFAudio _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSMutableString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + AVFAudio _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_384(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? stringWithCString_encoding_( AVFAudio _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfURL_encoding_error_(AVFAudio _lib, - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_340( + @override + NSMutableString? initWithContentsOfURL_encoding_error_( + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfFile_encoding_error_( + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? stringWithContentsOfURL_encoding_error_(AVFAudio _lib, + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfFile_encoding_error_(AVFAudio _lib, - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_341( + static NSMutableString? stringWithContentsOfFile_encoding_error_( + AVFAudio _lib, + NSString path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_387( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_388( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + static NSMutableString? stringWithContentsOfURL_usedEncoding_error_( AVFAudio _lib, - NSURL? url, - ffi.Pointer enc, + NSURL url, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_342( + final _ret = _lib._objc_msgSend_387( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( + static NSMutableString? stringWithContentsOfFile_usedEncoding_error_( AVFAudio _lib, - NSString? path, - ffi.Pointer enc, + NSString path, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_343( + final _ret = _lib._objc_msgSend_388( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } static int stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( AVFAudio _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_344( + return _lib._objc_msgSend_389( _lib._class_NSMutableString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); } - static NSObject stringWithContentsOfFile_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( + static NSObject? stringWithCString_length_( AVFAudio _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableString1, _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( + static NSObject? stringWithCString_( AVFAudio _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_332( + final _ret = _lib._objc_msgSend_372( _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString pathWithComponents_(AVFAudio _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_350(_lib._class_NSMutableString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + static NSString pathWithComponents_(AVFAudio _lib, NSArray components) { + final _ret = _lib._objc_msgSend_396(_lib._class_NSMutableString1, + _lib._sel_pathWithComponents_1, components._id); return NSString._(_ret, _lib, retain: true, release: true); } @@ -48219,6 +55406,13 @@ class NSMutableString extends NSString { return NSMutableString._(_ret, _lib, retain: false, release: true); } + static NSMutableString allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableString1, _lib._sel_allocWithZone_1, zone); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + static NSMutableString alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); @@ -48229,18 +55423,18 @@ class NSMutableString extends NSString { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._objc_msgSend_15(_lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48255,33 +55449,29 @@ class NSMutableString extends NSString { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -48316,53 +55506,61 @@ class NSNotification extends NSObject { obj._lib._class_NSNotification1); } - NSNotificationName get name { - return _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get object { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_object1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } NSNotification initWithName_object_userInfo_( - NSNotificationName name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_608( + NSString name, NSObject? object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_694( _id, _lib._sel_initWithName_object_userInfo_1, - name, - object._id, + name._id, + object?._id ?? ffi.nullptr, userInfo?._id ?? ffi.nullptr); return NSNotification._(_ret, _lib, retain: true, release: true); } - NSNotification initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + NSNotification? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNotification._(_ret, _lib, retain: true, release: true); } static NSNotification notificationWithName_object_( - AVFAudio _lib, NSNotificationName aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_157(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName, anObject._id); + AVFAudio _lib, NSString aName, NSObject? anObject) { + final _ret = _lib._objc_msgSend_374( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, + aName._id, + anObject?._id ?? ffi.nullptr); return NSNotification._(_ret, _lib, retain: true, release: true); } static NSNotification notificationWithName_object_userInfo_(AVFAudio _lib, - NSNotificationName aName, NSObject anObject, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_608( + NSString aName, NSObject? anObject, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_694( _lib._class_NSNotification1, _lib._sel_notificationWithName_object_userInfo_1, - aName, - anObject._id, + aName._id, + anObject?._id ?? ffi.nullptr, aUserInfo?._id ?? ffi.nullptr); return NSNotification._(_ret, _lib, retain: true, release: true); } @@ -48379,6 +55577,13 @@ class NSNotification extends NSObject { return NSNotification._(_ret, _lib, retain: false, release: true); } + static NSNotification allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNotification1, _lib._sel_allocWithZone_1, zone); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + static NSNotification alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); @@ -48389,18 +55594,18 @@ class NSNotification extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNotification1, + _lib._objc_msgSend_15(_lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48415,33 +55620,29 @@ class NSNotification extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNotification1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNotification1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNotification1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNotification1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNotification1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -48453,8 +55654,6 @@ class NSNotification extends NSObject { } } -typedef NSNotificationName = ffi.Pointer; - class NSBundle extends NSObject { NSBundle._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -48477,64 +55676,66 @@ class NSBundle extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); } - static NSBundle? getMainBundle(AVFAudio _lib) { + static NSBundle getMainBundle(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_609(_lib._class_NSBundle1, _lib._sel_mainBundle1); + _lib._objc_msgSend_695(_lib._class_NSBundle1, _lib._sel_mainBundle1); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle? bundleWithPath_(AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSBundle1, _lib._sel_bundleWithPath_1, path._id); return _ret.address == 0 ? null : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithPath_(AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, - _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - NSBundle initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSBundle? initWithPath_(NSString path) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + static NSBundle? bundleWithURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSBundle1, _lib._sel_bundleWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - NSBundle initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSBundle? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_277(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle bundleForClass_(AVFAudio _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_610( + final _ret = _lib._objc_msgSend_696( _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithIdentifier_(AVFAudio _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_611(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + static NSBundle? bundleWithIdentifier_(AVFAudio _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_697(_lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, identifier._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSArray? getAllBundles(AVFAudio _lib) { + static NSArray getAllBundles(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_80(_lib._class_NSBundle1, _lib._sel_allBundles1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_lib._class_NSBundle1, _lib._sel_allBundles1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getAllFrameworks(AVFAudio _lib) { + static NSArray getAllFrameworks(AVFAudio _lib) { final _ret = - _lib._objc_msgSend_80(_lib._class_NSBundle1, _lib._sel_allFrameworks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool load() { @@ -48550,257 +55751,273 @@ class NSBundle extends NSObject { } bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_preflightAndReturnError_1, error); } bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219(_id, _lib._sel_loadAndReturnError_1, error); + return _lib._objc_msgSend_243(_id, _lib._sel_loadAndReturnError_1, error); } - NSURL? get bundleURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSURL get bundleURL { + final _ret = _lib._objc_msgSend_466(_id, _lib._sel_bundleURL1); + return NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get resourceURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_resourceURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_executableURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? URLForAuxiliaryExecutable_(NSString executableName) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_URLForAuxiliaryExecutable_1, executableName._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get privateFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_privateFrameworksURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get sharedFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_sharedFrameworksURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get sharedSupportURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_sharedSupportURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get builtInPlugInsURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_builtInPlugInsURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get appStoreReceiptURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_appStoreReceiptURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSString? get bundlePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get bundlePath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_bundlePath1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get resourcePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_resourcePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get executablePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_executablePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString pathForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? pathForAuxiliaryExecutable_(NSString executableName) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_pathForAuxiliaryExecutable_1, executableName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get privateFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_privateFrameworksPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get sharedFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sharedFrameworksPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get sharedSupportPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sharedSupportPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get builtInPlugInsPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_builtInPlugInsPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( + static NSURL? URLForResource_withExtension_subdirectory_inBundleWithURL_( AVFAudio _lib, NSString? name, NSString? ext, NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_612( + NSURL bundleURL) { + final _ret = _lib._objc_msgSend_698( _lib._class_NSBundle1, _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + bundleURL._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - AVFAudio _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_613( + static NSArray? URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( + AVFAudio _lib, NSString? ext, NSString? subpath, NSURL bundleURL) { + final _ret = _lib._objc_msgSend_699( _lib._class_NSBundle1, _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bundleURL._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_614( + NSURL? URLForResource_withExtension_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_700( _id, _lib._sel_URLForResource_withExtension_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_( + NSURL? URLForResource_withExtension_subdirectory_( NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_615( + final _ret = _lib._objc_msgSend_701( _id, _lib._sel_URLForResource_withExtension_subdirectory_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, + NSURL? URLForResource_withExtension_subdirectory_localization_(NSString? name, NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_616( + final _ret = _lib._objc_msgSend_702( _id, _lib._sel_URLForResource_withExtension_subdirectory_localization_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, localizationName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSArray URLsForResourcesWithExtension_subdirectory_( + NSArray? URLsForResourcesWithExtension_subdirectory_( NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_617( + final _ret = _lib._objc_msgSend_703( _id, _lib._sel_URLsForResourcesWithExtension_subdirectory_1, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray URLsForResourcesWithExtension_subdirectory_localization_( + NSArray? URLsForResourcesWithExtension_subdirectory_localization_( NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_618( + final _ret = _lib._objc_msgSend_704( _id, _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSString pathForResource_ofType_inDirectory_( - AVFAudio _lib, NSString? name, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_619( + static NSString? pathForResource_ofType_inDirectory_( + AVFAudio _lib, NSString? name, NSString? ext, NSString bundlePath) { + final _ret = _lib._objc_msgSend_705( _lib._class_NSBundle1, _lib._sel_pathForResource_ofType_inDirectory_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + bundlePath._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static NSArray pathsForResourcesOfType_inDirectory_( - AVFAudio _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_617( + AVFAudio _lib, NSString? ext, NSString bundlePath) { + final _ret = _lib._objc_msgSend_706( _lib._class_NSBundle1, _lib._sel_pathsForResourcesOfType_inDirectory_1, ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); + bundlePath._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_pathForResource_ofType_1, + NSString? pathForResource_ofType_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_707(_id, _lib._sel_pathForResource_ofType_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, + NSString? pathForResource_ofType_inDirectory_forLocalization_(NSString? name, NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_620( + final _ret = _lib._objc_msgSend_708( _id, _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, localizationName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSArray pathsForResourcesOfType_inDirectory_forLocalization_( NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_618( + final _ret = _lib._objc_msgSend_709( _id, _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, ext?._id ?? ffi.nullptr, @@ -48810,36 +56027,36 @@ class NSBundle extends NSObject { } NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_619( + NSString key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_710( _id, _lib._sel_localizedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, + key._id, value?._id ?? ffi.nullptr, tableName?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_641( + NSString key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_736( _id, _lib._sel_localizedAttributedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, + key._id, value?._id ?? ffi.nullptr, tableName?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSString? get bundleIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_bundleIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get infoDictionary { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_infoDictionary1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_infoDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -48847,87 +56064,90 @@ class NSBundle extends NSObject { NSDictionary? get localizedInfoDictionary { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_localizedInfoDictionary1); + _lib._objc_msgSend_390(_id, _lib._sel_localizedInfoDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject objectForInfoDictionaryKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject classNamed_(NSString? className) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get principalClass { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? objectForInfoDictionaryKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_objectForInfoDictionaryKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get preferredLocalizations { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_preferredLocalizations1); + NSObject? classNamed_(NSString className) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_classNamed_1, className._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get localizations { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_localizations1); + NSObject? get principalClass { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_principalClass1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray get preferredLocalizations { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_preferredLocalizations1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray get localizations { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_localizations1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_developmentLocalization1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } static NSArray preferredLocalizationsFromArray_( - AVFAudio _lib, NSArray? localizationsArray) { - final _ret = _lib._objc_msgSend_63( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); + AVFAudio _lib, NSArray localizationsArray) { + final _ret = _lib._objc_msgSend_68(_lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, localizationsArray._id); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray preferredLocalizationsFromArray_forPreferences_( - AVFAudio _lib, NSArray? localizationsArray, NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_642( + AVFAudio _lib, NSArray localizationsArray, NSArray? preferencesArray) { + final _ret = _lib._objc_msgSend_737( _lib._class_NSBundle1, _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, + localizationsArray._id, preferencesArray?._id ?? ffi.nullptr); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_executableArchitectures1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_executableArchitectures1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setPreservationPriority_forTags_(double priority, NSSet? tags) { - return _lib._objc_msgSend_643( - _id, - _lib._sel_setPreservationPriority_forTags_1, - priority, - tags?._id ?? ffi.nullptr); + void setPreservationPriority_forTags_(double priority, NSSet tags) { + _lib._objc_msgSend_738( + _id, _lib._sel_setPreservationPriority_forTags_1, priority, tags._id); + } + + double preservationPriorityForTag_(NSString tag) { + return _lib._objc_msgSend_308( + _id, _lib._sel_preservationPriorityForTag_1, tag._id); } - double preservationPriorityForTag_(NSString? tag) { - return _lib._objc_msgSend_269( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + @override + NSBundle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle new1(AVFAudio _lib) { @@ -48935,6 +56155,12 @@ class NSBundle extends NSObject { return NSBundle._(_ret, _lib, retain: false, release: true); } + static NSBundle allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSBundle1, _lib._sel_allocWithZone_1, zone); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + static NSBundle alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); return NSBundle._(_ret, _lib, retain: false, release: true); @@ -48944,18 +56170,18 @@ class NSBundle extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSBundle1, + _lib._objc_msgSend_15(_lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48970,33 +56196,29 @@ class NSBundle extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSBundle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSBundle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSBundle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSBundle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSBundle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -49032,16 +56254,14 @@ class NSAttributedString extends NSObject { obj._lib._class_NSAttributedString1); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get string { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); } NSDictionary attributesAtIndex_effectiveRange_( - int location, NSRangePointer range) { - final _ret = _lib._objc_msgSend_621( + int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_711( _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -49050,26 +56270,28 @@ class NSAttributedString extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - NSObject attribute_atIndex_effectiveRange_( - NSAttributedStringKey attrName, int location, NSRangePointer range) { - final _ret = _lib._objc_msgSend_622( + NSObject? attribute_atIndex_effectiveRange_( + NSString attrName, int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_712( _id, _lib._sel_attribute_atIndex_effectiveRange_1, - attrName, + attrName._id, location, range); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedSubstringFromRange_(NSRange range) { - final _ret = _lib._objc_msgSend_623( + NSAttributedString attributedSubstringFromRange_(_NSRange range) { + final _ret = _lib._objc_msgSend_713( _id, _lib._sel_attributedSubstringFromRange_1, range); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( - int location, NSRangePointer range, NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_624( + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_714( _id, _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, location, @@ -49078,51 +56300,50 @@ class NSAttributedString extends NSObject { return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject attribute_atIndex_longestEffectiveRange_inRange_( - NSAttributedStringKey attrName, - int location, - NSRangePointer range, - NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_625( + NSObject? attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_715( _id, _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, - attrName, + attrName._id, location, range, rangeLimit); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_626( - _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + bool isEqualToAttributedString_(NSAttributedString other) { + return _lib._objc_msgSend_716( + _id, _lib._sel_isEqualToAttributedString_1, other._id); } - NSAttributedString initWithString_(NSString? str) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); + NSAttributedString initWithString_(NSString str) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, str._id); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_352( + NSString str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_717( _id, _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, + str._id, attrs?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_627( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + NSAttributedString initWithAttributedString_(NSAttributedString attrStr) { + final _ret = _lib._objc_msgSend_718( + _id, _lib._sel_initWithAttributedString_1, attrStr._id); return NSAttributedString._(_ret, _lib, retain: true, release: true); } - void enumerateAttributesInRange_options_usingBlock_( - NSRange enumerationRange, int opts, ObjCBlock26 block) { - return _lib._objc_msgSend_628( + void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, + int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { + _lib._objc_msgSend_719( _id, _lib._sel_enumerateAttributesInRange_options_usingBlock_1, enumerationRange, @@ -49131,84 +56352,91 @@ class NSAttributedString extends NSObject { } void enumerateAttribute_inRange_options_usingBlock_( - NSAttributedStringKey attrName, - NSRange enumerationRange, + NSString attrName, + _NSRange enumerationRange, int opts, - ObjCBlock27 block) { - return _lib._objc_msgSend_629( + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { + _lib._objc_msgSend_720( _id, _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, - attrName, + attrName._id, enumerationRange, opts, block._id); } - NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_634( + NSAttributedString? + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_725( _id, _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, + markdownFile._id, options?._id ?? ffi.nullptr, baseURL?._id ?? ffi.nullptr, error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, + NSAttributedString? initWithMarkdown_options_baseURL_error_( + NSData markdown, NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_635( + final _ret = _lib._objc_msgSend_726( _id, _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, + markdown._id, options?._id ?? ffi.nullptr, baseURL?._id ?? ffi.nullptr, error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, + NSAttributedString? initWithMarkdownString_options_baseURL_error_( + NSString markdownString, NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_636( + final _ret = _lib._objc_msgSend_727( _id, _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, + markdownString._id, options?._id ?? ffi.nullptr, baseURL?._id ?? ffi.nullptr, error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_637( + NSAttributedString format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_728( _id, _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, + format._id, options, locale?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, + NSAttributedString format, int options, NSLocale? locale, ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_638( + final _ret = _lib._objc_msgSend_729( _id, _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, + format._id, options, locale?._id ?? ffi.nullptr, arguments); @@ -49216,36 +56444,101 @@ class NSAttributedString extends NSObject { } static NSAttributedString localizedAttributedStringWithFormat_( - AVFAudio _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_627( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); + AVFAudio _lib, NSAttributedString format) { + final _ret = _lib._objc_msgSend_718(_lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, format._id); return NSAttributedString._(_ret, _lib, retain: true, release: true); } static NSAttributedString localizedAttributedStringWithFormat_options_( - AVFAudio _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_639( + AVFAudio _lib, NSAttributedString format, int options) { + final _ret = _lib._objc_msgSend_730( _lib._class_NSAttributedString1, _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, + format._id, options); return NSAttributedString._(_ret, _lib, retain: true, release: true); } + NSAttributedString initWithFormat_options_locale_context_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context) { + final _ret = _lib._objc_msgSend_731( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_732( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_context_( + AVFAudio _lib, NSAttributedString format, NSDictionary context) { + final _ret = _lib._objc_msgSend_733( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format._id, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString + localizedAttributedStringWithFormat_options_context_(AVFAudio _lib, + NSAttributedString format, int options, NSDictionary context) { + final _ret = _lib._objc_msgSend_734( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format._id, + options, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_640( + final _ret = _lib._objc_msgSend_735( _id, _lib._sel_attributedStringByInflectingString1); return NSAttributedString._(_ret, _lib, retain: true, release: true); } + @override + NSAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + static NSAttributedString new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); return NSAttributedString._(_ret, _lib, retain: false, release: true); } + static NSAttributedString allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedString1, _lib._sel_allocWithZone_1, zone); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + static NSAttributedString alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); @@ -49256,18 +56549,18 @@ class NSAttributedString extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49282,33 +56575,29 @@ class NSAttributedString extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSAttributedString1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -49320,192 +56609,285 @@ class NSAttributedString extends NSObject { } } -typedef NSAttributedStringKey = ffi.Pointer; - abstract class NSAttributedStringEnumerationOptions { static const int NSAttributedStringEnumerationReverse = 2; static const int NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; } -void _ObjCBlock26_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock26_closureRegistry = {}; -int _ObjCBlock26_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { - final id = ++_ObjCBlock26_closureRegistryIndex; - _ObjCBlock26_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock26_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock26_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock26 extends _ObjCBlockBase { - ObjCBlock26._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock26.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock26_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock26.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction(AVFAudio lib, + void Function(NSDictionary, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(NSDictionary._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.listener(AVFAudio lib, + void Function(NSDictionary, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock26_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock26_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(NSDictionary._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSDictionary arg0, _NSRange arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>()(_id, arg0._id, arg1, arg2); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock27_closureRegistry = {}; -int _ObjCBlock27_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { - final id = ++_ObjCBlock27_closureRegistryIndex; - _ObjCBlock27_closureRegistry[id] = fn; + void Function(ffi.Pointer, _NSRange, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock27_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock27 extends _ObjCBlockBase { - ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock27.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock27_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock27.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction(AVFAudio lib, + void Function(NSObject?, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock27_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock27_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.listener(AVFAudio lib, + void Function(NSObject?, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSObject? arg0, _NSRange arg1, ffi.Pointer arg2) => _id + .ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } class NSAttributedStringMarkdownParsingOptions extends NSObject { @@ -49547,37 +56929,48 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } set allowsExtendedAttributes(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsExtendedAttributes_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAllowsExtendedAttributes_1, value); } int get interpretedSyntax { - return _lib._objc_msgSend_630(_id, _lib._sel_interpretedSyntax1); + return _lib._objc_msgSend_721(_id, _lib._sel_interpretedSyntax1); } set interpretedSyntax(int value) { - _lib._objc_msgSend_631(_id, _lib._sel_setInterpretedSyntax_1, value); + return _lib._objc_msgSend_722(_id, _lib._sel_setInterpretedSyntax_1, value); } int get failurePolicy { - return _lib._objc_msgSend_632(_id, _lib._sel_failurePolicy1); + return _lib._objc_msgSend_723(_id, _lib._sel_failurePolicy1); } set failurePolicy(int value) { - _lib._objc_msgSend_633(_id, _lib._sel_setFailurePolicy_1, value); + return _lib._objc_msgSend_724(_id, _lib._sel_setFailurePolicy_1, value); } NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_languageCode1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set languageCode(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); } + bool get appliesSourcePositionAttributes { + return _lib._objc_msgSend_12( + _id, _lib._sel_appliesSourcePositionAttributes1); + } + + set appliesSourcePositionAttributes(bool value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + } + static NSAttributedStringMarkdownParsingOptions new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); @@ -49585,6 +56978,16 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { retain: false, release: true); } + static NSAttributedStringMarkdownParsingOptions allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_allocWithZone_1, + zone); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + static NSAttributedStringMarkdownParsingOptions alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAttributedStringMarkdownParsingOptions1, @@ -49597,21 +57000,19 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, - aTarget._id); + _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(AVFAudio _lib) { @@ -49627,33 +57028,33 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -49714,107 +57115,265 @@ class NSMutableAttributedString extends NSAttributedString { obj._lib._class_NSMutableAttributedString1); } - void replaceCharactersInRange_withString_(NSRange range, NSString? str) { - return _lib._objc_msgSend_603( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - str?._id ?? ffi.nullptr); + void replaceCharactersInRange_withString_(_NSRange range, NSString str) { + _lib._objc_msgSend_689( + _id, _lib._sel_replaceCharactersInRange_withString_1, range, str._id); } - void setAttributes_range_(NSDictionary? attrs, NSRange range) { - return _lib._objc_msgSend_644( + void setAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_739( _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); } - NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_645(_id, _lib._sel_mutableString1); - return _ret.address == 0 - ? null - : NSMutableString._(_ret, _lib, retain: true, release: true); + NSMutableString get mutableString { + final _ret = _lib._objc_msgSend_740(_id, _lib._sel_mutableString1); + return NSMutableString._(_ret, _lib, retain: true, release: true); } void addAttribute_value_range_( - NSAttributedStringKey name, NSObject value, NSRange range) { - return _lib._objc_msgSend_646( - _id, _lib._sel_addAttribute_value_range_1, name, value._id, range); + NSString name, NSObject value, _NSRange range) { + _lib._objc_msgSend_741( + _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); } - void addAttributes_range_(NSDictionary? attrs, NSRange range) { - return _lib._objc_msgSend_644( - _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + void addAttributes_range_(NSDictionary attrs, _NSRange range) { + _lib._objc_msgSend_742( + _id, _lib._sel_addAttributes_range_1, attrs._id, range); } - void removeAttribute_range_(NSAttributedStringKey name, NSRange range) { - return _lib._objc_msgSend_647( - _id, _lib._sel_removeAttribute_range_1, name, range); + void removeAttribute_range_(NSString name, _NSRange range) { + _lib._objc_msgSend_743( + _id, _lib._sel_removeAttribute_range_1, name._id, range); } void replaceCharactersInRange_withAttributedString_( - NSRange range, NSAttributedString? attrString) { - return _lib._objc_msgSend_648( + _NSRange range, NSAttributedString attrString) { + _lib._objc_msgSend_744( _id, _lib._sel_replaceCharactersInRange_withAttributedString_1, range, - attrString?._id ?? ffi.nullptr); + attrString._id); } - void insertAttributedString_atIndex_( - NSAttributedString? attrString, int loc) { - return _lib._objc_msgSend_649( - _id, - _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, - loc); + void insertAttributedString_atIndex_(NSAttributedString attrString, int loc) { + _lib._objc_msgSend_745( + _id, _lib._sel_insertAttributedString_atIndex_1, attrString._id, loc); } - void appendAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_650(_id, _lib._sel_appendAttributedString_1, - attrString?._id ?? ffi.nullptr); + void appendAttributedString_(NSAttributedString attrString) { + _lib._objc_msgSend_746( + _id, _lib._sel_appendAttributedString_1, attrString._id); } - void deleteCharactersInRange_(NSRange range) { - return _lib._objc_msgSend_416( - _id, _lib._sel_deleteCharactersInRange_1, range); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_deleteCharactersInRange_1, range); } - void setAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_650( - _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + void setAttributedString_(NSAttributedString attrString) { + _lib._objc_msgSend_746( + _id, _lib._sel_setAttributedString_1, attrString._id); } void beginEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); } void endEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + } + + void appendLocalizedFormat_(NSAttributedString format) { + _lib._objc_msgSend_746(_id, _lib._sel_appendLocalizedFormat_1, format._id); + } + + @override + NSMutableAttributedString initWithString_(NSString str) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, str._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithString_attributes_( + NSString str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_717( + _id, + _lib._sel_initWithString_attributes_1, + str._id, + attrs?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithAttributedString_( + NSAttributedString attrStr) { + final _ret = _lib._objc_msgSend_718( + _id, _lib._sel_initWithAttributedString_1, attrStr._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_725( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? initWithMarkdown_options_baseURL_error_( + NSData markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_726( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? initWithMarkdownString_options_baseURL_error_( + NSString markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_727( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } - void appendLocalizedFormat_(NSAttributedString? format) { - return _lib._objc_msgSend_650( - _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + @override + NSMutableAttributedString initWithFormat_options_locale_( + NSAttributedString format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_728( + _id, + _lib._sel_initWithFormat_options_locale_1, + format._id, + options, + locale?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_729( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } static NSMutableAttributedString localizedAttributedStringWithFormat_( - AVFAudio _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_627( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); + AVFAudio _lib, NSAttributedString format) { + final _ret = _lib._objc_msgSend_718(_lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, format._id); return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } static NSMutableAttributedString localizedAttributedStringWithFormat_options_( - AVFAudio _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_639( + AVFAudio _lib, NSAttributedString format, int options) { + final _ret = _lib._objc_msgSend_730( _lib._class_NSMutableAttributedString1, _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, + format._id, options); return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } + @override + NSMutableAttributedString initWithFormat_options_locale_context_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context) { + final _ret = _lib._objc_msgSend_731( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_732( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_context_( + AVFAudio _lib, NSAttributedString format, NSDictionary context) { + final _ret = _lib._objc_msgSend_733( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format._id, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString + localizedAttributedStringWithFormat_options_context_(AVFAudio _lib, + NSAttributedString format, int options, NSDictionary context) { + final _ret = _lib._objc_msgSend_734( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format._id, + options, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + static NSMutableAttributedString new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableAttributedString1, _lib._sel_new1); @@ -49822,6 +57381,14 @@ class NSMutableAttributedString extends NSAttributedString { retain: false, release: true); } + static NSMutableAttributedString allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMutableAttributedString1, + _lib._sel_allocWithZone_1, zone); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + static NSMutableAttributedString alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); @@ -49833,18 +57400,18 @@ class NSMutableAttributedString extends NSAttributedString { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49859,33 +57426,29 @@ class NSMutableAttributedString extends NSAttributedString { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableAttributedString1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -49922,116 +57485,112 @@ class NSDateFormatter extends NSFormatter { } int get formattingContext { - return _lib._objc_msgSend_655(_id, _lib._sel_formattingContext1); + return _lib._objc_msgSend_752(_id, _lib._sel_formattingContext1); } set formattingContext(int value) { - _lib._objc_msgSend_656(_id, _lib._sel_setFormattingContext_1, value); + return _lib._objc_msgSend_753(_id, _lib._sel_setFormattingContext_1, value); } bool getObjectValue_forString_range_error_( ffi.Pointer> obj, - NSString? string, - ffi.Pointer rangep, + NSString string, + ffi.Pointer<_NSRange> rangep, ffi.Pointer> error) { - return _lib._objc_msgSend_657( + return _lib._objc_msgSend_754( _id, _lib._sel_getObjectValue_forString_range_error_1, obj, - string?._id ?? ffi.nullptr, + string._id, rangep, error); } - NSString stringFromDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); + NSString stringFromDate_(NSDate date) { + final _ret = + _lib._objc_msgSend_755(_id, _lib._sel_stringFromDate_1, date._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSDate dateFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_496( - _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? dateFromString_(NSString string) { + final _ret = + _lib._objc_msgSend_564(_id, _lib._sel_dateFromString_1, string._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } static NSString localizedStringFromDate_dateStyle_timeStyle_( - AVFAudio _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_658( + AVFAudio _lib, NSDate date, int dstyle, int tstyle) { + final _ret = _lib._objc_msgSend_756( _lib._class_NSDateFormatter1, _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, - date?._id ?? ffi.nullptr, + date._id, dstyle, tstyle); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString dateFormatFromTemplate_options_locale_( - AVFAudio _lib, NSString? tmplate, int opts, NSLocale? locale) { - final _ret = _lib._objc_msgSend_659( + static NSString? dateFormatFromTemplate_options_locale_( + AVFAudio _lib, NSString tmplate, int opts, NSLocale? locale) { + final _ret = _lib._objc_msgSend_757( _lib._class_NSDateFormatter1, _lib._sel_dateFormatFromTemplate_options_locale_1, - tmplate?._id ?? ffi.nullptr, + tmplate._id, opts, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int getDefaultFormatterBehavior(AVFAudio _lib) { - return _lib._objc_msgSend_660( + return _lib._objc_msgSend_758( _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); } static void setDefaultFormatterBehavior(AVFAudio _lib, int value) { - _lib._objc_msgSend_661(_lib._class_NSDateFormatter1, + return _lib._objc_msgSend_759(_lib._class_NSDateFormatter1, _lib._sel_setDefaultFormatterBehavior_1, value); } - void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - return _lib._objc_msgSend_186( - _id, - _lib._sel_setLocalizedDateFormatFromTemplate_1, - dateFormatTemplate?._id ?? ffi.nullptr); + void setLocalizedDateFormatFromTemplate_(NSString dateFormatTemplate) { + _lib._objc_msgSend_248(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, + dateFormatTemplate._id); } - NSString? get dateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get dateFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dateFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - set dateFormat(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + set dateFormat(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setDateFormat_1, value._id); } int get dateStyle { - return _lib._objc_msgSend_662(_id, _lib._sel_dateStyle1); + return _lib._objc_msgSend_760(_id, _lib._sel_dateStyle1); } set dateStyle(int value) { - _lib._objc_msgSend_663(_id, _lib._sel_setDateStyle_1, value); + return _lib._objc_msgSend_761(_id, _lib._sel_setDateStyle_1, value); } int get timeStyle { - return _lib._objc_msgSend_662(_id, _lib._sel_timeStyle1); + return _lib._objc_msgSend_760(_id, _lib._sel_timeStyle1); } set timeStyle(int value) { - _lib._objc_msgSend_663(_id, _lib._sel_setTimeStyle_1, value); + return _lib._objc_msgSend_761(_id, _lib._sel_setTimeStyle_1, value); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_176(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + NSLocale get locale { + final _ret = _lib._objc_msgSend_197(_id, _lib._sel_locale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - set locale(NSLocale? value) { - _lib._objc_msgSend_664( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + set locale(NSLocale value) { + return _lib._objc_msgSend_762(_id, _lib._sel_setLocale_1, value._id); } bool get generatesCalendarDates { @@ -50039,39 +57598,34 @@ class NSDateFormatter extends NSFormatter { } set generatesCalendarDates(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setGeneratesCalendarDates_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setGeneratesCalendarDates_1, value); } int get formatterBehavior { - return _lib._objc_msgSend_660(_id, _lib._sel_formatterBehavior1); + return _lib._objc_msgSend_758(_id, _lib._sel_formatterBehavior1); } set formatterBehavior(int value) { - _lib._objc_msgSend_661(_id, _lib._sel_setFormatterBehavior_1, value); + return _lib._objc_msgSend_759(_id, _lib._sel_setFormatterBehavior_1, value); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone get timeZone { + final _ret = _lib._objc_msgSend_179(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_163( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + set timeZone(NSTimeZone value) { + return _lib._objc_msgSend_180(_id, _lib._sel_setTimeZone_1, value._id); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_665(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + NSCalendar get calendar { + final _ret = _lib._objc_msgSend_763(_id, _lib._sel_calendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - set calendar(NSCalendar? value) { - _lib._objc_msgSend_671( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + set calendar(NSCalendar value) { + return _lib._objc_msgSend_799(_id, _lib._sel_setCalendar_1, value._id); } bool get lenient { @@ -50079,291 +57633,245 @@ class NSDateFormatter extends NSFormatter { } set lenient(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLenient_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLenient_1, value); } NSDate? get twoDigitStartDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_twoDigitStartDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_twoDigitStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set twoDigitStartDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); } NSDate? get defaultDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_defaultDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_defaultDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set defaultDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get eraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_eraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set eraSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + set eraSymbols(NSArray value) { + return _lib._objc_msgSend_801(_id, _lib._sel_setEraSymbols_1, value._id); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get monthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_monthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set monthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + set monthSymbols(NSArray value) { + return _lib._objc_msgSend_801(_id, _lib._sel_setMonthSymbols_1, value._id); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + set shortMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortMonthSymbols_1, value._id); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get weekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_weekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set weekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set weekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setWeekdaySymbols_1, value._id); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set shortWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortWeekdaySymbols_1, value._id); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get AMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_AMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set AMSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + set AMSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setAMSymbol_1, value._id); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get PMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_PMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set PMSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + set PMSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPMSymbol_1, value._id); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get longEraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_longEraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set longEraSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + set longEraSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setLongEraSymbols_1, value._id); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + set veryShortMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortMonthSymbols_1, value._id); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_standaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + set standaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setStandaloneMonthSymbols_1, value._id); } - NSArray? get shortStandaloneMonthSymbols { + NSArray get shortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + set shortStandaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortStandaloneMonthSymbols_1, value._id); } - NSArray? get veryShortStandaloneMonthSymbols { + NSArray get veryShortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + set veryShortStandaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, value._id); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set veryShortWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortWeekdaySymbols_1, value._id); } - NSArray? get standaloneWeekdaySymbols { + NSArray get standaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set standaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setStandaloneWeekdaySymbols_1, value._id); } - NSArray? get shortStandaloneWeekdaySymbols { + NSArray get shortStandaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set shortStandaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortStandaloneWeekdaySymbols_1, value._id); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_80( + NSArray get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_85( _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, - _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set veryShortStandaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, value._id); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get quarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_quarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set quarterSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + set quarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setQuarterSymbols_1, value._id); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + set shortQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortQuarterSymbols_1, value._id); } - NSArray? get standaloneQuarterSymbols { + NSArray get standaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + set standaloneQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setStandaloneQuarterSymbols_1, value._id); } - NSArray? get shortStandaloneQuarterSymbols { + NSArray get shortStandaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortStandaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setShortStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + set shortStandaloneQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortStandaloneQuarterSymbols_1, value._id); } NSDate? get gregorianStartDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_gregorianStartDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_gregorianStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set gregorianStartDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); } @@ -50372,17 +57880,14 @@ class NSDateFormatter extends NSFormatter { } set doesRelativeDateFormatting(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setDoesRelativeDateFormatting_1, value); } NSObject initWithDateFormat_allowNaturalLanguage_( - NSString? format, bool flag) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initWithDateFormat_allowNaturalLanguage_1, - format?._id ?? ffi.nullptr, - flag); + NSString format, bool flag) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_initWithDateFormat_allowNaturalLanguage_1, format._id, flag); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -50390,12 +57895,25 @@ class NSDateFormatter extends NSFormatter { return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); } + @override + NSDateFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateFormatter._(_ret, _lib, retain: true, release: true); + } + static NSDateFormatter new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); return NSDateFormatter._(_ret, _lib, retain: false, release: true); } + static NSDateFormatter allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateFormatter1, _lib._sel_allocWithZone_1, zone); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + static NSDateFormatter alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); @@ -50406,18 +57924,18 @@ class NSDateFormatter extends NSFormatter { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDateFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -50432,33 +57950,29 @@ class NSDateFormatter extends NSFormatter { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDateFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDateFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDateFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDateFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSDateFormatter1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSDateFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -50493,48 +58007,54 @@ class NSFormatter extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); } - NSString stringForObjectValue_(NSObject obj) { - final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringForObjectValue_(NSObject? obj) { + final _ret = _lib._objc_msgSend_747( + _id, _lib._sel_stringForObjectValue_1, obj?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( + NSAttributedString? attributedStringForObjectValue_withDefaultAttributes_( NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_651( + final _ret = _lib._objc_msgSend_748( _id, _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, obj._id, attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSString editingStringForObjectValue_(NSObject obj) { - final _ret = _lib._objc_msgSend_65( + NSString? editingStringForObjectValue_(NSObject obj) { + final _ret = _lib._objc_msgSend_526( _id, _lib._sel_editingStringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } bool getObjectValue_forString_errorDescription_( ffi.Pointer> obj, - NSString? string, + NSString string, ffi.Pointer> error) { - return _lib._objc_msgSend_652( + return _lib._objc_msgSend_749( _id, _lib._sel_getObjectValue_forString_errorDescription_1, obj, - string?._id ?? ffi.nullptr, + string._id, error); } bool isPartialStringValid_newEditingString_errorDescription_( - NSString? partialString, + NSString partialString, ffi.Pointer> newString, ffi.Pointer> error) { - return _lib._objc_msgSend_653( + return _lib._objc_msgSend_750( _id, _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, - partialString?._id ?? ffi.nullptr, + partialString._id, newString, error); } @@ -50542,25 +58062,37 @@ class NSFormatter extends NSObject { bool isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( ffi.Pointer> partialStringPtr, - NSRangePointer proposedSelRangePtr, - NSString? origString, - NSRange origSelRange, + ffi.Pointer<_NSRange> proposedSelRangePtr, + NSString origString, + _NSRange origSelRange, ffi.Pointer> error) { - return _lib._objc_msgSend_654( + return _lib._objc_msgSend_751( _id, _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, partialStringPtr, proposedSelRangePtr, - origString?._id ?? ffi.nullptr, + origString._id, origSelRange, error); } + @override + NSFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFormatter._(_ret, _lib, retain: true, release: true); + } + static NSFormatter new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); return NSFormatter._(_ret, _lib, retain: false, release: true); } + static NSFormatter allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFormatter1, _lib._sel_allocWithZone_1, zone); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + static NSFormatter alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); @@ -50571,18 +58103,18 @@ class NSFormatter extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._objc_msgSend_15(_lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -50597,33 +58129,29 @@ class NSFormatter extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -50680,67 +58208,65 @@ class NSCalendar extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); } - static NSCalendar? getCurrentCalendar(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_665( + static NSCalendar getCurrentCalendar(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_763( _lib._class_NSCalendar1, _lib._sel_currentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSCalendar? getAutoupdatingCurrentCalendar(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_665( + static NSCalendar getAutoupdatingCurrentCalendar(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_763( _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } + + static NSCalendar? calendarWithIdentifier_( + AVFAudio _lib, NSString calendarIdentifierConstant) { + final _ret = _lib._objc_msgSend_764(_lib._class_NSCalendar1, + _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); return _ret.address == 0 ? null : NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSCalendar calendarWithIdentifier_( - AVFAudio _lib, NSCalendarIdentifier calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_666(_lib._class_NSCalendar1, - _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - @override NSCalendar init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSCalendar._(_ret, _lib, retain: true, release: true); } - NSObject initWithCalendarIdentifier_(NSCalendarIdentifier ident) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithCalendarIdentifier_1, ident); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithCalendarIdentifier_(NSString ident) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSCalendarIdentifier get calendarIdentifier { - return _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } NSLocale? get locale { - final _ret = _lib._objc_msgSend_176(_id, _lib._sel_locale1); + final _ret = _lib._objc_msgSend_765(_id, _lib._sel_locale1); return _ret.address == 0 ? null : NSLocale._(_ret, _lib, retain: true, release: true); } set locale(NSLocale? value) { - _lib._objc_msgSend_664( + return _lib._objc_msgSend_766( _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone get timeZone { + final _ret = _lib._objc_msgSend_179(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_163( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + set timeZone(NSTimeZone value) { + return _lib._objc_msgSend_180(_id, _lib._sel_setTimeZone_1, value._id); } int get firstWeekday { @@ -50748,7 +58274,7 @@ class NSCalendar extends NSObject { } set firstWeekday(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setFirstWeekday_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setFirstWeekday_1, value); } int get minimumDaysInFirstWeek { @@ -50756,281 +58282,243 @@ class NSCalendar extends NSObject { } set minimumDaysInFirstWeek(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get eraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_eraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get longEraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_longEraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get monthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_monthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_standaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneMonthSymbols { + NSArray get shortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneMonthSymbols { + NSArray get veryShortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get weekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_weekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneWeekdaySymbols { + NSArray get standaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneWeekdaySymbols { + NSArray get shortStandaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_80( + NSArray get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_85( _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get quarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_quarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneQuarterSymbols { + NSArray get standaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneQuarterSymbols { + NSArray get shortStandaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get AMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_AMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get PMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_PMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSRange minimumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_667(_id, _lib._sel_minimumRangeOfUnit_1, unit); + void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_767(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); } - NSRange maximumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_667(_id, _lib._sel_maximumRangeOfUnit_1, unit); + void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_767(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); } - NSRange rangeOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_668(_id, _lib._sel_rangeOfUnit_inUnit_forDate_1, - smaller, larger, date?._id ?? ffi.nullptr); + void rangeOfUnit_inUnit_forDate_( + ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate date) { + _lib._objc_msgSend_768(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + smaller, larger, date._id); } - int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_669( - _id, - _lib._sel_ordinalityOfUnit_inUnit_forDate_1, - smaller, - larger, - date?._id ?? ffi.nullptr); + int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate date) { + return _lib._objc_msgSend_769(_id, + _lib._sel_ordinalityOfUnit_inUnit_forDate_1, smaller, larger, date._id); } bool rangeOfUnit_startDate_interval_forDate_( int unit, ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_670( + ffi.Pointer tip, + NSDate date) { + return _lib._objc_msgSend_770( _id, _lib._sel_rangeOfUnit_startDate_interval_forDate_1, unit, datep, tip, - date?._id ?? ffi.nullptr); + date._id); } - NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_675( - _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? dateFromComponents_(NSDateComponents comps) { + final _ret = + _lib._objc_msgSend_778(_id, _lib._sel_dateFromComponents_1, comps._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { - final _ret = _lib._objc_msgSend_676(_id, _lib._sel_components_fromDate_1, - unitFlags, date?._id ?? ffi.nullptr); + NSDateComponents components_fromDate_(int unitFlags, NSDate date) { + final _ret = _lib._objc_msgSend_779( + _id, _lib._sel_components_fromDate_1, unitFlags, date._id); return NSDateComponents._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingComponents_toDate_options_( - NSDateComponents? comps, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_677( + NSDate? dateByAddingComponents_toDate_options_( + NSDateComponents comps, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_780( _id, _lib._sel_dateByAddingComponents_toDate_options_1, - comps?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr, + comps._id, + date._id, opts); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } NSDateComponents components_fromDate_toDate_options_( - int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_678( + int unitFlags, NSDate startingDate, NSDate resultDate, int opts) { + final _ret = _lib._objc_msgSend_781( _id, _lib._sel_components_fromDate_toDate_options_1, unitFlags, - startingDate?._id ?? ffi.nullptr, - resultDate?._id ?? ffi.nullptr, + startingDate._id, + resultDate._id, opts); return NSDateComponents._(_ret, _lib, retain: true, release: true); } void getEra_year_month_day_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_679( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + NSDate date) { + _lib._objc_msgSend_782( _id, _lib._sel_getEra_year_month_day_fromDate_1, eraValuePointer, yearValuePointer, monthValuePointer, dayValuePointer, - date?._id ?? ffi.nullptr); + date._id); } void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer weekValuePointer, - ffi.Pointer weekdayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_679( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer weekValuePointer, + ffi.Pointer weekdayValuePointer, + NSDate date) { + _lib._objc_msgSend_782( _id, _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, eraValuePointer, yearValuePointer, weekValuePointer, weekdayValuePointer, - date?._id ?? ffi.nullptr); + date._id); } void getHour_minute_second_nanosecond_fromDate_( - ffi.Pointer hourValuePointer, - ffi.Pointer minuteValuePointer, - ffi.Pointer secondValuePointer, - ffi.Pointer nanosecondValuePointer, - NSDate? date) { - return _lib._objc_msgSend_679( + ffi.Pointer hourValuePointer, + ffi.Pointer minuteValuePointer, + ffi.Pointer secondValuePointer, + ffi.Pointer nanosecondValuePointer, + NSDate date) { + _lib._objc_msgSend_782( _id, _lib._sel_getHour_minute_second_nanosecond_fromDate_1, hourValuePointer, minuteValuePointer, secondValuePointer, nanosecondValuePointer, - date?._id ?? ffi.nullptr); + date._id); } - int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_680( - _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + int component_fromDate_(int unit, NSDate date) { + return _lib._objc_msgSend_783( + _id, _lib._sel_component_fromDate_1, unit, date._id); } - NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( + NSDate? dateWithEra_year_month_day_hour_minute_second_nanosecond_( int eraValue, int yearValue, int monthValue, @@ -51039,7 +58527,7 @@ class NSCalendar extends NSObject { int minuteValue, int secondValue, int nanosecondValue) { - final _ret = _lib._objc_msgSend_681( + final _ret = _lib._objc_msgSend_784( _id, _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, eraValue, @@ -51050,10 +58538,12 @@ class NSCalendar extends NSObject { minuteValue, secondValue, nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate + NSDate? dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( int eraValue, int yearValue, @@ -51063,7 +58553,7 @@ class NSCalendar extends NSObject { int minuteValue, int secondValue, int nanosecondValue) { - final _ret = _lib._objc_msgSend_681( + final _ret = _lib._objc_msgSend_784( _id, _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, eraValue, @@ -51074,198 +58564,208 @@ class NSCalendar extends NSObject { minuteValue, secondValue, nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate startOfDayForDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_152( - _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); + NSDate startOfDayForDate_(NSDate date) { + final _ret = + _lib._objc_msgSend_168(_id, _lib._sel_startOfDayForDate_1, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } NSDateComponents componentsInTimeZone_fromDate_( - NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_682( - _id, - _lib._sel_componentsInTimeZone_fromDate_1, - timezone?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr); + NSTimeZone timezone, NSDate date) { + final _ret = _lib._objc_msgSend_785( + _id, _lib._sel_componentsInTimeZone_fromDate_1, timezone._id, date._id); return NSDateComponents._(_ret, _lib, retain: true, release: true); } int compareDate_toDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_683( + NSDate date1, NSDate date2, int unit) { + return _lib._objc_msgSend_786( _id, _lib._sel_compareDate_toDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, + date1._id, + date2._id, unit); } bool isDate_equalToDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_684( + NSDate date1, NSDate date2, int unit) { + return _lib._objc_msgSend_787( _id, _lib._sel_isDate_equalToDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, + date1._id, + date2._id, unit); } - bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_685(_id, _lib._sel_isDate_inSameDayAsDate_1, - date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); + bool isDate_inSameDayAsDate_(NSDate date1, NSDate date2) { + return _lib._objc_msgSend_788( + _id, _lib._sel_isDate_inSameDayAsDate_1, date1._id, date2._id); } - bool isDateInToday_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); + bool isDateInToday_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInToday_1, date._id); } - bool isDateInYesterday_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + bool isDateInYesterday_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInYesterday_1, date._id); } - bool isDateInTomorrow_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + bool isDateInTomorrow_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInTomorrow_1, date._id); } - bool isDateInWeekend_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + bool isDateInWeekend_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInWeekend_1, date._id); } bool rangeOfWeekendStartDate_interval_containingDate_( ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_686( + ffi.Pointer tip, + NSDate date) { + return _lib._objc_msgSend_789( _id, _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, datep, tip, - date?._id ?? ffi.nullptr); + date._id); } bool nextWeekendStartDate_interval_options_afterDate_( ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, int options, - NSDate? date) { - return _lib._objc_msgSend_687( + NSDate date) { + return _lib._objc_msgSend_790( _id, _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, datep, tip, options, - date?._id ?? ffi.nullptr); + date._id); } NSDateComponents components_fromDateComponents_toDateComponents_options_( int unitFlags, - NSDateComponents? startingDateComp, - NSDateComponents? resultDateComp, + NSDateComponents startingDateComp, + NSDateComponents resultDateComp, int options) { - final _ret = _lib._objc_msgSend_688( + final _ret = _lib._objc_msgSend_791( _id, _lib._sel_components_fromDateComponents_toDateComponents_options_1, unitFlags, - startingDateComp?._id ?? ffi.nullptr, - resultDateComp?._id ?? ffi.nullptr, + startingDateComp._id, + resultDateComp._id, options); return NSDateComponents._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingUnit_value_toDate_options_( - int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_689( + NSDate? dateByAddingUnit_value_toDate_options_( + int unit, int value, NSDate date, int options) { + final _ret = _lib._objc_msgSend_792( _id, _lib._sel_dateByAddingUnit_value_toDate_options_1, unit, value, - date?._id ?? ffi.nullptr, + date._id, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, NSDateComponents? comps, int opts, ObjCBlock28 block) { - return _lib._objc_msgSend_690( + NSDate start, + NSDateComponents comps, + int opts, + ObjCBlock_ffiVoid_NSDate_bool_bool block) { + _lib._objc_msgSend_793( _id, _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, - start?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, + start._id, + comps._id, opts, block._id); } - NSDate nextDateAfterDate_matchingComponents_options_( - NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_691( + NSDate? nextDateAfterDate_matchingComponents_options_( + NSDate date, NSDateComponents comps, int options) { + final _ret = _lib._objc_msgSend_794( _id, _lib._sel_nextDateAfterDate_matchingComponents_options_1, - date?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, + date._id, + comps._id, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingUnit_value_options_( - NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_692( + NSDate? nextDateAfterDate_matchingUnit_value_options_( + NSDate date, int unit, int value, int options) { + final _ret = _lib._objc_msgSend_795( _id, _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, - date?._id ?? ffi.nullptr, + date._id, unit, value, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, + NSDate? nextDateAfterDate_matchingHour_minute_second_options_(NSDate date, int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_693( + final _ret = _lib._objc_msgSend_796( _id, _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, - date?._id ?? ffi.nullptr, + date._id, hourValue, minuteValue, secondValue, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate dateBySettingUnit_value_ofDate_options_( - int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_689( + NSDate? dateBySettingUnit_value_ofDate_options_( + int unit, int v, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_792( _id, _lib._sel_dateBySettingUnit_value_ofDate_options_1, unit, v, - date?._id ?? ffi.nullptr, + date._id, opts); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate dateBySettingHour_minute_second_ofDate_options_( - int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_694( + NSDate? dateBySettingHour_minute_second_ofDate_options_( + int h, int m, int s, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_797( _id, _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, h, m, s, - date?._id ?? ffi.nullptr, + date._id, opts); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_695(_id, _lib._sel_date_matchesComponents_1, - date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + bool date_matchesComponents_(NSDate date, NSDateComponents components) { + return _lib._objc_msgSend_798( + _id, _lib._sel_date_matchesComponents_1, date._id, components._id); } static NSCalendar new1(AVFAudio _lib) { @@ -51273,6 +58773,12 @@ class NSCalendar extends NSObject { return NSCalendar._(_ret, _lib, retain: false, release: true); } + static NSCalendar allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendar1, _lib._sel_allocWithZone_1, zone); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + static NSCalendar alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); @@ -51283,18 +58789,18 @@ class NSCalendar extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._objc_msgSend_15(_lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -51309,33 +58815,29 @@ class NSCalendar extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendar1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCalendar1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendar1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCalendar1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCalendar1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -51347,8 +58849,6 @@ class NSCalendar extends NSObject { } } -typedef NSCalendarIdentifier = ffi.Pointer; - abstract class NSCalendarUnit { static const int NSCalendarUnitEra = 2; static const int NSCalendarUnitYear = 4; @@ -51409,139 +58909,139 @@ class NSDateComponents extends NSObject { } NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_665(_id, _lib._sel_calendar1); + final _ret = _lib._objc_msgSend_771(_id, _lib._sel_calendar1); return _ret.address == 0 ? null : NSCalendar._(_ret, _lib, retain: true, release: true); } set calendar(NSCalendar? value) { - _lib._objc_msgSend_671( + return _lib._objc_msgSend_772( _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); + final _ret = _lib._objc_msgSend_773(_id, _lib._sel_timeZone1); return _ret.address == 0 ? null : NSTimeZone._(_ret, _lib, retain: true, release: true); } set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_163( + return _lib._objc_msgSend_774( _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } int get era { - return _lib._objc_msgSend_78(_id, _lib._sel_era1); + return _lib._objc_msgSend_83(_id, _lib._sel_era1); } set era(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setEra_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setEra_1, value); } int get year { - return _lib._objc_msgSend_78(_id, _lib._sel_year1); + return _lib._objc_msgSend_83(_id, _lib._sel_year1); } set year(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setYear_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setYear_1, value); } int get month { - return _lib._objc_msgSend_78(_id, _lib._sel_month1); + return _lib._objc_msgSend_83(_id, _lib._sel_month1); } set month(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setMonth_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setMonth_1, value); } int get day { - return _lib._objc_msgSend_78(_id, _lib._sel_day1); + return _lib._objc_msgSend_83(_id, _lib._sel_day1); } set day(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setDay_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setDay_1, value); } int get hour { - return _lib._objc_msgSend_78(_id, _lib._sel_hour1); + return _lib._objc_msgSend_83(_id, _lib._sel_hour1); } set hour(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setHour_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setHour_1, value); } int get minute { - return _lib._objc_msgSend_78(_id, _lib._sel_minute1); + return _lib._objc_msgSend_83(_id, _lib._sel_minute1); } set minute(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setMinute_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setMinute_1, value); } int get second { - return _lib._objc_msgSend_78(_id, _lib._sel_second1); + return _lib._objc_msgSend_83(_id, _lib._sel_second1); } set second(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setSecond_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setSecond_1, value); } int get nanosecond { - return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); + return _lib._objc_msgSend_83(_id, _lib._sel_nanosecond1); } set nanosecond(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setNanosecond_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setNanosecond_1, value); } int get weekday { - return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekday1); } set weekday(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekday_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekday_1, value); } int get weekdayOrdinal { - return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekdayOrdinal1); } set weekdayOrdinal(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekdayOrdinal_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekdayOrdinal_1, value); } int get quarter { - return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); + return _lib._objc_msgSend_83(_id, _lib._sel_quarter1); } set quarter(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setQuarter_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setQuarter_1, value); } int get weekOfMonth { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekOfMonth1); } set weekOfMonth(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekOfMonth_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekOfMonth_1, value); } int get weekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekOfYear1); } set weekOfYear(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekOfYear_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekOfYear_1, value); } int get yearForWeekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_yearForWeekOfYear1); } set yearForWeekOfYear(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setYearForWeekOfYear_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setYearForWeekOfYear_1, value); } bool get leapMonth { @@ -51549,40 +59049,45 @@ class NSDateComponents extends NSObject { } set leapMonth(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLeapMonth_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLeapMonth_1, value); } NSDate? get date { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_date1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_date1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } int week() { - return _lib._objc_msgSend_78(_id, _lib._sel_week1); + return _lib._objc_msgSend_83(_id, _lib._sel_week1); } void setWeek_(int v) { - return _lib._objc_msgSend_374(_id, _lib._sel_setWeek_1, v); + _lib._objc_msgSend_423(_id, _lib._sel_setWeek_1, v); } void setValue_forComponent_(int value, int unit) { - return _lib._objc_msgSend_672( - _id, _lib._sel_setValue_forComponent_1, value, unit); + _lib._objc_msgSend_775(_id, _lib._sel_setValue_forComponent_1, value, unit); } int valueForComponent_(int unit) { - return _lib._objc_msgSend_673(_id, _lib._sel_valueForComponent_1, unit); + return _lib._objc_msgSend_776(_id, _lib._sel_valueForComponent_1, unit); } bool get validDate { return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); } - bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_674( - _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + bool isValidDateInCalendar_(NSCalendar calendar) { + return _lib._objc_msgSend_777( + _id, _lib._sel_isValidDateInCalendar_1, calendar._id); + } + + @override + NSDateComponents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } static NSDateComponents new1(AVFAudio _lib) { @@ -51591,6 +59096,13 @@ class NSDateComponents extends NSObject { return NSDateComponents._(_ret, _lib, retain: false, release: true); } + static NSDateComponents allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateComponents1, _lib._sel_allocWithZone_1, zone); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + static NSDateComponents alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); @@ -51601,18 +59113,18 @@ class NSDateComponents extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._objc_msgSend_15(_lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -51627,33 +59139,29 @@ class NSDateComponents extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateComponents1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDateComponents1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDateComponents1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDateComponents1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDateComponents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSDateComponents1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSDateComponents1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -51676,38 +59184,48 @@ abstract class NSCalendarOptions { static const int NSCalendarMatchLast = 8192; } -void _ObjCBlock28_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock28_closureRegistry = {}; -int _ObjCBlock28_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { - final id = ++_ObjCBlock28_closureRegistryIndex; - _ObjCBlock28_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock28_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock28_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock28 extends _ObjCBlockBase { - ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDate_bool_bool._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock28.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -51716,54 +59234,87 @@ class ObjCBlock28 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock28_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock28.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( + AVFAudio lib, void Function(NSDate?, bool, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock28_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) .cast(), - _ObjCBlock28_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSDate._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDate_bool_bool.listener( + AVFAudio lib, void Function(NSDate?, bool, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSDate._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSDate? arg0, bool arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, bool, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } class NSNumberFormatter extends NSFormatter { @@ -51791,77 +59342,75 @@ class NSNumberFormatter extends NSFormatter { } int get formattingContext { - return _lib._objc_msgSend_655(_id, _lib._sel_formattingContext1); + return _lib._objc_msgSend_752(_id, _lib._sel_formattingContext1); } set formattingContext(int value) { - _lib._objc_msgSend_656(_id, _lib._sel_setFormattingContext_1, value); + return _lib._objc_msgSend_753(_id, _lib._sel_setFormattingContext_1, value); } bool getObjectValue_forString_range_error_( ffi.Pointer> obj, - NSString? string, - ffi.Pointer rangep, + NSString string, + ffi.Pointer<_NSRange> rangep, ffi.Pointer> error) { - return _lib._objc_msgSend_657( + return _lib._objc_msgSend_754( _id, _lib._sel_getObjectValue_forString_range_error_1, obj, - string?._id ?? ffi.nullptr, + string._id, rangep, error); } - NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_697( - _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringFromNumber_(NSNumber number) { + final _ret = + _lib._objc_msgSend_802(_id, _lib._sel_stringFromNumber_1, number._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber numberFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_698( - _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber? numberFromString_(NSString string) { + final _ret = + _lib._objc_msgSend_803(_id, _lib._sel_numberFromString_1, string._id); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } static NSString localizedStringFromNumber_numberStyle_( - AVFAudio _lib, NSNumber? num, int nstyle) { - final _ret = _lib._objc_msgSend_699( - _lib._class_NSNumberFormatter1, - _lib._sel_localizedStringFromNumber_numberStyle_1, - num?._id ?? ffi.nullptr, - nstyle); + AVFAudio _lib, NSNumber num, int nstyle) { + final _ret = _lib._objc_msgSend_804(_lib._class_NSNumberFormatter1, + _lib._sel_localizedStringFromNumber_numberStyle_1, num._id, nstyle); return NSString._(_ret, _lib, retain: true, release: true); } static int defaultFormatterBehavior(AVFAudio _lib) { - return _lib._objc_msgSend_700( + return _lib._objc_msgSend_805( _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); } static void setDefaultFormatterBehavior_(AVFAudio _lib, int behavior) { - return _lib._objc_msgSend_701(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_806(_lib._class_NSNumberFormatter1, _lib._sel_setDefaultFormatterBehavior_1, behavior); } int get numberStyle { - return _lib._objc_msgSend_702(_id, _lib._sel_numberStyle1); + return _lib._objc_msgSend_807(_id, _lib._sel_numberStyle1); } set numberStyle(int value) { - _lib._objc_msgSend_703(_id, _lib._sel_setNumberStyle_1, value); + return _lib._objc_msgSend_808(_id, _lib._sel_setNumberStyle_1, value); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_176(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + NSLocale get locale { + final _ret = _lib._objc_msgSend_197(_id, _lib._sel_locale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - set locale(NSLocale? value) { - _lib._objc_msgSend_664( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + set locale(NSLocale value) { + return _lib._objc_msgSend_762(_id, _lib._sel_setLocale_1, value._id); } bool get generatesDecimalNumbers { @@ -51869,64 +59418,65 @@ class NSNumberFormatter extends NSFormatter { } set generatesDecimalNumbers(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setGeneratesDecimalNumbers_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setGeneratesDecimalNumbers_1, value); } int get formatterBehavior { - return _lib._objc_msgSend_700(_id, _lib._sel_formatterBehavior1); + return _lib._objc_msgSend_805(_id, _lib._sel_formatterBehavior1); } set formatterBehavior(int value) { - _lib._objc_msgSend_704(_id, _lib._sel_setFormatterBehavior_1, value); + return _lib._objc_msgSend_809(_id, _lib._sel_setFormatterBehavior_1, value); } - NSString? get negativeFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativeFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativeFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativeFormat(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); + set negativeFormat(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativeFormat_1, value._id); } NSDictionary? get textAttributesForNegativeValues { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForNegativeValues1); + _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForNegativeValues1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForNegativeValues(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setTextAttributesForNegativeValues_1, + return _lib._objc_msgSend_634( + _id, + _lib._sel_setTextAttributesForNegativeValues_1, value?._id ?? ffi.nullptr); } - NSString? get positiveFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positiveFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positiveFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positiveFormat(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); + set positiveFormat(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositiveFormat_1, value._id); } NSDictionary? get textAttributesForPositiveValues { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForPositiveValues1); + _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForPositiveValues1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForPositiveValues(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setTextAttributesForPositiveValues_1, + return _lib._objc_msgSend_634( + _id, + _lib._sel_setTextAttributesForPositiveValues_1, value?._id ?? ffi.nullptr); } @@ -51935,19 +59485,17 @@ class NSNumberFormatter extends NSFormatter { } set allowsFloats(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsFloats_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setAllowsFloats_1, value); } - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get decimalSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_decimalSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set decimalSeparator(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); + set decimalSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setDecimalSeparator_1, value._id); } bool get alwaysShowsDecimalSeparator { @@ -51955,21 +59503,19 @@ class NSNumberFormatter extends NSFormatter { } set alwaysShowsDecimalSeparator(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); } - NSString? get currencyDecimalSeparator { + NSString get currencyDecimalSeparator { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_currencyDecimalSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencyDecimalSeparator(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setCurrencyDecimalSeparator_1, - value?._id ?? ffi.nullptr); + set currencyDecimalSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrencyDecimalSeparator_1, value._id); } bool get usesGroupingSeparator { @@ -51977,108 +59523,100 @@ class NSNumberFormatter extends NSFormatter { } set usesGroupingSeparator(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setUsesGroupingSeparator_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setUsesGroupingSeparator_1, value); } - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get groupingSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_groupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set groupingSeparator(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); + set groupingSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setGroupingSeparator_1, value._id); } NSString? get zeroSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_zeroSymbol1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set zeroSymbol(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); } NSDictionary? get textAttributesForZero { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForZero1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForZero1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForZero(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); } - NSString? get nilSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get nilSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_nilSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set nilSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + set nilSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setNilSymbol_1, value._id); } NSDictionary? get textAttributesForNil { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForNil1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForNil1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForNil(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); } - NSString? get notANumberSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get notANumberSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_notANumberSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set notANumberSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + set notANumberSymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNotANumberSymbol_1, value._id); } NSDictionary? get textAttributesForNotANumber { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForNotANumber1); + _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForNotANumber1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForNotANumber(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setTextAttributesForNotANumber_1, - value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_634(_id, + _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); } - NSString? get positiveInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positiveInfinitySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positiveInfinitySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positiveInfinitySymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + set positiveInfinitySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositiveInfinitySymbol_1, value._id); } NSDictionary? get textAttributesForPositiveInfinity { - final _ret = _lib._objc_msgSend_164( + final _ret = _lib._objc_msgSend_390( _id, _lib._sel_textAttributesForPositiveInfinity1); return _ret.address == 0 ? null @@ -52086,26 +59624,24 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForPositiveInfinity(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForPositiveInfinity_1, value?._id ?? ffi.nullptr); } - NSString? get negativeInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativeInfinitySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativeInfinitySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativeInfinitySymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + set negativeInfinitySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativeInfinitySymbol_1, value._id); } NSDictionary? get textAttributesForNegativeInfinity { - final _ret = _lib._objc_msgSend_164( + final _ret = _lib._objc_msgSend_390( _id, _lib._sel_textAttributesForNegativeInfinity1); return _ret.address == 0 ? null @@ -52113,155 +59649,126 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForNegativeInfinity(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForNegativeInfinity_1, value?._id ?? ffi.nullptr); } - NSString? get positivePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positivePrefix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positivePrefix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positivePrefix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + set positivePrefix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositivePrefix_1, value._id); } - NSString? get positiveSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positiveSuffix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positiveSuffix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positiveSuffix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + set positiveSuffix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositiveSuffix_1, value._id); } - NSString? get negativePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativePrefix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativePrefix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativePrefix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + set negativePrefix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativePrefix_1, value._id); } - NSString? get negativeSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativeSuffix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativeSuffix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativeSuffix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + set negativeSuffix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativeSuffix_1, value._id); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currencyCode { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencyCode1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencyCode(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); + set currencyCode(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setCurrencyCode_1, value._id); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currencySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencySymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + set currencySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrencySymbol_1, value._id); } - NSString? get internationalCurrencySymbol { + NSString get internationalCurrencySymbol { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_internationalCurrencySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set internationalCurrencySymbol(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setInternationalCurrencySymbol_1, - value?._id ?? ffi.nullptr); + set internationalCurrencySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setInternationalCurrencySymbol_1, value._id); } - NSString? get percentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get percentSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_percentSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set percentSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + set percentSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPercentSymbol_1, value._id); } - NSString? get perMillSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get perMillSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_perMillSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set perMillSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); + set perMillSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPerMillSymbol_1, value._id); } - NSString? get minusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get minusSign { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_minusSign1); + return NSString._(_ret, _lib, retain: true, release: true); } - set minusSign(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); + set minusSign(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setMinusSign_1, value._id); } - NSString? get plusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get plusSign { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_plusSign1); + return NSString._(_ret, _lib, retain: true, release: true); } - set plusSign(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + set plusSign(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPlusSign_1, value._id); } - NSString? get exponentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get exponentSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_exponentSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set exponentSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); + set exponentSymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setExponentSymbol_1, value._id); } int get groupingSize { @@ -52269,7 +59776,7 @@ class NSNumberFormatter extends NSFormatter { } set groupingSize(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setGroupingSize_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setGroupingSize_1, value); } int get secondaryGroupingSize { @@ -52277,18 +59784,19 @@ class NSNumberFormatter extends NSFormatter { } set secondaryGroupingSize(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setSecondaryGroupingSize_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setSecondaryGroupingSize_1, value); } NSNumber? get multiplier { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_multiplier1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_multiplier1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set multiplier(NSNumber? value) { - _lib._objc_msgSend_705( + return _lib._objc_msgSend_670( _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); } @@ -52297,47 +59805,43 @@ class NSNumberFormatter extends NSFormatter { } set formatWidth(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setFormatWidth_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setFormatWidth_1, value); } - NSString? get paddingCharacter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get paddingCharacter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_paddingCharacter1); + return NSString._(_ret, _lib, retain: true, release: true); } - set paddingCharacter(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); + set paddingCharacter(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPaddingCharacter_1, value._id); } int get paddingPosition { - return _lib._objc_msgSend_706(_id, _lib._sel_paddingPosition1); + return _lib._objc_msgSend_810(_id, _lib._sel_paddingPosition1); } set paddingPosition(int value) { - _lib._objc_msgSend_707(_id, _lib._sel_setPaddingPosition_1, value); + return _lib._objc_msgSend_811(_id, _lib._sel_setPaddingPosition_1, value); } int get roundingMode { - return _lib._objc_msgSend_708(_id, _lib._sel_roundingMode1); + return _lib._objc_msgSend_812(_id, _lib._sel_roundingMode1); } set roundingMode(int value) { - _lib._objc_msgSend_709(_id, _lib._sel_setRoundingMode_1, value); + return _lib._objc_msgSend_813(_id, _lib._sel_setRoundingMode_1, value); } - NSNumber? get roundingIncrement { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_roundingIncrement1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber get roundingIncrement { + final _ret = _lib._objc_msgSend_814(_id, _lib._sel_roundingIncrement1); + return NSNumber._(_ret, _lib, retain: true, release: true); } - set roundingIncrement(NSNumber? value) { - _lib._objc_msgSend_705( - _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); + set roundingIncrement(NSNumber value) { + return _lib._objc_msgSend_815( + _id, _lib._sel_setRoundingIncrement_1, value._id); } int get minimumIntegerDigits { @@ -52345,7 +59849,8 @@ class NSNumberFormatter extends NSFormatter { } set minimumIntegerDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumIntegerDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumIntegerDigits_1, value); } int get maximumIntegerDigits { @@ -52353,7 +59858,8 @@ class NSNumberFormatter extends NSFormatter { } set maximumIntegerDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMaximumIntegerDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMaximumIntegerDigits_1, value); } int get minimumFractionDigits { @@ -52361,7 +59867,8 @@ class NSNumberFormatter extends NSFormatter { } set minimumFractionDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumFractionDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumFractionDigits_1, value); } int get maximumFractionDigits { @@ -52369,44 +59876,43 @@ class NSNumberFormatter extends NSFormatter { } set maximumFractionDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMaximumFractionDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMaximumFractionDigits_1, value); } NSNumber? get minimum { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_minimum1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_minimum1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set minimum(NSNumber? value) { - _lib._objc_msgSend_705( + return _lib._objc_msgSend_670( _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); } NSNumber? get maximum { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_maximum1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_maximum1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set maximum(NSNumber? value) { - _lib._objc_msgSend_705( + return _lib._objc_msgSend_670( _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); } - NSString? get currencyGroupingSeparator { + NSString get currencyGroupingSeparator { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_currencyGroupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencyGroupingSeparator(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setCurrencyGroupingSeparator_1, - value?._id ?? ffi.nullptr); + set currencyGroupingSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrencyGroupingSeparator_1, value._id); } bool get lenient { @@ -52414,7 +59920,7 @@ class NSNumberFormatter extends NSFormatter { } set lenient(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLenient_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLenient_1, value); } bool get usesSignificantDigits { @@ -52422,7 +59928,8 @@ class NSNumberFormatter extends NSFormatter { } set usesSignificantDigits(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setUsesSignificantDigits_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setUsesSignificantDigits_1, value); } int get minimumSignificantDigits { @@ -52430,7 +59937,8 @@ class NSNumberFormatter extends NSFormatter { } set minimumSignificantDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumSignificantDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumSignificantDigits_1, value); } int get maximumSignificantDigits { @@ -52438,7 +59946,8 @@ class NSNumberFormatter extends NSFormatter { } set maximumSignificantDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMaximumSignificantDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMaximumSignificantDigits_1, value); } bool get partialStringValidationEnabled { @@ -52447,7 +59956,7 @@ class NSNumberFormatter extends NSFormatter { } set partialStringValidationEnabled(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setPartialStringValidationEnabled_1, value); } @@ -52456,19 +59965,18 @@ class NSNumberFormatter extends NSFormatter { } set hasThousandSeparators(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHasThousandSeparators_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHasThousandSeparators_1, value); } - NSString? get thousandSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get thousandSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_thousandSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set thousandSeparator(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); + set thousandSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setThousandSeparator_1, value._id); } bool get localizesFormat { @@ -52476,69 +59984,64 @@ class NSNumberFormatter extends NSFormatter { } set localizesFormat(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLocalizesFormat_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLocalizesFormat_1, value); } - NSString? get format { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get format { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_format1); + return NSString._(_ret, _lib, retain: true, release: true); } - set format(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + set format(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setFormat_1, value._id); } - NSAttributedString? get attributedStringForZero { + NSAttributedString get attributedStringForZero { final _ret = - _lib._objc_msgSend_640(_id, _lib._sel_attributedStringForZero1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_735(_id, _lib._sel_attributedStringForZero1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - set attributedStringForZero(NSAttributedString? value) { - _lib._objc_msgSend_710( - _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + set attributedStringForZero(NSAttributedString value) { + return _lib._objc_msgSend_816( + _id, _lib._sel_setAttributedStringForZero_1, value._id); } - NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_640(_id, _lib._sel_attributedStringForNil1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + NSAttributedString get attributedStringForNil { + final _ret = _lib._objc_msgSend_735(_id, _lib._sel_attributedStringForNil1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - set attributedStringForNil(NSAttributedString? value) { - _lib._objc_msgSend_710( - _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); + set attributedStringForNil(NSAttributedString value) { + return _lib._objc_msgSend_816( + _id, _lib._sel_setAttributedStringForNil_1, value._id); } - NSAttributedString? get attributedStringForNotANumber { + NSAttributedString get attributedStringForNotANumber { final _ret = - _lib._objc_msgSend_640(_id, _lib._sel_attributedStringForNotANumber1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_735(_id, _lib._sel_attributedStringForNotANumber1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - set attributedStringForNotANumber(NSAttributedString? value) { - _lib._objc_msgSend_710(_id, _lib._sel_setAttributedStringForNotANumber_1, - value?._id ?? ffi.nullptr); + set attributedStringForNotANumber(NSAttributedString value) { + return _lib._objc_msgSend_816( + _id, _lib._sel_setAttributedStringForNotANumber_1, value._id); } - NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_711(_id, _lib._sel_roundingBehavior1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + NSDecimalNumberHandler get roundingBehavior { + final _ret = _lib._objc_msgSend_817(_id, _lib._sel_roundingBehavior1); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - set roundingBehavior(NSDecimalNumberHandler? value) { - _lib._objc_msgSend_713( - _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + set roundingBehavior(NSDecimalNumberHandler value) { + return _lib._objc_msgSend_819( + _id, _lib._sel_setRoundingBehavior_1, value._id); + } + + @override + NSNumberFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumberFormatter._(_ret, _lib, retain: true, release: true); } static NSNumberFormatter new1(AVFAudio _lib) { @@ -52547,6 +60050,13 @@ class NSNumberFormatter extends NSFormatter { return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } + static NSNumberFormatter allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNumberFormatter1, _lib._sel_allocWithZone_1, zone); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + } + static NSNumberFormatter alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); @@ -52557,18 +60067,18 @@ class NSNumberFormatter extends NSFormatter { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -52583,33 +60093,29 @@ class NSNumberFormatter extends NSFormatter { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumberFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNumberFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNumberFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNumberFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNumberFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSNumberFormatter1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSNumberFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -52682,12 +60188,10 @@ class NSDecimalNumberHandler extends NSObject { obj._lib._class_NSDecimalNumberHandler1); } - static NSDecimalNumberHandler? getDefaultDecimalNumberHandler(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_711(_lib._class_NSDecimalNumberHandler1, + static NSDecimalNumberHandler getDefaultDecimalNumberHandler(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_817(_lib._class_NSDecimalNumberHandler1, _lib._sel_defaultDecimalNumberHandler1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } NSDecimalNumberHandler @@ -52698,7 +60202,7 @@ class NSDecimalNumberHandler extends NSObject { bool overflow, bool underflow, bool divideByZero) { - final _ret = _lib._objc_msgSend_712( + final _ret = _lib._objc_msgSend_818( _id, _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, roundingMode, @@ -52719,7 +60223,7 @@ class NSDecimalNumberHandler extends NSObject { bool overflow, bool underflow, bool divideByZero) { - final _ret = _lib._objc_msgSend_712( + final _ret = _lib._objc_msgSend_818( _lib._class_NSDecimalNumberHandler1, _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, roundingMode, @@ -52731,12 +60235,25 @@ class NSDecimalNumberHandler extends NSObject { return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } + @override + NSDecimalNumberHandler init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + static NSDecimalNumberHandler new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } + static NSDecimalNumberHandler allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDecimalNumberHandler1, _lib._sel_allocWithZone_1, zone); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + } + static NSDecimalNumberHandler alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); @@ -52747,18 +60264,18 @@ class NSDecimalNumberHandler extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -52773,33 +60290,29 @@ class NSDecimalNumberHandler extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDecimalNumberHandler1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDecimalNumberHandler1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDecimalNumberHandler1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSDecimalNumberHandler1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSDecimalNumberHandler1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -52840,11 +60353,9 @@ class NSScanner extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get string { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); } int get scanLocation { @@ -52852,18 +60363,18 @@ class NSScanner extends NSObject { } set scanLocation(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setScanLocation_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setScanLocation_1, value); } NSCharacterSet? get charactersToBeSkipped { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_charactersToBeSkipped1); + final _ret = _lib._objc_msgSend_820(_id, _lib._sel_charactersToBeSkipped1); return _ret.address == 0 ? null : NSCharacterSet._(_ret, _lib, retain: true, release: true); } set charactersToBeSkipped(NSCharacterSet? value) { - _lib._objc_msgSend_714( + return _lib._objc_msgSend_821( _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); } @@ -52872,113 +60383,116 @@ class NSScanner extends NSObject { } set caseSensitive(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setCaseSensitive_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setCaseSensitive_1, value); } - NSObject get locale { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get locale { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set locale(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setLocale_1, value._id); + set locale(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - NSScanner initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + NSScanner initWithString_(NSString string) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, string._id); return NSScanner._(_ret, _lib, retain: true, release: true); } bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_715(_id, _lib._sel_scanInt_1, result); + return _lib._objc_msgSend_822(_id, _lib._sel_scanInt_1, result); } - bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_716(_id, _lib._sel_scanInteger_1, result); + bool scanInteger_(ffi.Pointer result) { + return _lib._objc_msgSend_823(_id, _lib._sel_scanInteger_1, result); } bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_717(_id, _lib._sel_scanLongLong_1, result); + return _lib._objc_msgSend_824(_id, _lib._sel_scanLongLong_1, result); } bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_718( + return _lib._objc_msgSend_825( _id, _lib._sel_scanUnsignedLongLong_1, result); } bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_719(_id, _lib._sel_scanFloat_1, result); + return _lib._objc_msgSend_826(_id, _lib._sel_scanFloat_1, result); } bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_720(_id, _lib._sel_scanDouble_1, result); + return _lib._objc_msgSend_827(_id, _lib._sel_scanDouble_1, result); } bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_721(_id, _lib._sel_scanHexInt_1, result); + return _lib._objc_msgSend_828(_id, _lib._sel_scanHexInt_1, result); } bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_718(_id, _lib._sel_scanHexLongLong_1, result); + return _lib._objc_msgSend_825(_id, _lib._sel_scanHexLongLong_1, result); } bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_719(_id, _lib._sel_scanHexFloat_1, result); + return _lib._objc_msgSend_826(_id, _lib._sel_scanHexFloat_1, result); } bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_720(_id, _lib._sel_scanHexDouble_1, result); + return _lib._objc_msgSend_827(_id, _lib._sel_scanHexDouble_1, result); } bool scanString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_722(_id, _lib._sel_scanString_intoString_1, - string?._id ?? ffi.nullptr, result); + NSString string, ffi.Pointer> result) { + return _lib._objc_msgSend_829( + _id, _lib._sel_scanString_intoString_1, string._id, result); } bool scanCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_723( - _id, - _lib._sel_scanCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + NSCharacterSet set, ffi.Pointer> result) { + return _lib._objc_msgSend_830( + _id, _lib._sel_scanCharactersFromSet_intoString_1, set._id, result); } bool scanUpToString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_722(_id, _lib._sel_scanUpToString_intoString_1, - string?._id ?? ffi.nullptr, result); + NSString string, ffi.Pointer> result) { + return _lib._objc_msgSend_829( + _id, _lib._sel_scanUpToString_intoString_1, string._id, result); } bool scanUpToCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_723( - _id, - _lib._sel_scanUpToCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + NSCharacterSet set, ffi.Pointer> result) { + return _lib._objc_msgSend_830( + _id, _lib._sel_scanUpToCharactersFromSet_intoString_1, set._id, result); } bool get atEnd { return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); } - static NSScanner scannerWithString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); + static NSScanner scannerWithString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSScanner1, _lib._sel_scannerWithString_1, string._id); return NSScanner._(_ret, _lib, retain: true, release: true); } - static NSObject localizedScannerWithString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); + static NSObject localizedScannerWithString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSScanner1, + _lib._sel_localizedScannerWithString_1, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_724(_id, _lib._sel_scanDecimal_1, dcm); + return _lib._objc_msgSend_831(_id, _lib._sel_scanDecimal_1, dcm); + } + + @override + NSScanner init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScanner._(_ret, _lib, retain: true, release: true); } static NSScanner new1(AVFAudio _lib) { @@ -52986,6 +60500,12 @@ class NSScanner extends NSObject { return NSScanner._(_ret, _lib, retain: false, release: true); } + static NSScanner allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScanner1, _lib._sel_allocWithZone_1, zone); + return NSScanner._(_ret, _lib, retain: false, release: true); + } + static NSScanner alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); return NSScanner._(_ret, _lib, retain: false, release: true); @@ -52995,18 +60515,18 @@ class NSScanner extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._objc_msgSend_15(_lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53021,33 +60541,29 @@ class NSScanner extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScanner1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScanner1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScanner1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScanner1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScanner1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53084,79 +60600,77 @@ class NSException extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); } - static NSException exceptionWithName_reason_userInfo_(AVFAudio _lib, - NSExceptionName name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_725( + static NSException exceptionWithName_reason_userInfo_( + AVFAudio _lib, NSString name, NSString? reason, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_832( _lib._class_NSException1, _lib._sel_exceptionWithName_reason_userInfo_1, - name, + name._id, reason?._id ?? ffi.nullptr, userInfo?._id ?? ffi.nullptr); return NSException._(_ret, _lib, retain: true, release: true); } NSException initWithName_reason_userInfo_( - NSExceptionName aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_551( + NSString aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_833( _id, _lib._sel_initWithName_reason_userInfo_1, - aName, + aName._id, aReason?._id ?? ffi.nullptr, aUserInfo?._id ?? ffi.nullptr); return NSException._(_ret, _lib, retain: true, release: true); } - NSExceptionName get name { - return _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get reason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_reason1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackReturnAddresses { + NSArray get callStackReturnAddresses { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_callStackReturnAddresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get callStackSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_callStackSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } void raise() { - return _lib._objc_msgSend_1(_id, _lib._sel_raise1); + _lib._objc_msgSend_1(_id, _lib._sel_raise1); } - static void raise_format_( - AVFAudio _lib, NSExceptionName name, NSString? format) { - return _lib._objc_msgSend_483(_lib._class_NSException1, - _lib._sel_raise_format_1, name, format?._id ?? ffi.nullptr); + static void raise_format_(AVFAudio _lib, NSString name, NSString format) { + _lib._objc_msgSend_551(_lib._class_NSException1, _lib._sel_raise_format_1, + name._id, format._id); } - static void raise_format_arguments_(AVFAudio _lib, NSExceptionName name, - NSString? format, ffi.Pointer<__va_list_tag> argList) { - return _lib._objc_msgSend_726( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name, - format?._id ?? ffi.nullptr, - argList); + static void raise_format_arguments_(AVFAudio _lib, NSString name, + NSString format, ffi.Pointer<__va_list_tag> argList) { + _lib._objc_msgSend_834(_lib._class_NSException1, + _lib._sel_raise_format_arguments_1, name._id, format._id, argList); + } + + @override + NSException init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSException._(_ret, _lib, retain: true, release: true); } static NSException new1(AVFAudio _lib) { @@ -53164,6 +60678,12 @@ class NSException extends NSObject { return NSException._(_ret, _lib, retain: false, release: true); } + static NSException allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSException1, _lib._sel_allocWithZone_1, zone); + return NSException._(_ret, _lib, retain: false, release: true); + } + static NSException alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); @@ -53174,18 +60694,18 @@ class NSException extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._objc_msgSend_15(_lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53200,33 +60720,29 @@ class NSException extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSException1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSException1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSException1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSException1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSException1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53238,8 +60754,6 @@ class NSException extends NSObject { } } -typedef NSExceptionName = ffi.Pointer; - class NSFileHandle extends NSObject { NSFileHandle._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -53263,276 +60777,282 @@ class NSFileHandle extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); } - NSData? get availableData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get availableData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_availableData1); + return NSData._(_ret, _lib, retain: true, release: true); } NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_727( + final _ret = _lib._objc_msgSend_835( _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSFileHandle initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + NSFileHandle? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSData readDataToEndOfFileAndReturnError_( + NSData? readDataToEndOfFileAndReturnError_( ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_728( + final _ret = _lib._objc_msgSend_836( _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData readDataUpToLength_error_( + NSData? readDataUpToLength_error_( int length, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_729( + final _ret = _lib._objc_msgSend_837( _id, _lib._sel_readDataUpToLength_error_1, length, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } bool writeData_error_( - NSData? data, ffi.Pointer> error) { - return _lib._objc_msgSend_730( - _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); + NSData data, ffi.Pointer> error) { + return _lib._objc_msgSend_838( + _id, _lib._sel_writeData_error_1, data._id, error); } bool getOffset_error_(ffi.Pointer offsetInFile, ffi.Pointer> error) { - return _lib._objc_msgSend_731( + return _lib._objc_msgSend_839( _id, _lib._sel_getOffset_error_1, offsetInFile, error); } bool seekToEndReturningOffset_error_( ffi.Pointer offsetInFile, ffi.Pointer> error) { - return _lib._objc_msgSend_731( + return _lib._objc_msgSend_839( _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); } bool seekToOffset_error_( int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_732( + return _lib._objc_msgSend_840( _id, _lib._sel_seekToOffset_error_1, offset, error); } bool truncateAtOffset_error_( int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_732( + return _lib._objc_msgSend_840( _id, _lib._sel_truncateAtOffset_error_1, offset, error); } bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_synchronizeAndReturnError_1, error); } bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219(_id, _lib._sel_closeAndReturnError_1, error); + return _lib._objc_msgSend_243(_id, _lib._sel_closeAndReturnError_1, error); } - static NSFileHandle? getFileHandleWithStandardInput(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithStandardInput(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardOutput(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithStandardOutput(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardError(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithStandardError(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithNullDevice(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithNullDevice(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? fileHandleForReadingAtPath_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingAtPath_1, path._id); return _ret.address == 0 ? null : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingAtPath_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForWritingAtPath_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForWritingAtPath_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForUpdatingAtPath_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForUpdatingAtPath_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingFromURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingFromURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForReadingFromURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_842(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingFromURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForWritingToURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingToURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForWritingToURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_842(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingToURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForUpdatingURL_error_( - AVFAudio _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForUpdatingURL_error_( + AVFAudio _lib, NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_842(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } void readInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( - _id, - _lib._sel_readInBackgroundAndNotifyForModes_1, + _lib._objc_msgSend_843(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void readInBackgroundAndNotify() { - return _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); } void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void readToEndOfFileInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); } void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void acceptConnectionInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); } void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void waitForDataInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitForDataInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); } - ObjCBlock29 get readabilityHandler { - final _ret = _lib._objc_msgSend_735(_id, _lib._sel_readabilityHandler1); - return ObjCBlock29._(_ret, _lib); + ObjCBlock_ffiVoid_NSFileHandle? get readabilityHandler { + final _ret = _lib._objc_msgSend_844(_id, _lib._sel_readabilityHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib, + retain: true, release: true); } - set readabilityHandler(ObjCBlock29 value) { - _lib._objc_msgSend_736(_id, _lib._sel_setReadabilityHandler_1, value._id); + set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle? value) { + return _lib._objc_msgSend_845( + _id, _lib._sel_setReadabilityHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock29 get writeabilityHandler { - final _ret = _lib._objc_msgSend_735(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock29._(_ret, _lib); + ObjCBlock_ffiVoid_NSFileHandle? get writeabilityHandler { + final _ret = _lib._objc_msgSend_844(_id, _lib._sel_writeabilityHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib, + retain: true, release: true); } - set writeabilityHandler(ObjCBlock29 value) { - _lib._objc_msgSend_736(_id, _lib._sel_setWriteabilityHandler_1, value._id); + set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle? value) { + return _lib._objc_msgSend_845( + _id, _lib._sel_setWriteabilityHandler_1, value?._id ?? ffi.nullptr); } NSFileHandle initWithFileDescriptor_(int fd) { final _ret = - _lib._objc_msgSend_737(_id, _lib._sel_initWithFileDescriptor_1, fd); + _lib._objc_msgSend_846(_id, _lib._sel_initWithFileDescriptor_1, fd); return NSFileHandle._(_ret, _lib, retain: true, release: true); } int get fileDescriptor { - return _lib._objc_msgSend_213(_id, _lib._sel_fileDescriptor1); + return _lib._objc_msgSend_237(_id, _lib._sel_fileDescriptor1); } NSData readDataToEndOfFile() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_readDataToEndOfFile1); return NSData._(_ret, _lib, retain: true, release: true); } NSData readDataOfLength_(int length) { final _ret = - _lib._objc_msgSend_315(_id, _lib._sel_readDataOfLength_1, length); + _lib._objc_msgSend_847(_id, _lib._sel_readDataOfLength_1, length); return NSData._(_ret, _lib, retain: true, release: true); } - void writeData_(NSData? data) { - return _lib._objc_msgSend_248( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + void writeData_(NSData data) { + _lib._objc_msgSend_285(_id, _lib._sel_writeData_1, data._id); } int get offsetInFile { - return _lib._objc_msgSend_148(_id, _lib._sel_offsetInFile1); + return _lib._objc_msgSend_164(_id, _lib._sel_offsetInFile1); } int seekToEndOfFile() { - return _lib._objc_msgSend_148(_id, _lib._sel_seekToEndOfFile1); + return _lib._objc_msgSend_164(_id, _lib._sel_seekToEndOfFile1); } void seekToFileOffset_(int offset) { - return _lib._objc_msgSend_738(_id, _lib._sel_seekToFileOffset_1, offset); + _lib._objc_msgSend_848(_id, _lib._sel_seekToFileOffset_1, offset); } void truncateFileAtOffset_(int offset) { - return _lib._objc_msgSend_738( - _id, _lib._sel_truncateFileAtOffset_1, offset); + _lib._objc_msgSend_848(_id, _lib._sel_truncateFileAtOffset_1, offset); } void synchronizeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); } void closeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + } + + @override + NSFileHandle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } static NSFileHandle new1(AVFAudio _lib) { @@ -53541,6 +61061,12 @@ class NSFileHandle extends NSObject { return NSFileHandle._(_ret, _lib, retain: false, release: true); } + static NSFileHandle allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileHandle1, _lib._sel_allocWithZone_1, zone); + return NSFileHandle._(_ret, _lib, retain: false, release: true); + } + static NSFileHandle alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); @@ -53551,18 +61077,18 @@ class NSFileHandle extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + _lib._objc_msgSend_15(_lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53577,33 +61103,29 @@ class NSFileHandle extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFileHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFileHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFileHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53615,33 +61137,39 @@ class NSFileHandle extends NSObject { } } -void _ObjCBlock29_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock29_closureRegistry = {}; -int _ObjCBlock29_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { - final id = ++_ObjCBlock29_closureRegistryIndex; - _ObjCBlock29_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock29_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock29_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock29 extends _ObjCBlockBase { - ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock29.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -53649,38 +61177,73 @@ class ObjCBlock29 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock29_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock29.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSFileHandle.fromFunction( + AVFAudio lib, void Function(NSFileHandle) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock29_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) .cast(), - _ObjCBlock29_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure((ffi + .Pointer + arg0) => + fn(NSFileHandle._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSFileHandle.listener( + AVFAudio lib, void Function(NSFileHandle) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + (ffi.Pointer arg0) => fn(NSFileHandle._( + arg0, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSFileHandle arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSHTTPCookieStorage extends NSObject { @@ -53707,89 +61270,88 @@ class NSHTTPCookieStorage extends NSObject { obj._lib._class_NSHTTPCookieStorage1); } - static NSHTTPCookieStorage? getSharedHTTPCookieStorage(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_739( + static NSHTTPCookieStorage getSharedHTTPCookieStorage(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_849( _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - AVFAudio _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_740( + AVFAudio _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_850( _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); + identifier._id); return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } NSArray? get cookies { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_cookies1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_cookies1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_743( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + void setCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_854(_id, _lib._sel_setCookie_1, cookie._id); } - void deleteCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_743( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + void deleteCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_854(_id, _lib._sel_deleteCookie_1, cookie._id); } - void removeCookiesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_472( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + void removeCookiesSinceDate_(NSDate date) { + _lib._objc_msgSend_540(_id, _lib._sel_removeCookiesSinceDate_1, date._id); } - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_120( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? cookiesForURL_(NSURL URL) { + final _ret = + _lib._objc_msgSend_133(_id, _lib._sel_cookiesForURL_1, URL._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - return _lib._objc_msgSend_744( + NSArray cookies, NSURL? URL, NSURL? mainDocumentURL) { + _lib._objc_msgSend_855( _id, _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, + cookies._id, URL?._id ?? ffi.nullptr, mainDocumentURL?._id ?? ffi.nullptr); } int get cookieAcceptPolicy { - return _lib._objc_msgSend_745(_id, _lib._sel_cookieAcceptPolicy1); + return _lib._objc_msgSend_856(_id, _lib._sel_cookieAcceptPolicy1); } set cookieAcceptPolicy(int value) { - _lib._objc_msgSend_746(_id, _lib._sel_setCookieAcceptPolicy_1, value); + return _lib._objc_msgSend_857( + _id, _lib._sel_setCookieAcceptPolicy_1, value); } - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); + NSArray sortedCookiesUsingDescriptors_(NSArray sortOrder) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedCookiesUsingDescriptors_1, sortOrder._id); return NSArray._(_ret, _lib, retain: true, release: true); } - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - return _lib._objc_msgSend_766(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + void storeCookies_forTask_(NSArray cookies, NSURLSessionTask task) { + _lib._objc_msgSend_882( + _id, _lib._sel_storeCookies_forTask_1, cookies._id, task._id); } void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock30 completionHandler) { - return _lib._objc_msgSend_767( - _id, - _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, - completionHandler._id); + NSURLSessionTask task, ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_883(_id, _lib._sel_getCookiesForTask_completionHandler_1, + task._id, completionHandler._id); + } + + @override + NSHTTPCookieStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } static NSHTTPCookieStorage new1(AVFAudio _lib) { @@ -53798,6 +61360,13 @@ class NSHTTPCookieStorage extends NSObject { return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } + static NSHTTPCookieStorage allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + } + static NSHTTPCookieStorage alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); @@ -53808,18 +61377,18 @@ class NSHTTPCookieStorage extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53834,33 +61403,29 @@ class NSHTTPCookieStorage extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSHTTPCookieStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSHTTPCookieStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSHTTPCookieStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSHTTPCookieStorage1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSHTTPCookieStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53895,40 +61460,42 @@ class NSHTTPCookie extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); } - NSHTTPCookie initWithProperties_(NSDictionary? properties) { - final _ret = _lib._objc_msgSend_143( - _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + NSHTTPCookie? initWithProperties_(NSDictionary properties) { + final _ret = _lib._objc_msgSend_851( + _id, _lib._sel_initWithProperties_1, properties._id); + return _ret.address == 0 + ? null + : NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookie cookieWithProperties_( - AVFAudio _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_741(_lib._class_NSHTTPCookie1, - _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + static NSHTTPCookie? cookieWithProperties_( + AVFAudio _lib, NSDictionary properties) { + final _ret = _lib._objc_msgSend_852(_lib._class_NSHTTPCookie1, + _lib._sel_cookieWithProperties_1, properties._id); + return _ret.address == 0 + ? null + : NSHTTPCookie._(_ret, _lib, retain: true, release: true); } static NSDictionary requestHeaderFieldsWithCookies_( - AVFAudio _lib, NSArray? cookies) { - final _ret = _lib._objc_msgSend_443( - _lib._class_NSHTTPCookie1, - _lib._sel_requestHeaderFieldsWithCookies_1, - cookies?._id ?? ffi.nullptr); + AVFAudio _lib, NSArray cookies) { + final _ret = _lib._objc_msgSend_508(_lib._class_NSHTTPCookie1, + _lib._sel_requestHeaderFieldsWithCookies_1, cookies._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSArray cookiesWithResponseHeaderFields_forURL_( - AVFAudio _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_742( + AVFAudio _lib, NSDictionary headerFields, NSURL URL) { + final _ret = _lib._objc_msgSend_853( _lib._class_NSHTTPCookie1, _lib._sel_cookiesWithResponseHeaderFields_forURL_1, - headerFields?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr); + headerFields._id, + URL._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSDictionary? get properties { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_properties1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_properties1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -53938,22 +61505,18 @@ class NSHTTPCookie extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_version1); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get value { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get value { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_value1); + return NSString._(_ret, _lib, retain: true, release: true); } NSDate? get expiresDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_expiresDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_expiresDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -53963,18 +61526,14 @@ class NSHTTPCookie extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get path { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_path1); + return NSString._(_ret, _lib, retain: true, release: true); } bool get secure { @@ -53986,28 +61545,37 @@ class NSHTTPCookie extends NSObject { } NSString? get comment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_comment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSURL? get commentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_commentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSArray? get portList { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_portList1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_portList1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSHTTPCookieStringPolicy get sameSitePolicy { - return _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); + NSString? get sameSitePolicy { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sameSitePolicy1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + @override + NSHTTPCookie init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } static NSHTTPCookie new1(AVFAudio _lib) { @@ -54016,6 +61584,12 @@ class NSHTTPCookie extends NSObject { return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } + static NSHTTPCookie allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookie1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + } + static NSHTTPCookie alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); @@ -54026,18 +61600,18 @@ class NSHTTPCookie extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54052,33 +61626,29 @@ class NSHTTPCookie extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookie1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSHTTPCookie1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookie1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSHTTPCookie1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSHTTPCookie1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54090,8 +61660,6 @@ class NSHTTPCookie extends NSObject { } } -typedef NSHTTPCookieStringPolicy = ffi.Pointer; - abstract class NSHTTPCookieAcceptPolicy { static const int NSHTTPCookieAcceptPolicyAlways = 0; static const int NSHTTPCookieAcceptPolicyNever = 1; @@ -54127,135 +61695,133 @@ class NSURLSessionTask extends NSObject { } NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_originalRequest1); + final _ret = _lib._objc_msgSend_876(_id, _lib._sel_originalRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_currentRequest1); + final _ret = _lib._objc_msgSend_876(_id, _lib._sel_currentRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLResponse? get response { - final _ret = _lib._objc_msgSend_763(_id, _lib._sel_response1); + final _ret = _lib._objc_msgSend_878(_id, _lib._sel_response1); return _ret.address == 0 ? null : NSURLResponse._(_ret, _lib, retain: true, release: true); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSProgress? get progress { - final _ret = _lib._objc_msgSend_577(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSProgress get progress { + final _ret = _lib._objc_msgSend_879(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_earliestBeginDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_earliestBeginDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set earliestBeginDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_584( + return _lib._objc_msgSend_666( _id, _lib._sel_countOfBytesClientExpectsToSend1); } set countOfBytesClientExpectsToSend(int value) { - _lib._objc_msgSend_585( + return _lib._objc_msgSend_667( _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_584( + return _lib._objc_msgSend_666( _id, _lib._sel_countOfBytesClientExpectsToReceive1); } set countOfBytesClientExpectsToReceive(int value) { - _lib._objc_msgSend_585( + return _lib._objc_msgSend_667( _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } int get countOfBytesSent { - return _lib._objc_msgSend_584(_id, _lib._sel_countOfBytesSent1); + return _lib._objc_msgSend_666(_id, _lib._sel_countOfBytesSent1); } int get countOfBytesReceived { - return _lib._objc_msgSend_584(_id, _lib._sel_countOfBytesReceived1); + return _lib._objc_msgSend_666(_id, _lib._sel_countOfBytesReceived1); } int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_584(_id, _lib._sel_countOfBytesExpectedToSend1); + return _lib._objc_msgSend_666(_id, _lib._sel_countOfBytesExpectedToSend1); } int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_584( + return _lib._objc_msgSend_666( _id, _lib._sel_countOfBytesExpectedToReceive1); } NSString? get taskDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_taskDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set taskDescription(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } int get state { - return _lib._objc_msgSend_764(_id, _lib._sel_state1); + return _lib._objc_msgSend_880(_id, _lib._sel_state1); } NSError? get error { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); } void suspend() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } double get priority { - return _lib._objc_msgSend_215(_id, _lib._sel_priority1); + return _lib._objc_msgSend_239(_id, _lib._sel_priority1); } set priority(double value) { - _lib._objc_msgSend_765(_id, _lib._sel_setPriority_1, value); + return _lib._objc_msgSend_881(_id, _lib._sel_setPriority_1, value); } bool get prefersIncrementalDelivery { @@ -54263,7 +61829,7 @@ class NSURLSessionTask extends NSObject { } set prefersIncrementalDelivery(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } @@ -54279,6 +61845,13 @@ class NSURLSessionTask extends NSObject { return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionTask allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); @@ -54289,18 +61862,18 @@ class NSURLSessionTask extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54315,33 +61888,29 @@ class NSURLSessionTask extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54376,9 +61945,9 @@ class NSURLRequest extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); } - static NSURLRequest requestWithURL_(AVFAudio _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + static NSURLRequest requestWithURL_(AVFAudio _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_262( + _lib._class_NSURLRequest1, _lib._sel_requestWithURL_1, URL._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } @@ -54388,57 +61957,56 @@ class NSURLRequest extends NSObject { } static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - AVFAudio _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_747( + AVFAudio _lib, NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( _lib._class_NSURLRequest1, _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, cachePolicy, timeoutInterval); return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + NSURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_262(_id, _lib._sel_initWithURL_1, URL._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_747( + NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( _id, _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, cachePolicy, timeoutInterval); return NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } int get cachePolicy { - return _lib._objc_msgSend_748(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_859(_id, _lib._sel_cachePolicy1); } double get timeoutInterval { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutInterval1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutInterval1); } NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } int get networkServiceType { - return _lib._objc_msgSend_749(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_860(_id, _lib._sel_networkServiceType1); } bool get allowsCellularAccess { @@ -54459,38 +62027,44 @@ class NSURLRequest extends NSObject { } int get attribution { - return _lib._objc_msgSend_750(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_861(_id, _lib._sel_attribution1); + } + + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_HTTPMethod1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_allHTTPHeaderFields1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? valueForHTTPHeaderField_(NSString field) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_valueForHTTPHeaderField_1, field._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_760(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_875(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); @@ -54504,12 +62078,24 @@ class NSURLRequest extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } + @override + NSURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + static NSURLRequest new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); return NSURLRequest._(_ret, _lib, retain: false, release: true); } + static NSURLRequest allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + static NSURLRequest alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); @@ -54520,18 +62106,18 @@ class NSURLRequest extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54546,33 +62132,29 @@ class NSURLRequest extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54635,12 +62217,12 @@ class NSInputStream extends NSStream { } int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_752(_id, _lib._sel_read_maxLength_1, buffer, len); + return _lib._objc_msgSend_864(_id, _lib._sel_read_maxLength_1, buffer, len); } - bool getBuffer_length_( - ffi.Pointer> buffer, ffi.Pointer len) { - return _lib._objc_msgSend_759( + bool getBuffer_length_(ffi.Pointer> buffer, + ffi.Pointer len) { + return _lib._objc_msgSend_873( _id, _lib._sel_getBuffer_length_1, buffer, len); } @@ -54648,53 +62230,62 @@ class NSInputStream extends NSStream { return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); } - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSInputStream initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSInputStream._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSInputStream? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_277(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithFileAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSInputStream? initWithFileAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithData_(AVFAudio _lib, NSData? data) { - final _ret = _lib._objc_msgSend_242(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithData_(AVFAudio _lib, NSData data) { + final _ret = _lib._objc_msgSend_874( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithData_1, data._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithFileAtPath_( - AVFAudio _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithFileAtPath_( + AVFAudio _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithURL_(AVFAudio _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithURL_(AVFAudio _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } static void getStreamsToHostWithName_port_inputStream_outputStream_( AVFAudio _lib, - NSString? hostname, + NSString hostname, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_754( + _lib._objc_msgSend_867( _lib._class_NSInputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -54702,14 +62293,14 @@ class NSInputStream extends NSStream { static void getStreamsToHost_port_inputStream_outputStream_( AVFAudio _lib, - NSHost? host, + NSHost host, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_757( + _lib._objc_msgSend_871( _lib._class_NSInputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -54720,7 +62311,7 @@ class NSInputStream extends NSStream { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_758( + _lib._objc_msgSend_872( _lib._class_NSInputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -54728,12 +62319,25 @@ class NSInputStream extends NSStream { outputStream); } + @override + NSInputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + static NSInputStream new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); return NSInputStream._(_ret, _lib, retain: false, release: true); } + static NSInputStream allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInputStream1, _lib._sel_allocWithZone_1, zone); + return NSInputStream._(_ret, _lib, retain: false, release: true); + } + static NSInputStream alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); @@ -54744,18 +62348,18 @@ class NSInputStream extends NSStream { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInputStream1, + _lib._objc_msgSend_15(_lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54770,33 +62374,29 @@ class NSInputStream extends NSStream { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSInputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSInputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSInputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54831,51 +62431,54 @@ class NSStream extends NSObject { } void open() { - return _lib._objc_msgSend_1(_id, _lib._sel_open1); + _lib._objc_msgSend_1(_id, _lib._sel_open1); } void close() { - return _lib._objc_msgSend_1(_id, _lib._sel_close1); + _lib._objc_msgSend_1(_id, _lib._sel_close1); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSObject propertyForKey_(NSStreamPropertyKey key) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? propertyForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_propertyForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool setProperty_forKey_(NSObject property, NSStreamPropertyKey key) { - return _lib._objc_msgSend_225( - _id, _lib._sel_setProperty_forKey_1, property._id, key); + bool setProperty_forKey_(NSObject? property, NSString key) { + return _lib._objc_msgSend_862(_id, _lib._sel_setProperty_forKey_1, + property?._id ?? ffi.nullptr, key._id); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); } int get streamStatus { - return _lib._objc_msgSend_751(_id, _lib._sel_streamStatus1); + return _lib._objc_msgSend_863(_id, _lib._sel_streamStatus1); } NSError? get streamError { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_streamError1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_streamError1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); @@ -54883,14 +62486,14 @@ class NSStream extends NSObject { static void getStreamsToHostWithName_port_inputStream_outputStream_( AVFAudio _lib, - NSString? hostname, + NSString hostname, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_754( + _lib._objc_msgSend_867( _lib._class_NSStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -54898,14 +62501,14 @@ class NSStream extends NSObject { static void getStreamsToHost_port_inputStream_outputStream_( AVFAudio _lib, - NSHost? host, + NSHost host, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_757( + _lib._objc_msgSend_871( _lib._class_NSStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -54916,7 +62519,7 @@ class NSStream extends NSObject { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_758( + _lib._objc_msgSend_872( _lib._class_NSStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -54924,11 +62527,23 @@ class NSStream extends NSObject { outputStream); } + @override + NSStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSStream._(_ret, _lib, retain: true, release: true); + } + static NSStream new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); return NSStream._(_ret, _lib, retain: false, release: true); } + static NSStream allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSStream1, _lib._sel_allocWithZone_1, zone); + return NSStream._(_ret, _lib, retain: false, release: true); + } + static NSStream alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); return NSStream._(_ret, _lib, retain: false, release: true); @@ -54938,18 +62553,18 @@ class NSStream extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._objc_msgSend_15(_lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54964,33 +62579,29 @@ class NSStream extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55002,8 +62613,6 @@ class NSStream extends NSObject { } } -typedef NSStreamPropertyKey = ffi.Pointer; - abstract class NSStreamStatus { static const int NSStreamStatusNotOpen = 0; static const int NSStreamStatusOpening = 1; @@ -55039,7 +62648,7 @@ class NSOutputStream extends NSStream { } int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_752( + return _lib._objc_msgSend_864( _id, _lib._sel_write_maxLength_1, buffer, len); } @@ -55054,21 +62663,25 @@ class NSOutputStream extends NSStream { NSOutputStream initToBuffer_capacity_( ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_753( + final _ret = _lib._objc_msgSend_865( _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_231(_id, _lib._sel_initWithURL_append_1, - url?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSOutputStream? initWithURL_append_(NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_866( + _id, _lib._sel_initWithURL_append_1, url._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, - path?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSOutputStream? initToFileAtPath_append_(NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_40( + _id, _lib._sel_initToFileAtPath_append_1, path._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } static NSOutputStream outputStreamToMemory(AVFAudio _lib) { @@ -55079,41 +62692,37 @@ class NSOutputStream extends NSStream { static NSOutputStream outputStreamToBuffer_capacity_( AVFAudio _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_753(_lib._class_NSOutputStream1, + final _ret = _lib._objc_msgSend_865(_lib._class_NSOutputStream1, _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } static NSOutputStream outputStreamToFileAtPath_append_( - AVFAudio _lib, NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamToFileAtPath_append_1, - path?._id ?? ffi.nullptr, - shouldAppend); + AVFAudio _lib, NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToFileAtPath_append_1, path._id, shouldAppend); return NSOutputStream._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamWithURL_append_( - AVFAudio _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_231( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamWithURL_append_1, - url?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + static NSOutputStream? outputStreamWithURL_append_( + AVFAudio _lib, NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_866(_lib._class_NSOutputStream1, + _lib._sel_outputStreamWithURL_append_1, url._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } static void getStreamsToHostWithName_port_inputStream_outputStream_( AVFAudio _lib, - NSString? hostname, + NSString hostname, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_754( + _lib._objc_msgSend_867( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -55121,14 +62730,14 @@ class NSOutputStream extends NSStream { static void getStreamsToHost_port_inputStream_outputStream_( AVFAudio _lib, - NSHost? host, + NSHost host, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_757( + _lib._objc_msgSend_871( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -55139,7 +62748,7 @@ class NSOutputStream extends NSStream { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_758( + _lib._objc_msgSend_872( _lib._class_NSOutputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -55147,12 +62756,25 @@ class NSOutputStream extends NSStream { outputStream); } + @override + NSOutputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + static NSOutputStream new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); return NSOutputStream._(_ret, _lib, retain: false, release: true); } + static NSOutputStream allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOutputStream1, _lib._sel_allocWithZone_1, zone); + return NSOutputStream._(_ret, _lib, retain: false, release: true); + } + static NSOutputStream alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); @@ -55163,18 +62785,18 @@ class NSOutputStream extends NSStream { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + _lib._objc_msgSend_15(_lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55189,33 +62811,29 @@ class NSOutputStream extends NSStream { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOutputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOutputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOutputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOutputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOutputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55256,59 +62874,54 @@ class NSHost extends NSObject { } static NSHost hostWithName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + final _ret = _lib._objc_msgSend_868(_lib._class_NSHost1, _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); return NSHost._(_ret, _lib, retain: true, release: true); } - static NSHost hostWithAddress_(AVFAudio _lib, NSString? address) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); + static NSHost hostWithAddress_(AVFAudio _lib, NSString address) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSHost1, _lib._sel_hostWithAddress_1, address._id); return NSHost._(_ret, _lib, retain: true, release: true); } - bool isEqualToHost_(NSHost? aHost) { - return _lib._objc_msgSend_755( - _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); + bool isEqualToHost_(NSHost aHost) { + return _lib._objc_msgSend_869(_id, _lib._sel_isEqualToHost_1, aHost._id); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get names { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_names1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get names { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_names1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get address { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_address1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_addresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get addresses { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_addresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get localizedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localizedName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } static void setHostCacheEnabled_(AVFAudio _lib, bool flag) { - return _lib._objc_msgSend_756( + _lib._objc_msgSend_870( _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); } @@ -55318,7 +62931,13 @@ class NSHost extends NSObject { } static void flushHostCache(AVFAudio _lib) { - return _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + } + + @override + NSHost init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHost._(_ret, _lib, retain: true, release: true); } static NSHost new1(AVFAudio _lib) { @@ -55326,6 +62945,12 @@ class NSHost extends NSObject { return NSHost._(_ret, _lib, retain: false, release: true); } + static NSHost allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHost1, _lib._sel_allocWithZone_1, zone); + return NSHost._(_ret, _lib, retain: false, release: true); + } + static NSHost alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); return NSHost._(_ret, _lib, retain: false, release: true); @@ -55335,18 +62960,18 @@ class NSHost extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSHost1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._objc_msgSend_15(_lib._class_NSHost1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55361,33 +62986,29 @@ class NSHost extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHost1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSHost1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHost1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSHost1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSHost1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55423,11 +63044,11 @@ class NSURLResponse extends NSObject { } NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_762( + NSURL URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_877( _id, _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, + URL._id, MIMEType?._id ?? ffi.nullptr, length, name?._id ?? ffi.nullptr); @@ -55435,43 +63056,56 @@ class NSURLResponse extends NSObject { } NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get expectedContentLength { - return _lib._objc_msgSend_214(_id, _lib._sel_expectedContentLength1); + return _lib._objc_msgSend_238(_id, _lib._sel_expectedContentLength1); } NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_textEncodingName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suggestedFilename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } + @override + NSURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); + } + static NSURLResponse new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); return NSURLResponse._(_ret, _lib, retain: false, release: true); } + static NSURLResponse allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSURLResponse._(_ret, _lib, retain: false, release: true); + } + static NSURLResponse alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); @@ -55482,18 +63116,18 @@ class NSURLResponse extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55508,33 +63142,29 @@ class NSURLResponse extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55553,33 +63183,38 @@ abstract class NSURLSessionTaskState { static const int NSURLSessionTaskStateCompleted = 3; } -void _ObjCBlock30_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock30_closureRegistry = {}; -int _ObjCBlock30_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { - final id = ++_ObjCBlock30_closureRegistryIndex; - _ObjCBlock30_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSArray_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock30_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock30_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock30 extends _ObjCBlockBase { - ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock30.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -55587,38 +63222,72 @@ class ObjCBlock30 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock30_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock30.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray.fromFunction( + AVFAudio lib, void Function(NSArray?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock30_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(), - _ObjCBlock30_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray.listener(AVFAudio lib, void Function(NSArray?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSArray? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } class NSIndexPath extends NSObject { @@ -55645,44 +63314,44 @@ class NSIndexPath extends NSObject { } static NSIndexPath indexPathWithIndex_(AVFAudio _lib, int index) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } static NSIndexPath indexPathWithIndexes_length_( - AVFAudio _lib, ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_768(_lib._class_NSIndexPath1, + AVFAudio _lib, ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_884(_lib._class_NSIndexPath1, _lib._sel_indexPathWithIndexes_length_1, indexes, length); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath initWithIndexes_length_( - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_768( + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_884( _id, _lib._sel_initWithIndexes_length_1, indexes, length); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath initWithIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_initWithIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath indexPathByAddingIndex_(int index) { final _ret = - _lib._objc_msgSend_769(_id, _lib._sel_indexPathByAddingIndex_1, index); + _lib._objc_msgSend_885(_id, _lib._sel_indexPathByAddingIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath indexPathByRemovingLastIndex() { final _ret = - _lib._objc_msgSend_770(_id, _lib._sel_indexPathByRemovingLastIndex1); + _lib._objc_msgSend_886(_id, _lib._sel_indexPathByRemovingLastIndex1); return NSIndexPath._(_ret, _lib, retain: true, release: true); } int indexAtPosition_(int position) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexAtPosition_1, position); + return _lib._objc_msgSend_94(_id, _lib._sel_indexAtPosition_1, position); } int get length { @@ -55690,18 +63359,23 @@ class NSIndexPath extends NSObject { } void getIndexes_range_( - ffi.Pointer indexes, NSRange positionRange) { - return _lib._objc_msgSend_771( + ffi.Pointer indexes, _NSRange positionRange) { + _lib._objc_msgSend_887( _id, _lib._sel_getIndexes_range_1, indexes, positionRange); } - int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_772( - _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); + int compare_(NSIndexPath otherObject) { + return _lib._objc_msgSend_888(_id, _lib._sel_compare_1, otherObject._id); } - void getIndexes_(ffi.Pointer indexes) { - return _lib._objc_msgSend_773(_id, _lib._sel_getIndexes_1, indexes); + void getIndexes_(ffi.Pointer indexes) { + _lib._objc_msgSend_889(_id, _lib._sel_getIndexes_1, indexes); + } + + @override + NSIndexPath init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } static NSIndexPath new1(AVFAudio _lib) { @@ -55709,6 +63383,12 @@ class NSIndexPath extends NSObject { return NSIndexPath._(_ret, _lib, retain: false, release: true); } + static NSIndexPath allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexPath1, _lib._sel_allocWithZone_1, zone); + return NSIndexPath._(_ret, _lib, retain: false, release: true); + } + static NSIndexPath alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); @@ -55719,18 +63399,18 @@ class NSIndexPath extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexPath1, + _lib._objc_msgSend_15(_lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55745,33 +63425,29 @@ class NSIndexPath extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexPath1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSIndexPath1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexPath1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSIndexPath1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSIndexPath1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55813,17 +63489,15 @@ class NSInflectionRule extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - static NSInflectionRule? getAutomaticRule(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_774( + static NSInflectionRule getAutomaticRule(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_890( _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); - return _ret.address == 0 - ? null - : NSInflectionRule._(_ret, _lib, retain: true, release: true); + return NSInflectionRule._(_ret, _lib, retain: true, release: true); } - static bool canInflectLanguage_(AVFAudio _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, - _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); + static bool canInflectLanguage_(AVFAudio _lib, NSString language) { + return _lib._objc_msgSend_64(_lib._class_NSInflectionRule1, + _lib._sel_canInflectLanguage_1, language._id); } static bool getCanInflectPreferredLocalization(AVFAudio _lib) { @@ -55837,6 +63511,13 @@ class NSInflectionRule extends NSObject { return NSInflectionRule._(_ret, _lib, retain: false, release: true); } + static NSInflectionRule allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInflectionRule1, _lib._sel_allocWithZone_1, zone); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); + } + static NSInflectionRule alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); @@ -55847,18 +63528,18 @@ class NSInflectionRule extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55873,33 +63554,29 @@ class NSInflectionRule extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInflectionRule1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSInflectionRule1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInflectionRule1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSInflectionRule1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSInflectionRule1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSInflectionRule1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSInflectionRule1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55935,42 +63612,84 @@ class NSMorphology extends NSObject { } int get grammaticalGender { - return _lib._objc_msgSend_775(_id, _lib._sel_grammaticalGender1); + return _lib._objc_msgSend_891(_id, _lib._sel_grammaticalGender1); } set grammaticalGender(int value) { - _lib._objc_msgSend_776(_id, _lib._sel_setGrammaticalGender_1, value); + return _lib._objc_msgSend_892(_id, _lib._sel_setGrammaticalGender_1, value); } int get partOfSpeech { - return _lib._objc_msgSend_777(_id, _lib._sel_partOfSpeech1); + return _lib._objc_msgSend_893(_id, _lib._sel_partOfSpeech1); } set partOfSpeech(int value) { - _lib._objc_msgSend_778(_id, _lib._sel_setPartOfSpeech_1, value); + return _lib._objc_msgSend_894(_id, _lib._sel_setPartOfSpeech_1, value); } int get number { - return _lib._objc_msgSend_779(_id, _lib._sel_number1); + return _lib._objc_msgSend_895(_id, _lib._sel_number1); } set number(int value) { - _lib._objc_msgSend_780(_id, _lib._sel_setNumber_1, value); + return _lib._objc_msgSend_896(_id, _lib._sel_setNumber_1, value); } - NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_781(_id, - _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + int get grammaticalCase { + return _lib._objc_msgSend_897(_id, _lib._sel_grammaticalCase1); + } + + set grammaticalCase(int value) { + return _lib._objc_msgSend_898(_id, _lib._sel_setGrammaticalCase_1, value); + } + + int get determination { + return _lib._objc_msgSend_899(_id, _lib._sel_determination1); + } + + set determination(int value) { + return _lib._objc_msgSend_900(_id, _lib._sel_setDetermination_1, value); + } + + int get grammaticalPerson { + return _lib._objc_msgSend_901(_id, _lib._sel_grammaticalPerson1); + } + + set grammaticalPerson(int value) { + return _lib._objc_msgSend_902(_id, _lib._sel_setGrammaticalPerson_1, value); + } + + int get pronounType { + return _lib._objc_msgSend_903(_id, _lib._sel_pronounType1); + } + + set pronounType(int value) { + return _lib._objc_msgSend_904(_id, _lib._sel_setPronounType_1, value); + } + + int get definiteness { + return _lib._objc_msgSend_905(_id, _lib._sel_definiteness1); + } + + set definiteness(int value) { + return _lib._objc_msgSend_906(_id, _lib._sel_setDefiniteness_1, value); + } + + NSMorphologyCustomPronoun? customPronounForLanguage_(NSString language) { + final _ret = _lib._objc_msgSend_907( + _id, _lib._sel_customPronounForLanguage_1, language._id); + return _ret.address == 0 + ? null + : NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, - NSString? language, ffi.Pointer> error) { - return _lib._objc_msgSend_782( + NSString language, ffi.Pointer> error) { + return _lib._objc_msgSend_908( _id, _lib._sel_setCustomPronoun_forLanguage_error_1, features?._id ?? ffi.nullptr, - language?._id ?? ffi.nullptr, + language._id, error); } @@ -55978,12 +63697,16 @@ class NSMorphology extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); } - static NSMorphology? getUserMorphology(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_783( + static NSMorphology getUserMorphology(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_909( _lib._class_NSMorphology1, _lib._sel_userMorphology1); - return _ret.address == 0 - ? null - : NSMorphology._(_ret, _lib, retain: true, release: true); + return NSMorphology._(_ret, _lib, retain: true, release: true); + } + + @override + NSMorphology init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphology._(_ret, _lib, retain: true, release: true); } static NSMorphology new1(AVFAudio _lib) { @@ -55992,6 +63715,12 @@ class NSMorphology extends NSObject { return NSMorphology._(_ret, _lib, retain: false, release: true); } + static NSMorphology allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMorphology1, _lib._sel_allocWithZone_1, zone); + return NSMorphology._(_ret, _lib, retain: false, release: true); + } + static NSMorphology alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); @@ -56002,18 +63731,18 @@ class NSMorphology extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._objc_msgSend_15(_lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56028,33 +63757,29 @@ class NSMorphology extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphology1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMorphology1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphology1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMorphology1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMorphology1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56101,6 +63826,50 @@ abstract class NSGrammaticalNumber { static const int NSGrammaticalNumberPluralMany = 6; } +abstract class NSGrammaticalCase { + static const int NSGrammaticalCaseNotSet = 0; + static const int NSGrammaticalCaseNominative = 1; + static const int NSGrammaticalCaseAccusative = 2; + static const int NSGrammaticalCaseDative = 3; + static const int NSGrammaticalCaseGenitive = 4; + static const int NSGrammaticalCasePrepositional = 5; + static const int NSGrammaticalCaseAblative = 6; + static const int NSGrammaticalCaseAdessive = 7; + static const int NSGrammaticalCaseAllative = 8; + static const int NSGrammaticalCaseElative = 9; + static const int NSGrammaticalCaseIllative = 10; + static const int NSGrammaticalCaseEssive = 11; + static const int NSGrammaticalCaseInessive = 12; + static const int NSGrammaticalCaseLocative = 13; + static const int NSGrammaticalCaseTranslative = 14; +} + +abstract class NSGrammaticalDetermination { + static const int NSGrammaticalDeterminationNotSet = 0; + static const int NSGrammaticalDeterminationIndependent = 1; + static const int NSGrammaticalDeterminationDependent = 2; +} + +abstract class NSGrammaticalPerson { + static const int NSGrammaticalPersonNotSet = 0; + static const int NSGrammaticalPersonFirst = 1; + static const int NSGrammaticalPersonSecond = 2; + static const int NSGrammaticalPersonThird = 3; +} + +abstract class NSGrammaticalPronounType { + static const int NSGrammaticalPronounTypeNotSet = 0; + static const int NSGrammaticalPronounTypePersonal = 1; + static const int NSGrammaticalPronounTypeReflexive = 2; + static const int NSGrammaticalPronounTypePossessive = 3; +} + +abstract class NSGrammaticalDefiniteness { + static const int NSGrammaticalDefinitenessNotSet = 0; + static const int NSGrammaticalDefinitenessIndefinite = 1; + static const int NSGrammaticalDefinitenessDefinite = 2; +} + class NSMorphologyCustomPronoun extends NSObject { NSMorphologyCustomPronoun._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -56126,77 +63895,83 @@ class NSMorphologyCustomPronoun extends NSObject { obj._lib._class_NSMorphologyCustomPronoun1); } - static bool isSupportedForLanguage_(AVFAudio _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); + static bool isSupportedForLanguage_(AVFAudio _lib, NSString language) { + return _lib._objc_msgSend_64(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_isSupportedForLanguage_1, language._id); } - static NSArray requiredKeysForLanguage_(AVFAudio _lib, NSString? language) { - final _ret = _lib._objc_msgSend_119(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); + static NSArray requiredKeysForLanguage_(AVFAudio _lib, NSString language) { + final _ret = _lib._objc_msgSend_358(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_requiredKeysForLanguage_1, language._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get subjectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_subjectForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set subjectForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); } NSString? get objectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_objectForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set objectForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); } NSString? get possessiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set possessiveForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); } NSString? get possessiveAdjectiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveAdjectiveForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set possessiveAdjectiveForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); } NSString? get reflexiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_reflexiveForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set reflexiveForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); } + @override + NSMorphologyCustomPronoun init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + } + static NSMorphologyCustomPronoun new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); @@ -56204,6 +63979,14 @@ class NSMorphologyCustomPronoun extends NSObject { retain: false, release: true); } + static NSMorphologyCustomPronoun allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_allocWithZone_1, zone); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); + } + static NSMorphologyCustomPronoun alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); @@ -56215,18 +63998,18 @@ class NSMorphologyCustomPronoun extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56241,33 +64024,29 @@ class NSMorphologyCustomPronoun extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMorphologyCustomPronoun1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56303,42 +64082,34 @@ class NSOperationQueue extends NSObject { obj._lib._class_NSOperationQueue1); } - NSProgress? get progress { - final _ret = _lib._objc_msgSend_577(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSProgress get progress { + final _ret = _lib._objc_msgSend_879(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void addOperation_(NSOperation? op) { - return _lib._objc_msgSend_784( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + void addOperation_(NSOperation op) { + _lib._objc_msgSend_910(_id, _lib._sel_addOperation_1, op._id); } - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - return _lib._objc_msgSend_787( - _id, - _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, - wait); + void addOperations_waitUntilFinished_(NSArray ops, bool wait) { + _lib._objc_msgSend_913( + _id, _lib._sel_addOperations_waitUntilFinished_1, ops._id, wait); } - void addOperationWithBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_465( - _id, _lib._sel_addOperationWithBlock_1, block._id); + void addOperationWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_532(_id, _lib._sel_addOperationWithBlock_1, block._id); } - void addBarrierBlock_(ObjCBlock16 barrier) { - return _lib._objc_msgSend_465( - _id, _lib._sel_addBarrierBlock_1, barrier._id); + void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { + _lib._objc_msgSend_532(_id, _lib._sel_addBarrierBlock_1, barrier._id); } int get maxConcurrentOperationCount { - return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); + return _lib._objc_msgSend_83(_id, _lib._sel_maxConcurrentOperationCount1); } set maxConcurrentOperationCount(int value) { - _lib._objc_msgSend_558( + return _lib._objc_msgSend_635( _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } @@ -56347,78 +64118,87 @@ class NSOperationQueue extends NSObject { } set suspended(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setSuspended_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setSuspended_1, value); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } - dispatch_queue_t get underlyingQueue { - return _lib._objc_msgSend_788(_id, _lib._sel_underlyingQueue1); + ffi.Pointer get underlyingQueue { + return _lib._objc_msgSend_914(_id, _lib._sel_underlyingQueue1); } - set underlyingQueue(dispatch_queue_t value) { - _lib._objc_msgSend_789(_id, _lib._sel_setUnderlyingQueue_1, value); + set underlyingQueue(ffi.Pointer value) { + return _lib._objc_msgSend_915(_id, _lib._sel_setUnderlyingQueue_1, value); } void cancelAllOperations() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); } void waitUntilAllOperationsAreFinished() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitUntilAllOperationsAreFinished1); + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); } static NSOperationQueue? getCurrentQueue(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_790( + final _ret = _lib._objc_msgSend_916( _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); return _ret.address == 0 ? null : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - static NSOperationQueue? getMainQueue(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_790( + static NSOperationQueue getMainQueue(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_917( _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } - NSArray? get operations { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get operations { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_operations1); + return NSArray._(_ret, _lib, retain: true, release: true); } int get operationCount { return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); } + @override + NSOperationQueue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + static NSOperationQueue new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); return NSOperationQueue._(_ret, _lib, retain: false, release: true); } + static NSOperationQueue allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOperationQueue1, _lib._sel_allocWithZone_1, zone); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } + static NSOperationQueue alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); @@ -56429,18 +64209,18 @@ class NSOperationQueue extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56455,33 +64235,29 @@ class NSOperationQueue extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperationQueue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOperationQueue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperationQueue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOperationQueue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOperationQueue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSOperationQueue1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSOperationQueue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56517,11 +64293,11 @@ class NSOperation extends NSObject { } void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + _lib._objc_msgSend_1(_id, _lib._sel_start1); } void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); + _lib._objc_msgSend_1(_id, _lib._sel_main1); } bool get cancelled { @@ -56529,7 +64305,7 @@ class NSOperation extends NSObject { } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } bool get executing { @@ -56552,69 +64328,75 @@ class NSOperation extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); } - void addDependency_(NSOperation? op) { - return _lib._objc_msgSend_784( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + void addDependency_(NSOperation op) { + _lib._objc_msgSend_910(_id, _lib._sel_addDependency_1, op._id); } - void removeDependency_(NSOperation? op) { - return _lib._objc_msgSend_784( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + void removeDependency_(NSOperation op) { + _lib._objc_msgSend_910(_id, _lib._sel_removeDependency_1, op._id); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_dependencies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get dependencies { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_dependencies1); + return NSArray._(_ret, _lib, retain: true, release: true); } int get queuePriority { - return _lib._objc_msgSend_785(_id, _lib._sel_queuePriority1); + return _lib._objc_msgSend_911(_id, _lib._sel_queuePriority1); } set queuePriority(int value) { - _lib._objc_msgSend_786(_id, _lib._sel_setQueuePriority_1, value); + return _lib._objc_msgSend_912(_id, _lib._sel_setQueuePriority_1, value); } - ObjCBlock16 get completionBlock { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_completionBlock1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get completionBlock { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_completionBlock1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set completionBlock(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setCompletionBlock_1, value._id); + set completionBlock(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setCompletionBlock_1, value?._id ?? ffi.nullptr); } void waitUntilFinished() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); } double get threadPriority { - return _lib._objc_msgSend_149(_id, _lib._sel_threadPriority1); + return _lib._objc_msgSend_165(_id, _lib._sel_threadPriority1); } set threadPriority(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setThreadPriority_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setThreadPriority_1, value); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + @override + NSOperation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOperation._(_ret, _lib, retain: true, release: true); } static NSOperation new1(AVFAudio _lib) { @@ -56622,6 +64404,12 @@ class NSOperation extends NSObject { return NSOperation._(_ret, _lib, retain: false, release: true); } + static NSOperation allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOperation1, _lib._sel_allocWithZone_1, zone); + return NSOperation._(_ret, _lib, retain: false, release: true); + } + static NSOperation alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); @@ -56632,18 +64420,18 @@ class NSOperation extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperation1, + _lib._objc_msgSend_15(_lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56658,33 +64446,29 @@ class NSOperation extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOperation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOperation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOperation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56704,7 +64488,7 @@ abstract class NSOperationQueuePriority { static const int NSOperationQueuePriorityVeryHigh = 8; } -typedef dispatch_queue_t = ffi.Pointer; +final class dispatch_queue_s extends ffi.Opaque {} class NSPointerArray extends NSObject { NSPointerArray._(ffi.Pointer id, AVFAudio lib, @@ -56731,63 +64515,58 @@ class NSPointerArray extends NSObject { NSPointerArray initWithOptions_(int options) { final _ret = - _lib._objc_msgSend_791(_id, _lib._sel_initWithOptions_1, options); + _lib._objc_msgSend_918(_id, _lib._sel_initWithOptions_1, options); return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_805(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); + NSPointerArray initWithPointerFunctions_(NSPointerFunctions functions) { + final _ret = _lib._objc_msgSend_932( + _id, _lib._sel_initWithPointerFunctions_1, functions._id); return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray pointerArrayWithOptions_(AVFAudio _lib, int options) { - final _ret = _lib._objc_msgSend_806(_lib._class_NSPointerArray1, + final _ret = _lib._objc_msgSend_933(_lib._class_NSPointerArray1, _lib._sel_pointerArrayWithOptions_1, options); return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray pointerArrayWithPointerFunctions_( - AVFAudio _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_807( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); + AVFAudio _lib, NSPointerFunctions functions) { + final _ret = _lib._objc_msgSend_934(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, functions._id); return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_808(_id, _lib._sel_pointerFunctions1); - return _ret.address == 0 - ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); + NSPointerFunctions get pointerFunctions { + final _ret = _lib._objc_msgSend_935(_id, _lib._sel_pointerFunctions1); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_809(_id, _lib._sel_pointerAtIndex_1, index); + return _lib._objc_msgSend_936(_id, _lib._sel_pointerAtIndex_1, index); } void addPointer_(ffi.Pointer pointer) { - return _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + _lib._objc_msgSend_52(_id, _lib._sel_addPointer_1, pointer); } void removePointerAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removePointerAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removePointerAtIndex_1, index); } void insertPointer_atIndex_(ffi.Pointer item, int index) { - return _lib._objc_msgSend_21( - _id, _lib._sel_insertPointer_atIndex_1, item, index); + _lib._objc_msgSend_22(_id, _lib._sel_insertPointer_atIndex_1, item, index); } void replacePointerAtIndex_withPointer_( int index, ffi.Pointer item) { - return _lib._objc_msgSend_810( + _lib._objc_msgSend_937( _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); } void compact() { - return _lib._objc_msgSend_1(_id, _lib._sel_compact1); + _lib._objc_msgSend_1(_id, _lib._sel_compact1); } int get count { @@ -56795,7 +64574,7 @@ class NSPointerArray extends NSObject { } set count(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setCount_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setCount_1, value); } static NSObject pointerArrayWithStrongObjects(AVFAudio _lib) { @@ -56811,22 +64590,26 @@ class NSPointerArray extends NSObject { } static NSPointerArray strongObjectsPointerArray(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_811( + final _ret = _lib._objc_msgSend_938( _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray weakObjectsPointerArray(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_811( + final _ret = _lib._objc_msgSend_938( _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get allObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSPointerArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray new1(AVFAudio _lib) { @@ -56835,6 +64618,13 @@ class NSPointerArray extends NSObject { return NSPointerArray._(_ret, _lib, retain: false, release: true); } + static NSPointerArray allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPointerArray1, _lib._sel_allocWithZone_1, zone); + return NSPointerArray._(_ret, _lib, retain: false, release: true); + } + static NSPointerArray alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); @@ -56845,18 +64635,18 @@ class NSPointerArray extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._objc_msgSend_15(_lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56871,33 +64661,29 @@ class NSPointerArray extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPointerArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPointerArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPointerArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56951,38 +64737,39 @@ class NSPointerFunctions extends NSObject { NSPointerFunctions initWithOptions_(int options) { final _ret = - _lib._objc_msgSend_791(_id, _lib._sel_initWithOptions_1, options); + _lib._objc_msgSend_918(_id, _lib._sel_initWithOptions_1, options); return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } static NSPointerFunctions pointerFunctionsWithOptions_( AVFAudio _lib, int options) { - final _ret = _lib._objc_msgSend_792(_lib._class_NSPointerFunctions1, + final _ret = _lib._objc_msgSend_919(_lib._class_NSPointerFunctions1, _lib._sel_pointerFunctionsWithOptions_1, options); return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function(ffi.Pointer)>>)>> get hashFunction { - return _lib._objc_msgSend_793(_id, _lib._sel_hashFunction1); + return _lib._objc_msgSend_920(_id, _lib._sel_hashFunction1); } set hashFunction( ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value) { - _lib._objc_msgSend_794(_id, _lib._sel_setHashFunction_1, value); + return _lib._objc_msgSend_921(_id, _lib._sel_setHashFunction_1, value); } ffi.Pointer< @@ -56992,9 +64779,9 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function(ffi.Pointer)>>)>> get isEqualFunction { - return _lib._objc_msgSend_795(_id, _lib._sel_isEqualFunction1); + return _lib._objc_msgSend_922(_id, _lib._sel_isEqualFunction1); } set isEqualFunction( @@ -57005,28 +64792,31 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value) { - _lib._objc_msgSend_796(_id, _lib._sel_setIsEqualFunction_1, value); + return _lib._objc_msgSend_923(_id, _lib._sel_setIsEqualFunction_1, value); } - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction)>> get sizeFunction { - return _lib._objc_msgSend_797(_id, _lib._sel_sizeFunction1); + return _lib._objc_msgSend_924(_id, _lib._sel_sizeFunction1); } set sizeFunction( ffi.Pointer< - ffi.NativeFunction)>> + ffi + .NativeFunction)>> value) { - _lib._objc_msgSend_798(_id, _lib._sel_setSizeFunction_1, value); + return _lib._objc_msgSend_925(_id, _lib._sel_setSizeFunction_1, value); } ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> get descriptionFunction { - return _lib._objc_msgSend_799(_id, _lib._sel_descriptionFunction1); + return _lib._objc_msgSend_926(_id, _lib._sel_descriptionFunction1); } set descriptionFunction( @@ -57034,7 +64824,8 @@ class NSPointerFunctions extends NSObject { ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> value) { - _lib._objc_msgSend_800(_id, _lib._sel_setDescriptionFunction_1, value); + return _lib._objc_msgSend_927( + _id, _lib._sel_setDescriptionFunction_1, value); } ffi.Pointer< @@ -57043,9 +64834,9 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function(ffi.Pointer)>>)>> get relinquishFunction { - return _lib._objc_msgSend_801(_id, _lib._sel_relinquishFunction1); + return _lib._objc_msgSend_928(_id, _lib._sel_relinquishFunction1); } set relinquishFunction( @@ -57055,9 +64846,11 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value) { - _lib._objc_msgSend_802(_id, _lib._sel_setRelinquishFunction_1, value); + return _lib._objc_msgSend_929( + _id, _lib._sel_setRelinquishFunction_1, value); } ffi.Pointer< @@ -57065,10 +64858,10 @@ class NSPointerFunctions extends NSObject { ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi - .NativeFunction)>>, + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, ffi.Bool)>> get acquireFunction { - return _lib._objc_msgSend_803(_id, _lib._sel_acquireFunction1); + return _lib._objc_msgSend_930(_id, _lib._sel_acquireFunction1); } set acquireFunction( @@ -57078,10 +64871,11 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>> value) { - _lib._objc_msgSend_804(_id, _lib._sel_setAcquireFunction_1, value); + return _lib._objc_msgSend_931(_id, _lib._sel_setAcquireFunction_1, value); } bool get usesStrongWriteBarrier { @@ -57089,7 +64883,8 @@ class NSPointerFunctions extends NSObject { } set usesStrongWriteBarrier(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setUsesStrongWriteBarrier_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setUsesStrongWriteBarrier_1, value); } bool get usesWeakReadAndWriteBarriers { @@ -57097,16 +64892,29 @@ class NSPointerFunctions extends NSObject { } set usesWeakReadAndWriteBarriers(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); } + @override + NSPointerFunctions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + static NSPointerFunctions new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } + static NSPointerFunctions allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPointerFunctions1, _lib._sel_allocWithZone_1, zone); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + } + static NSPointerFunctions alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); @@ -57117,18 +64925,18 @@ class NSPointerFunctions extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, + _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57143,33 +64951,29 @@ class NSPointerFunctions extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerFunctions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPointerFunctions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerFunctions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPointerFunctions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPointerFunctions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSPointerFunctions1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSPointerFunctions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57204,56 +65008,43 @@ class NSProcessInfo extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); } - static NSProcessInfo? getProcessInfo(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_812( + static NSProcessInfo getProcessInfo(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_939( _lib._class_NSProcessInfo1, _lib._sel_processInfo1); - return _ret.address == 0 - ? null - : NSProcessInfo._(_ret, _lib, retain: true, release: true); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get environment { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_environment1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get arguments { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_arguments1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get hostName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_hostName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get processName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get processName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_processName1); + return NSString._(_ret, _lib, retain: true, release: true); } - set processName(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + set processName(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setProcessName_1, value._id); } int get processIdentifier { - return _lib._objc_msgSend_213(_id, _lib._sel_processIdentifier1); + return _lib._objc_msgSend_237(_id, _lib._sel_processIdentifier1); } - NSString? get globallyUniqueString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get globallyUniqueString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_globallyUniqueString1); + return NSString._(_ret, _lib, retain: true, release: true); } int operatingSystem() { @@ -57261,20 +65052,18 @@ class NSProcessInfo extends NSObject { } NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_operatingSystemName1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get operatingSystemVersionString { + NSString get operatingSystemVersionString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_operatingSystemVersionString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSOperatingSystemVersion get operatingSystemVersion { - return _lib._objc_msgSend_813(_id, _lib._sel_operatingSystemVersion1); + void getOperatingSystemVersion(ffi.Pointer stret) { + _lib._objc_msgSend_940(stret, _id, _lib._sel_operatingSystemVersion1); } int get processorCount { @@ -57286,34 +65075,34 @@ class NSProcessInfo extends NSObject { } int get physicalMemory { - return _lib._objc_msgSend_148(_id, _lib._sel_physicalMemory1); + return _lib._objc_msgSend_164(_id, _lib._sel_physicalMemory1); } bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_814( + return _lib._objc_msgSend_941( _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); } double get systemUptime { - return _lib._objc_msgSend_149(_id, _lib._sel_systemUptime1); + return _lib._objc_msgSend_165(_id, _lib._sel_systemUptime1); } void disableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); } void enableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); } - void disableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_186(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + void disableAutomaticTermination_(NSString reason) { + _lib._objc_msgSend_248( + _id, _lib._sel_disableAutomaticTermination_1, reason._id); } - void enableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_186(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + void enableAutomaticTermination_(NSString reason) { + _lib._objc_msgSend_248( + _id, _lib._sel_enableAutomaticTermination_1, reason._id); } bool get automaticTerminationSupportEnabled { @@ -57322,59 +65111,51 @@ class NSProcessInfo extends NSObject { } set automaticTerminationSupportEnabled(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); } - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_815( - _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); + NSObject beginActivityWithOptions_reason_(int options, NSString reason) { + final _ret = _lib._objc_msgSend_942( + _id, _lib._sel_beginActivityWithOptions_reason_1, options, reason._id); return NSObject._(_ret, _lib, retain: true, release: true); } - void endActivity_(NSObject? activity) { - return _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + void endActivity_(NSObject activity) { + _lib._objc_msgSend_15(_id, _lib._sel_endActivity_1, activity._id); } void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock16 block) { - return _lib._objc_msgSend_816( + int options, NSString reason, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_943( _id, _lib._sel_performActivityWithOptions_reason_usingBlock_1, options, - reason?._id ?? ffi.nullptr, + reason._id, block._id); } void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock31 block) { - return _lib._objc_msgSend_817( + NSString reason, ObjCBlock_ffiVoid_bool block) { + _lib._objc_msgSend_944( _id, _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, + reason._id, block._id); } - NSString? get userName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get userName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_userName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get fullUserName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get fullUserName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_fullUserName1); + return NSString._(_ret, _lib, retain: true, release: true); } int get thermalState { - return _lib._objc_msgSend_818(_id, _lib._sel_thermalState1); + return _lib._objc_msgSend_945(_id, _lib._sel_thermalState1); } bool get lowPowerModeEnabled { @@ -57389,12 +65170,25 @@ class NSProcessInfo extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); } + @override + NSProcessInfo init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); + } + static NSProcessInfo new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); return NSProcessInfo._(_ret, _lib, retain: false, release: true); } + static NSProcessInfo allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProcessInfo1, _lib._sel_allocWithZone_1, zone); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); + } + static NSProcessInfo alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); @@ -57405,18 +65199,18 @@ class NSProcessInfo extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, + _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57431,33 +65225,29 @@ class NSProcessInfo extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSProcessInfo1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSProcessInfo1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSProcessInfo1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSProcessInfo1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSProcessInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57470,13 +65260,13 @@ class NSProcessInfo extends NSObject { } final class NSOperatingSystemVersion extends ffi.Struct { - @NSInteger() + @ffi.Long() external int majorVersion; - @NSInteger() + @ffi.Long() external int minorVersion; - @NSInteger() + @ffi.Long() external int patchVersion; } @@ -57485,68 +65275,105 @@ abstract class NSActivityOptions { static const int NSActivityIdleSystemSleepDisabled = 1048576; static const int NSActivitySuddenTerminationDisabled = 16384; static const int NSActivityAutomaticTerminationDisabled = 32768; + static const int NSActivityAnimationTrackingEnabled = 35184372088832; + static const int NSActivityTrackingEnabled = 70368744177664; static const int NSActivityUserInitiated = 16777215; static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; static const int NSActivityBackground = 255; static const int NSActivityLatencyCritical = 1095216660480; + static const int NSActivityUserInteractive = 1095233437695; } -void _ObjCBlock31_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); -} - -final _ObjCBlock31_closureRegistry = {}; -int _ObjCBlock31_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock31_registerClosure(Function fn) { - final id = ++_ObjCBlock31_closureRegistryIndex; - _ObjCBlock31_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure( + void Function(bool) fn) { + final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock31_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return _ObjCBlock31_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + _ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock31 extends _ObjCBlockBase { - ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock31.fromFunctionPointer(AVFAudio lib, + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool.fromFunctionPointer(AVFAudio lib, ffi.Pointer> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock31_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Bool)>(_ObjCBlock_ffiVoid_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock31.fromFunction(AVFAudio lib, void Function(bool arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool.fromFunction(AVFAudio lib, void Function(bool) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock31_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>( + _ObjCBlock_ffiVoid_bool_closureTrampoline) .cast(), - _ObjCBlock31_registerClosure(fn)), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), lib); - void call(bool arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_bool.listener(AVFAudio lib, void Function(bool) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>.listener( + _ObjCBlock_ffiVoid_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), + lib); + static ffi + .NativeCallable, ffi.Bool)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(bool arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + .asFunction, bool)>()(_id, arg0); } abstract class NSProcessInfoThermalState { @@ -57581,82 +65408,82 @@ class NSTextCheckingResult extends NSObject { } int get resultType { - return _lib._objc_msgSend_819(_id, _lib._sel_resultType1); + return _lib._objc_msgSend_946(_id, _lib._sel_resultType1); } - NSRange get range { - return _lib._objc_msgSend_49(_id, _lib._sel_range1); + void getRange(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_range1); } NSOrthography? get orthography { - final _ret = _lib._objc_msgSend_820(_id, _lib._sel_orthography1); + final _ret = _lib._objc_msgSend_947(_id, _lib._sel_orthography1); return _ret.address == 0 ? null : NSOrthography._(_ret, _lib, retain: true, release: true); } NSArray? get grammarDetails { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_grammarDetails1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_grammarDetails1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSDate? get date { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_date1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_date1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); + final _ret = _lib._objc_msgSend_773(_id, _lib._sel_timeZone1); return _ret.address == 0 ? null : NSTimeZone._(_ret, _lib, retain: true, release: true); } double get duration { - return _lib._objc_msgSend_149(_id, _lib._sel_duration1); + return _lib._objc_msgSend_165(_id, _lib._sel_duration1); } NSDictionary? get components { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_components1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_components1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get replacementString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_replacementString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSArray? get alternativeStrings { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_alternativeStrings1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_alternativeStrings1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_832(_id, _lib._sel_regularExpression1); + final _ret = _lib._objc_msgSend_959(_id, _lib._sel_regularExpression1); return _ret.address == 0 ? null : NSRegularExpression._(_ret, _lib, retain: true, release: true); } NSString? get phoneNumber { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_phoneNumber1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -57666,188 +65493,184 @@ class NSTextCheckingResult extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); } - NSRange rangeAtIndex_(int idx) { - return _lib._objc_msgSend_308(_id, _lib._sel_rangeAtIndex_1, idx); + void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { + _lib._objc_msgSend_347(stret, _id, _lib._sel_rangeAtIndex_1, idx); } - NSRange rangeWithName_(NSString? name) { - return _lib._objc_msgSend_301( - _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString name) { + _lib._objc_msgSend_340(stret, _id, _lib._sel_rangeWithName_1, name._id); } NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_833( + final _ret = _lib._objc_msgSend_960( _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_addressComponents1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_addressComponents1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - AVFAudio _lib, NSRange range, NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_834( + AVFAudio _lib, _NSRange range, NSOrthography orthography) { + final _ret = _lib._objc_msgSend_961( _lib._class_NSTextCheckingResult1, _lib._sel_orthographyCheckingResultWithRange_orthography_1, range, - orthography?._id ?? ffi.nullptr); + orthography._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult spellCheckingResultWithRange_( - AVFAudio _lib, NSRange range) { - final _ret = _lib._objc_msgSend_835(_lib._class_NSTextCheckingResult1, + AVFAudio _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_962(_lib._class_NSTextCheckingResult1, _lib._sel_spellCheckingResultWithRange_1, range); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult grammarCheckingResultWithRange_details_( - AVFAudio _lib, NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_836( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); + AVFAudio _lib, _NSRange range, NSArray details) { + final _ret = _lib._objc_msgSend_963(_lib._class_NSTextCheckingResult1, + _lib._sel_grammarCheckingResultWithRange_details_1, range, details._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult dateCheckingResultWithRange_date_( - AVFAudio _lib, NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_837( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); + AVFAudio _lib, _NSRange range, NSDate date) { + final _ret = _lib._objc_msgSend_964(_lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_1, range, date._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult dateCheckingResultWithRange_date_timeZone_duration_(AVFAudio _lib, - NSRange range, NSDate? date, NSTimeZone? timeZone, double duration) { - final _ret = _lib._objc_msgSend_838( + _NSRange range, NSDate date, NSTimeZone timeZone, double duration) { + final _ret = _lib._objc_msgSend_965( _lib._class_NSTextCheckingResult1, _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, range, - date?._id ?? ffi.nullptr, - timeZone?._id ?? ffi.nullptr, + date._id, + timeZone._id, duration); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult addressCheckingResultWithRange_components_( - AVFAudio _lib, NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_839( + AVFAudio _lib, _NSRange range, NSDictionary components) { + final _ret = _lib._objc_msgSend_966( _lib._class_NSTextCheckingResult1, _lib._sel_addressCheckingResultWithRange_components_1, range, - components?._id ?? ffi.nullptr); + components._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult linkCheckingResultWithRange_URL_( - AVFAudio _lib, NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_840( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); + AVFAudio _lib, _NSRange range, NSURL url) { + final _ret = _lib._objc_msgSend_967(_lib._class_NSTextCheckingResult1, + _lib._sel_linkCheckingResultWithRange_URL_1, range, url._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - AVFAudio _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + AVFAudio _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_quoteCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - AVFAudio _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + AVFAudio _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_dashCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult replacementCheckingResultWithRange_replacementString_( - AVFAudio _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + AVFAudio _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_replacementCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult correctionCheckingResultWithRange_replacementString_( - AVFAudio _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + AVFAudio _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_correctionCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult correctionCheckingResultWithRange_replacementString_alternativeStrings_( AVFAudio _lib, - NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_842( + _NSRange range, + NSString replacementString, + NSArray alternativeStrings) { + final _ret = _lib._objc_msgSend_969( _lib._class_NSTextCheckingResult1, _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, range, - replacementString?._id ?? ffi.nullptr, - alternativeStrings?._id ?? ffi.nullptr); + replacementString._id, + alternativeStrings._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult regularExpressionCheckingResultWithRanges_count_regularExpression_( AVFAudio _lib, - NSRangePointer ranges, + ffi.Pointer<_NSRange> ranges, int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_843( + NSRegularExpression regularExpression) { + final _ret = _lib._objc_msgSend_970( _lib._class_NSTextCheckingResult1, _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, ranges, count, - regularExpression?._id ?? ffi.nullptr); + regularExpression._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - AVFAudio _lib, NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_841( + AVFAudio _lib, _NSRange range, NSString phoneNumber) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, range, - phoneNumber?._id ?? ffi.nullptr); + phoneNumber._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult transitInformationCheckingResultWithRange_components_( - AVFAudio _lib, NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_839( + AVFAudio _lib, _NSRange range, NSDictionary components) { + final _ret = _lib._objc_msgSend_966( _lib._class_NSTextCheckingResult1, _lib._sel_transitInformationCheckingResultWithRange_components_1, range, - components?._id ?? ffi.nullptr); + components._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + @override + NSTextCheckingResult init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } @@ -57857,6 +65680,13 @@ class NSTextCheckingResult extends NSObject { return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } + static NSTextCheckingResult allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTextCheckingResult1, _lib._sel_allocWithZone_1, zone); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + } + static NSTextCheckingResult alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); @@ -57867,18 +65697,18 @@ class NSTextCheckingResult extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57893,33 +65723,29 @@ class NSTextCheckingResult extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTextCheckingResult1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTextCheckingResult1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTextCheckingResult1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTextCheckingResult1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTextCheckingResult1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSTextCheckingResult1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSTextCheckingResult1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57971,155 +65797,168 @@ class NSRegularExpression extends NSObject { obj._lib._class_NSRegularExpression1); } - static NSRegularExpression regularExpressionWithPattern_options_error_( + static NSRegularExpression? regularExpressionWithPattern_options_error_( AVFAudio _lib, - NSString? pattern, + NSString pattern, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_821( + final _ret = _lib._objc_msgSend_948( _lib._class_NSRegularExpression1, _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, + pattern._id, options, error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - NSRegularExpression initWithPattern_options_error_(NSString? pattern, + NSRegularExpression? initWithPattern_options_error_(NSString pattern, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_822( - _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); + final _ret = _lib._objc_msgSend_949(_id, + _lib._sel_initWithPattern_options_error_1, pattern._id, options, error); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + + NSString get pattern { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_pattern1); + return NSString._(_ret, _lib, retain: true, release: true); } int get options { - return _lib._objc_msgSend_823(_id, _lib._sel_options1); + return _lib._objc_msgSend_950(_id, _lib._sel_options1); } int get numberOfCaptureGroups { return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); } - static NSString escapedPatternForString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); + static NSString escapedPatternForString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSRegularExpression1, + _lib._sel_escapedPatternForString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, int options, NSRange range, ObjCBlock32 block) { - return _lib._objc_msgSend_824( + NSString string, + int options, + _NSRange range, + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { + _lib._objc_msgSend_951( _id, _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, + string._id, options, range, block._id); } NSArray matchesInString_options_range_( - NSString? string, int options, NSRange range) { - final _ret = _lib._objc_msgSend_825( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + NSString string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_952(_id, + _lib._sel_matchesInString_options_range_1, string._id, options, range); return NSArray._(_ret, _lib, retain: true, release: true); } int numberOfMatchesInString_options_range_( - NSString? string, int options, NSRange range) { - return _lib._objc_msgSend_826( + NSString string, int options, _NSRange range) { + return _lib._objc_msgSend_953( _id, _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, + string._id, options, range); } - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, NSRange range) { - final _ret = _lib._objc_msgSend_827( + NSTextCheckingResult? firstMatchInString_options_range_( + NSString string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_954( _id, _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, + string._id, options, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSRange rangeOfFirstMatchInString_options_range_( - NSString? string, int options, NSRange range) { - return _lib._objc_msgSend_828( + void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, + NSString string, int options, _NSRange range) { + _lib._objc_msgSend_955( + stret, _id, _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, + string._id, options, range); } NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_829( + NSString string, int options, _NSRange range, NSString templ) { + final _ret = _lib._objc_msgSend_956( _id, _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, + string._id, options, range, - templ?._id ?? ffi.nullptr); + templ._id); return NSString._(_ret, _lib, retain: true, release: true); } int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, NSRange range, NSString? templ) { - return _lib._objc_msgSend_830( + NSMutableString string, int options, _NSRange range, NSString templ) { + return _lib._objc_msgSend_957( _id, _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, + string._id, options, range, - templ?._id ?? ffi.nullptr); + templ._id); } NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, + NSTextCheckingResult result, + NSString string, int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_831( + NSString templ) { + final _ret = _lib._objc_msgSend_958( _id, _lib._sel_replacementStringForResult_inString_offset_template_1, - result?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr, + result._id, + string._id, offset, - templ?._id ?? ffi.nullptr); + templ._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString escapedTemplateForString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); + static NSString escapedTemplateForString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSRegularExpression1, + _lib._sel_escapedTemplateForString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSRegularExpression init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + static NSRegularExpression new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); return NSRegularExpression._(_ret, _lib, retain: false, release: true); } + static NSRegularExpression allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSRegularExpression1, _lib._sel_allocWithZone_1, zone); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); + } + static NSRegularExpression alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSRegularExpression1, _lib._sel_alloc1); @@ -58130,18 +65969,18 @@ class NSRegularExpression extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58156,33 +65995,29 @@ class NSRegularExpression extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRegularExpression1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSRegularExpression1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRegularExpression1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSRegularExpression1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSRegularExpression1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSRegularExpression1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58212,38 +66047,55 @@ abstract class NSMatchingOptions { static const int NSMatchingWithoutAnchoringBounds = 16; } -void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock32_closureRegistry = {}; -int _ObjCBlock32_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { - final id = ++_ObjCBlock32_closureRegistryIndex; - _ObjCBlock32_closureRegistry[id] = fn; +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Int32 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock32_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock32 extends _ObjCBlockBase { - ObjCBlock32._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock32.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -58252,54 +66104,89 @@ class ObjCBlock32 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock32.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( AVFAudio lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + void Function(NSTextCheckingResult?, int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) .cast(), - _ObjCBlock32_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSTextCheckingResult._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.listener( + AVFAudio lib, + void Function(NSTextCheckingResult?, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSTextCheckingResult._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Int32, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSTextCheckingResult? arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, int, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } abstract class NSMatchingFlags { @@ -58332,22 +66219,20 @@ class NSURLCache extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); } - static NSURLCache? getSharedURLCache(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_844( + static NSURLCache getSharedURLCache(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_971( _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static void setSharedURLCache(AVFAudio _lib, NSURLCache? value) { - _lib._objc_msgSend_845(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + static void setSharedURLCache(AVFAudio _lib, NSURLCache value) { + return _lib._objc_msgSend_972( + _lib._class_NSURLCache1, _lib._sel_setSharedURLCache_1, value._id); } NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_846( + final _ret = _lib._objc_msgSend_973( _id, _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, memoryCapacity, @@ -58358,7 +66243,7 @@ class NSURLCache extends NSObject { NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_847( + final _ret = _lib._objc_msgSend_974( _id, _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, memoryCapacity, @@ -58367,35 +66252,32 @@ class NSURLCache extends NSObject { return NSURLCache._(_ret, _lib, retain: true, release: true); } - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_851( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse? cachedResponseForRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_979( + _id, _lib._sel_cachedResponseForRequest_1, request._id); + return _ret.address == 0 + ? null + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - return _lib._objc_msgSend_852( - _id, - _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + NSCachedURLResponse cachedResponse, NSURLRequest request) { + _lib._objc_msgSend_980(_id, _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse._id, request._id); } - void removeCachedResponseForRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_853( - _id, - _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); + void removeCachedResponseForRequest_(NSURLRequest request) { + _lib._objc_msgSend_981( + _id, _lib._sel_removeCachedResponseForRequest_1, request._id); } void removeAllCachedResponses() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } - void removeCachedResponsesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_472(_id, - _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); + void removeCachedResponsesSinceDate_(NSDate date) { + _lib._objc_msgSend_540( + _id, _lib._sel_removeCachedResponsesSinceDate_1, date._id); } int get memoryCapacity { @@ -58403,7 +66285,7 @@ class NSURLCache extends NSObject { } set memoryCapacity(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMemoryCapacity_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setMemoryCapacity_1, value); } int get diskCapacity { @@ -58411,7 +66293,7 @@ class NSURLCache extends NSObject { } set diskCapacity(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setDiskCapacity_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setDiskCapacity_1, value); } int get currentMemoryUsage { @@ -58423,28 +66305,30 @@ class NSURLCache extends NSObject { } void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_854( - _id, - _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, - dataTask?._id ?? ffi.nullptr); + NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_982(_id, _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse._id, dataTask._id); } void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, ObjCBlock33 completionHandler) { - return _lib._objc_msgSend_855( + NSURLSessionDataTask dataTask, + ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { + _lib._objc_msgSend_983( _id, _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, + dataTask._id, completionHandler._id); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_856( - _id, - _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + void removeCachedResponseForDataTask_(NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_984( + _id, _lib._sel_removeCachedResponseForDataTask_1, dataTask._id); + } + + @override + NSURLCache init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCache._(_ret, _lib, retain: true, release: true); } static NSURLCache new1(AVFAudio _lib) { @@ -58452,6 +66336,12 @@ class NSURLCache extends NSObject { return NSURLCache._(_ret, _lib, retain: false, release: true); } + static NSURLCache allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCache1, _lib._sel_allocWithZone_1, zone); + return NSURLCache._(_ret, _lib, retain: false, release: true); + } + static NSURLCache alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); @@ -58462,18 +66352,18 @@ class NSURLCache extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCache1, + _lib._objc_msgSend_15(_lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58488,33 +66378,29 @@ class NSURLCache extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCache1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLCache1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCache1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLCache1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLCache1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58551,50 +66437,52 @@ class NSCachedURLResponse extends NSObject { } NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_848(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + NSURLResponse response, NSData data) { + final _ret = _lib._objc_msgSend_975( + _id, _lib._sel_initWithResponse_data_1, response._id, data._id); return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, + NSURLResponse response, + NSData data, NSDictionary? userInfo, int storagePolicy) { - final _ret = _lib._objc_msgSend_849( + final _ret = _lib._objc_msgSend_976( _id, _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, - response?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, + response._id, + data._id, userInfo?._id ?? ffi.nullptr, storagePolicy); return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_763(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + NSURLResponse get response { + final _ret = _lib._objc_msgSend_977(_id, _lib._sel_response1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } int get storagePolicy { - return _lib._objc_msgSend_850(_id, _lib._sel_storagePolicy1); + return _lib._objc_msgSend_978(_id, _lib._sel_storagePolicy1); + } + + @override + NSCachedURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } static NSCachedURLResponse new1(AVFAudio _lib) { @@ -58603,6 +66491,13 @@ class NSCachedURLResponse extends NSObject { return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } + static NSCachedURLResponse allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCachedURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + } + static NSCachedURLResponse alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); @@ -58613,18 +66508,18 @@ class NSCachedURLResponse extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58639,33 +66534,29 @@ class NSCachedURLResponse extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCachedURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCachedURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCachedURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCachedURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCachedURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSCachedURLResponse1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSCachedURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58719,6 +66610,13 @@ class NSURLSessionDataTask extends NSURLSessionTask { return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionDataTask allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionDataTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionDataTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); @@ -58729,18 +66627,18 @@ class NSURLSessionDataTask extends NSURLSessionTask { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58755,33 +66653,29 @@ class NSURLSessionDataTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDataTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionDataTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDataTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionDataTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionDataTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionDataTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionDataTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58793,33 +66687,40 @@ class NSURLSessionDataTask extends NSURLSessionTask { } } -void _ObjCBlock33_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock33_closureRegistry = {}; -int _ObjCBlock33_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { - final id = ++_ObjCBlock33_closureRegistryIndex; - _ObjCBlock33_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock33_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock33_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock33 extends _ObjCBlockBase { - ObjCBlock33._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSCachedURLResponse._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock33.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -58827,38 +66728,72 @@ class ObjCBlock33 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock33_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock33.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( + AVFAudio lib, void Function(NSCachedURLResponse?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock33_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) .cast(), - _ObjCBlock33_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSCachedURLResponse.listener( + AVFAudio lib, void Function(NSCachedURLResponse?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSCachedURLResponse? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } class NSURLConnection extends NSObject { @@ -58885,112 +66820,129 @@ class NSURLConnection extends NSObject { obj._lib._class_NSURLConnection1); } - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_857( + NSURLConnection? initWithRequest_delegate_startImmediately_( + NSURLRequest request, NSObject? delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_985( _id, _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, + request._id, + delegate?._id ?? ffi.nullptr, startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_858( + NSURLConnection? initWithRequest_delegate_( + NSURLRequest request, NSObject? delegate) { + final _ret = _lib._objc_msgSend_986( _id, _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + request._id, + delegate?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - static NSURLConnection connectionWithRequest_delegate_( - AVFAudio _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_859( + static NSURLConnection? connectionWithRequest_delegate_( + AVFAudio _lib, NSURLRequest request, NSObject? delegate) { + final _ret = _lib._objc_msgSend_987( _lib._class_NSURLConnection1, _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_originalRequest1); + request._id, + delegate?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get originalRequest { + final _ret = _lib._objc_msgSend_988(_id, _lib._sel_originalRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest get currentRequest { + final _ret = _lib._objc_msgSend_988(_id, _lib._sel_currentRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + _lib._objc_msgSend_1(_id, _lib._sel_start1); } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501( - _id, - _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, - mode); + void unscheduleFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_unscheduleFromRunLoop_forMode_1, aRunLoop._id, mode._id); } void setDelegateQueue_(NSOperationQueue? queue) { - return _lib._objc_msgSend_860( + _lib._objc_msgSend_989( _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); } - static bool canHandleRequest_(AVFAudio _lib, NSURLRequest? request) { - return _lib._objc_msgSend_861(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + static bool canHandleRequest_(AVFAudio _lib, NSURLRequest request) { + return _lib._objc_msgSend_990(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request._id); } - static NSData sendSynchronousRequest_returningResponse_error_( + static NSData? sendSynchronousRequest_returningResponse_error_( AVFAudio _lib, - NSURLRequest? request, + NSURLRequest request, ffi.Pointer> response, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_862( + final _ret = _lib._objc_msgSend_991( _lib._class_NSURLConnection1, _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, + request._id, response, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static void sendAsynchronousRequest_queue_completionHandler_(AVFAudio _lib, - NSURLRequest? request, NSOperationQueue? queue, ObjCBlock34 handler) { - return _lib._objc_msgSend_863( + static void sendAsynchronousRequest_queue_completionHandler_( + AVFAudio _lib, + NSURLRequest request, + NSOperationQueue queue, + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { + _lib._objc_msgSend_992( _lib._class_NSURLConnection1, _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, + request._id, + queue._id, handler._id); } + @override + NSURLConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + static NSURLConnection new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); return NSURLConnection._(_ret, _lib, retain: false, release: true); } + static NSURLConnection allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLConnection1, _lib._sel_allocWithZone_1, zone); + return NSURLConnection._(_ret, _lib, retain: false, release: true); + } + static NSURLConnection alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); @@ -59001,18 +66953,18 @@ class NSURLConnection extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._objc_msgSend_15(_lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59027,33 +66979,29 @@ class NSURLConnection extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLConnection1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59065,48 +67013,56 @@ class NSURLConnection extends NSObject { } } -void _ObjCBlock34_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock34_closureRegistry = {}; -int _ObjCBlock34_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { - final id = ++_ObjCBlock34_closureRegistryIndex; - _ObjCBlock34_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock34_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock34_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock34 extends _ObjCBlockBase { - ObjCBlock34._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock34.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -59117,54 +67073,94 @@ class ObjCBlock34 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock34_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock34.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( + AVFAudio lib, void Function(NSURLResponse?, NSData?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock34_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURLResponse._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSData._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.listener( + AVFAudio lib, void Function(NSURLResponse?, NSData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock34_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURLResponse._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSData._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURLResponse? arg0, NSData? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); } class NSURLCredential extends NSObject { @@ -59192,40 +67188,40 @@ class NSURLCredential extends NSObject { } int get persistence { - return _lib._objc_msgSend_864(_id, _lib._sel_persistence1); + return _lib._objc_msgSend_993(_id, _lib._sel_persistence1); } NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_865( + NSString user, NSString password, int persistence) { + final _ret = _lib._objc_msgSend_994( _id, _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, + user._id, + password._id, persistence); return NSURLCredential._(_ret, _lib, retain: true, release: true); } static NSURLCredential credentialWithUser_password_persistence_( - AVFAudio _lib, NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_866( + AVFAudio _lib, NSString user, NSString password, int persistence) { + final _ret = _lib._objc_msgSend_995( _lib._class_NSURLCredential1, _lib._sel_credentialWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, + user._id, + password._id, persistence); return NSURLCredential._(_ret, _lib, retain: true, release: true); } NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -59236,8 +67232,10 @@ class NSURLCredential extends NSObject { } NSURLCredential initWithIdentity_certificates_persistence_( - SecIdentityRef identity, NSArray? certArray, int persistence) { - final _ret = _lib._objc_msgSend_867( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_996( _id, _lib._sel_initWithIdentity_certificates_persistence_1, identity, @@ -59248,10 +67246,10 @@ class NSURLCredential extends NSObject { static NSURLCredential credentialWithIdentity_certificates_persistence_( AVFAudio _lib, - SecIdentityRef identity, + ffi.Pointer<__SecIdentity> identity, NSArray? certArray, int persistence) { - final _ret = _lib._objc_msgSend_868( + final _ret = _lib._objc_msgSend_997( _lib._class_NSURLCredential1, _lib._sel_credentialWithIdentity_certificates_persistence_1, identity, @@ -59260,34 +67258,46 @@ class NSURLCredential extends NSObject { return NSURLCredential._(_ret, _lib, retain: true, release: true); } - SecIdentityRef get identity { - return _lib._objc_msgSend_869(_id, _lib._sel_identity1); + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_998(_id, _lib._sel_identity1); } - NSArray? get certificates { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_certificates1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get certificates { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_certificates1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURLCredential initWithTrust_(SecTrustRef trust) { - final _ret = _lib._objc_msgSend_870(_id, _lib._sel_initWithTrust_1, trust); + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_999(_id, _lib._sel_initWithTrust_1, trust); return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSURLCredential credentialForTrust_(AVFAudio _lib, SecTrustRef trust) { - final _ret = _lib._objc_msgSend_871( + static NSURLCredential credentialForTrust_( + AVFAudio _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_1000( _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); return NSURLCredential._(_ret, _lib, retain: true, release: true); } + @override + NSURLCredential init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + static NSURLCredential new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); return NSURLCredential._(_ret, _lib, retain: false, release: true); } + static NSURLCredential allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredential1, _lib._sel_allocWithZone_1, zone); + return NSURLCredential._(_ret, _lib, retain: false, release: true); + } + static NSURLCredential alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); @@ -59298,18 +67308,18 @@ class NSURLCredential extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredential1, + _lib._objc_msgSend_15(_lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59324,33 +67334,29 @@ class NSURLCredential extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredential1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLCredential1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredential1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLCredential1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLCredential1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLCredential1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLCredential1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59369,12 +67375,8 @@ abstract class NSURLCredentialPersistence { static const int NSURLCredentialPersistenceSynchronizable = 3; } -typedef SecIdentityRef = ffi.Pointer<__SecIdentity>; - final class __SecIdentity extends ffi.Opaque {} -typedef SecTrustRef = ffi.Pointer<__SecTrust>; - final class __SecTrust extends ffi.Opaque {} class NSURLProtectionSpace extends NSObject { @@ -59402,15 +67404,15 @@ class NSURLProtectionSpace extends NSObject { } NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, + NSString host, int port, NSString? protocol, NSString? realm, NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_872( + final _ret = _lib._objc_msgSend_1001( _id, _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, + host._id, port, protocol?._id ?? ffi.nullptr, realm?._id ?? ffi.nullptr, @@ -59419,15 +67421,15 @@ class NSURLProtectionSpace extends NSObject { } NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, + NSString host, int port, NSString? type, NSString? realm, NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_872( + final _ret = _lib._objc_msgSend_1001( _id, _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, + host._id, port, type?._id ?? ffi.nullptr, realm?._id ?? ffi.nullptr, @@ -59436,7 +67438,7 @@ class NSURLProtectionSpace extends NSObject { } NSString? get realm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_realm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -59450,47 +67452,49 @@ class NSURLProtectionSpace extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); } - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get host { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_host1); + return NSString._(_ret, _lib, retain: true, release: true); } int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + return _lib._objc_msgSend_83(_id, _lib._sel_port1); } NSString? get proxyType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_proxyType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_protocol1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get authenticationMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get authenticationMethod { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_authenticationMethod1); + return NSString._(_ret, _lib, retain: true, release: true); } NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_distinguishedNames1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_distinguishedNames1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - SecTrustRef get serverTrust { - return _lib._objc_msgSend_873(_id, _lib._sel_serverTrust1); + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_1002(_id, _lib._sel_serverTrust1); + } + + @override + NSURLProtectionSpace init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } static NSURLProtectionSpace new1(AVFAudio _lib) { @@ -59499,6 +67503,13 @@ class NSURLProtectionSpace extends NSObject { return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } + static NSURLProtectionSpace allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLProtectionSpace1, _lib._sel_allocWithZone_1, zone); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + } + static NSURLProtectionSpace alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); @@ -59509,18 +67520,18 @@ class NSURLProtectionSpace extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, + _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59535,33 +67546,29 @@ class NSURLProtectionSpace extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtectionSpace1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLProtectionSpace1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtectionSpace1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLProtectionSpace1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLProtectionSpace1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLProtectionSpace1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLProtectionSpace1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59598,131 +67605,130 @@ class NSURLCredentialStorage extends NSObject { obj._lib._class_NSURLCredentialStorage1); } - static NSURLCredentialStorage? getSharedCredentialStorage(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_874(_lib._class_NSURLCredentialStorage1, + static NSURLCredentialStorage getSharedCredentialStorage(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_1003(_lib._class_NSURLCredentialStorage1, _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_875(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_allCredentials1); + NSDictionary? credentialsForProtectionSpace_(NSURLProtectionSpace space) { + final _ret = _lib._objc_msgSend_1004( + _id, _lib._sel_credentialsForProtectionSpace_1, space._id); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } + NSDictionary get allCredentials { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_allCredentials1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_876( - _id, - _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_1005(_id, _lib._sel_setCredential_forProtectionSpace_1, + credential._id, space._id); } void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_876( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_1005( _id, _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + credential._id, + space._id); } - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - return _lib._objc_msgSend_877( + void removeCredential_forProtectionSpace_options_(NSURLCredential credential, + NSURLProtectionSpace space, NSDictionary? options) { + _lib._objc_msgSend_1006( _id, _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, + credential._id, + space._id, options?._id ?? ffi.nullptr); } - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_878( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + NSURLCredential? defaultCredentialForProtectionSpace_( + NSURLProtectionSpace space) { + final _ret = _lib._objc_msgSend_1007( + _id, _lib._sel_defaultCredentialForProtectionSpace_1, space._id); + return _ret.address == 0 + ? null + : NSURLCredential._(_ret, _lib, retain: true, release: true); } void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_876( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_1005( _id, _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + credential._id, + space._id); } void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock35 completionHandler) { - return _lib._objc_msgSend_879( + NSURLProtectionSpace protectionSpace, + NSURLSessionTask task, + ObjCBlock_ffiVoid_NSDictionary completionHandler) { + _lib._objc_msgSend_1008( _id, _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, + protectionSpace._id, + task._id, completionHandler._id); } - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - return _lib._objc_msgSend_880( + void setCredential_forProtectionSpace_task_(NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSURLSessionTask task) { + _lib._objc_msgSend_1009( _id, _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + credential._id, + protectionSpace._id, + task._id); } void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, + NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSDictionary? options, - NSURLSessionTask? task) { - return _lib._objc_msgSend_881( + NSURLSessionTask task) { + _lib._objc_msgSend_1010( _id, _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, + credential._id, + protectionSpace._id, options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + task._id); } void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock36 completionHandler) { - return _lib._objc_msgSend_882( + NSURLProtectionSpace space, + NSURLSessionTask task, + ObjCBlock_ffiVoid_NSURLCredential completionHandler) { + _lib._objc_msgSend_1011( _id, _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, + space._id, + task._id, completionHandler._id); } - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - return _lib._objc_msgSend_880( + void setDefaultCredential_forProtectionSpace_task_(NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSURLSessionTask task) { + _lib._objc_msgSend_1009( _id, _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + credential._id, + protectionSpace._id, + task._id); + } + + @override + NSURLCredentialStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } static NSURLCredentialStorage new1(AVFAudio _lib) { @@ -59731,6 +67737,13 @@ class NSURLCredentialStorage extends NSObject { return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } + static NSURLCredentialStorage allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredentialStorage1, _lib._sel_allocWithZone_1, zone); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + } + static NSURLCredentialStorage alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); @@ -59741,18 +67754,18 @@ class NSURLCredentialStorage extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, + _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59767,33 +67780,29 @@ class NSURLCredentialStorage extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredentialStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLCredentialStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredentialStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLCredentialStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLCredentialStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLCredentialStorage1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLCredentialStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59805,33 +67814,39 @@ class NSURLCredentialStorage extends NSObject { } } -void _ObjCBlock35_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock35_closureRegistry = {}; -int _ObjCBlock35_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { - final id = ++_ObjCBlock35_closureRegistryIndex; - _ObjCBlock35_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock35_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock35_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock35 extends _ObjCBlockBase { - ObjCBlock35._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock35.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -59839,67 +67854,108 @@ class ObjCBlock35 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock35.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary.fromFunction( + AVFAudio lib, void Function(NSDictionary?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) .cast(), - _ObjCBlock35_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary.listener( + AVFAudio lib, void Function(NSDictionary?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; -void _ObjCBlock36_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target + void call(NSDictionary? arg0) => _id.ref.invoke .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } -final _ObjCBlock36_closureRegistry = {}; -int _ObjCBlock36_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { - final id = ++_ObjCBlock36_closureRegistryIndex; - _ObjCBlock36_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock36_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock36_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock36 extends _ObjCBlockBase { - ObjCBlock36._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLCredential._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock36.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -59907,38 +67963,73 @@ class ObjCBlock36 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock36.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLCredential.fromFunction( + AVFAudio lib, void Function(NSURLCredential?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) .cast(), - _ObjCBlock36_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSURLCredential._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLCredential.listener( + AVFAudio lib, void Function(NSURLCredential?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSURLCredential._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURLCredential? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } class NSURLProtocol extends NSObject { @@ -59964,94 +68055,85 @@ class NSURLProtocol extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); } - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest request, NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_883( + final _ret = _lib._objc_msgSend_1012( _id, _lib._sel_initWithRequest_cachedResponse_client_1, - request?._id ?? ffi.nullptr, + request._id, cachedResponse?._id ?? ffi.nullptr, client?._id ?? ffi.nullptr); return NSURLProtocol._(_ret, _lib, retain: true, release: true); } NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_client1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get request { + final _ret = _lib._objc_msgSend_988(_id, _lib._sel_request1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_884(_id, _lib._sel_cachedResponse1); + final _ret = _lib._objc_msgSend_1013(_id, _lib._sel_cachedResponse1); return _ret.address == 0 ? null : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static bool canInitWithRequest_(AVFAudio _lib, NSURLRequest? request) { - return _lib._objc_msgSend_861(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + static bool canInitWithRequest_(AVFAudio _lib, NSURLRequest request) { + return _lib._objc_msgSend_990(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request._id); } static NSURLRequest canonicalRequestForRequest_( - AVFAudio _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_885(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); + AVFAudio _lib, NSURLRequest request) { + final _ret = _lib._objc_msgSend_1014(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } static bool requestIsCacheEquivalent_toRequest_( - AVFAudio _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_886( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); + AVFAudio _lib, NSURLRequest a, NSURLRequest b) { + return _lib._objc_msgSend_1015(_lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, a._id, b._id); } void startLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); } void stopLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); } - static NSObject propertyForKey_inRequest_( - AVFAudio _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_887( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? propertyForKey_inRequest_( + AVFAudio _lib, NSString key, NSURLRequest request) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSURLProtocol1, + _lib._sel_propertyForKey_inRequest_1, key._id, request._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static void setProperty_forKey_inRequest_(AVFAudio _lib, NSObject value, - NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_894( + NSString key, NSMutableURLRequest request) { + _lib._objc_msgSend_1023( _lib._class_NSURLProtocol1, _lib._sel_setProperty_forKey_inRequest_1, value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + key._id, + request._id); } static void removePropertyForKey_inRequest_( - AVFAudio _lib, NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_895( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key, NSMutableURLRequest request) { + _lib._objc_msgSend_1024(_lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, key._id, request._id); } static bool registerClass_(AVFAudio _lib, NSObject protocolClass) { @@ -60060,39 +68142,52 @@ class NSURLProtocol extends NSObject { } static void unregisterClass_(AVFAudio _lib, NSObject protocolClass) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, _lib._sel_unregisterClass_1, protocolClass._id); } - static bool canInitWithTask_(AVFAudio _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_896(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + static bool canInitWithTask_(AVFAudio _lib, NSURLSessionTask task) { + return _lib._objc_msgSend_1025( + _lib._class_NSURLProtocol1, _lib._sel_canInitWithTask_1, task._id); } - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask task, NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_897( + final _ret = _lib._objc_msgSend_1026( _id, _lib._sel_initWithTask_cachedResponse_client_1, - task?._id ?? ffi.nullptr, + task._id, cachedResponse?._id ?? ffi.nullptr, client?._id ?? ffi.nullptr); return NSURLProtocol._(_ret, _lib, retain: true, release: true); } NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_898(_id, _lib._sel_task1); + final _ret = _lib._objc_msgSend_1027(_id, _lib._sel_task1); return _ret.address == 0 ? null : NSURLSessionTask._(_ret, _lib, retain: true, release: true); } + @override + NSURLProtocol init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); + } + static NSURLProtocol new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); return NSURLProtocol._(_ret, _lib, retain: false, release: true); } + static NSURLProtocol allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLProtocol1, _lib._sel_allocWithZone_1, zone); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); + } + static NSURLProtocol alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); @@ -60103,18 +68198,18 @@ class NSURLProtocol extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60129,33 +68224,29 @@ class NSURLProtocol extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtocol1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLProtocol1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtocol1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLProtocol1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLProtocol1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60193,54 +68284,56 @@ class NSMutableURLRequest extends NSURLRequest { @override NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set URL(NSURL? value) { - _lib._objc_msgSend_888(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_671( + _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } @override int get cachePolicy { - return _lib._objc_msgSend_748(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_859(_id, _lib._sel_cachePolicy1); } set cachePolicy(int value) { - _lib._objc_msgSend_889(_id, _lib._sel_setCachePolicy_1, value); + return _lib._objc_msgSend_1017(_id, _lib._sel_setCachePolicy_1, value); } @override double get timeoutInterval { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutInterval1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutInterval1); } set timeoutInterval(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setTimeoutInterval_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setTimeoutInterval_1, value); } @override NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set mainDocumentURL(NSURL? value) { - _lib._objc_msgSend_888( + return _lib._objc_msgSend_671( _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } @override int get networkServiceType { - return _lib._objc_msgSend_749(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_860(_id, _lib._sel_networkServiceType1); } set networkServiceType(int value) { - _lib._objc_msgSend_890(_id, _lib._sel_setNetworkServiceType_1, value); + return _lib._objc_msgSend_1018( + _id, _lib._sel_setNetworkServiceType_1, value); } @override @@ -60249,7 +68342,8 @@ class NSMutableURLRequest extends NSURLRequest { } set allowsCellularAccess(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsCellularAccess_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAllowsCellularAccess_1, value); } @override @@ -60258,7 +68352,7 @@ class NSMutableURLRequest extends NSURLRequest { } set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -60269,7 +68363,7 @@ class NSMutableURLRequest extends NSURLRequest { } set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } @@ -60279,77 +68373,84 @@ class NSMutableURLRequest extends NSURLRequest { } set assumesHTTP3Capable(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAssumesHTTP3Capable_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAssumesHTTP3Capable_1, value); } @override int get attribution { - return _lib._objc_msgSend_750(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_861(_id, _lib._sel_attribution1); } set attribution(int value) { - _lib._objc_msgSend_891(_id, _lib._sel_setAttribution_1, value); + return _lib._objc_msgSend_1019(_id, _lib._sel_setAttribution_1, value); } @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - set HTTPMethod(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + NSString get HTTPMethod { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_HTTPMethod1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set HTTPMethod(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setHTTPMethod_1, value._id); } @override NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_allHTTPHeaderFields1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set allHTTPHeaderFields(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_483(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + void setValue_forHTTPHeaderField_(NSString? value, NSString field) { + _lib._objc_msgSend_1020(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field._id); } - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_483(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + void addValue_forHTTPHeaderField_(NSString value, NSString field) { + _lib._objc_msgSend_551( + _id, _lib._sel_addValue_forHTTPHeaderField_1, value._id, field._id); } @override NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } set HTTPBody(NSData? value) { - _lib._objc_msgSend_892( + return _lib._objc_msgSend_1021( _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } @override NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_760(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_875(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); } set HTTPBodyStream(NSInputStream? value) { - _lib._objc_msgSend_893( + return _lib._objc_msgSend_1022( _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } @@ -60359,7 +68460,8 @@ class NSMutableURLRequest extends NSURLRequest { } set HTTPShouldHandleCookies(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldHandleCookies_1, value); } @override @@ -60368,12 +68470,13 @@ class NSMutableURLRequest extends NSURLRequest { } set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - static NSMutableURLRequest requestWithURL_(AVFAudio _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + static NSMutableURLRequest requestWithURL_(AVFAudio _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_262( + _lib._class_NSMutableURLRequest1, _lib._sel_requestWithURL_1, URL._id); return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } @@ -60383,22 +68486,53 @@ class NSMutableURLRequest extends NSURLRequest { } static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - AVFAudio _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_747( + AVFAudio _lib, NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( _lib._class_NSMutableURLRequest1, _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_262(_id, _lib._sel_initWithURL_1, URL._id); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL._id, cachePolicy, timeoutInterval); return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } + @override + NSMutableURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + static NSMutableURLRequest new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } + static NSMutableURLRequest allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + } + static NSMutableURLRequest alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); @@ -60409,18 +68543,18 @@ class NSMutableURLRequest extends NSURLRequest { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60435,33 +68569,29 @@ class NSMutableURLRequest extends NSURLRequest { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableURLRequest1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60496,33 +68626,35 @@ class NSXMLParser extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); } - NSXMLParser initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSXMLParser? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSXMLParser._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSXMLParser initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSXMLParser._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_899( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); + NSXMLParser initWithStream_(NSInputStream stream) { + final _ret = + _lib._objc_msgSend_1028(_id, _lib._sel_initWithStream_1, stream._id); return NSXMLParser._(_ret, _lib, retain: true, release: true); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -60531,7 +68663,8 @@ class NSXMLParser extends NSObject { } set shouldProcessNamespaces(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setShouldProcessNamespaces_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setShouldProcessNamespaces_1, value); } bool get shouldReportNamespacePrefixes { @@ -60539,31 +68672,31 @@ class NSXMLParser extends NSObject { } set shouldReportNamespacePrefixes(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); } int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_900( + return _lib._objc_msgSend_1029( _id, _lib._sel_externalEntityResolvingPolicy1); } set externalEntityResolvingPolicy(int value) { - _lib._objc_msgSend_901( + return _lib._objc_msgSend_1030( _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); } NSSet? get allowedExternalEntityURLs { final _ret = - _lib._objc_msgSend_280(_id, _lib._sel_allowedExternalEntityURLs1); + _lib._objc_msgSend_319(_id, _lib._sel_allowedExternalEntityURLs1); return _ret.address == 0 ? null : NSSet._(_ret, _lib, retain: true, release: true); } set allowedExternalEntityURLs(NSSet? value) { - _lib._objc_msgSend_902(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_1031(_id, + _lib._sel_setAllowedExternalEntityURLs_1, value?._id ?? ffi.nullptr); } bool parse() { @@ -60571,11 +68704,11 @@ class NSXMLParser extends NSObject { } void abortParsing() { - return _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); } NSError? get parserError { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_parserError1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_parserError1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); @@ -60586,30 +68719,36 @@ class NSXMLParser extends NSObject { } set shouldResolveExternalEntities(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setShouldResolveExternalEntities_1, value); } NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get lineNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_lineNumber1); } int get columnNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_columnNumber1); + } + + @override + NSXMLParser init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } static NSXMLParser new1(AVFAudio _lib) { @@ -60617,6 +68756,12 @@ class NSXMLParser extends NSObject { return NSXMLParser._(_ret, _lib, retain: false, release: true); } + static NSXMLParser allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLParser1, _lib._sel_allocWithZone_1, zone); + return NSXMLParser._(_ret, _lib, retain: false, release: true); + } + static NSXMLParser alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); @@ -60627,18 +68772,18 @@ class NSXMLParser extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLParser1, + _lib._objc_msgSend_15(_lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60653,33 +68798,29 @@ class NSXMLParser extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLParser1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLParser1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLParser1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLParser1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLParser1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60721,53 +68862,51 @@ class NSFileWrapper extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); } - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_903( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + NSFileWrapper? initWithURL_options_error_( + NSURL url, int options, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_1032( + _id, _lib._sel_initWithURL_options_error_1, url._id, options, outError); + return _ret.address == 0 + ? null + : NSFileWrapper._(_ret, _lib, retain: true, release: true); } NSFileWrapper initDirectoryWithFileWrappers_( - NSDictionary? childrenByPreferredName) { - final _ret = _lib._objc_msgSend_143( - _id, - _lib._sel_initDirectoryWithFileWrappers_1, - childrenByPreferredName?._id ?? ffi.nullptr); + NSDictionary childrenByPreferredName) { + final _ret = _lib._objc_msgSend_159(_id, + _lib._sel_initDirectoryWithFileWrappers_1, childrenByPreferredName._id); return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initRegularFileWithContents_(NSData? contents) { - final _ret = _lib._objc_msgSend_242(_id, - _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); + NSFileWrapper initRegularFileWithContents_(NSData contents) { + final _ret = _lib._objc_msgSend_279( + _id, _lib._sel_initRegularFileWithContents_1, contents._id); return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, - _lib._sel_initSymbolicLinkWithDestinationURL_1, - url?._id ?? ffi.nullptr); + NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL url) { + final _ret = _lib._objc_msgSend_262( + _id, _lib._sel_initSymbolicLinkWithDestinationURL_1, url._id); return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initWithSerializedRepresentation_( - NSData? serializeRepresentation) { - final _ret = _lib._objc_msgSend_242( + NSFileWrapper? initWithSerializedRepresentation_( + NSData serializeRepresentation) { + final _ret = _lib._objc_msgSend_874( _id, _lib._sel_initWithSerializedRepresentation_1, - serializeRepresentation?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + serializeRepresentation._id); + return _ret.address == 0 + ? null + : NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + NSFileWrapper? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); + return _ret.address == 0 + ? null + : NSFileWrapper._(_ret, _lib, retain: true, release: true); } bool get directory { @@ -60783,61 +68922,59 @@ class NSFileWrapper extends NSObject { } NSString? get preferredFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_preferredFilename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set preferredFilename(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); } NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_filename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set filename(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); } - NSDictionary? get fileAttributes { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_fileAttributes1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get fileAttributes { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_fileAttributes1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - set fileAttributes(NSDictionary? value) { - _lib._objc_msgSend_165( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + set fileAttributes(NSDictionary value) { + return _lib._objc_msgSend_182( + _id, _lib._sel_setFileAttributes_1, value._id); } - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_229( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + bool matchesContentsOfURL_(NSURL url) { + return _lib._objc_msgSend_265( + _id, _lib._sel_matchesContentsOfURL_1, url._id); } bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_904(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); + NSURL url, int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_1033( + _id, _lib._sel_readFromURL_options_error_1, url._id, options, outError); } bool writeToURL_options_originalContentsURL_error_( - NSURL? url, + NSURL url, int options, NSURL? originalContentsURL, ffi.Pointer> outError) { - return _lib._objc_msgSend_905( + return _lib._objc_msgSend_1034( _id, _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, + url._id, options, originalContentsURL?._id ?? ffi.nullptr, outError); @@ -60845,48 +68982,49 @@ class NSFileWrapper extends NSObject { NSData? get serializedRepresentation { final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + _lib._objc_msgSend_286(_id, _lib._sel_serializedRepresentation1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_906( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); + NSString addFileWrapper_(NSFileWrapper child) { + final _ret = + _lib._objc_msgSend_1035(_id, _lib._sel_addFileWrapper_1, child._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_907( + NSData data, NSString fileName) { + final _ret = _lib._objc_msgSend_1036( _id, _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); + data._id, + fileName._id); return NSString._(_ret, _lib, retain: true, release: true); } - void removeFileWrapper_(NSFileWrapper? child) { - return _lib._objc_msgSend_908( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + void removeFileWrapper_(NSFileWrapper child) { + _lib._objc_msgSend_1037(_id, _lib._sel_removeFileWrapper_1, child._id); } NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_fileWrappers1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_fileWrappers1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_906( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? keyForFileWrapper_(NSFileWrapper child) { + final _ret = + _lib._objc_msgSend_1038(_id, _lib._sel_keyForFileWrapper_1, child._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_regularFileContents1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -60894,71 +69032,84 @@ class NSFileWrapper extends NSObject { NSURL? get symbolicLinkDestinationURL { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); + _lib._objc_msgSend_45(_id, _lib._sel_symbolicLinkDestinationURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSObject initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithPath_(NSString path) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initSymbolicLinkWithDestination_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); + NSObject initSymbolicLinkWithDestination_(NSString path) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_initSymbolicLinkWithDestination_1, path._id); return NSObject._(_ret, _lib, retain: true, release: true); } - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + bool needsToBeUpdatedFromPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_needsToBeUpdatedFromPath_1, path._id); } - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + bool updateFromPath_(NSString path) { + return _lib._objc_msgSend_64(_id, _lib._sel_updateFromPath_1, path._id); } bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_909( + NSString path, bool atomicFlag, bool updateFilenamesFlag) { + return _lib._objc_msgSend_1039( _id, _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, + path._id, atomicFlag, updateFilenamesFlag); } - NSString addFileWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); + NSString addFileWithPath_(NSString path) { + final _ret = + _lib._objc_msgSend_69(_id, _lib._sel_addFileWithPath_1, path._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_324( + NSString path, NSString filename) { + final _ret = _lib._objc_msgSend_364( _id, _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); + path._id, + filename._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_symbolicLinkDestination1); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSFileWrapper init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + static NSFileWrapper new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); return NSFileWrapper._(_ret, _lib, retain: false, release: true); } + static NSFileWrapper allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileWrapper1, _lib._sel_allocWithZone_1, zone); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); + } + static NSFileWrapper alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); @@ -60969,18 +69120,18 @@ class NSFileWrapper extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60995,33 +69146,29 @@ class NSFileWrapper extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileWrapper1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFileWrapper1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileWrapper1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFileWrapper1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFileWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -61066,189 +69213,177 @@ class NSURLSession extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); } - static NSURLSession? getSharedSession(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_910( + static NSURLSession getSharedSession(AVFAudio _lib) { + final _ret = _lib._objc_msgSend_1040( _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); + return NSURLSession._(_ret, _lib, retain: true, release: true); } static NSURLSession sessionWithConfiguration_( - AVFAudio _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_921( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); + AVFAudio _lib, NSURLSessionConfiguration configuration) { + final _ret = _lib._objc_msgSend_1056(_lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, configuration._id); return NSURLSession._(_ret, _lib, retain: true, release: true); } static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( AVFAudio _lib, - NSURLSessionConfiguration? configuration, + NSURLSessionConfiguration configuration, NSObject? delegate, NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_922( + final _ret = _lib._objc_msgSend_1057( _lib._class_NSURLSession1, _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, - configuration?._id ?? ffi.nullptr, + configuration._id, delegate?._id ?? ffi.nullptr, queue?._id ?? ffi.nullptr); return NSURLSession._(_ret, _lib, retain: true, release: true); } - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_790(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + NSOperationQueue get delegateQueue { + final _ret = _lib._objc_msgSend_917(_id, _lib._sel_delegateQueue1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_911(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + NSURLSessionConfiguration get configuration { + final _ret = _lib._objc_msgSend_1041(_id, _lib._sel_configuration1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } NSString? get sessionDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sessionDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set sessionDescription(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); } void finishTasksAndInvalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); } void invalidateAndCancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); } - void resetWithCompletionHandler_(ObjCBlock16 completionHandler) { - return _lib._objc_msgSend_465( + void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_532( _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); } - void flushWithCompletionHandler_(ObjCBlock16 completionHandler) { - return _lib._objc_msgSend_465( + void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_532( _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); } - void getTasksWithCompletionHandler_(ObjCBlock37 completionHandler) { - return _lib._objc_msgSend_923( + void getTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { + _lib._objc_msgSend_1058( _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); } - void getAllTasksWithCompletionHandler_(ObjCBlock30 completionHandler) { - return _lib._objc_msgSend_924(_id, - _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); + void getAllTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray1 completionHandler) { + _lib._objc_msgSend_1059(_id, _lib._sel_getAllTasksWithCompletionHandler_1, + completionHandler._id); } - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_925( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1060( + _id, _lib._sel_dataTaskWithRequest_1, request._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_926( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionDataTask dataTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_1061(_id, _lib._sel_dataTaskWithURL_1, url._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_927( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); + NSURLRequest request, NSURL fileURL) { + final _ret = _lib._objc_msgSend_1063(_id, + _lib._sel_uploadTaskWithRequest_fromFile_1, request._id, fileURL._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_928( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); + NSURLRequest request, NSData bodyData) { + final _ret = _lib._objc_msgSend_1064(_id, + _lib._sel_uploadTaskWithRequest_fromData_1, request._id, bodyData._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_1065( + _id, _lib._sel_uploadTaskWithResumeData_1, resumeData._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_929(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1066( + _id, _lib._sel_uploadTaskWithStreamedRequest_1, request._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_931( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1067( + _id, _lib._sel_downloadTaskWithRequest_1, request._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_932( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_1068(_id, _lib._sel_downloadTaskWithURL_1, url._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_933(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_1069( + _id, _lib._sel_downloadTaskWithResumeData_1, resumeData._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_936( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); + NSString hostname, int port) { + final _ret = _lib._objc_msgSend_1072( + _id, _lib._sel_streamTaskWithHostName_port_1, hostname._id, port); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_942( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService service) { + final _ret = _lib._objc_msgSend_1080( + _id, _lib._sel_streamTaskWithNetService_1, service._id); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_949( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_1087(_id, _lib._sel_webSocketTaskWithURL_1, url._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_950( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); + NSURL url, NSArray protocols) { + final _ret = _lib._objc_msgSend_1088(_id, + _lib._sel_webSocketTaskWithURL_protocols_1, url._id, protocols._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_951( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1089( + _id, _lib._sel_webSocketTaskWithRequest_1, request._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } @@ -61265,77 +69400,101 @@ class NSURLSession extends NSObject { } NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_952( + NSURLRequest request, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1090( _id, _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, + request._id, completionHandler._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_953( + NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1091( _id, _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, completionHandler._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, NSURL? fileURL, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_954( + NSURLRequest request, + NSURL fileURL, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1092( _id, _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr, + request._id, + fileURL._id, completionHandler._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, NSData? bodyData, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_955( + NSURLRequest request, + NSData? bodyData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1093( _id, _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, - request?._id ?? ffi.nullptr, + request._id, bodyData?._id ?? ffi.nullptr, completionHandler._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } + NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( + NSData resumeData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1094( + _id, + _lib._sel_uploadTaskWithResumeData_completionHandler_1, + resumeData._id, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock42 completionHandler) { - final _ret = _lib._objc_msgSend_956( + NSURLRequest request, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1095( _id, _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, + request._id, completionHandler._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock42 completionHandler) { - final _ret = _lib._objc_msgSend_957( + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1096( _id, _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, completionHandler._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, ObjCBlock42 completionHandler) { - final _ret = _lib._objc_msgSend_958( + NSData resumeData, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1097( _id, _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, + resumeData._id, completionHandler._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } + static NSURLSession allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSession1, _lib._sel_allocWithZone_1, zone); + return NSURLSession._(_ret, _lib, retain: false, release: true); + } + static NSURLSession alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); @@ -61346,18 +69505,18 @@ class NSURLSession extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSession1, + _lib._objc_msgSend_15(_lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61372,33 +69531,29 @@ class NSURLSession extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSession1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSession1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSession1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSession1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSession1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -61435,73 +69590,71 @@ class NSURLSessionConfiguration extends NSObject { obj._lib._class_NSURLSessionConfiguration1); } - static NSURLSessionConfiguration? getDefaultSessionConfiguration( + static NSURLSessionConfiguration getDefaultSessionConfiguration( AVFAudio _lib) { - final _ret = _lib._objc_msgSend_911(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_1041(_lib._class_NSURLSessionConfiguration1, _lib._sel_defaultSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( + static NSURLSessionConfiguration getEphemeralSessionConfiguration( AVFAudio _lib) { - final _ret = _lib._objc_msgSend_911(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_1041(_lib._class_NSURLSessionConfiguration1, _lib._sel_ephemeralSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } static NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier_( - AVFAudio _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_912( + AVFAudio _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_1042( _lib._class_NSURLSessionConfiguration1, _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); + identifier._id); return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } NSString? get identifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_identifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get requestCachePolicy { - return _lib._objc_msgSend_748(_id, _lib._sel_requestCachePolicy1); + return _lib._objc_msgSend_859(_id, _lib._sel_requestCachePolicy1); } set requestCachePolicy(int value) { - _lib._objc_msgSend_889(_id, _lib._sel_setRequestCachePolicy_1, value); + return _lib._objc_msgSend_1017( + _id, _lib._sel_setRequestCachePolicy_1, value); } double get timeoutIntervalForRequest { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutIntervalForRequest1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutIntervalForRequest1); } set timeoutIntervalForRequest(double value) { - _lib._objc_msgSend_474( + return _lib._objc_msgSend_542( _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } double get timeoutIntervalForResource { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutIntervalForResource1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutIntervalForResource1); } set timeoutIntervalForResource(double value) { - _lib._objc_msgSend_474( + return _lib._objc_msgSend_542( _id, _lib._sel_setTimeoutIntervalForResource_1, value); } int get networkServiceType { - return _lib._objc_msgSend_749(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_860(_id, _lib._sel_networkServiceType1); } set networkServiceType(int value) { - _lib._objc_msgSend_890(_id, _lib._sel_setNetworkServiceType_1, value); + return _lib._objc_msgSend_1018( + _id, _lib._sel_setNetworkServiceType_1, value); } bool get allowsCellularAccess { @@ -61509,7 +69662,8 @@ class NSURLSessionConfiguration extends NSObject { } set allowsCellularAccess(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsCellularAccess_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAllowsCellularAccess_1, value); } bool get allowsExpensiveNetworkAccess { @@ -61517,7 +69671,7 @@ class NSURLSessionConfiguration extends NSObject { } set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -61527,16 +69681,26 @@ class NSURLSessionConfiguration extends NSObject { } set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + bool get waitsForConnectivity { return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); } set waitsForConnectivity(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setWaitsForConnectivity_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setWaitsForConnectivity_1, value); } bool get discretionary { @@ -61544,19 +69708,19 @@ class NSURLSessionConfiguration extends NSObject { } set discretionary(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setDiscretionary_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setDiscretionary_1, value); } NSString? get sharedContainerIdentifier { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); + _lib._objc_msgSend_44(_id, _lib._sel_sharedContainerIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set sharedContainerIdentifier(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setSharedContainerIdentifier_1, + return _lib._objc_msgSend_545(_id, _lib._sel_setSharedContainerIdentifier_1, value?._id ?? ffi.nullptr); } @@ -61565,57 +69729,58 @@ class NSURLSessionConfiguration extends NSObject { } set sessionSendsLaunchEvents(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setSessionSendsLaunchEvents_1, value); } NSDictionary? get connectionProxyDictionary { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_connectionProxyDictionary1); + _lib._objc_msgSend_390(_id, _lib._sel_connectionProxyDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set connectionProxyDictionary(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setConnectionProxyDictionary_1, + return _lib._objc_msgSend_634(_id, _lib._sel_setConnectionProxyDictionary_1, value?._id ?? ffi.nullptr); } int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_913(_id, _lib._sel_TLSMinimumSupportedProtocol1); + return _lib._objc_msgSend_1043(_id, _lib._sel_TLSMinimumSupportedProtocol1); } set TLSMinimumSupportedProtocol(int value) { - _lib._objc_msgSend_914( + return _lib._objc_msgSend_1044( _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_913(_id, _lib._sel_TLSMaximumSupportedProtocol1); + return _lib._objc_msgSend_1043(_id, _lib._sel_TLSMaximumSupportedProtocol1); } set TLSMaximumSupportedProtocol(int value) { - _lib._objc_msgSend_914( + return _lib._objc_msgSend_1044( _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_915( + return _lib._objc_msgSend_1045( _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } set TLSMinimumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_916( + return _lib._objc_msgSend_1046( _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_915( + return _lib._objc_msgSend_1045( _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); } set TLSMaximumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_916( + return _lib._objc_msgSend_1046( _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); } @@ -61624,7 +69789,8 @@ class NSURLSessionConfiguration extends NSObject { } set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } bool get HTTPShouldSetCookies { @@ -61632,71 +69798,73 @@ class NSURLSessionConfiguration extends NSObject { } set HTTPShouldSetCookies(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldSetCookies_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldSetCookies_1, value); } int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_745(_id, _lib._sel_HTTPCookieAcceptPolicy1); + return _lib._objc_msgSend_856(_id, _lib._sel_HTTPCookieAcceptPolicy1); } set HTTPCookieAcceptPolicy(int value) { - _lib._objc_msgSend_746(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + return _lib._objc_msgSend_857( + _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); } NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_HTTPAdditionalHeaders1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_HTTPAdditionalHeaders1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set HTTPAdditionalHeaders(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + return _lib._objc_msgSend_83(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } set HTTPMaximumConnectionsPerHost(int value) { - _lib._objc_msgSend_558( + return _lib._objc_msgSend_635( _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_739(_id, _lib._sel_HTTPCookieStorage1); + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_HTTPCookieStorage1); return _ret.address == 0 ? null : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } set HTTPCookieStorage(NSHTTPCookieStorage? value) { - _lib._objc_msgSend_917( + return _lib._objc_msgSend_1048( _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_874(_id, _lib._sel_URLCredentialStorage1); + final _ret = _lib._objc_msgSend_1049(_id, _lib._sel_URLCredentialStorage1); return _ret.address == 0 ? null : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } set URLCredentialStorage(NSURLCredentialStorage? value) { - _lib._objc_msgSend_918( + return _lib._objc_msgSend_1050( _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); } NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_844(_id, _lib._sel_URLCache1); + final _ret = _lib._objc_msgSend_1051(_id, _lib._sel_URLCache1); return _ret.address == 0 ? null : NSURLCache._(_ret, _lib, retain: true, release: true); } set URLCache(NSURLCache? value) { - _lib._objc_msgSend_845( + return _lib._objc_msgSend_1052( _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); } @@ -61706,28 +69874,29 @@ class NSURLSessionConfiguration extends NSObject { } set shouldUseExtendedBackgroundIdleMode(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); } NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_protocolClasses1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_protocolClasses1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set protocolClasses(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } int get multipathServiceType { - return _lib._objc_msgSend_919(_id, _lib._sel_multipathServiceType1); + return _lib._objc_msgSend_1054(_id, _lib._sel_multipathServiceType1); } set multipathServiceType(int value) { - _lib._objc_msgSend_920(_id, _lib._sel_setMultipathServiceType_1, value); + return _lib._objc_msgSend_1055( + _id, _lib._sel_setMultipathServiceType_1, value); } @override @@ -61744,14 +69913,20 @@ class NSURLSessionConfiguration extends NSObject { } static NSURLSessionConfiguration backgroundSessionConfiguration_( - AVFAudio _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_912( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); + AVFAudio _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_1042(_lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, identifier._id); return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } + static NSURLSessionConfiguration allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionConfiguration1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionConfiguration alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); @@ -61763,18 +69938,18 @@ class NSURLSessionConfiguration extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61789,33 +69964,29 @@ class NSURLSessionConfiguration extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionConfiguration1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionConfiguration1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionConfiguration1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionConfiguration1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -61859,106 +70030,256 @@ abstract class NSURLSessionMultipathServiceType { static const int NSURLSessionMultipathServiceTypeAggregate = 3; } -void _ObjCBlock37_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction(AVFAudio lib, void Function(NSArray, NSArray, NSArray) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSArray._(arg0, lib, retain: true, release: true), + NSArray._(arg1, lib, retain: true, release: true), + NSArray._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.listener(AVFAudio lib, void Function(NSArray, NSArray, NSArray) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSArray._(arg0, lib, retain: true, release: true), + NSArray._(arg1, lib, retain: true, release: true), + NSArray._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSArray arg0, NSArray arg1, NSArray arg2) => _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2._id); } -final _ObjCBlock37_closureRegistry = {}; -int _ObjCBlock37_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { - final id = ++_ObjCBlock37_closureRegistryIndex; - _ObjCBlock37_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSArray1_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSArray1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray1_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray1_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray1_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock37_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock37_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_NSArray1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSArray1_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock37 extends _ObjCBlockBase { - ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray1._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock37.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray1.fromFunctionPointer( AVFAudio lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock37_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock37.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray1.fromFunction( + AVFAudio lib, void Function(NSArray) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock37_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) .cast(), - _ObjCBlock37_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray1.listener(AVFAudio lib, void Function(NSArray) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSArray arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSURLSessionUploadTask extends NSURLSessionDataTask { @@ -61998,6 +70319,19 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_1062( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + } + + static NSURLSessionUploadTask allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionUploadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionUploadTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); @@ -62008,18 +70342,18 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionUploadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62034,33 +70368,29 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionUploadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionUploadTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionUploadTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionUploadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -62072,6 +70402,112 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { } } +void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSData_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address]!(arg0); + +class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData.fromFunctionPointer( + AVFAudio lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData.fromFunction(AVFAudio lib, void Function(NSData?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData.listener(AVFAudio lib, void Function(NSData?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSData? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); +} + class NSURLSessionDownloadTask extends NSURLSessionTask { NSURLSessionDownloadTask._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -62097,8 +70533,9 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { obj._lib._class_NSURLSessionDownloadTask1); } - void cancelByProducingResumeData_(ObjCBlock38 completionHandler) { - return _lib._objc_msgSend_930( + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_1062( _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } @@ -62114,6 +70551,13 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionDownloadTask allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionDownloadTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); @@ -62124,18 +70568,18 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62150,33 +70594,29 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionDownloadTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionDownloadTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionDownloadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -62188,74 +70628,6 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { } } -void _ObjCBlock38_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock38_closureRegistry = {}; -int _ObjCBlock38_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { - final id = ++_ObjCBlock38_closureRegistryIndex; - _ObjCBlock38_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock38_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock38_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock38 extends _ObjCBlockBase { - ObjCBlock38._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock38.fromFunctionPointer( - AVFAudio lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock38_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - - /// Creates a block from a Dart function. - ObjCBlock38.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock38_closureTrampoline) - .cast(), - _ObjCBlock38_registerClosure(fn)), - lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - class NSURLSessionStreamTask extends NSURLSessionTask { NSURLSessionStreamTask._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -62281,9 +70653,12 @@ class NSURLSessionStreamTask extends NSURLSessionTask { obj._lib._class_NSURLSessionStreamTask1); } - void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, - int maxBytes, double timeout, ObjCBlock39 completionHandler) { - return _lib._objc_msgSend_934( + void readDataOfMinLength_maxLength_timeout_completionHandler_( + int minBytes, + int maxBytes, + double timeout, + ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { + _lib._objc_msgSend_1070( _id, _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, minBytes, @@ -62292,34 +70667,34 @@ class NSURLSessionStreamTask extends NSURLSessionTask { completionHandler._id); } - void writeData_timeout_completionHandler_( - NSData? data, double timeout, ObjCBlock15 completionHandler) { - return _lib._objc_msgSend_935( + void writeData_timeout_completionHandler_(NSData data, double timeout, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_1071( _id, _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, + data._id, timeout, completionHandler._id); } void captureStreams() { - return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } void closeWrite() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } void closeRead() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } void startSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } void stopSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } @override @@ -62334,6 +70709,13 @@ class NSURLSessionStreamTask extends NSURLSessionTask { return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionStreamTask allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionStreamTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionStreamTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); @@ -62344,18 +70726,18 @@ class NSURLSessionStreamTask extends NSURLSessionTask { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62370,33 +70752,29 @@ class NSURLSessionStreamTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionStreamTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionStreamTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionStreamTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionStreamTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionStreamTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -62408,38 +70786,49 @@ class NSURLSessionStreamTask extends NSURLSessionTask { } } -void _ObjCBlock39_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock39_closureRegistry = {}; -int _ObjCBlock39_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { - final id = ++_ObjCBlock39_closureRegistryIndex; - _ObjCBlock39_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock39_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock39_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock39 extends _ObjCBlockBase { - ObjCBlock39._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock39.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -62448,54 +70837,86 @@ class ObjCBlock39 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock39_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock39.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction(AVFAudio lib, void Function(NSData, bool, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock39_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock39_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + NSData._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_bool_NSError.listener( + AVFAudio lib, void Function(NSData, bool, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(NSData._(arg0, lib, retain: true, release: true), arg1, arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSData arg0, bool arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + bool, ffi.Pointer)>()( + _id, arg0._id, arg1, arg2?._id ?? ffi.nullptr); } class NSNetService extends NSObject { @@ -62522,47 +70943,43 @@ class NSNetService extends NSObject { } NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_937( + NSString domain, NSString type, NSString name, int port) { + final _ret = _lib._objc_msgSend_1073( _id, _lib._sel_initWithDomain_type_name_port_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, + domain._id, + type._id, + name._id, port); return NSNetService._(_ret, _lib, retain: true, release: true); } NSNetService initWithDomain_type_name_( - NSString? domain, NSString? type, NSString? name) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithDomain_type_name_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr); + NSString domain, NSString type, NSString name) { + final _ret = _lib._objc_msgSend_1074(_id, + _lib._sel_initWithDomain_type_name_1, domain._id, type._id, name._id); return NSNetService._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -62571,107 +70988,108 @@ class NSNetService extends NSObject { } set includesPeerToPeer(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setIncludesPeerToPeer_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setIncludesPeerToPeer_1, value); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get type { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get type { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_type1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_hostName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSArray? get addresses { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_addresses1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_addresses1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + return _lib._objc_msgSend_83(_id, _lib._sel_port1); } void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } void publishWithOptions_(int options) { - return _lib._objc_msgSend_938(_id, _lib._sel_publishWithOptions_1, options); + _lib._objc_msgSend_1075(_id, _lib._sel_publishWithOptions_1, options); } void resolve() { - return _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + _lib._objc_msgSend_1(_id, _lib._sel_resolve1); } void stop() { - return _lib._objc_msgSend_1(_id, _lib._sel_stop1); + _lib._objc_msgSend_1(_id, _lib._sel_stop1); } static NSDictionary dictionaryFromTXTRecordData_( - AVFAudio _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_939(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); + AVFAudio _lib, NSData txtData) { + final _ret = _lib._objc_msgSend_1076(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSData dataFromTXTRecordDictionary_( - AVFAudio _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_940( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); + AVFAudio _lib, NSDictionary txtDictionary) { + final _ret = _lib._objc_msgSend_1077(_lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, txtDictionary._id); return NSData._(_ret, _lib, retain: true, release: true); } void resolveWithTimeout_(double timeout) { - return _lib._objc_msgSend_473(_id, _lib._sel_resolveWithTimeout_1, timeout); + _lib._objc_msgSend_541(_id, _lib._sel_resolveWithTimeout_1, timeout); } bool getInputStream_outputStream_( ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_941(_id, _lib._sel_getInputStream_outputStream_1, + return _lib._objc_msgSend_1078(_id, _lib._sel_getInputStream_outputStream_1, inputStream, outputStream); } bool setTXTRecordData_(NSData? recordData) { - return _lib._objc_msgSend_23( + return _lib._objc_msgSend_1079( _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); } - NSData TXTRecordData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? TXTRecordData() { + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_TXTRecordData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void startMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); } void stopMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + } + + @override + NSNetService init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNetService._(_ret, _lib, retain: true, release: true); } static NSNetService new1(AVFAudio _lib) { @@ -62680,6 +71098,12 @@ class NSNetService extends NSObject { return NSNetService._(_ret, _lib, retain: false, release: true); } + static NSNetService allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNetService1, _lib._sel_allocWithZone_1, zone); + return NSNetService._(_ret, _lib, retain: false, release: true); + } + static NSNetService alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); @@ -62690,18 +71114,18 @@ class NSNetService extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._objc_msgSend_15(_lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62716,33 +71140,29 @@ class NSNetService extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNetService1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNetService1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNetService1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNetService1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNetService1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -62784,44 +71204,45 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { obj._lib._class_NSURLSessionWebSocketTask1); } - void sendMessage_completionHandler_( - NSURLSessionWebSocketMessage? message, ObjCBlock15 completionHandler) { - return _lib._objc_msgSend_944( - _id, - _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, - completionHandler._id); + void sendMessage_completionHandler_(NSURLSessionWebSocketMessage message, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_1082(_id, _lib._sel_sendMessage_completionHandler_1, + message._id, completionHandler._id); } - void receiveMessageWithCompletionHandler_(ObjCBlock40 completionHandler) { - return _lib._objc_msgSend_945(_id, + void receiveMessageWithCompletionHandler_( + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + completionHandler) { + _lib._objc_msgSend_1083(_id, _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); } - void sendPingWithPongReceiveHandler_(ObjCBlock15 pongReceiveHandler) { - return _lib._objc_msgSend_946(_id, - _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); + void sendPingWithPongReceiveHandler_( + ObjCBlock_ffiVoid_NSError pongReceiveHandler) { + _lib._objc_msgSend_1084(_id, _lib._sel_sendPingWithPongReceiveHandler_1, + pongReceiveHandler._id); } void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - return _lib._objc_msgSend_947(_id, _lib._sel_cancelWithCloseCode_reason_1, + _lib._objc_msgSend_1085(_id, _lib._sel_cancelWithCloseCode_reason_1, closeCode, reason?._id ?? ffi.nullptr); } int get maximumMessageSize { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + return _lib._objc_msgSend_83(_id, _lib._sel_maximumMessageSize1); } set maximumMessageSize(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setMaximumMessageSize_1, value); + return _lib._objc_msgSend_635( + _id, _lib._sel_setMaximumMessageSize_1, value); } int get closeCode { - return _lib._objc_msgSend_948(_id, _lib._sel_closeCode1); + return _lib._objc_msgSend_1086(_id, _lib._sel_closeCode1); } NSData? get closeReason { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_closeReason1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -62840,6 +71261,14 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { retain: false, release: true); } + static NSURLSessionWebSocketTask allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionWebSocketTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); @@ -62851,18 +71280,18 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62877,33 +71306,29 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionWebSocketTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -62941,33 +71366,33 @@ class NSURLSessionWebSocketMessage extends NSObject { obj._lib._class_NSURLSessionWebSocketMessage1); } - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSURLSessionWebSocketMessage initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSURLSessionWebSocketMessage._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + NSURLSessionWebSocketMessage initWithString_(NSString string) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, string._id); return NSURLSessionWebSocketMessage._(_ret, _lib, retain: true, release: true); } int get type { - return _lib._objc_msgSend_943(_id, _lib._sel_type1); + return _lib._objc_msgSend_1081(_id, _lib._sel_type1); } NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_data1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_string1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -62987,6 +71412,14 @@ class NSURLSessionWebSocketMessage extends NSObject { retain: false, release: true); } + static NSURLSessionWebSocketMessage allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionWebSocketMessage alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); @@ -62998,18 +71431,18 @@ class NSURLSessionWebSocketMessage extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -63024,33 +71457,31 @@ class NSURLSessionWebSocketMessage extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -63068,37 +71499,52 @@ abstract class NSURLSessionWebSocketMessageType { static const int NSURLSessionWebSocketMessageTypeString = 1; } -void _ObjCBlock40_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock40_closureRegistry = {}; -int _ObjCBlock40_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { - final id = ++_ObjCBlock40_closureRegistryIndex; - _ObjCBlock40_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[id] = + fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock40_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock40_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock40 extends _ObjCBlockBase { - ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock40.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -63107,48 +71553,83 @@ class ObjCBlock40 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock40_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock40.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( + AVFAudio lib, void Function(NSURLSessionWebSocketMessage?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock40_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage._(arg0, lib, + retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.listener( + AVFAudio lib, void Function(NSURLSessionWebSocketMessage?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock40_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURLSessionWebSocketMessage? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } abstract class NSURLSessionWebSocketCloseCode { @@ -63168,48 +71649,56 @@ abstract class NSURLSessionWebSocketCloseCode { static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; } -void _ObjCBlock41_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock41_closureRegistry = {}; -int _ObjCBlock41_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { - final id = ++_ObjCBlock41_closureRegistryIndex; - _ObjCBlock41_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock41_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock41_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock41 extends _ObjCBlockBase { - ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock41.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -63220,98 +71709,148 @@ class ObjCBlock41 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock41_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock41.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( + AVFAudio lib, void Function(NSData?, NSURLResponse?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock41_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.listener( + AVFAudio lib, void Function(NSData?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock41_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure((ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSData? arg0, NSURLResponse? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock42_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock42_closureRegistry = {}; -int _ObjCBlock42_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { - final id = ++_ObjCBlock42_closureRegistryIndex; - _ObjCBlock42_closureRegistry[id] = fn; + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock42_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock42_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock42 extends _ObjCBlockBase { - ObjCBlock42._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock42.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -63322,54 +71861,94 @@ class ObjCBlock42 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock42_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock42.fromFunction( - AVFAudio lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( + AVFAudio lib, void Function(NSURL?, NSURLResponse?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock42_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.listener( + AVFAudio lib, void Function(NSURL?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock42_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURL? arg0, NSURLResponse? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); } class NSProtocolChecker extends NSProxy { @@ -63396,37 +71975,32 @@ class NSProtocolChecker extends NSProxy { obj._lib._class_NSProtocolChecker1); } - Protocol? get protocol { - final _ret = _lib._objc_msgSend_959(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : Protocol._(_ret, _lib, retain: true, release: true); + Protocol get protocol { + final _ret = _lib._objc_msgSend_1098(_id, _lib._sel_protocol1); + return Protocol._(_ret, _lib, retain: true, release: true); } NSObject? get target { - final _ret = _lib._objc_msgSend_788(_id, _lib._sel_target1); + final _ret = _lib._objc_msgSend_1099(_id, _lib._sel_target1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } static NSProtocolChecker protocolCheckerWithTarget_protocol_( - AVFAudio _lib, NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_960( + AVFAudio _lib, NSObject anObject, Protocol aProtocol) { + final _ret = _lib._objc_msgSend_1100( _lib._class_NSProtocolChecker1, _lib._sel_protocolCheckerWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); + anObject._id, + aProtocol._id); return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } NSProtocolChecker initWithTarget_protocol_( - NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_960( - _id, - _lib._sel_initWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); + NSObject anObject, Protocol aProtocol) { + final _ret = _lib._objc_msgSend_1100( + _id, _lib._sel_initWithTarget_protocol_1, anObject._id, aProtocol._id); return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } @@ -63472,90 +72046,99 @@ class NSTask extends NSObject { } NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_executableURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set executableURL(NSURL? value) { - _lib._objc_msgSend_888( + return _lib._objc_msgSend_671( _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); } NSArray? get arguments { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_arguments1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_arguments1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set arguments(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } NSDictionary? get environment { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_environment1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_environment1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set environment(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); } NSURL? get currentDirectoryURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_currentDirectoryURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set currentDirectoryURL(NSURL? value) { - _lib._objc_msgSend_888( + return _lib._objc_msgSend_671( _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); } - NSObject get standardInput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get standardInput { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_standardInput1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set standardInput(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setStandardInput_1, value._id); + set standardInput(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setStandardInput_1, value?._id ?? ffi.nullptr); } - NSObject get standardOutput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get standardOutput { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_standardOutput1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set standardOutput(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setStandardOutput_1, value._id); + set standardOutput(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setStandardOutput_1, value?._id ?? ffi.nullptr); } - NSObject get standardError { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get standardError { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_standardError1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set standardError(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setStandardError_1, value._id); + set standardError(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setStandardError_1, value?._id ?? ffi.nullptr); } bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219(_id, _lib._sel_launchAndReturnError_1, error); + return _lib._objc_msgSend_243(_id, _lib._sel_launchAndReturnError_1, error); } void interrupt() { - return _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); } void terminate() { - return _lib._objc_msgSend_1(_id, _lib._sel_terminate1); + _lib._objc_msgSend_1(_id, _lib._sel_terminate1); } bool suspend() { @@ -63567,7 +72150,7 @@ class NSTask extends NSObject { } int get processIdentifier { - return _lib._objc_msgSend_213(_id, _lib._sel_processIdentifier1); + return _lib._objc_msgSend_237(_id, _lib._sel_processIdentifier1); } bool get running { @@ -63575,86 +72158,89 @@ class NSTask extends NSObject { } int get terminationStatus { - return _lib._objc_msgSend_213(_id, _lib._sel_terminationStatus1); + return _lib._objc_msgSend_237(_id, _lib._sel_terminationStatus1); } int get terminationReason { - return _lib._objc_msgSend_961(_id, _lib._sel_terminationReason1); + return _lib._objc_msgSend_1101(_id, _lib._sel_terminationReason1); } - ObjCBlock43 get terminationHandler { - final _ret = _lib._objc_msgSend_962(_id, _lib._sel_terminationHandler1); - return ObjCBlock43._(_ret, _lib); + ObjCBlock_ffiVoid_NSTask? get terminationHandler { + final _ret = _lib._objc_msgSend_1102(_id, _lib._sel_terminationHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSTask._(_ret, _lib, retain: true, release: true); } - set terminationHandler(ObjCBlock43 value) { - _lib._objc_msgSend_963(_id, _lib._sel_setTerminationHandler_1, value._id); + set terminationHandler(ObjCBlock_ffiVoid_NSTask? value) { + return _lib._objc_msgSend_1103( + _id, _lib._sel_setTerminationHandler_1, value?._id ?? ffi.nullptr); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } - static NSTask + static NSTask? launchedTaskWithExecutableURL_arguments_error_terminationHandler_( AVFAudio _lib, - NSURL? url, - NSArray? arguments, + NSURL url, + NSArray arguments, ffi.Pointer> error, - ObjCBlock43 terminationHandler) { - final _ret = _lib._objc_msgSend_964( + ObjCBlock_ffiVoid_NSTask? terminationHandler) { + final _ret = _lib._objc_msgSend_1104( _lib._class_NSTask1, _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, - url?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, + url._id, + arguments._id, error, - terminationHandler._id); - return NSTask._(_ret, _lib, retain: true, release: true); + terminationHandler?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSTask._(_ret, _lib, retain: true, release: true); } void waitUntilExit() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); } NSString? get launchPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_launchPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set launchPath(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currentDirectoryPath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currentDirectoryPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currentDirectoryPath(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); + set currentDirectoryPath(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrentDirectoryPath_1, value._id); } void launch() { - return _lib._objc_msgSend_1(_id, _lib._sel_launch1); + _lib._objc_msgSend_1(_id, _lib._sel_launch1); } static NSTask launchedTaskWithLaunchPath_arguments_( - AVFAudio _lib, NSString? path, NSArray? arguments) { - final _ret = _lib._objc_msgSend_965( + AVFAudio _lib, NSString path, NSArray arguments) { + final _ret = _lib._objc_msgSend_1105( _lib._class_NSTask1, _lib._sel_launchedTaskWithLaunchPath_arguments_1, - path?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); + path._id, + arguments._id); return NSTask._(_ret, _lib, retain: true, release: true); } @@ -63663,6 +72249,12 @@ class NSTask extends NSObject { return NSTask._(_ret, _lib, retain: false, release: true); } + static NSTask allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTask1, _lib._sel_allocWithZone_1, zone); + return NSTask._(_ret, _lib, retain: false, release: true); + } + static NSTask alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); return NSTask._(_ret, _lib, retain: false, release: true); @@ -63672,18 +72264,18 @@ class NSTask extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTask1, + _lib._objc_msgSend_15(_lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -63698,33 +72290,29 @@ class NSTask extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -63741,33 +72329,38 @@ abstract class NSTaskTerminationReason { static const int NSTaskTerminationReasonUncaughtSignal = 2; } -void _ObjCBlock43_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock43_closureRegistry = {}; -int _ObjCBlock43_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { - final id = ++_ObjCBlock43_closureRegistryIndex; - _ObjCBlock43_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSTask_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSTask_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTask_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSTask_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTask_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock43_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock43_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSTask_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSTask_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock43 extends _ObjCBlockBase { - ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSTask extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTask._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock43.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTask.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi @@ -63775,38 +72368,69 @@ class ObjCBlock43 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock43_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock43.fromFunction( - AVFAudio lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTask.fromFunction(AVFAudio lib, void Function(NSTask) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock43_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTask_closureTrampoline) .cast(), - _ObjCBlock43_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTask_registerClosure( + (ffi.Pointer arg0) => + fn(NSTask._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTask.listener(AVFAudio lib, void Function(NSTask) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTask_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTask_registerClosure( + (ffi.Pointer arg0) => + fn(NSTask._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSTask arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSXMLElement extends NSXMLNode { @@ -63832,177 +72456,193 @@ class NSXMLElement extends NSXMLNode { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); } - NSXMLElement initWithName_(NSString? name) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); + NSXMLElement initWithName_(NSString name) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_initWithName_1, name._id); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159(_id, _lib._sel_initWithName_URI_1, - name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); + NSXMLElement initWithName_URI_(NSString name, NSString? URI) { + final _ret = _lib._objc_msgSend_1142( + _id, _lib._sel_initWithName_URI_1, name._id, URI?._id ?? ffi.nullptr); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( + NSXMLElement initWithName_stringValue_(NSString name, NSString? string) { + final _ret = _lib._objc_msgSend_1142( _id, _lib._sel_initWithName_stringValue_1, - name?._id ?? ffi.nullptr, + name._id, string?._id ?? ffi.nullptr); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithXMLString_error_( - NSString? string, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_264(_id, - _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + NSXMLElement? initWithXMLString_error_( + NSString string, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_303( + _id, _lib._sel_initWithXMLString_error_1, string._id, error); + return _ret.address == 0 + ? null + : NSXMLElement._(_ret, _lib, retain: true, release: true); } @override NSXMLElement initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSArray elementsForName_(NSString? name) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); + NSArray elementsForName_(NSString name) { + final _ret = + _lib._objc_msgSend_358(_id, _lib._sel_elementsForName_1, name._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_617( + NSArray elementsForLocalName_URI_(NSString localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1143( _id, _lib._sel_elementsForLocalName_URI_1, - localName?._id ?? ffi.nullptr, + localName._id, URI?._id ?? ffi.nullptr); return NSArray._(_ret, _lib, retain: true, release: true); } - void addAttribute_(NSXMLNode? attribute) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); + void addAttribute_(NSXMLNode attribute) { + _lib._objc_msgSend_1121(_id, _lib._sel_addAttribute_1, attribute._id); } - void removeAttributeForName_(NSString? name) { - return _lib._objc_msgSend_186( - _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); + void removeAttributeForName_(NSString name) { + _lib._objc_msgSend_248(_id, _lib._sel_removeAttributeForName_1, name._id); } NSArray? get attributes { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_attributes1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_attributes1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set attributes(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); } - void setAttributesWithDictionary_(NSDictionary? attributes) { - return _lib._objc_msgSend_444(_id, _lib._sel_setAttributesWithDictionary_1, - attributes?._id ?? ffi.nullptr); + void setAttributesWithDictionary_(NSDictionary attributes) { + _lib._objc_msgSend_509( + _id, _lib._sel_setAttributesWithDictionary_1, attributes._id); } - NSXMLNode attributeForName_(NSString? name) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? attributeForName_(NSString name) { + final _ret = + _lib._objc_msgSend_1125(_id, _lib._sel_attributeForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_1000( + NSXMLNode? attributeForLocalName_URI_(NSString localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1144( _id, _lib._sel_attributeForLocalName_URI_1, - localName?._id ?? ffi.nullptr, + localName._id, URI?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - void addNamespace_(NSXMLNode? aNamespace) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + void addNamespace_(NSXMLNode aNamespace) { + _lib._objc_msgSend_1121(_id, _lib._sel_addNamespace_1, aNamespace._id); } - void removeNamespaceForPrefix_(NSString? name) { - return _lib._objc_msgSend_186( - _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + void removeNamespaceForPrefix_(NSString name) { + _lib._objc_msgSend_248(_id, _lib._sel_removeNamespaceForPrefix_1, name._id); } NSArray? get namespaces { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_namespaces1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_namespaces1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set namespaces(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); } - NSXMLNode namespaceForPrefix_(NSString? name) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? namespaceForPrefix_(NSString name) { + final _ret = + _lib._objc_msgSend_1125(_id, _lib._sel_namespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSXMLNode resolveNamespaceForName_(NSString? name) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? resolveNamespaceForName_(NSString name) { + final _ret = _lib._objc_msgSend_1125( + _id, _lib._sel_resolveNamespaceForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_resolvePrefixForNamespaceURI_1, - namespaceURI?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? resolvePrefixForNamespaceURI_(NSString namespaceURI) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_resolvePrefixForNamespaceURI_1, namespaceURI._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_977( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + void insertChild_atIndex_(NSXMLNode child, int index) { + _lib._objc_msgSend_1119( + _id, _lib._sel_insertChild_atIndex_1, child._id, index); } - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_978(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + void insertChildren_atIndex_(NSArray children, int index) { + _lib._objc_msgSend_1120( + _id, _lib._sel_insertChildren_atIndex_1, children._id, index); } void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeChildAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + void addChild_(NSXMLNode child) { + _lib._objc_msgSend_1121(_id, _lib._sel_addChild_1, child._id); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_980(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + void replaceChildAtIndex_withNode_(int index, NSXMLNode node) { + _lib._objc_msgSend_1122( + _id, _lib._sel_replaceChildAtIndex_withNode_1, index, node._id); } void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { - return _lib._objc_msgSend_756( + _lib._objc_msgSend_870( _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); } - void setAttributesAsDictionary_(NSDictionary? attributes) { - return _lib._objc_msgSend_444(_id, _lib._sel_setAttributesAsDictionary_1, - attributes?._id ?? ffi.nullptr); + void setAttributesAsDictionary_(NSDictionary attributes) { + _lib._objc_msgSend_509( + _id, _lib._sel_setAttributesAsDictionary_1, attributes._id); + } + + @override + NSXMLElement init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLElement initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } static NSObject document(AVFAudio _lib) { @@ -64012,126 +72652,119 @@ class NSXMLElement extends NSXMLNode { } static NSObject documentWithRootElement_( - AVFAudio _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLElement1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + AVFAudio _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLElement1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLElement1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - AVFAudio _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_( - AVFAudio _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + AVFAudio _lib, NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLElement1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - AVFAudio _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + AVFAudio _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLElement1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLElement1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject commentWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLElement1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_(AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject textWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLElement1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSXMLElement1, + _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLElement1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLElement1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLElement1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLElement1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLElement new1(AVFAudio _lib) { @@ -64140,6 +72773,12 @@ class NSXMLElement extends NSXMLNode { return NSXMLElement._(_ret, _lib, retain: false, release: true); } + static NSXMLElement allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLElement1, _lib._sel_allocWithZone_1, zone); + return NSXMLElement._(_ret, _lib, retain: false, release: true); + } + static NSXMLElement alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); @@ -64150,18 +72789,18 @@ class NSXMLElement extends NSXMLNode { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLElement1, + _lib._objc_msgSend_15(_lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -64176,33 +72815,29 @@ class NSXMLElement extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLElement1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLElement1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLElement1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLElement1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -64243,12 +72878,12 @@ class NSXMLNode extends NSObject { } NSXMLNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_966(_id, _lib._sel_initWithKind_1, kind); + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); return NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLNode._(_ret, _lib, retain: true, release: true); } @@ -64260,151 +72895,141 @@ class NSXMLNode extends NSObject { } static NSObject documentWithRootElement_( - AVFAudio _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + AVFAudio _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLNode1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLNode1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - AVFAudio _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_( - AVFAudio _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + AVFAudio _lib, NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLNode1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - AVFAudio _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + AVFAudio _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLNode1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLNode1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject commentWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLNode1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_(AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject textWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLNode1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSXMLNode1, _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get kind { - return _lib._objc_msgSend_970(_id, _lib._sel_kind1); + return _lib._objc_msgSend_1111(_id, _lib._sel_kind1); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - NSObject get objectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get objectValue { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_objectValue1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set objectValue(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setObjectValue_1, value._id); + set objectValue(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setObjectValue_1, value?._id ?? ffi.nullptr); } NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_stringValue1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set stringValue(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); } - void setStringValue_resolvingEntities_(NSString? string, bool resolve) { - return _lib._objc_msgSend_971( - _id, - _lib._sel_setStringValue_resolvingEntities_1, - string?._id ?? ffi.nullptr, - resolve); + void setStringValue_resolvingEntities_(NSString string, bool resolve) { + _lib._objc_msgSend_1112( + _id, _lib._sel_setStringValue_resolvingEntities_1, string._id, resolve); } int get index { @@ -64416,14 +73041,14 @@ class NSXMLNode extends NSObject { } NSXMLDocument? get rootDocument { - final _ret = _lib._objc_msgSend_994(_id, _lib._sel_rootDocument1); + final _ret = _lib._objc_msgSend_1136(_id, _lib._sel_rootDocument1); return _ret.address == 0 ? null : NSXMLDocument._(_ret, _lib, retain: true, release: true); } NSXMLNode? get parent { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_parent1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_parent1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); @@ -64434,149 +73059,158 @@ class NSXMLNode extends NSObject { } NSArray? get children { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_children1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_children1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSXMLNode childAtIndex_(int index) { - final _ret = _lib._objc_msgSend_996(_id, _lib._sel_childAtIndex_1, index); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? childAtIndex_(int index) { + final _ret = _lib._objc_msgSend_1138(_id, _lib._sel_childAtIndex_1, index); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get previousSibling { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_previousSibling1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_previousSibling1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get nextSibling { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_nextSibling1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_nextSibling1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get previousNode { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_previousNode1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_previousNode1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get nextNode { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_nextNode1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_nextNode1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } void detach() { - return _lib._objc_msgSend_1(_id, _lib._sel_detach1); + _lib._objc_msgSend_1(_id, _lib._sel_detach1); } NSString? get XPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_XPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get localName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get prefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_prefix1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get URI { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_URI1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set URI(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); - } - - static NSString localNameForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_545( + _id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); } - static NSString prefixForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLNode1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + static NSString? prefixForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLNode1, _lib._sel_prefixForName_1, name._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get XMLString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + static NSXMLNode? predefinedNamespaceForPrefix_( + AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get XMLString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_XMLString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString XMLStringWithOptions_(int options) { final _ret = - _lib._objc_msgSend_997(_id, _lib._sel_XMLStringWithOptions_1, options); + _lib._objc_msgSend_1139(_id, _lib._sel_XMLStringWithOptions_1, options); return NSString._(_ret, _lib, retain: true, release: true); } NSString canonicalXMLStringPreservingComments_(bool comments) { - final _ret = _lib._objc_msgSend_998( + final _ret = _lib._objc_msgSend_1140( _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray nodesForXPath_error_( - NSString? xpath, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394( - _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? nodesForXPath_error_( + NSString xpath, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_nodesForXPath_error_1, xpath._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray objectsForXQuery_constants_error_(NSString? xquery, + NSArray? objectsForXQuery_constants_error_(NSString xquery, NSDictionary? constants, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_999( + final _ret = _lib._objc_msgSend_1141( _id, _lib._sel_objectsForXQuery_constants_error_1, - xquery?._id ?? ffi.nullptr, + xquery._id, constants?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray objectsForXQuery_error_( - NSString? xquery, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394(_id, _lib._sel_objectsForXQuery_error_1, - xquery?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? objectsForXQuery_error_( + NSString xquery, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_objectsForXQuery_error_1, xquery._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } static NSXMLNode new1(AVFAudio _lib) { @@ -64584,6 +73218,12 @@ class NSXMLNode extends NSObject { return NSXMLNode._(_ret, _lib, retain: false, release: true); } + static NSXMLNode allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLNode._(_ret, _lib, retain: false, release: true); + } + static NSXMLNode alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); return NSXMLNode._(_ret, _lib, retain: false, release: true); @@ -64593,18 +73233,18 @@ class NSXMLNode extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLNode1, + _lib._objc_msgSend_15(_lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -64619,33 +73259,29 @@ class NSXMLNode extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -64733,72 +73369,66 @@ class NSXMLDocument extends NSXMLNode { return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithXMLString_options_error_( - NSString? string, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_972( - _id, - _lib._sel_initWithXMLString_options_error_1, - string?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + NSXMLDocument? initWithXMLString_options_error_( + NSString string, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1113(_id, + _lib._sel_initWithXMLString_options_error_1, string._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_973( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + NSXMLDocument? initWithContentsOfURL_options_error_( + NSURL url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1114(_id, + _lib._sel_initWithContentsOfURL_options_error_1, url._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_974( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + NSXMLDocument? initWithData_options_error_( + NSData data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1115( + _id, _lib._sel_initWithData_options_error_1, data._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } NSXMLDocument initWithRootElement_(NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968( + final _ret = _lib._objc_msgSend_1116( _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); return NSXMLDocument._(_ret, _lib, retain: true, release: true); } static NSObject replacementClassForClass_(AVFAudio _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSXMLDocument1, _lib._sel_replacementClassForClass_1, cls._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSString? get characterEncoding { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_characterEncoding1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set characterEncoding(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); } NSString? get version { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_version1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set version(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); } @@ -64807,130 +73437,149 @@ class NSXMLDocument extends NSXMLNode { } set standalone(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setStandalone_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setStandalone_1, value); } int get documentContentKind { - return _lib._objc_msgSend_975(_id, _lib._sel_documentContentKind1); + return _lib._objc_msgSend_1117(_id, _lib._sel_documentContentKind1); } set documentContentKind(int value) { - _lib._objc_msgSend_976(_id, _lib._sel_setDocumentContentKind_1, value); + return _lib._objc_msgSend_1118( + _id, _lib._sel_setDocumentContentKind_1, value); } NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set MIMEType(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); } NSXMLDTD? get DTD { - final _ret = _lib._objc_msgSend_986(_id, _lib._sel_DTD1); + final _ret = _lib._objc_msgSend_1128(_id, _lib._sel_DTD1); return _ret.address == 0 ? null : NSXMLDTD._(_ret, _lib, retain: true, release: true); } set DTD(NSXMLDTD? value) { - _lib._objc_msgSend_987(_id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_1129( + _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); } - void setRootElement_(NSXMLElement? root) { - return _lib._objc_msgSend_988( - _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); + void setRootElement_(NSXMLElement root) { + _lib._objc_msgSend_1130(_id, _lib._sel_setRootElement_1, root._id); } - NSXMLElement rootElement() { - final _ret = _lib._objc_msgSend_989(_id, _lib._sel_rootElement1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + NSXMLElement? rootElement() { + final _ret = _lib._objc_msgSend_1131(_id, _lib._sel_rootElement1); + return _ret.address == 0 + ? null + : NSXMLElement._(_ret, _lib, retain: true, release: true); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_977( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + void insertChild_atIndex_(NSXMLNode child, int index) { + _lib._objc_msgSend_1119( + _id, _lib._sel_insertChild_atIndex_1, child._id, index); } - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_978(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + void insertChildren_atIndex_(NSArray children, int index) { + _lib._objc_msgSend_1120( + _id, _lib._sel_insertChildren_atIndex_1, children._id, index); } void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeChildAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + void addChild_(NSXMLNode child) { + _lib._objc_msgSend_1121(_id, _lib._sel_addChild_1, child._id); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_980(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + void replaceChildAtIndex_withNode_(int index, NSXMLNode node) { + _lib._objc_msgSend_1122( + _id, _lib._sel_replaceChildAtIndex_withNode_1, index, node._id); } - NSData? get XMLData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get XMLData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_XMLData1); + return NSData._(_ret, _lib, retain: true, release: true); } NSData XMLDataWithOptions_(int options) { final _ret = - _lib._objc_msgSend_990(_id, _lib._sel_XMLDataWithOptions_1, options); + _lib._objc_msgSend_1132(_id, _lib._sel_XMLDataWithOptions_1, options); return NSData._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, + NSObject? objectByApplyingXSLT_arguments_error_(NSData xslt, NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_991( + final _ret = _lib._objc_msgSend_1133( _id, _lib._sel_objectByApplyingXSLT_arguments_error_1, - xslt?._id ?? ffi.nullptr, + xslt._id, arguments?._id ?? ffi.nullptr, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, + NSObject? objectByApplyingXSLTString_arguments_error_(NSString xslt, NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_992( + final _ret = _lib._objc_msgSend_1134( _id, _lib._sel_objectByApplyingXSLTString_arguments_error_1, - xslt?._id ?? ffi.nullptr, + xslt._id, arguments?._id ?? ffi.nullptr, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, + NSObject? objectByApplyingXSLTAtURL_arguments_error_(NSURL xsltURL, NSDictionary? argument, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_993( + final _ret = _lib._objc_msgSend_1135( _id, _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, - xsltURL?._id ?? ffi.nullptr, + xsltURL._id, argument?._id ?? ffi.nullptr, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_validateAndReturnError_1, error); } + @override + NSXMLDocument initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDocument initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1107( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + static NSObject document(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); @@ -64938,126 +73587,119 @@ class NSXMLDocument extends NSXMLNode { } static NSObject documentWithRootElement_( - AVFAudio _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLDocument1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + AVFAudio _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLDocument1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLDocument1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - AVFAudio _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_( - AVFAudio _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + AVFAudio _lib, NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLDocument1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - AVFAudio _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + AVFAudio _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLDocument1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLDocument1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject commentWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDocument1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_(AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject textWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDocument1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSXMLDocument1, + _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLDocument1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLDocument1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLDocument1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLDocument1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLDocument new1(AVFAudio _lib) { @@ -65066,6 +73708,13 @@ class NSXMLDocument extends NSXMLNode { return NSXMLDocument._(_ret, _lib, retain: false, release: true); } + static NSXMLDocument allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLDocument1, _lib._sel_allocWithZone_1, zone); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); + } + static NSXMLDocument alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); @@ -65076,18 +73725,18 @@ class NSXMLDocument extends NSXMLNode { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, + _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -65102,33 +73751,29 @@ class NSXMLDocument extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDocument1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLDocument1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDocument1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLDocument1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -65177,121 +73822,130 @@ class NSXMLDTD extends NSXMLNode { @override NSXMLDTD initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSXMLDTD initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_973( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + NSXMLDTD? initWithContentsOfURL_options_error_( + NSURL url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1114(_id, + _lib._sel_initWithContentsOfURL_options_error_1, url._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSXMLDTD initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_974( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + NSXMLDTD? initWithData_options_error_( + NSData data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1115( + _id, _lib._sel_initWithData_options_error_1, data._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set publicID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set systemID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_977( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + void insertChild_atIndex_(NSXMLNode child, int index) { + _lib._objc_msgSend_1119( + _id, _lib._sel_insertChild_atIndex_1, child._id, index); } - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_978(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + void insertChildren_atIndex_(NSArray children, int index) { + _lib._objc_msgSend_1120( + _id, _lib._sel_insertChildren_atIndex_1, children._id, index); } void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeChildAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + void addChild_(NSXMLNode child) { + _lib._objc_msgSend_1121(_id, _lib._sel_addChild_1, child._id); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_980(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + void replaceChildAtIndex_withNode_(int index, NSXMLNode node) { + _lib._objc_msgSend_1122( + _id, _lib._sel_replaceChildAtIndex_withNode_1, index, node._id); } - NSXMLDTDNode entityDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? entityDeclarationForName_(NSString name) { + final _ret = _lib._objc_msgSend_1126( + _id, _lib._sel_entityDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode notationDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? notationDeclarationForName_(NSString name) { + final _ret = _lib._objc_msgSend_1126( + _id, _lib._sel_notationDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode elementDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? elementDeclarationForName_(NSString name) { + final _ret = _lib._objc_msgSend_1126( + _id, _lib._sel_elementDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode attributeDeclarationForName_elementName_( - NSString? name, NSString? elementName) { - final _ret = _lib._objc_msgSend_985( + NSXMLDTDNode? attributeDeclarationForName_elementName_( + NSString name, NSString elementName) { + final _ret = _lib._objc_msgSend_1127( _id, _lib._sel_attributeDeclarationForName_elementName_1, - name?._id ?? ffi.nullptr, - elementName?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + name._id, + elementName._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - static NSXMLDTDNode predefinedEntityDeclarationForName_( - AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_984( - _lib._class_NSXMLDTD1, - _lib._sel_predefinedEntityDeclarationForName_1, - name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static NSXMLDTDNode? predefinedEntityDeclarationForName_( + AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_1126(_lib._class_NSXMLDTD1, + _lib._sel_predefinedEntityDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDTD initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } static NSObject document(AVFAudio _lib) { @@ -65301,126 +73955,119 @@ class NSXMLDTD extends NSXMLNode { } static NSObject documentWithRootElement_( - AVFAudio _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLDTD1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + AVFAudio _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLDTD1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLDTD1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - AVFAudio _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_( - AVFAudio _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + AVFAudio _lib, NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLDTD1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - AVFAudio _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + AVFAudio _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLDTD1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLDTD1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject commentWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTD1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_(AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject textWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTD1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSXMLDTD1, _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLDTD1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLDTD1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLDTD1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLDTD1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLDTD new1(AVFAudio _lib) { @@ -65428,6 +74075,12 @@ class NSXMLDTD extends NSXMLNode { return NSXMLDTD._(_ret, _lib, retain: false, release: true); } + static NSXMLDTD allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLDTD1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); + } + static NSXMLDTD alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); return NSXMLDTD._(_ret, _lib, retain: false, release: true); @@ -65437,18 +74090,18 @@ class NSXMLDTD extends NSXMLNode { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -65463,33 +74116,29 @@ class NSXMLDTD extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTD1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLDTD1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTD1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLDTD1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -65524,15 +74173,17 @@ class NSXMLDTDNode extends NSXMLNode { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); } - NSXMLDTDNode initWithXMLString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? initWithXMLString_(NSString string) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } @override NSXMLDTDNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } @@ -65544,11 +74195,11 @@ class NSXMLDTDNode extends NSXMLNode { } int get DTDKind { - return _lib._objc_msgSend_981(_id, _lib._sel_DTDKind1); + return _lib._objc_msgSend_1123(_id, _lib._sel_DTDKind1); } set DTDKind(int value) { - _lib._objc_msgSend_982(_id, _lib._sel_setDTDKind_1, value); + return _lib._objc_msgSend_1124(_id, _lib._sel_setDTDKind_1, value); } bool get external1 { @@ -65556,41 +74207,47 @@ class NSXMLDTDNode extends NSXMLNode { } NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set publicID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set systemID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } NSString? get notationName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_notationName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set notationName(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); } + @override + NSXMLDTDNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + static NSObject document(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); @@ -65598,126 +74255,119 @@ class NSXMLDTDNode extends NSXMLNode { } static NSObject documentWithRootElement_( - AVFAudio _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLDTDNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + AVFAudio _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLDTDNode1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - AVFAudio _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_( - AVFAudio _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + AVFAudio _lib, NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - AVFAudio _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + AVFAudio _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLDTDNode1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - AVFAudio _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + AVFAudio _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLDTDNode1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject commentWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTDNode1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_(AVFAudio _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + static NSObject textWithStringValue_(AVFAudio _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTDNode1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(AVFAudio _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(AVFAudio _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSXMLDTDNode1, + _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLDTDNode1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLDTDNode1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - AVFAudio _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLDTDNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + AVFAudio _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLDTDNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLDTDNode new1(AVFAudio _lib) { @@ -65726,6 +74376,12 @@ class NSXMLDTDNode extends NSXMLNode { return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } + static NSXMLDTDNode allocWithZone_(AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLDTDNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + } + static NSXMLDTDNode alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); @@ -65736,18 +74392,18 @@ class NSXMLDTDNode extends NSXMLNode { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -65762,33 +74418,29 @@ class NSXMLDTDNode extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTDNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLDTDNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTDNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLDTDNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -65847,92 +74499,91 @@ class AVAudioSession extends NSObject { } static AVAudioSession sharedInstance(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_1001( + final _ret = _lib._objc_msgSend_1145( _lib._class_AVAudioSession1, _lib._sel_sharedInstance1); return AVAudioSession._(_ret, _lib, retain: true, release: true); } - NSArray? get availableCategories { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_availableCategories1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get availableCategories { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_availableCategories1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool setCategory_error_(AVAudioSessionCategory category, - ffi.Pointer> outError) { - return _lib._objc_msgSend_398( - _id, _lib._sel_setCategory_error_1, category, outError); + bool setCategory_error_( + NSString category, ffi.Pointer> outError) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setCategory_error_1, category._id, outError); } - bool setCategory_withOptions_error_(AVAudioSessionCategory category, - int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_1002(_id, - _lib._sel_setCategory_withOptions_error_1, category, options, outError); + bool setCategory_withOptions_error_(NSString category, int options, + ffi.Pointer> outError) { + return _lib._objc_msgSend_1146( + _id, + _lib._sel_setCategory_withOptions_error_1, + category._id, + options, + outError); } - bool setCategory_mode_options_error_( - AVAudioSessionCategory category, - AVAudioSessionMode mode, - int options, - ffi.Pointer> outError) { - return _lib._objc_msgSend_1003( + bool setCategory_mode_options_error_(NSString category, NSString mode, + int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_1147( _id, _lib._sel_setCategory_mode_options_error_1, - category, - mode, + category._id, + mode._id, options, outError); } bool setCategory_mode_routeSharingPolicy_options_error_( - AVAudioSessionCategory category, - AVAudioSessionMode mode, + NSString category, + NSString mode, int policy, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_1004( + return _lib._objc_msgSend_1148( _id, _lib._sel_setCategory_mode_routeSharingPolicy_options_error_1, - category, - mode, + category._id, + mode._id, policy, options, outError); } - AVAudioSessionCategory get category { - return _lib._objc_msgSend_20(_id, _lib._sel_category1); + NSString get category { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_category1); + return NSString._(_ret, _lib, retain: true, release: true); } int get categoryOptions { - return _lib._objc_msgSend_1005(_id, _lib._sel_categoryOptions1); + return _lib._objc_msgSend_1149(_id, _lib._sel_categoryOptions1); } int get routeSharingPolicy { - return _lib._objc_msgSend_1006(_id, _lib._sel_routeSharingPolicy1); + return _lib._objc_msgSend_1150(_id, _lib._sel_routeSharingPolicy1); } - NSArray? get availableModes { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_availableModes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get availableModes { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_availableModes1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool setMode_error_( - AVAudioSessionMode mode, ffi.Pointer> outError) { - return _lib._objc_msgSend_398( - _id, _lib._sel_setMode_error_1, mode, outError); + NSString mode, ffi.Pointer> outError) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setMode_error_1, mode._id, outError); } - AVAudioSessionMode get mode { - return _lib._objc_msgSend_20(_id, _lib._sel_mode1); + NSString get mode { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_mode1); + return NSString._(_ret, _lib, retain: true, release: true); } bool setAllowHapticsAndSystemSoundsDuringRecording_error_( bool inValue, ffi.Pointer> outError) { - return _lib._objc_msgSend_1007( + return _lib._objc_msgSend_1151( _id, _lib._sel_setAllowHapticsAndSystemSoundsDuringRecording_error_1, inValue, @@ -65945,28 +74596,28 @@ class AVAudioSession extends NSObject { } int get recordPermission { - return _lib._objc_msgSend_1008(_id, _lib._sel_recordPermission1); + return _lib._objc_msgSend_1152(_id, _lib._sel_recordPermission1); } - void requestRecordPermission_(ObjCBlock31 response) { - return _lib._objc_msgSend_1009( + void requestRecordPermission_(ObjCBlock_ffiVoid_bool response) { + _lib._objc_msgSend_1153( _id, _lib._sel_requestRecordPermission_1, response._id); } bool overrideOutputAudioPort_error_( int portOverride, ffi.Pointer> outError) { - return _lib._objc_msgSend_1010( + return _lib._objc_msgSend_1154( _id, _lib._sel_overrideOutputAudioPort_error_1, portOverride, outError); } bool setPreferredInput_error_(AVAudioSessionPortDescription? inPort, ffi.Pointer> outError) { - return _lib._objc_msgSend_1013(_id, _lib._sel_setPreferredInput_error_1, + return _lib._objc_msgSend_1158(_id, _lib._sel_setPreferredInput_error_1, inPort?._id ?? ffi.nullptr, outError); } AVAudioSessionPortDescription? get preferredInput { - final _ret = _lib._objc_msgSend_1014(_id, _lib._sel_preferredInput1); + final _ret = _lib._objc_msgSend_1159(_id, _lib._sel_preferredInput1); return _ret.address == 0 ? null : AVAudioSessionPortDescription._(_ret, _lib, @@ -65975,7 +74626,7 @@ class AVAudioSession extends NSObject { bool setPrefersNoInterruptionsFromSystemAlerts_error_( bool inValue, ffi.Pointer> outError) { - return _lib._objc_msgSend_1007( + return _lib._objc_msgSend_1151( _id, _lib._sel_setPrefersNoInterruptionsFromSystemAlerts_error_1, inValue, @@ -65989,19 +74640,19 @@ class AVAudioSession extends NSObject { bool setActive_error_( bool active, ffi.Pointer> outError) { - return _lib._objc_msgSend_1007( + return _lib._objc_msgSend_1151( _id, _lib._sel_setActive_error_1, active, outError); } bool setActive_withOptions_error_( bool active, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_1015(_id, _lib._sel_setActive_withOptions_error_1, + return _lib._objc_msgSend_1160(_id, _lib._sel_setActive_withOptions_error_1, active, options, outError); } void activateWithOptions_completionHandler_( - int options, ObjCBlock44 handler) { - return _lib._objc_msgSend_1016( + int options, ObjCBlock_ffiVoid_bool_NSError handler) { + _lib._objc_msgSend_1161( _id, _lib._sel_activateWithOptions_completionHandler_1, options, @@ -66010,76 +74661,76 @@ class AVAudioSession extends NSObject { bool setPreferredSampleRate_error_( double sampleRate, ffi.Pointer> outError) { - return _lib._objc_msgSend_1017( + return _lib._objc_msgSend_1162( _id, _lib._sel_setPreferredSampleRate_error_1, sampleRate, outError); } double get preferredSampleRate { - return _lib._objc_msgSend_149(_id, _lib._sel_preferredSampleRate1); + return _lib._objc_msgSend_165(_id, _lib._sel_preferredSampleRate1); } bool setPreferredIOBufferDuration_error_( double duration, ffi.Pointer> outError) { - return _lib._objc_msgSend_1017(_id, + return _lib._objc_msgSend_1162(_id, _lib._sel_setPreferredIOBufferDuration_error_1, duration, outError); } double get preferredIOBufferDuration { - return _lib._objc_msgSend_149(_id, _lib._sel_preferredIOBufferDuration1); + return _lib._objc_msgSend_165(_id, _lib._sel_preferredIOBufferDuration1); } bool setPreferredInputNumberOfChannels_error_( int count, ffi.Pointer> outError) { - return _lib._objc_msgSend_1018(_id, + return _lib._objc_msgSend_1163(_id, _lib._sel_setPreferredInputNumberOfChannels_error_1, count, outError); } int get preferredInputNumberOfChannels { - return _lib._objc_msgSend_78( + return _lib._objc_msgSend_83( _id, _lib._sel_preferredInputNumberOfChannels1); } bool setPreferredOutputNumberOfChannels_error_( int count, ffi.Pointer> outError) { - return _lib._objc_msgSend_1018(_id, + return _lib._objc_msgSend_1163(_id, _lib._sel_setPreferredOutputNumberOfChannels_error_1, count, outError); } int get preferredOutputNumberOfChannels { - return _lib._objc_msgSend_78( + return _lib._objc_msgSend_83( _id, _lib._sel_preferredOutputNumberOfChannels1); } bool setPreferredInputOrientation_error_( int orientation, ffi.Pointer> outError) { - return _lib._objc_msgSend_1019(_id, + return _lib._objc_msgSend_1164(_id, _lib._sel_setPreferredInputOrientation_error_1, orientation, outError); } int get preferredInputOrientation { - return _lib._objc_msgSend_1020(_id, _lib._sel_preferredInputOrientation1); + return _lib._objc_msgSend_1165(_id, _lib._sel_preferredInputOrientation1); } int get inputOrientation { - return _lib._objc_msgSend_1020(_id, _lib._sel_inputOrientation1); + return _lib._objc_msgSend_1165(_id, _lib._sel_inputOrientation1); } int get maximumInputNumberOfChannels { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumInputNumberOfChannels1); + return _lib._objc_msgSend_83(_id, _lib._sel_maximumInputNumberOfChannels1); } int get maximumOutputNumberOfChannels { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumOutputNumberOfChannels1); + return _lib._objc_msgSend_83(_id, _lib._sel_maximumOutputNumberOfChannels1); } bool setInputGain_error_( double gain, ffi.Pointer> outError) { - return _lib._objc_msgSend_1021( + return _lib._objc_msgSend_1166( _id, _lib._sel_setInputGain_error_1, gain, outError); } double get inputGain { - return _lib._objc_msgSend_215(_id, _lib._sel_inputGain1); + return _lib._objc_msgSend_239(_id, _lib._sel_inputGain1); } bool get inputGainSettable { @@ -66091,14 +74742,14 @@ class AVAudioSession extends NSObject { } NSArray? get inputDataSources { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_inputDataSources1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_inputDataSources1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } AVAudioSessionDataSourceDescription? get inputDataSource { - final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_inputDataSource1); + final _ret = _lib._objc_msgSend_1156(_id, _lib._sel_inputDataSource1); return _ret.address == 0 ? null : AVAudioSessionDataSourceDescription._(_ret, _lib, @@ -66108,19 +74759,19 @@ class AVAudioSession extends NSObject { bool setInputDataSource_error_( AVAudioSessionDataSourceDescription? dataSource, ffi.Pointer> outError) { - return _lib._objc_msgSend_1012(_id, _lib._sel_setInputDataSource_error_1, + return _lib._objc_msgSend_1157(_id, _lib._sel_setInputDataSource_error_1, dataSource?._id ?? ffi.nullptr, outError); } NSArray? get outputDataSources { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_outputDataSources1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_outputDataSources1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } AVAudioSessionDataSourceDescription? get outputDataSource { - final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_outputDataSource1); + final _ret = _lib._objc_msgSend_1156(_id, _lib._sel_outputDataSource1); return _ret.address == 0 ? null : AVAudioSessionDataSourceDescription._(_ret, _lib, @@ -66130,32 +74781,32 @@ class AVAudioSession extends NSObject { bool setOutputDataSource_error_( AVAudioSessionDataSourceDescription? dataSource, ffi.Pointer> outError) { - return _lib._objc_msgSend_1012(_id, _lib._sel_setOutputDataSource_error_1, + return _lib._objc_msgSend_1157(_id, _lib._sel_setOutputDataSource_error_1, dataSource?._id ?? ffi.nullptr, outError); } double get sampleRate { - return _lib._objc_msgSend_149(_id, _lib._sel_sampleRate1); + return _lib._objc_msgSend_165(_id, _lib._sel_sampleRate1); } int get inputNumberOfChannels { - return _lib._objc_msgSend_78(_id, _lib._sel_inputNumberOfChannels1); + return _lib._objc_msgSend_83(_id, _lib._sel_inputNumberOfChannels1); } int get outputNumberOfChannels { - return _lib._objc_msgSend_78(_id, _lib._sel_outputNumberOfChannels1); + return _lib._objc_msgSend_83(_id, _lib._sel_outputNumberOfChannels1); } double get inputLatency { - return _lib._objc_msgSend_149(_id, _lib._sel_inputLatency1); + return _lib._objc_msgSend_165(_id, _lib._sel_inputLatency1); } double get outputLatency { - return _lib._objc_msgSend_149(_id, _lib._sel_outputLatency1); + return _lib._objc_msgSend_165(_id, _lib._sel_outputLatency1); } double get IOBufferDuration { - return _lib._objc_msgSend_149(_id, _lib._sel_IOBufferDuration1); + return _lib._objc_msgSend_165(_id, _lib._sel_IOBufferDuration1); } bool get otherAudioPlaying { @@ -66168,37 +74819,35 @@ class AVAudioSession extends NSObject { } double get outputVolume { - return _lib._objc_msgSend_215(_id, _lib._sel_outputVolume1); + return _lib._objc_msgSend_239(_id, _lib._sel_outputVolume1); } int get promptStyle { - return _lib._objc_msgSend_1022(_id, _lib._sel_promptStyle1); + return _lib._objc_msgSend_1167(_id, _lib._sel_promptStyle1); } NSArray? get availableInputs { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_availableInputs1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_availableInputs1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - AVAudioSessionRouteDescription? get currentRoute { - final _ret = _lib._objc_msgSend_1023(_id, _lib._sel_currentRoute1); - return _ret.address == 0 - ? null - : AVAudioSessionRouteDescription._(_ret, _lib, - retain: true, release: true); + AVAudioSessionRouteDescription get currentRoute { + final _ret = _lib._objc_msgSend_1168(_id, _lib._sel_currentRoute1); + return AVAudioSessionRouteDescription._(_ret, _lib, + retain: true, release: true); } bool setAggregatedIOPreference_error_( int inIOType, ffi.Pointer> outError) { - return _lib._objc_msgSend_1024( + return _lib._objc_msgSend_1169( _id, _lib._sel_setAggregatedIOPreference_error_1, inIOType, outError); } bool setSupportsMultichannelContent_error_( bool inValue, ffi.Pointer> outError) { - return _lib._objc_msgSend_1007(_id, + return _lib._objc_msgSend_1151(_id, _lib._sel_setSupportsMultichannelContent_error_1, inValue, outError); } @@ -66206,15 +74855,29 @@ class AVAudioSession extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_supportsMultichannelContent1); } + bool setPrefersInterruptionOnRouteDisconnect_error_( + bool inValue, ffi.Pointer> outError) { + return _lib._objc_msgSend_1151( + _id, + _lib._sel_setPrefersInterruptionOnRouteDisconnect_error_1, + inValue, + outError); + } + + bool get prefersInterruptionOnRouteDisconnect { + return _lib._objc_msgSend_12( + _id, _lib._sel_prefersInterruptionOnRouteDisconnect1); + } + NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -66226,7 +74889,7 @@ class AVAudioSession extends NSObject { bool setActive_withFlags_error_( bool active, int flags, ffi.Pointer> outError) { - return _lib._objc_msgSend_1025( + return _lib._objc_msgSend_1170( _id, _lib._sel_setActive_withFlags_error_1, active, flags, outError); } @@ -66235,27 +74898,27 @@ class AVAudioSession extends NSObject { } double get currentHardwareSampleRate { - return _lib._objc_msgSend_149(_id, _lib._sel_currentHardwareSampleRate1); + return _lib._objc_msgSend_165(_id, _lib._sel_currentHardwareSampleRate1); } int get currentHardwareInputNumberOfChannels { - return _lib._objc_msgSend_78( + return _lib._objc_msgSend_83( _id, _lib._sel_currentHardwareInputNumberOfChannels1); } int get currentHardwareOutputNumberOfChannels { - return _lib._objc_msgSend_78( + return _lib._objc_msgSend_83( _id, _lib._sel_currentHardwareOutputNumberOfChannels1); } bool setPreferredHardwareSampleRate_error_( double sampleRate, ffi.Pointer> outError) { - return _lib._objc_msgSend_1017(_id, + return _lib._objc_msgSend_1162(_id, _lib._sel_setPreferredHardwareSampleRate_error_1, sampleRate, outError); } double get preferredHardwareSampleRate { - return _lib._objc_msgSend_149(_id, _lib._sel_preferredHardwareSampleRate1); + return _lib._objc_msgSend_165(_id, _lib._sel_preferredHardwareSampleRate1); } static AVAudioSession new1(AVFAudio _lib) { @@ -66264,6 +74927,13 @@ class AVAudioSession extends NSObject { return AVAudioSession._(_ret, _lib, retain: false, release: true); } + static AVAudioSession allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioSession1, _lib._sel_allocWithZone_1, zone); + return AVAudioSession._(_ret, _lib, retain: false, release: true); + } + static AVAudioSession alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_AVAudioSession1, _lib._sel_alloc1); @@ -66274,18 +74944,18 @@ class AVAudioSession extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_AVAudioSession1, + _lib._objc_msgSend_15(_lib._class_AVAudioSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -66300,33 +74970,29 @@ class AVAudioSession extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_AVAudioSession1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_AVAudioSession1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_AVAudioSession1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_AVAudioSession1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioSession1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_AVAudioSession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -66338,8 +75004,6 @@ class AVAudioSession extends NSObject { } } -typedef AVAudioSessionCategory = ffi.Pointer; - abstract class AVAudioSessionCategoryOptions { static const int AVAudioSessionCategoryOptionMixWithOthers = 1; static const int AVAudioSessionCategoryOptionDuckOthers = 2; @@ -66353,8 +75017,6 @@ abstract class AVAudioSessionCategoryOptions { AVAudioSessionCategoryOptionOverrideMutedMicrophoneInterruption = 128; } -typedef AVAudioSessionMode = ffi.Pointer; - abstract class AVAudioSessionRouteSharingPolicy { static const int AVAudioSessionRouteSharingPolicyDefault = 0; static const int AVAudioSessionRouteSharingPolicyLongFormAudio = 1; @@ -66400,22 +75062,19 @@ class AVAudioSessionPortDescription extends NSObject { obj._lib._class_AVAudioSessionPortDescription1); } - AVAudioSessionPort get portType { - return _lib._objc_msgSend_20(_id, _lib._sel_portType1); + NSString get portType { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_portType1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get portName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_portName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get portName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_portName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get UID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_UID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get UID { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_UID1); + return NSString._(_ret, _lib, retain: true, release: true); } bool get hasHardwareVoiceCallProcessing { @@ -66428,21 +75087,21 @@ class AVAudioSessionPortDescription extends NSObject { } NSArray? get channels { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_channels1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_channels1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSArray? get dataSources { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_dataSources1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_dataSources1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } AVAudioSessionDataSourceDescription? get selectedDataSource { - final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_selectedDataSource1); + final _ret = _lib._objc_msgSend_1156(_id, _lib._sel_selectedDataSource1); return _ret.address == 0 ? null : AVAudioSessionDataSourceDescription._(_ret, _lib, @@ -66450,7 +75109,7 @@ class AVAudioSessionPortDescription extends NSObject { } AVAudioSessionDataSourceDescription? get preferredDataSource { - final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_preferredDataSource1); + final _ret = _lib._objc_msgSend_1156(_id, _lib._sel_preferredDataSource1); return _ret.address == 0 ? null : AVAudioSessionDataSourceDescription._(_ret, _lib, @@ -66460,13 +75119,20 @@ class AVAudioSessionPortDescription extends NSObject { bool setPreferredDataSource_error_( AVAudioSessionDataSourceDescription? dataSource, ffi.Pointer> outError) { - return _lib._objc_msgSend_1012( + return _lib._objc_msgSend_1157( _id, _lib._sel_setPreferredDataSource_error_1, dataSource?._id ?? ffi.nullptr, outError); } + @override + AVAudioSessionPortDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return AVAudioSessionPortDescription._(_ret, _lib, + retain: true, release: true); + } + static AVAudioSessionPortDescription new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_AVAudioSessionPortDescription1, _lib._sel_new1); @@ -66474,6 +75140,16 @@ class AVAudioSessionPortDescription extends NSObject { retain: false, release: true); } + static AVAudioSessionPortDescription allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioSessionPortDescription1, + _lib._sel_allocWithZone_1, + zone); + return AVAudioSessionPortDescription._(_ret, _lib, + retain: false, release: true); + } + static AVAudioSessionPortDescription alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_AVAudioSessionPortDescription1, _lib._sel_alloc1); @@ -66485,18 +75161,18 @@ class AVAudioSessionPortDescription extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioSessionPortDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_AVAudioSessionPortDescription1, + _lib._objc_msgSend_15(_lib._class_AVAudioSessionPortDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -66511,33 +75187,31 @@ class AVAudioSessionPortDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_AVAudioSessionPortDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_AVAudioSessionPortDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_AVAudioSessionPortDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioSessionPortDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_AVAudioSessionPortDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -66551,8 +75225,6 @@ class AVAudioSessionPortDescription extends NSObject { } } -typedef AVAudioSessionPort = ffi.Pointer; - class AVAudioSessionDataSourceDescription extends NSObject { AVAudioSessionDataSourceDescription._( ffi.Pointer id, AVFAudio lib, @@ -66580,47 +75252,65 @@ class AVAudioSessionDataSourceDescription extends NSObject { obj._lib._class_AVAudioSessionDataSourceDescription1); } - NSNumber? get dataSourceID { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_dataSourceID1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber get dataSourceID { + final _ret = _lib._objc_msgSend_814(_id, _lib._sel_dataSourceID1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSString get dataSourceName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dataSourceName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get dataSourceName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dataSourceName1); + NSString? get location { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_location1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - AVAudioSessionLocation get location { - return _lib._objc_msgSend_20(_id, _lib._sel_location1); - } - - AVAudioSessionOrientation get orientation { - return _lib._objc_msgSend_20(_id, _lib._sel_orientation1); + NSString? get orientation { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_orientation1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSArray? get supportedPolarPatterns { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_supportedPolarPatterns1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_supportedPolarPatterns1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - AVAudioSessionPolarPattern get selectedPolarPattern { - return _lib._objc_msgSend_20(_id, _lib._sel_selectedPolarPattern1); + NSString? get selectedPolarPattern { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_selectedPolarPattern1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - AVAudioSessionPolarPattern get preferredPolarPattern { - return _lib._objc_msgSend_20(_id, _lib._sel_preferredPolarPattern1); + NSString? get preferredPolarPattern { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_preferredPolarPattern1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool setPreferredPolarPattern_error_(AVAudioSessionPolarPattern pattern, - ffi.Pointer> outError) { - return _lib._objc_msgSend_398( - _id, _lib._sel_setPreferredPolarPattern_error_1, pattern, outError); + bool setPreferredPolarPattern_error_( + NSString? pattern, ffi.Pointer> outError) { + return _lib._objc_msgSend_1155( + _id, + _lib._sel_setPreferredPolarPattern_error_1, + pattern?._id ?? ffi.nullptr, + outError); + } + + @override + AVAudioSessionDataSourceDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return AVAudioSessionDataSourceDescription._(_ret, _lib, + retain: true, release: true); } static AVAudioSessionDataSourceDescription new1(AVFAudio _lib) { @@ -66630,6 +75320,16 @@ class AVAudioSessionDataSourceDescription extends NSObject { retain: false, release: true); } + static AVAudioSessionDataSourceDescription allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioSessionDataSourceDescription1, + _lib._sel_allocWithZone_1, + zone); + return AVAudioSessionDataSourceDescription._(_ret, _lib, + retain: false, release: true); + } + static AVAudioSessionDataSourceDescription alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_AVAudioSessionDataSourceDescription1, _lib._sel_alloc1); @@ -66641,21 +75341,19 @@ class AVAudioSessionDataSourceDescription extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioSessionDataSourceDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15( - _lib._class_AVAudioSessionDataSourceDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, - aTarget._id); + _lib._objc_msgSend_15(_lib._class_AVAudioSessionDataSourceDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(AVFAudio _lib) { @@ -66671,33 +75369,33 @@ class AVAudioSessionDataSourceDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_AVAudioSessionDataSourceDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64( _lib._class_AVAudioSessionDataSourceDescription1, _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioSessionDataSourceDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_AVAudioSessionDataSourceDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -66711,10 +75409,6 @@ class AVAudioSessionDataSourceDescription extends NSObject { } } -typedef AVAudioSessionLocation = ffi.Pointer; -typedef AVAudioSessionOrientation = ffi.Pointer; -typedef AVAudioSessionPolarPattern = ffi.Pointer; - abstract class AVAudioSessionSetActiveOptions { static const int AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation = 1; } @@ -66723,35 +75417,44 @@ abstract class AVAudioSessionActivationOptions { static const int AVAudioSessionActivationOptionNone = 0; } -void _ObjCBlock44_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Bool arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(bool arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock44_closureRegistry = {}; -int _ObjCBlock44_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock44_registerClosure(Function fn) { - final id = ++_ObjCBlock44_closureRegistryIndex; - _ObjCBlock44_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + bool arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Bool arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_bool_NSError_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_bool_NSError_registerClosure( + void Function(bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock44_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0, ffi.Pointer arg1) { - return _ObjCBlock44_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + bool arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_bool_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock44 extends _ObjCBlockBase { - ObjCBlock44._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool_NSError._(ffi.Pointer<_ObjCBlock> id, AVFAudio lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock44.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool_NSError.fromFunctionPointer( AVFAudio lib, ffi.Pointer< ffi.NativeFunction< @@ -66760,38 +75463,72 @@ class ObjCBlock44 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0, ffi.Pointer arg1)>( - _ObjCBlock44_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock44.fromFunction( - AVFAudio lib, void Function(bool arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool_NSError.fromFunction( + AVFAudio lib, void Function(bool, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0, ffi.Pointer arg1)>( - _ObjCBlock44_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock44_registerClosure(fn)), + _ObjCBlock_ffiVoid_bool_NSError_registerClosure( + (bool arg0, ffi.Pointer arg1) => fn(arg0, + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(bool arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, bool arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_bool_NSError.listener( + AVFAudio lib, void Function(bool, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_bool_NSError_registerClosure( + (bool arg0, ffi.Pointer arg1) => fn(arg0, + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(bool arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, bool, + ffi.Pointer)>()(_id, arg0, arg1?._id ?? ffi.nullptr); } abstract class AVAudioStereoOrientation { @@ -66834,18 +75571,21 @@ class AVAudioSessionRouteDescription extends NSObject { obj._lib._class_AVAudioSessionRouteDescription1); } - NSArray? get inputs { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_inputs1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get inputs { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_inputs1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get outputs { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_outputs1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get outputs { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_outputs1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + AVAudioSessionRouteDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return AVAudioSessionRouteDescription._(_ret, _lib, + retain: true, release: true); } static AVAudioSessionRouteDescription new1(AVFAudio _lib) { @@ -66855,6 +75595,16 @@ class AVAudioSessionRouteDescription extends NSObject { retain: false, release: true); } + static AVAudioSessionRouteDescription allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioSessionRouteDescription1, + _lib._sel_allocWithZone_1, + zone); + return AVAudioSessionRouteDescription._(_ret, _lib, + retain: false, release: true); + } + static AVAudioSessionRouteDescription alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_AVAudioSessionRouteDescription1, _lib._sel_alloc1); @@ -66866,18 +75616,18 @@ class AVAudioSessionRouteDescription extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioSessionRouteDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_AVAudioSessionRouteDescription1, + _lib._objc_msgSend_15(_lib._class_AVAudioSessionRouteDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -66892,33 +75642,31 @@ class AVAudioSessionRouteDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_AVAudioSessionRouteDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_AVAudioSessionRouteDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_AVAudioSessionRouteDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioSessionRouteDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_AVAudioSessionRouteDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -66960,43 +75708,48 @@ class AVAudioPlayer extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_AVAudioPlayer1); } - AVAudioPlayer initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_734( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - outError); - return AVAudioPlayer._(_ret, _lib, retain: true, release: true); + AVAudioPlayer? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_842( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, outError); + return _ret.address == 0 + ? null + : AVAudioPlayer._(_ret, _lib, retain: true, release: true); } - AVAudioPlayer initWithData_error_( - NSData? data, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_1026(_id, _lib._sel_initWithData_error_1, - data?._id ?? ffi.nullptr, outError); - return AVAudioPlayer._(_ret, _lib, retain: true, release: true); + AVAudioPlayer? initWithData_error_( + NSData data, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_1171( + _id, _lib._sel_initWithData_error_1, data._id, outError); + return _ret.address == 0 + ? null + : AVAudioPlayer._(_ret, _lib, retain: true, release: true); } - AVAudioPlayer initWithContentsOfURL_fileTypeHint_error_(NSURL? url, + AVAudioPlayer? initWithContentsOfURL_fileTypeHint_error_(NSURL url, NSString? utiString, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_1027( + final _ret = _lib._objc_msgSend_1172( _id, _lib._sel_initWithContentsOfURL_fileTypeHint_error_1, - url?._id ?? ffi.nullptr, + url._id, utiString?._id ?? ffi.nullptr, outError); - return AVAudioPlayer._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : AVAudioPlayer._(_ret, _lib, retain: true, release: true); } - AVAudioPlayer initWithData_fileTypeHint_error_(NSData? data, + AVAudioPlayer? initWithData_fileTypeHint_error_(NSData data, NSString? utiString, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_1028( + final _ret = _lib._objc_msgSend_1173( _id, _lib._sel_initWithData_fileTypeHint_error_1, - data?._id ?? ffi.nullptr, + data._id, utiString?._id ?? ffi.nullptr, outError); - return AVAudioPlayer._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : AVAudioPlayer._(_ret, _lib, retain: true, release: true); } bool prepareToPlay() { @@ -67008,15 +75761,15 @@ class AVAudioPlayer extends NSObject { } bool playAtTime_(double time) { - return _lib._objc_msgSend_1029(_id, _lib._sel_playAtTime_1, time); + return _lib._objc_msgSend_1174(_id, _lib._sel_playAtTime_1, time); } void pause() { - return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + _lib._objc_msgSend_1(_id, _lib._sel_pause1); } void stop() { - return _lib._objc_msgSend_1(_id, _lib._sel_stop1); + _lib._objc_msgSend_1(_id, _lib._sel_stop1); } bool get playing { @@ -67028,65 +75781,65 @@ class AVAudioPlayer extends NSObject { } double get duration { - return _lib._objc_msgSend_149(_id, _lib._sel_duration1); + return _lib._objc_msgSend_165(_id, _lib._sel_duration1); } NSString? get currentDevice { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDevice1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currentDevice1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set currentDevice(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setCurrentDevice_1, value?._id ?? ffi.nullptr); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } NSURL? get url { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_url1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_url1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_data1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } double get pan { - return _lib._objc_msgSend_215(_id, _lib._sel_pan1); + return _lib._objc_msgSend_239(_id, _lib._sel_pan1); } set pan(double value) { - _lib._objc_msgSend_765(_id, _lib._sel_setPan_1, value); + return _lib._objc_msgSend_881(_id, _lib._sel_setPan_1, value); } double get volume { - return _lib._objc_msgSend_215(_id, _lib._sel_volume1); + return _lib._objc_msgSend_239(_id, _lib._sel_volume1); } set volume(double value) { - _lib._objc_msgSend_765(_id, _lib._sel_setVolume_1, value); + return _lib._objc_msgSend_881(_id, _lib._sel_setVolume_1, value); } void setVolume_fadeDuration_(double volume, double duration) { - return _lib._objc_msgSend_1030( + _lib._objc_msgSend_1175( _id, _lib._sel_setVolume_fadeDuration_1, volume, duration); } @@ -67095,49 +75848,45 @@ class AVAudioPlayer extends NSObject { } set enableRate(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setEnableRate_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setEnableRate_1, value); } double get rate { - return _lib._objc_msgSend_215(_id, _lib._sel_rate1); + return _lib._objc_msgSend_239(_id, _lib._sel_rate1); } set rate(double value) { - _lib._objc_msgSend_765(_id, _lib._sel_setRate_1, value); + return _lib._objc_msgSend_881(_id, _lib._sel_setRate_1, value); } double get currentTime { - return _lib._objc_msgSend_149(_id, _lib._sel_currentTime1); + return _lib._objc_msgSend_165(_id, _lib._sel_currentTime1); } set currentTime(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setCurrentTime_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setCurrentTime_1, value); } double get deviceCurrentTime { - return _lib._objc_msgSend_149(_id, _lib._sel_deviceCurrentTime1); + return _lib._objc_msgSend_165(_id, _lib._sel_deviceCurrentTime1); } int get numberOfLoops { - return _lib._objc_msgSend_78(_id, _lib._sel_numberOfLoops1); + return _lib._objc_msgSend_83(_id, _lib._sel_numberOfLoops1); } set numberOfLoops(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setNumberOfLoops_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setNumberOfLoops_1, value); } - NSDictionary? get settings { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_settings1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get settings { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_settings1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - AVAudioFormat? get format { - final _ret = _lib._objc_msgSend_1046(_id, _lib._sel_format1); - return _ret.address == 0 - ? null - : AVAudioFormat._(_ret, _lib, retain: true, release: true); + AVAudioFormat get format { + final _ret = _lib._objc_msgSend_1192(_id, _lib._sel_format1); + return AVAudioFormat._(_ret, _lib, retain: true, release: true); } bool get meteringEnabled { @@ -67145,41 +75894,54 @@ class AVAudioPlayer extends NSObject { } set meteringEnabled(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setMeteringEnabled_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setMeteringEnabled_1, value); } void updateMeters() { - return _lib._objc_msgSend_1(_id, _lib._sel_updateMeters1); + _lib._objc_msgSend_1(_id, _lib._sel_updateMeters1); } double peakPowerForChannel_(int channelNumber) { - return _lib._objc_msgSend_1047( + return _lib._objc_msgSend_1193( _id, _lib._sel_peakPowerForChannel_1, channelNumber); } double averagePowerForChannel_(int channelNumber) { - return _lib._objc_msgSend_1047( + return _lib._objc_msgSend_1193( _id, _lib._sel_averagePowerForChannel_1, channelNumber); } NSArray? get channelAssignments { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_channelAssignments1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_channelAssignments1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set channelAssignments(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setChannelAssignments_1, value?._id ?? ffi.nullptr); } + @override + AVAudioPlayer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return AVAudioPlayer._(_ret, _lib, retain: true, release: true); + } + static AVAudioPlayer new1(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_AVAudioPlayer1, _lib._sel_new1); return AVAudioPlayer._(_ret, _lib, retain: false, release: true); } + static AVAudioPlayer allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioPlayer1, _lib._sel_allocWithZone_1, zone); + return AVAudioPlayer._(_ret, _lib, retain: false, release: true); + } + static AVAudioPlayer alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_AVAudioPlayer1, _lib._sel_alloc1); @@ -67190,18 +75952,18 @@ class AVAudioPlayer extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioPlayer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_AVAudioPlayer1, + _lib._objc_msgSend_15(_lib._class_AVAudioPlayer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -67216,33 +75978,29 @@ class AVAudioPlayer extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_AVAudioPlayer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_AVAudioPlayer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_AVAudioPlayer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_AVAudioPlayer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioPlayer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_AVAudioPlayer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -67277,80 +76035,90 @@ class AVAudioFormat extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_AVAudioFormat1); } - AVAudioFormat initWithStreamDescription_( + AVAudioFormat? initWithStreamDescription_( ffi.Pointer asbd) { - final _ret = _lib._objc_msgSend_1031( + final _ret = _lib._objc_msgSend_1176( _id, _lib._sel_initWithStreamDescription_1, asbd); - return AVAudioFormat._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : AVAudioFormat._(_ret, _lib, retain: true, release: true); } - AVAudioFormat initWithStreamDescription_channelLayout_( + AVAudioFormat? initWithStreamDescription_channelLayout_( ffi.Pointer asbd, AVAudioChannelLayout? layout) { - final _ret = _lib._objc_msgSend_1036( + final _ret = _lib._objc_msgSend_1182( _id, _lib._sel_initWithStreamDescription_channelLayout_1, asbd, layout?._id ?? ffi.nullptr); - return AVAudioFormat._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : AVAudioFormat._(_ret, _lib, retain: true, release: true); } - AVAudioFormat initStandardFormatWithSampleRate_channels_( + AVAudioFormat? initStandardFormatWithSampleRate_channels_( double sampleRate, int channels) { - final _ret = _lib._objc_msgSend_1037( + final _ret = _lib._objc_msgSend_1183( _id, _lib._sel_initStandardFormatWithSampleRate_channels_1, sampleRate, channels); - return AVAudioFormat._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : AVAudioFormat._(_ret, _lib, retain: true, release: true); } AVAudioFormat initStandardFormatWithSampleRate_channelLayout_( - double sampleRate, AVAudioChannelLayout? layout) { - final _ret = _lib._objc_msgSend_1038( + double sampleRate, AVAudioChannelLayout layout) { + final _ret = _lib._objc_msgSend_1184( _id, _lib._sel_initStandardFormatWithSampleRate_channelLayout_1, sampleRate, - layout?._id ?? ffi.nullptr); + layout._id); return AVAudioFormat._(_ret, _lib, retain: true, release: true); } - AVAudioFormat initWithCommonFormat_sampleRate_channels_interleaved_( + AVAudioFormat? initWithCommonFormat_sampleRate_channels_interleaved_( int format, double sampleRate, int channels, bool interleaved) { - final _ret = _lib._objc_msgSend_1039( + final _ret = _lib._objc_msgSend_1185( _id, _lib._sel_initWithCommonFormat_sampleRate_channels_interleaved_1, format, sampleRate, channels, interleaved); - return AVAudioFormat._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : AVAudioFormat._(_ret, _lib, retain: true, release: true); } AVAudioFormat initWithCommonFormat_sampleRate_interleaved_channelLayout_( int format, double sampleRate, bool interleaved, - AVAudioChannelLayout? layout) { - final _ret = _lib._objc_msgSend_1040( + AVAudioChannelLayout layout) { + final _ret = _lib._objc_msgSend_1186( _id, _lib._sel_initWithCommonFormat_sampleRate_interleaved_channelLayout_1, format, sampleRate, interleaved, - layout?._id ?? ffi.nullptr); + layout._id); return AVAudioFormat._(_ret, _lib, retain: true, release: true); } - AVAudioFormat initWithSettings_(NSDictionary? settings) { - final _ret = _lib._objc_msgSend_143( - _id, _lib._sel_initWithSettings_1, settings?._id ?? ffi.nullptr); - return AVAudioFormat._(_ret, _lib, retain: true, release: true); + AVAudioFormat? initWithSettings_(NSDictionary settings) { + final _ret = + _lib._objc_msgSend_851(_id, _lib._sel_initWithSettings_1, settings._id); + return _ret.address == 0 + ? null + : AVAudioFormat._(_ret, _lib, retain: true, release: true); } AVAudioFormat initWithCMAudioFormatDescription_( - CMAudioFormatDescriptionRef formatDescription) { - final _ret = _lib._objc_msgSend_1041( + ffi.Pointer formatDescription) { + final _ret = _lib._objc_msgSend_1187( _id, _lib._sel_initWithCMAudioFormatDescription_1, formatDescription); return AVAudioFormat._(_ret, _lib, retain: true, release: true); } @@ -67364,15 +76132,15 @@ class AVAudioFormat extends NSObject { } int get commonFormat { - return _lib._objc_msgSend_1042(_id, _lib._sel_commonFormat1); + return _lib._objc_msgSend_1188(_id, _lib._sel_commonFormat1); } int get channelCount { - return _lib._objc_msgSend_1035(_id, _lib._sel_channelCount1); + return _lib._objc_msgSend_1181(_id, _lib._sel_channelCount1); } double get sampleRate { - return _lib._objc_msgSend_149(_id, _lib._sel_sampleRate1); + return _lib._objc_msgSend_165(_id, _lib._sel_sampleRate1); } bool get interleaved { @@ -67380,37 +76148,41 @@ class AVAudioFormat extends NSObject { } ffi.Pointer get streamDescription { - return _lib._objc_msgSend_1043(_id, _lib._sel_streamDescription1); + return _lib._objc_msgSend_1189(_id, _lib._sel_streamDescription1); } AVAudioChannelLayout? get channelLayout { - final _ret = _lib._objc_msgSend_1044(_id, _lib._sel_channelLayout1); + final _ret = _lib._objc_msgSend_1190(_id, _lib._sel_channelLayout1); return _ret.address == 0 ? null : AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); } NSData? get magicCookie { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_magicCookie1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_magicCookie1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } set magicCookie(NSData? value) { - _lib._objc_msgSend_892( + return _lib._objc_msgSend_1021( _id, _lib._sel_setMagicCookie_1, value?._id ?? ffi.nullptr); } - NSDictionary? get settings { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_settings1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get settings { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_settings1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - CMAudioFormatDescriptionRef get formatDescription { - return _lib._objc_msgSend_1045(_id, _lib._sel_formatDescription1); + ffi.Pointer get formatDescription { + return _lib._objc_msgSend_1191(_id, _lib._sel_formatDescription1); + } + + @override + AVAudioFormat init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return AVAudioFormat._(_ret, _lib, retain: true, release: true); } static AVAudioFormat new1(AVFAudio _lib) { @@ -67419,6 +76191,13 @@ class AVAudioFormat extends NSObject { return AVAudioFormat._(_ret, _lib, retain: false, release: true); } + static AVAudioFormat allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioFormat1, _lib._sel_allocWithZone_1, zone); + return AVAudioFormat._(_ret, _lib, retain: false, release: true); + } + static AVAudioFormat alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_AVAudioFormat1, _lib._sel_alloc1); @@ -67429,18 +76208,18 @@ class AVAudioFormat extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioFormat1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_AVAudioFormat1, + _lib._objc_msgSend_15(_lib._class_AVAudioFormat1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -67455,33 +76234,29 @@ class AVAudioFormat extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_AVAudioFormat1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_AVAudioFormat1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_AVAudioFormat1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_AVAudioFormat1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioFormat1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_AVAudioFormat1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -67494,38 +76269,34 @@ class AVAudioFormat extends NSObject { } final class AudioStreamBasicDescription extends ffi.Struct { - @Float64() + @ffi.Double() external double mSampleRate; - @AudioFormatID() + @ffi.UnsignedInt() external int mFormatID; - @AudioFormatFlags() + @ffi.UnsignedInt() external int mFormatFlags; - @UInt32() + @ffi.UnsignedInt() external int mBytesPerPacket; - @UInt32() + @ffi.UnsignedInt() external int mFramesPerPacket; - @UInt32() + @ffi.UnsignedInt() external int mBytesPerFrame; - @UInt32() + @ffi.UnsignedInt() external int mChannelsPerFrame; - @UInt32() + @ffi.UnsignedInt() external int mBitsPerChannel; - @UInt32() + @ffi.UnsignedInt() external int mReserved; } -typedef Float64 = ffi.Double; -typedef AudioFormatID = UInt32; -typedef AudioFormatFlags = UInt32; - class AVAudioChannelLayout extends NSObject { AVAudioChannelLayout._(ffi.Pointer id, AVFAudio lib, {bool retain = false, bool release = false}) @@ -67556,15 +76327,17 @@ class AVAudioChannelLayout extends NSObject { return AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); } - AVAudioChannelLayout initWithLayoutTag_(int layoutTag) { + AVAudioChannelLayout? initWithLayoutTag_(int layoutTag) { final _ret = - _lib._objc_msgSend_1032(_id, _lib._sel_initWithLayoutTag_1, layoutTag); - return AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_1177(_id, _lib._sel_initWithLayoutTag_1, layoutTag); + return _ret.address == 0 + ? null + : AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); } AVAudioChannelLayout initWithLayout_(ffi.Pointer layout) { final _ret = - _lib._objc_msgSend_1033(_id, _lib._sel_initWithLayout_1, layout); + _lib._objc_msgSend_1178(_id, _lib._sel_initWithLayout_1, layout); return AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); } @@ -67574,28 +76347,28 @@ class AVAudioChannelLayout extends NSObject { static AVAudioChannelLayout layoutWithLayoutTag_( AVFAudio _lib, int layoutTag) { - final _ret = _lib._objc_msgSend_1032(_lib._class_AVAudioChannelLayout1, + final _ret = _lib._objc_msgSend_1179(_lib._class_AVAudioChannelLayout1, _lib._sel_layoutWithLayoutTag_1, layoutTag); return AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); } static AVAudioChannelLayout layoutWithLayout_( AVFAudio _lib, ffi.Pointer layout) { - final _ret = _lib._objc_msgSend_1033(_lib._class_AVAudioChannelLayout1, + final _ret = _lib._objc_msgSend_1178(_lib._class_AVAudioChannelLayout1, _lib._sel_layoutWithLayout_1, layout); return AVAudioChannelLayout._(_ret, _lib, retain: true, release: true); } int get layoutTag { - return _lib._objc_msgSend_191(_id, _lib._sel_layoutTag1); + return _lib._objc_msgSend_214(_id, _lib._sel_layoutTag1); } ffi.Pointer get layout { - return _lib._objc_msgSend_1034(_id, _lib._sel_layout1); + return _lib._objc_msgSend_1180(_id, _lib._sel_layout1); } int get channelCount { - return _lib._objc_msgSend_1035(_id, _lib._sel_channelCount1); + return _lib._objc_msgSend_1181(_id, _lib._sel_channelCount1); } static AVAudioChannelLayout new1(AVFAudio _lib) { @@ -67604,6 +76377,13 @@ class AVAudioChannelLayout extends NSObject { return AVAudioChannelLayout._(_ret, _lib, retain: false, release: true); } + static AVAudioChannelLayout allocWithZone_( + AVFAudio _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_AVAudioChannelLayout1, _lib._sel_allocWithZone_1, zone); + return AVAudioChannelLayout._(_ret, _lib, retain: false, release: true); + } + static AVAudioChannelLayout alloc(AVFAudio _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_AVAudioChannelLayout1, _lib._sel_alloc1); @@ -67614,18 +76394,18 @@ class AVAudioChannelLayout extends NSObject { AVFAudio _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_AVAudioChannelLayout1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( AVFAudio _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_AVAudioChannelLayout1, + _lib._objc_msgSend_15(_lib._class_AVAudioChannelLayout1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -67640,33 +76420,29 @@ class AVAudioChannelLayout extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - AVFAudio _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_AVAudioChannelLayout1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_AVAudioChannelLayout1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - AVFAudio _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_AVAudioChannelLayout1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + AVFAudio _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_AVAudioChannelLayout1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - AVFAudio _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + AVFAudio _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_AVAudioChannelLayout1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(AVFAudio _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_AVAudioChannelLayout1, + final _ret = _lib._objc_msgSend_85(_lib._class_AVAudioChannelLayout1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -67678,16 +76454,14 @@ class AVAudioChannelLayout extends NSObject { } } -typedef AudioChannelLayoutTag = UInt32; - final class AudioChannelLayout extends ffi.Struct { - @AudioChannelLayoutTag() + @ffi.UnsignedInt() external int mChannelLayoutTag; @ffi.Int32() external int mChannelBitmap; - @UInt32() + @ffi.UnsignedInt() external int mNumberChannelDescriptions; @ffi.Array.multi([1]) @@ -67725,18 +76499,16 @@ abstract class AudioChannelBitmap { } final class AudioChannelDescription extends ffi.Struct { - @AudioChannelLabel() + @ffi.UnsignedInt() external int mChannelLabel; @ffi.Int32() external int mChannelFlags; @ffi.Array.multi([3]) - external ffi.Array mCoordinates; + external ffi.Array mCoordinates; } -typedef AudioChannelLabel = UInt32; - abstract class AudioChannelFlags { static const int kAudioChannelFlags_AllOff = 0; static const int kAudioChannelFlags_RectangularCoordinates = 1; @@ -67744,9 +76516,6 @@ abstract class AudioChannelFlags { static const int kAudioChannelFlags_Meters = 4; } -typedef Float32 = ffi.Float; -typedef AVAudioChannelCount = ffi.Uint32; - abstract class AVAudioCommonFormat { static const int AVAudioOtherFormat = 0; static const int AVAudioPCMFormatFloat32 = 1; @@ -67755,7 +76524,4 @@ abstract class AVAudioCommonFormat { static const int AVAudioPCMFormatInt32 = 4; } -typedef CMAudioFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMFormatDescriptionRef = ffi.Pointer; - final class opaqueCMFormatDescription extends ffi.Opaque {} diff --git a/pkgs/ffigen/example/objective_c/play_audio.dart b/pkgs/ffigen/example/objective_c/play_audio.dart index 05708c6e7..88deb74de 100644 --- a/pkgs/ffigen/example/objective_c/play_audio.dart +++ b/pkgs/ffigen/example/objective_c/play_audio.dart @@ -16,6 +16,10 @@ void main(List args) async { final fileUrl = NSURL.fileURLWithPath_(lib, fileStr); final player = AVAudioPlayer.alloc(lib).initWithContentsOfURL_error_(fileUrl, nullptr); + if (player == null) { + print('Failed to load audio'); + continue; + } final durationSeconds = player.duration.ceil(); print('$durationSeconds sec'); final status = player.play(); diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 9d19d79b1..ec0c69cdb 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -239,7 +239,7 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); - IMP _objc_msgSend_6( + ffi.Pointer> _objc_msgSend_6( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -253,10 +253,14 @@ class SwiftLibrary { late final __objc_msgSend_6Ptr = _lookup< ffi.NativeFunction< - IMP Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< - IMP Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_instanceMethodForSelector_1 = @@ -342,7 +346,7 @@ class SwiftLibrary { late final __objc_msgSend_10Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); @@ -364,7 +368,7 @@ class SwiftLibrary { late final __objc_msgSend_11Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -493,38 +497,57 @@ class SwiftLibrary { late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); late final _sel_nextObject1 = _registerName1("nextObject"); + ffi.Pointer _objc_msgSend_17( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_17( + obj, + sel, + ); + } + + late final __objc_msgSend_17Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_allObjects1 = _registerName1("allObjects"); late final _class_NSString1 = _getClass1("NSString"); late final _sel_length1 = _registerName1("length"); late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); - int _objc_msgSend_17( + int _objc_msgSend_18( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_17( + return __objc_msgSend_18( obj, sel, index, ); } - late final __objc_msgSend_17Ptr = _lookup< + late final __objc_msgSend_18Ptr = _lookup< ffi.NativeFunction< - unichar Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + ffi.UnsignedShort Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSCoder1 = _getClass1("NSCoder"); late final _sel_encodeValueOfObjCType_at_1 = _registerName1("encodeValueOfObjCType:at:"); - void _objc_msgSend_18( + void _objc_msgSend_19( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer addr, ) { - return __objc_msgSend_18( + return __objc_msgSend_19( obj, sel, type, @@ -532,61 +555,61 @@ class SwiftLibrary { ); } - late final __objc_msgSend_18Ptr = _lookup< + late final __objc_msgSend_19Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< + late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSData1 = _getClass1("NSData"); late final _sel_bytes1 = _registerName1("bytes"); - ffi.Pointer _objc_msgSend_19( + ffi.Pointer _objc_msgSend_20( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_19( + return __objc_msgSend_20( obj, sel, ); } - late final __objc_msgSend_19Ptr = _lookup< + late final __objc_msgSend_20Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< + late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_description1 = _registerName1("description"); - ffi.Pointer _objc_msgSend_20( + ffi.Pointer _objc_msgSend_21( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_20( + return __objc_msgSend_21( obj, sel, ); } - late final __objc_msgSend_20Ptr = _lookup< + late final __objc_msgSend_21Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< + late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); - void _objc_msgSend_21( + void _objc_msgSend_22( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int length, ) { - return __objc_msgSend_21( + return __objc_msgSend_22( obj, sel, buffer, @@ -594,22 +617,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_21Ptr = _lookup< + late final __objc_msgSend_22Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); - void _objc_msgSend_22( + void _objc_msgSend_23( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_22( + return __objc_msgSend_23( obj, sel, buffer, @@ -617,65 +640,65 @@ class SwiftLibrary { ); } - late final __objc_msgSend_22Ptr = _lookup< + late final __objc_msgSend_23Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); - bool _objc_msgSend_23( + bool _objc_msgSend_24( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_23( + return __objc_msgSend_24( obj, sel, other, ); } - late final __objc_msgSend_23Ptr = _lookup< + late final __objc_msgSend_24Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< + late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); - ffi.Pointer _objc_msgSend_24( + ffi.Pointer _objc_msgSend_25( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_24( + return __objc_msgSend_25( obj, sel, range, ); } - late final __objc_msgSend_24Ptr = _lookup< + late final __objc_msgSend_25Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_writeToFile_atomically_1 = _registerName1("writeToFile:atomically:"); - bool _objc_msgSend_25( + bool _objc_msgSend_26( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool useAuxiliaryFile, ) { - return __objc_msgSend_25( + return __objc_msgSend_26( obj, sel, path, @@ -683,25 +706,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_25Ptr = _lookup< + late final __objc_msgSend_26Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< + late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSURL1 = _getClass1("NSURL"); late final _sel_initWithScheme_host_path_1 = _registerName1("initWithScheme:host:path:"); - instancetype _objc_msgSend_26( + instancetype _objc_msgSend_27( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer scheme, ffi.Pointer host, ffi.Pointer path, ) { - return __objc_msgSend_26( + return __objc_msgSend_27( obj, sel, scheme, @@ -710,7 +733,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_26Ptr = _lookup< + late final __objc_msgSend_27Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -718,7 +741,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< + late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -728,14 +751,14 @@ class SwiftLibrary { late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_27( + instancetype _objc_msgSend_28( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_27( + return __objc_msgSend_28( obj, sel, path, @@ -744,7 +767,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_27Ptr = _lookup< + late final __objc_msgSend_28Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -752,19 +775,19 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< + late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_initFileURLWithPath_relativeToURL_1 = _registerName1("initFileURLWithPath:relativeToURL:"); - instancetype _objc_msgSend_28( + instancetype _objc_msgSend_29( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer baseURL, ) { - return __objc_msgSend_28( + return __objc_msgSend_29( obj, sel, path, @@ -772,26 +795,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_28Ptr = _lookup< + late final __objc_msgSend_29Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< + late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initFileURLWithPath_isDirectory_1 = _registerName1("initFileURLWithPath:isDirectory:"); - instancetype _objc_msgSend_29( + instancetype _objc_msgSend_30( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ) { - return __objc_msgSend_29( + return __objc_msgSend_30( obj, sel, path, @@ -799,46 +822,46 @@ class SwiftLibrary { ); } - late final __objc_msgSend_29Ptr = _lookup< + late final __objc_msgSend_30Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< + late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initFileURLWithPath_1 = _registerName1("initFileURLWithPath:"); - instancetype _objc_msgSend_30( + instancetype _objc_msgSend_31( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_30( + return __objc_msgSend_31( obj, sel, path, ); } - late final __objc_msgSend_30Ptr = _lookup< + late final __objc_msgSend_31Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< + late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_31( + ffi.Pointer _objc_msgSend_32( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_31( + return __objc_msgSend_32( obj, sel, path, @@ -847,7 +870,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_31Ptr = _lookup< + late final __objc_msgSend_32Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -855,7 +878,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< + late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -865,13 +888,13 @@ class SwiftLibrary { late final _sel_fileURLWithPath_relativeToURL_1 = _registerName1("fileURLWithPath:relativeToURL:"); - ffi.Pointer _objc_msgSend_32( + ffi.Pointer _objc_msgSend_33( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer baseURL, ) { - return __objc_msgSend_32( + return __objc_msgSend_33( obj, sel, path, @@ -879,14 +902,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_32Ptr = _lookup< + late final __objc_msgSend_33Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< + late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -895,13 +918,13 @@ class SwiftLibrary { late final _sel_fileURLWithPath_isDirectory_1 = _registerName1("fileURLWithPath:isDirectory:"); - ffi.Pointer _objc_msgSend_33( + ffi.Pointer _objc_msgSend_34( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ) { - return __objc_msgSend_33( + return __objc_msgSend_34( obj, sel, path, @@ -909,49 +932,49 @@ class SwiftLibrary { ); } - late final __objc_msgSend_33Ptr = _lookup< + late final __objc_msgSend_34Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< + late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); - ffi.Pointer _objc_msgSend_34( + ffi.Pointer _objc_msgSend_35( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_34( + return __objc_msgSend_35( obj, sel, path, ); } - late final __objc_msgSend_34Ptr = _lookup< + late final __objc_msgSend_35Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< + late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = _registerName1( "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_35( + instancetype _objc_msgSend_36( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_35( + return __objc_msgSend_36( obj, sel, path, @@ -960,7 +983,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_35Ptr = _lookup< + late final __objc_msgSend_36Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -968,21 +991,21 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< + late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = _registerName1( "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_36( + ffi.Pointer _objc_msgSend_37( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool isDir, ffi.Pointer baseURL, ) { - return __objc_msgSend_36( + return __objc_msgSend_37( obj, sel, path, @@ -991,7 +1014,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_36Ptr = _lookup< + late final __objc_msgSend_37Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -999,7 +1022,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< + late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1008,20 +1031,91 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_initWithString_1 = _registerName1("initWithString:"); + instancetype _objc_msgSend_38( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ) { + return __objc_msgSend_38( + obj, + sel, + URLString, + ); + } + + late final __objc_msgSend_38Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithString_relativeToURL_1 = _registerName1("initWithString:relativeToURL:"); + instancetype _objc_msgSend_39( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_39( + obj, + sel, + URLString, + baseURL, + ); + } + + late final __objc_msgSend_39Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_URLWithString_1 = _registerName1("URLWithString:"); late final _sel_URLWithString_relativeToURL_1 = _registerName1("URLWithString:relativeToURL:"); + late final _sel_initWithString_encodingInvalidCharacters_1 = + _registerName1("initWithString:encodingInvalidCharacters:"); + instancetype _objc_msgSend_40( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + bool encodingInvalidCharacters, + ) { + return __objc_msgSend_40( + obj, + sel, + URLString, + encodingInvalidCharacters, + ); + } + + late final __objc_msgSend_40Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_URLWithString_encodingInvalidCharacters_1 = + _registerName1("URLWithString:encodingInvalidCharacters:"); late final _sel_initWithDataRepresentation_relativeToURL_1 = _registerName1("initWithDataRepresentation:relativeToURL:"); - instancetype _objc_msgSend_37( + instancetype _objc_msgSend_41( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_37( + return __objc_msgSend_41( obj, sel, data, @@ -1029,26 +1123,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_37Ptr = _lookup< + late final __objc_msgSend_41Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< + late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLWithDataRepresentation_relativeToURL_1 = _registerName1("URLWithDataRepresentation:relativeToURL:"); - ffi.Pointer _objc_msgSend_38( + ffi.Pointer _objc_msgSend_42( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_38( + return __objc_msgSend_42( obj, sel, data, @@ -1056,14 +1150,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_38Ptr = _lookup< + late final __objc_msgSend_42Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1075,42 +1169,60 @@ class SwiftLibrary { late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); - ffi.Pointer _objc_msgSend_39( + ffi.Pointer _objc_msgSend_43( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_39( + return __objc_msgSend_43( obj, sel, ); } - late final __objc_msgSend_39Ptr = _lookup< + late final __objc_msgSend_43Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_absoluteString1 = _registerName1("absoluteString"); + ffi.Pointer _objc_msgSend_44( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_44( + obj, + sel, + ); + } + + late final __objc_msgSend_44Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_relativeString1 = _registerName1("relativeString"); late final _sel_baseURL1 = _registerName1("baseURL"); - ffi.Pointer _objc_msgSend_40( + ffi.Pointer _objc_msgSend_45( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_40( + return __objc_msgSend_45( obj, sel, ); } - late final __objc_msgSend_40Ptr = _lookup< + late final __objc_msgSend_45Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -1124,13 +1236,13 @@ class SwiftLibrary { late final _sel_objCType1 = _registerName1("objCType"); late final _sel_initWithBytes_objCType_1 = _registerName1("initWithBytes:objCType:"); - instancetype _objc_msgSend_41( + instancetype _objc_msgSend_46( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_41( + return __objc_msgSend_46( obj, sel, value, @@ -1138,44 +1250,44 @@ class SwiftLibrary { ); } - late final __objc_msgSend_41Ptr = _lookup< + late final __objc_msgSend_46Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< + late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); - instancetype _objc_msgSend_42( + instancetype _objc_msgSend_47( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_42( + return __objc_msgSend_47( obj, sel, coder, ); } - late final __objc_msgSend_42Ptr = _lookup< + late final __objc_msgSend_47Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< + late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithBytes_objCType_1 = _registerName1("valueWithBytes:objCType:"); - ffi.Pointer _objc_msgSend_43( + ffi.Pointer _objc_msgSend_48( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_43( + return __objc_msgSend_48( obj, sel, value, @@ -1183,14 +1295,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_43Ptr = _lookup< + late final __objc_msgSend_48Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< + late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -1200,363 +1312,378 @@ class SwiftLibrary { late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); late final _sel_valueWithNonretainedObject_1 = _registerName1("valueWithNonretainedObject:"); - ffi.Pointer _objc_msgSend_44( + ffi.Pointer _objc_msgSend_49( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_44( + return __objc_msgSend_49( obj, sel, anObject, ); } - late final __objc_msgSend_44Ptr = _lookup< + late final __objc_msgSend_49Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_nonretainedObjectValue1 = _registerName1("nonretainedObjectValue"); late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); - ffi.Pointer _objc_msgSend_45( + ffi.Pointer _objc_msgSend_50( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pointer, ) { - return __objc_msgSend_45( + return __objc_msgSend_50( obj, sel, pointer, ); } - late final __objc_msgSend_45Ptr = _lookup< + late final __objc_msgSend_50Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< + late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerValue1 = _registerName1("pointerValue"); late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); - bool _objc_msgSend_46( + bool _objc_msgSend_51( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_46( + return __objc_msgSend_51( obj, sel, value, ); } - late final __objc_msgSend_46Ptr = _lookup< + late final __objc_msgSend_51Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< + late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getValue_1 = _registerName1("getValue:"); - void _objc_msgSend_47( + void _objc_msgSend_52( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_47( + return __objc_msgSend_52( obj, sel, value, ); } - late final __objc_msgSend_47Ptr = _lookup< + late final __objc_msgSend_52Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< + late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); - ffi.Pointer _objc_msgSend_48( + ffi.Pointer _objc_msgSend_53( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_48( + return __objc_msgSend_53( obj, sel, range, ); } - late final __objc_msgSend_48Ptr = _lookup< + late final __objc_msgSend_53Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_rangeValue1 = _registerName1("rangeValue"); - NSRange _objc_msgSend_49( + void _objc_msgSend_54( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_49( + return __objc_msgSend_54( + stret, obj, sel, ); } - late final __objc_msgSend_49Ptr = _lookup< + late final __objc_msgSend_54Ptr = _lookup< ffi.NativeFunction< - NSRange Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer)>(); late final _sel_valueWithPoint_1 = _registerName1("valueWithPoint:"); - ffi.Pointer _objc_msgSend_50( + ffi.Pointer _objc_msgSend_55( ffi.Pointer obj, ffi.Pointer sel, - NSPoint point, + CGPoint point, ) { - return __objc_msgSend_50( + return __objc_msgSend_55( obj, sel, point, ); } - late final __objc_msgSend_50Ptr = _lookup< + late final __objc_msgSend_55Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSPoint)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + ffi.Pointer, CGPoint)>>('objc_msgSend'); + late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSPoint)>(); + ffi.Pointer, ffi.Pointer, CGPoint)>(); late final _sel_valueWithSize_1 = _registerName1("valueWithSize:"); - ffi.Pointer _objc_msgSend_51( + ffi.Pointer _objc_msgSend_56( ffi.Pointer obj, ffi.Pointer sel, - NSSize size, + CGSize size, ) { - return __objc_msgSend_51( + return __objc_msgSend_56( obj, sel, size, ); } - late final __objc_msgSend_51Ptr = _lookup< + late final __objc_msgSend_56Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSSize)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< + ffi.Pointer, CGSize)>>('objc_msgSend'); + late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSSize)>(); + ffi.Pointer, ffi.Pointer, CGSize)>(); late final _sel_valueWithRect_1 = _registerName1("valueWithRect:"); - ffi.Pointer _objc_msgSend_52( + ffi.Pointer _objc_msgSend_57( ffi.Pointer obj, ffi.Pointer sel, - NSRect rect, + CGRect rect, ) { - return __objc_msgSend_52( + return __objc_msgSend_57( obj, sel, rect, ); } - late final __objc_msgSend_52Ptr = _lookup< + late final __objc_msgSend_57Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRect)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< + ffi.Pointer, CGRect)>>('objc_msgSend'); + late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRect)>(); + ffi.Pointer, ffi.Pointer, CGRect)>(); late final _sel_valueWithEdgeInsets_1 = _registerName1("valueWithEdgeInsets:"); - ffi.Pointer _objc_msgSend_53( + ffi.Pointer _objc_msgSend_58( ffi.Pointer obj, ffi.Pointer sel, NSEdgeInsets insets, ) { - return __objc_msgSend_53( + return __objc_msgSend_58( obj, sel, insets, ); } - late final __objc_msgSend_53Ptr = _lookup< + late final __objc_msgSend_58Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSEdgeInsets)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< + late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSEdgeInsets)>(); late final _sel_pointValue1 = _registerName1("pointValue"); - NSPoint _objc_msgSend_54( + void _objc_msgSend_59( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_54( + return __objc_msgSend_59( + stret, obj, sel, ); } - late final __objc_msgSend_54Ptr = _lookup< + late final __objc_msgSend_59Ptr = _lookup< ffi.NativeFunction< - NSPoint Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< - NSPoint Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_sizeValue1 = _registerName1("sizeValue"); - NSSize _objc_msgSend_55( + void _objc_msgSend_60( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_55( + return __objc_msgSend_60( + stret, obj, sel, ); } - late final __objc_msgSend_55Ptr = _lookup< + late final __objc_msgSend_60Ptr = _lookup< ffi.NativeFunction< - NSSize Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< - NSSize Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_rectValue1 = _registerName1("rectValue"); - NSRect _objc_msgSend_56( + void _objc_msgSend_61( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_56( + return __objc_msgSend_61( + stret, obj, sel, ); } - late final __objc_msgSend_56Ptr = _lookup< + late final __objc_msgSend_61Ptr = _lookup< ffi.NativeFunction< - NSRect Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< - NSRect Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_edgeInsetsValue1 = _registerName1("edgeInsetsValue"); - NSEdgeInsets _objc_msgSend_57( + void _objc_msgSend_62( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_57( + return __objc_msgSend_62( + stret, obj, sel, ); } - late final __objc_msgSend_57Ptr = _lookup< + late final __objc_msgSend_62Ptr = _lookup< ffi.NativeFunction< - NSEdgeInsets Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< - NSEdgeInsets Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_keyPathsForValuesAffectingValueForKey_1 = _registerName1("keyPathsForValuesAffectingValueForKey:"); - ffi.Pointer _objc_msgSend_58( + ffi.Pointer _objc_msgSend_63( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_58( + return __objc_msgSend_63( obj, sel, key, ); } - late final __objc_msgSend_58Ptr = _lookup< + late final __objc_msgSend_63Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< + late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_automaticallyNotifiesObserversForKey_1 = _registerName1("automaticallyNotifiesObserversForKey:"); - bool _objc_msgSend_59( + bool _objc_msgSend_64( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_59( + return __objc_msgSend_64( obj, sel, key, ); } - late final __objc_msgSend_59Ptr = _lookup< + late final __objc_msgSend_64Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSArray1 = _getClass1("NSArray"); late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); - ffi.Pointer _objc_msgSend_60( + ffi.Pointer _objc_msgSend_65( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_60( + return __objc_msgSend_65( obj, sel, index, ); } - late final __objc_msgSend_60Ptr = _lookup< + late final __objc_msgSend_65Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithObjects_count_1 = _registerName1("initWithObjects:count:"); - instancetype _objc_msgSend_61( + instancetype _objc_msgSend_66( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int cnt, ) { - return __objc_msgSend_61( + return __objc_msgSend_66( obj, sel, objects, @@ -1564,115 +1691,115 @@ class SwiftLibrary { ); } - late final __objc_msgSend_61Ptr = _lookup< + late final __objc_msgSend_66Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_arrayByAddingObject_1 = _registerName1("arrayByAddingObject:"); - ffi.Pointer _objc_msgSend_62( + ffi.Pointer _objc_msgSend_67( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_62( + return __objc_msgSend_67( obj, sel, anObject, ); } - late final __objc_msgSend_62Ptr = _lookup< + late final __objc_msgSend_67Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayByAddingObjectsFromArray_1 = _registerName1("arrayByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_63( + ffi.Pointer _objc_msgSend_68( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_63( + return __objc_msgSend_68( obj, sel, otherArray, ); } - late final __objc_msgSend_63Ptr = _lookup< + late final __objc_msgSend_68Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< + late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_componentsJoinedByString_1 = _registerName1("componentsJoinedByString:"); - ffi.Pointer _objc_msgSend_64( + ffi.Pointer _objc_msgSend_69( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_64( + return __objc_msgSend_69( obj, sel, separator, ); } - late final __objc_msgSend_64Ptr = _lookup< + late final __objc_msgSend_69Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< + late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_containsObject_1 = _registerName1("containsObject:"); late final _sel_descriptionWithLocale_1 = _registerName1("descriptionWithLocale:"); - ffi.Pointer _objc_msgSend_65( + ffi.Pointer _objc_msgSend_70( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_65( + return __objc_msgSend_70( obj, sel, locale, ); } - late final __objc_msgSend_65Ptr = _lookup< + late final __objc_msgSend_70Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< + late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptionWithLocale_indent_1 = _registerName1("descriptionWithLocale:indent:"); - ffi.Pointer _objc_msgSend_66( + ffi.Pointer _objc_msgSend_71( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, int level, ) { - return __objc_msgSend_66( + return __objc_msgSend_71( obj, sel, locale, @@ -1680,47 +1807,47 @@ class SwiftLibrary { ); } - late final __objc_msgSend_66Ptr = _lookup< + late final __objc_msgSend_71Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_firstObjectCommonWithArray_1 = _registerName1("firstObjectCommonWithArray:"); - ffi.Pointer _objc_msgSend_67( + ffi.Pointer _objc_msgSend_72( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_67( + return __objc_msgSend_72( obj, sel, otherArray, ); } - late final __objc_msgSend_67Ptr = _lookup< + late final __objc_msgSend_72Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< + late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); - void _objc_msgSend_68( + void _objc_msgSend_73( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_68( + return __objc_msgSend_73( obj, sel, objects, @@ -1728,44 +1855,44 @@ class SwiftLibrary { ); } - late final __objc_msgSend_68Ptr = _lookup< + late final __objc_msgSend_73Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< + ffi.Pointer>, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, NSRange)>(); + ffi.Pointer>, _NSRange)>(); late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); - int _objc_msgSend_69( + int _objc_msgSend_74( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_69( + return __objc_msgSend_74( obj, sel, anObject, ); } - late final __objc_msgSend_69Ptr = _lookup< + late final __objc_msgSend_74Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_indexOfObject_inRange_1 = _registerName1("indexOfObject:inRange:"); - int _objc_msgSend_70( + int _objc_msgSend_75( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_70( + return __objc_msgSend_75( obj, sel, anObject, @@ -1773,57 +1900,60 @@ class SwiftLibrary { ); } - late final __objc_msgSend_70Ptr = _lookup< + late final __objc_msgSend_75Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_indexOfObjectIdenticalTo_1 = _registerName1("indexOfObjectIdenticalTo:"); late final _sel_indexOfObjectIdenticalTo_inRange_1 = _registerName1("indexOfObjectIdenticalTo:inRange:"); late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); - bool _objc_msgSend_71( + bool _objc_msgSend_76( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_71( + return __objc_msgSend_76( obj, sel, otherArray, ); } - late final __objc_msgSend_71Ptr = _lookup< + late final __objc_msgSend_76Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< + late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_firstObject1 = _registerName1("firstObject"); late final _sel_lastObject1 = _registerName1("lastObject"); late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); - ffi.Pointer _objc_msgSend_72( + ffi.Pointer _objc_msgSend_77( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_72( + return __objc_msgSend_77( obj, sel, ); } - late final __objc_msgSend_72Ptr = _lookup< + late final __objc_msgSend_77Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< + late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -1832,17 +1962,17 @@ class SwiftLibrary { late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); late final _sel_sortedArrayUsingFunction_context_1 = _registerName1("sortedArrayUsingFunction:context:"); - ffi.Pointer _objc_msgSend_73( + ffi.Pointer _objc_msgSend_78( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context, ) { - return __objc_msgSend_73( + return __objc_msgSend_78( obj, sel, comparator, @@ -1850,40 +1980,40 @@ class SwiftLibrary { ); } - late final __objc_msgSend_73Ptr = _lookup< + late final __objc_msgSend_78Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< + late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>(); late final _sel_sortedArrayUsingFunction_context_hint_1 = _registerName1("sortedArrayUsingFunction:context:hint:"); - ffi.Pointer _objc_msgSend_74( + ffi.Pointer _objc_msgSend_79( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context, ffi.Pointer hint, ) { - return __objc_msgSend_74( + return __objc_msgSend_79( obj, sel, comparator, @@ -1892,174 +2022,330 @@ class SwiftLibrary { ); } - late final __objc_msgSend_74Ptr = _lookup< + late final __objc_msgSend_79Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< + late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer, ffi.Pointer)>(); late final _sel_sortedArrayUsingSelector_1 = _registerName1("sortedArrayUsingSelector:"); - ffi.Pointer _objc_msgSend_75( + ffi.Pointer _objc_msgSend_80( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comparator, ) { - return __objc_msgSend_75( + return __objc_msgSend_80( obj, sel, comparator, ); } - late final __objc_msgSend_75Ptr = _lookup< + late final __objc_msgSend_80Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< + late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); - ffi.Pointer _objc_msgSend_76( + ffi.Pointer _objc_msgSend_81( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_76( + return __objc_msgSend_81( obj, sel, range, ); } - late final __objc_msgSend_76Ptr = _lookup< + late final __objc_msgSend_81Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _class_NSError1 = _getClass1("NSError"); late final _sel_initWithDomain_code_userInfo_1 = _registerName1("initWithDomain:code:userInfo:"); - instancetype _objc_msgSend_77( + instancetype _objc_msgSend_82( ffi.Pointer obj, ffi.Pointer sel, - NSErrorDomain domain, + ffi.Pointer domain, int code, + ffi.Pointer dict, ) { - return __objc_msgSend_77( + return __objc_msgSend_82( obj, sel, domain, code, + dict, ); } - late final __objc_msgSend_77Ptr = _lookup< + late final __objc_msgSend_82Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - NSErrorDomain, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, NSErrorDomain, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); late final _sel_errorWithDomain_code_userInfo_1 = _registerName1("errorWithDomain:code:userInfo:"); late final _sel_domain1 = _registerName1("domain"); late final _sel_code1 = _registerName1("code"); - int _objc_msgSend_78( + int _objc_msgSend_83( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_78( + return __objc_msgSend_83( obj, sel, ); } - late final __objc_msgSend_78Ptr = _lookup< + late final __objc_msgSend_83Ptr = _lookup< ffi.NativeFunction< - NSInteger Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< + late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = - _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); - void _objc_msgSend_79( + late final _sel_userInfo1 = _registerName1("userInfo"); + late final _sel_localizedDescription1 = + _registerName1("localizedDescription"); + late final _sel_localizedFailureReason1 = + _registerName1("localizedFailureReason"); + late final _sel_localizedRecoverySuggestion1 = + _registerName1("localizedRecoverySuggestion"); + late final _sel_localizedRecoveryOptions1 = + _registerName1("localizedRecoveryOptions"); + ffi.Pointer _objc_msgSend_84( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer dependentKey, ) { - return __objc_msgSend_79( + return __objc_msgSend_84( obj, sel, - keys, - dependentKey, ); } - late final __objc_msgSend_79Ptr = _lookup< + late final __objc_msgSend_84Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); + late final _sel_helpAnchor1 = _registerName1("helpAnchor"); + late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); + ffi.Pointer _objc_msgSend_85( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_85( + obj, + sel, + ); + } + + late final __objc_msgSend_85Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { + final d = + pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); + d.ref.reserved = 0; + d.ref.size = ffi.sizeOf<_ObjCBlock>(); + d.ref.copy_helper = ffi.nullptr; + d.ref.dispose_helper = ffi.nullptr; + d.ref.signature = ffi.nullptr; + return d; + } + + late final _objc_block_desc1 = _newBlockDesc1(); + late final _objc_concrete_global_block1 = + _lookup('_NSConcreteGlobalBlock'); + ffi.Pointer<_ObjCBlock> _newBlock1( + ffi.Pointer invoke, ffi.Pointer target) { + final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); + b.ref.isa = _objc_concrete_global_block1; + b.ref.flags = 0; + b.ref.reserved = 0; + b.ref.invoke = invoke; + b.ref.target = target; + b.ref.descriptor = _objc_block_desc1; + final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); + pkg_ffi.calloc.free(b); + return copy; + } + + ffi.Pointer _Block_copy( + ffi.Pointer value, + ) { + return __Block_copy( + value, + ); + } + + late final __Block_copyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('_Block_copy'); + late final __Block_copy = __Block_copyPtr + .asFunction Function(ffi.Pointer)>(); + + void _Block_release( + ffi.Pointer value, + ) { + return __Block_release( + value, + ); + } + + late final __Block_releasePtr = + _lookup)>>( + '_Block_release'); + late final __Block_release = + __Block_releasePtr.asFunction)>(); + + late final _objc_releaseFinalizer11 = + ffi.NativeFinalizer(__Block_releasePtr.cast()); + late final _sel_setUserInfoValueProviderForDomain_provider_1 = + _registerName1("setUserInfoValueProviderForDomain:provider:"); + void _objc_msgSend_86( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer errorDomain, + ffi.Pointer<_ObjCBlock> provider, + ) { + return __objc_msgSend_86( + obj, + sel, + errorDomain, + provider, + ); + } + + late final __objc_msgSend_86Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_classFallbacksForKeyedArchiver1 = - _registerName1("classFallbacksForKeyedArchiver"); - ffi.Pointer _objc_msgSend_80( + late final _sel_userInfoValueProviderForDomain_1 = + _registerName1("userInfoValueProviderForDomain:"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_87( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer err, + ffi.Pointer userInfoKey, + ffi.Pointer errorDomain, ) { - return __objc_msgSend_80( + return __objc_msgSend_87( obj, sel, + err, + userInfoKey, + errorDomain, ); } - late final __objc_msgSend_80Ptr = _lookup< + late final __objc_msgSend_87Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = + _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); + void _objc_msgSend_88( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer dependentKey, + ) { + return __objc_msgSend_88( + obj, + sel, + keys, + dependentKey, + ); + } + + late final __objc_msgSend_88Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_classFallbacksForKeyedArchiver1 = + _registerName1("classFallbacksForKeyedArchiver"); late final _sel_classForKeyedUnarchiver1 = _registerName1("classForKeyedUnarchiver"); late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); - bool _objc_msgSend_81( + bool _objc_msgSend_89( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_81( + return __objc_msgSend_89( obj, sel, url, @@ -2067,14 +2353,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_81Ptr = _lookup< + late final __objc_msgSend_89Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< + late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -2082,13 +2368,13 @@ class SwiftLibrary { _registerName1("makeObjectsPerformSelector:"); late final _sel_makeObjectsPerformSelector_withObject_1 = _registerName1("makeObjectsPerformSelector:withObject:"); - void _objc_msgSend_82( + void _objc_msgSend_90( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer argument, ) { - return __objc_msgSend_82( + return __objc_msgSend_90( obj, sel, aSelector, @@ -2096,11 +2382,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_82Ptr = _lookup< + late final __objc_msgSend_90Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2109,68 +2395,68 @@ class SwiftLibrary { late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); late final _sel_indexSetWithIndexesInRange_1 = _registerName1("indexSetWithIndexesInRange:"); - instancetype _objc_msgSend_83( + instancetype _objc_msgSend_91( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_83( + return __objc_msgSend_91( obj, sel, range, ); } - late final __objc_msgSend_83Ptr = _lookup< + late final __objc_msgSend_91Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< instancetype Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_initWithIndexesInRange_1 = _registerName1("initWithIndexesInRange:"); late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); - instancetype _objc_msgSend_84( + instancetype _objc_msgSend_92( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_84( + return __objc_msgSend_92( obj, sel, indexSet, ); } - late final __objc_msgSend_84Ptr = _lookup< + late final __objc_msgSend_92Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); - bool _objc_msgSend_85( + bool _objc_msgSend_93( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_85( + return __objc_msgSend_93( obj, sel, indexSet, ); } - late final __objc_msgSend_85Ptr = _lookup< + late final __objc_msgSend_93Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2178,23 +2464,23 @@ class SwiftLibrary { late final _sel_lastIndex1 = _registerName1("lastIndex"); late final _sel_indexGreaterThanIndex_1 = _registerName1("indexGreaterThanIndex:"); - int _objc_msgSend_86( + int _objc_msgSend_94( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_86( + return __objc_msgSend_94( obj, sel, value, ); } - late final __objc_msgSend_86Ptr = _lookup< + late final __objc_msgSend_94Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); @@ -2204,14 +2490,14 @@ class SwiftLibrary { _registerName1("indexLessThanOrEqualToIndex:"); late final _sel_getIndexes_maxCount_inIndexRange_1 = _registerName1("getIndexes:maxCount:inIndexRange:"); - int _objc_msgSend_87( + int _objc_msgSend_95( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexBuffer, + ffi.Pointer indexBuffer, int bufferSize, - NSRangePointer range, + ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_87( + return __objc_msgSend_95( obj, sel, indexBuffer, @@ -2220,167 +2506,114 @@ class SwiftLibrary { ); } - late final __objc_msgSend_87Ptr = _lookup< + late final __objc_msgSend_95Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRangePointer)>(); + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_countOfIndexesInRange_1 = _registerName1("countOfIndexesInRange:"); - int _objc_msgSend_88( + int _objc_msgSend_96( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_88( + return __objc_msgSend_96( obj, sel, range, ); } - late final __objc_msgSend_88Ptr = _lookup< + late final __objc_msgSend_96Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_containsIndex_1 = _registerName1("containsIndex:"); - bool _objc_msgSend_89( + bool _objc_msgSend_97( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_89( + return __objc_msgSend_97( obj, sel, value, ); } - late final __objc_msgSend_89Ptr = _lookup< + late final __objc_msgSend_97Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_containsIndexesInRange_1 = _registerName1("containsIndexesInRange:"); - bool _objc_msgSend_90( + bool _objc_msgSend_98( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_90( + return __objc_msgSend_98( obj, sel, range, ); } - late final __objc_msgSend_90Ptr = _lookup< + late final __objc_msgSend_98Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); late final _sel_intersectsIndexesInRange_1 = _registerName1("intersectsIndexesInRange:"); - ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { - final d = - pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); - d.ref.size = ffi.sizeOf<_ObjCBlock>(); - return d; - } - - late final _objc_block_desc1 = _newBlockDesc1(); - late final _objc_concrete_global_block1 = - _lookup('_NSConcreteGlobalBlock'); - ffi.Pointer<_ObjCBlock> _newBlock1( - ffi.Pointer invoke, ffi.Pointer target) { - final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); - b.ref.isa = _objc_concrete_global_block1; - b.ref.invoke = invoke; - b.ref.target = target; - b.ref.descriptor = _objc_block_desc1; - final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); - pkg_ffi.calloc.free(b); - return copy; - } - - ffi.Pointer _Block_copy( - ffi.Pointer value, - ) { - return __Block_copy( - value, - ); - } - - late final __Block_copyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); - late final __Block_copy = __Block_copyPtr - .asFunction Function(ffi.Pointer)>(); - - void _Block_release( - ffi.Pointer value, - ) { - return __Block_release( - value, - ); - } - - late final __Block_releasePtr = - _lookup)>>( - '_Block_release'); - late final __Block_release = - __Block_releasePtr.asFunction)>(); - - late final _objc_releaseFinalizer11 = - ffi.NativeFinalizer(__Block_releasePtr.cast()); late final _sel_enumerateIndexesUsingBlock_1 = _registerName1("enumerateIndexesUsingBlock:"); - void _objc_msgSend_91( + void _objc_msgSend_99( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_91( + return __objc_msgSend_99( obj, sel, block, ); } - late final __objc_msgSend_91Ptr = _lookup< + late final __objc_msgSend_99Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesWithOptions_usingBlock_1 = _registerName1("enumerateIndexesWithOptions:usingBlock:"); - void _objc_msgSend_92( + void _objc_msgSend_100( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_92( + return __objc_msgSend_100( obj, sel, opts, @@ -2388,24 +2621,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_92Ptr = _lookup< + late final __objc_msgSend_100Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesInRange_options_usingBlock_1 = _registerName1("enumerateIndexesInRange:options:usingBlock:"); - void _objc_msgSend_93( + void _objc_msgSend_101( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_93( + return __objc_msgSend_101( obj, sel, range, @@ -2414,44 +2647,44 @@ class SwiftLibrary { ); } - late final __objc_msgSend_93Ptr = _lookup< + late final __objc_msgSend_101Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); - int _objc_msgSend_94( + int _objc_msgSend_102( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_94( + return __objc_msgSend_102( obj, sel, predicate, ); } - late final __objc_msgSend_94Ptr = _lookup< + late final __objc_msgSend_102Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexWithOptions_passingTest_1 = _registerName1("indexWithOptions:passingTest:"); - int _objc_msgSend_95( + int _objc_msgSend_103( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_95( + return __objc_msgSend_103( obj, sel, opts, @@ -2459,24 +2692,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_95Ptr = _lookup< + late final __objc_msgSend_103Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexInRange_options_passingTest_1 = _registerName1("indexInRange:options:passingTest:"); - int _objc_msgSend_96( + int _objc_msgSend_104( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_96( + return __objc_msgSend_104( obj, sel, range, @@ -2485,44 +2721,48 @@ class SwiftLibrary { ); } - late final __objc_msgSend_96Ptr = _lookup< + late final __objc_msgSend_104Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, NSRange, int, + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); - ffi.Pointer _objc_msgSend_97( + ffi.Pointer _objc_msgSend_105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_97( + return __objc_msgSend_105( obj, sel, predicate, ); } - late final __objc_msgSend_97Ptr = _lookup< + late final __objc_msgSend_105Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< + late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesWithOptions_passingTest_1 = _registerName1("indexesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_98( + ffi.Pointer _objc_msgSend_106( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_98( + return __objc_msgSend_106( obj, sel, opts, @@ -2530,27 +2770,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_98Ptr = _lookup< + late final __objc_msgSend_106Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesInRange_options_passingTest_1 = _registerName1("indexesInRange:options:passingTest:"); - ffi.Pointer _objc_msgSend_99( + ffi.Pointer _objc_msgSend_107( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_99( + return __objc_msgSend_107( obj, sel, range, @@ -2559,49 +2799,49 @@ class SwiftLibrary { ); } - late final __objc_msgSend_99Ptr = _lookup< + late final __objc_msgSend_107Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< + late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesUsingBlock_1 = _registerName1("enumerateRangesUsingBlock:"); - void _objc_msgSend_100( + void _objc_msgSend_108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_100( + return __objc_msgSend_108( obj, sel, block, ); } - late final __objc_msgSend_100Ptr = _lookup< + late final __objc_msgSend_108Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< + late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesWithOptions_usingBlock_1 = _registerName1("enumerateRangesWithOptions:usingBlock:"); - void _objc_msgSend_101( + void _objc_msgSend_109( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_101( + return __objc_msgSend_109( obj, sel, opts, @@ -2609,24 +2849,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_101Ptr = _lookup< + late final __objc_msgSend_109Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesInRange_options_usingBlock_1 = _registerName1("enumerateRangesInRange:options:usingBlock:"); - void _objc_msgSend_102( + void _objc_msgSend_110( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_102( + return __objc_msgSend_110( obj, sel, range, @@ -2635,32 +2875,32 @@ class SwiftLibrary { ); } - late final __objc_msgSend_102Ptr = _lookup< + late final __objc_msgSend_110Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); - ffi.Pointer _objc_msgSend_103( + ffi.Pointer _objc_msgSend_111( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_103( + return __objc_msgSend_111( obj, sel, indexes, ); } - late final __objc_msgSend_103Ptr = _lookup< + late final __objc_msgSend_111Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< + late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -2668,35 +2908,35 @@ class SwiftLibrary { _registerName1("objectAtIndexedSubscript:"); late final _sel_enumerateObjectsUsingBlock_1 = _registerName1("enumerateObjectsUsingBlock:"); - void _objc_msgSend_104( + void _objc_msgSend_112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_104( + return __objc_msgSend_112( obj, sel, block, ); } - late final __objc_msgSend_104Ptr = _lookup< + late final __objc_msgSend_112Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsWithOptions_usingBlock_1 = _registerName1("enumerateObjectsWithOptions:usingBlock:"); - void _objc_msgSend_105( + void _objc_msgSend_113( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_105( + return __objc_msgSend_113( obj, sel, opts, @@ -2704,24 +2944,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_105Ptr = _lookup< + late final __objc_msgSend_113Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< + late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); - void _objc_msgSend_106( + void _objc_msgSend_114( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_106( + return __objc_msgSend_114( obj, sel, s, @@ -2730,7 +2970,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_106Ptr = _lookup< + late final __objc_msgSend_114Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -2738,41 +2978,41 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectPassingTest_1 = _registerName1("indexOfObjectPassingTest:"); - int _objc_msgSend_107( + int _objc_msgSend_115( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_107( + return __objc_msgSend_115( obj, sel, predicate, ); } - late final __objc_msgSend_107Ptr = _lookup< + late final __objc_msgSend_115Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectWithOptions_passingTest_1 = _registerName1("indexOfObjectWithOptions:passingTest:"); - int _objc_msgSend_108( + int _objc_msgSend_116( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_108( + return __objc_msgSend_116( obj, sel, opts, @@ -2780,24 +3020,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_108Ptr = _lookup< + late final __objc_msgSend_116Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = _registerName1("indexOfObjectAtIndexes:options:passingTest:"); - int _objc_msgSend_109( + int _objc_msgSend_117( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_109( + return __objc_msgSend_117( obj, sel, s, @@ -2806,49 +3049,49 @@ class SwiftLibrary { ); } - late final __objc_msgSend_109Ptr = _lookup< + late final __objc_msgSend_117Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< + late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsPassingTest_1 = _registerName1("indexesOfObjectsPassingTest:"); - ffi.Pointer _objc_msgSend_110( + ffi.Pointer _objc_msgSend_118( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_110( + return __objc_msgSend_118( obj, sel, predicate, ); } - late final __objc_msgSend_110Ptr = _lookup< + late final __objc_msgSend_118Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsWithOptions_passingTest_1 = _registerName1("indexesOfObjectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_111( + ffi.Pointer _objc_msgSend_119( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_111( + return __objc_msgSend_119( obj, sel, opts, @@ -2856,27 +3099,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_111Ptr = _lookup< + late final __objc_msgSend_119Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< + late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); - ffi.Pointer _objc_msgSend_112( + ffi.Pointer _objc_msgSend_120( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_112( + return __objc_msgSend_120( obj, sel, s, @@ -2885,7 +3128,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_112Ptr = _lookup< + late final __objc_msgSend_120Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -2893,7 +3136,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< + late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -2903,35 +3146,35 @@ class SwiftLibrary { late final _sel_sortedArrayUsingComparator_1 = _registerName1("sortedArrayUsingComparator:"); - ffi.Pointer _objc_msgSend_113( + ffi.Pointer _objc_msgSend_121( ffi.Pointer obj, ffi.Pointer sel, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_113( + return __objc_msgSend_121( obj, sel, cmptr, ); } - late final __objc_msgSend_113Ptr = _lookup< + late final __objc_msgSend_121Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSComparator)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortedArrayWithOptions_usingComparator_1 = _registerName1("sortedArrayWithOptions:usingComparator:"); - ffi.Pointer _objc_msgSend_114( + ffi.Pointer _objc_msgSend_122( ffi.Pointer obj, ffi.Pointer sel, int opts, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_114( + return __objc_msgSend_122( obj, sel, opts, @@ -2939,25 +3182,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_114Ptr = _lookup< + late final __objc_msgSend_122Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, NSComparator)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); - int _objc_msgSend_115( + int _objc_msgSend_123( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, - NSRange r, + _NSRange r, int opts, - NSComparator cmp, + ffi.Pointer<_ObjCBlock> cmp, ) { - return __objc_msgSend_115( + return __objc_msgSend_123( obj, sel, obj1, @@ -2967,36 +3213,76 @@ class SwiftLibrary { ); } - late final __objc_msgSend_115Ptr = _lookup< + late final __objc_msgSend_123Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Int32, - NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, int, NSComparator)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_array1 = _registerName1("array"); late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); - late final _sel_arrayWithObjects_count_1 = - _registerName1("arrayWithObjects:count:"); - late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); - late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); - late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); - late final _sel_initWithArray_1 = _registerName1("initWithArray:"); - late final _sel_initWithArray_copyItems_1 = - _registerName1("initWithArray:copyItems:"); - instancetype _objc_msgSend_116( + instancetype _objc_msgSend_124( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer array, - bool flag, + ffi.Pointer anObject, ) { - return __objc_msgSend_116( + return __objc_msgSend_124( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_124Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_arrayWithObjects_count_1 = + _registerName1("arrayWithObjects:count:"); + late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); + late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); + instancetype _objc_msgSend_125( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + ) { + return __objc_msgSend_125( + obj, + sel, + array, + ); + } + + late final __objc_msgSend_125Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); + late final _sel_initWithArray_1 = _registerName1("initWithArray:"); + late final _sel_initWithArray_copyItems_1 = + _registerName1("initWithArray:copyItems:"); + instancetype _objc_msgSend_126( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + bool flag, + ) { + return __objc_msgSend_126( obj, sel, array, @@ -3004,23 +3290,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_116Ptr = _lookup< + late final __objc_msgSend_126Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithContentsOfURL_error_1 = _registerName1("initWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_117( + ffi.Pointer _objc_msgSend_127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_117( + return __objc_msgSend_127( obj, sel, url, @@ -3028,14 +3314,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_117Ptr = _lookup< + late final __objc_msgSend_127Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< + late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3044,68 +3330,153 @@ class SwiftLibrary { late final _sel_arrayWithContentsOfURL_error_1 = _registerName1("arrayWithContentsOfURL:error:"); + late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = + _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_128( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_128( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_128Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_differenceFromArray_withOptions_1 = + _registerName1("differenceFromArray:withOptions:"); + ffi.Pointer _objc_msgSend_129( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ) { + return __objc_msgSend_129( + obj, + sel, + other, + options, + ); + } + + late final __objc_msgSend_129Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_differenceFromArray_1 = + _registerName1("differenceFromArray:"); + late final _sel_arrayByApplyingDifference_1 = + _registerName1("arrayByApplyingDifference:"); + ffi.Pointer _objc_msgSend_130( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer difference, + ) { + return __objc_msgSend_130( + obj, + sel, + difference, + ); + } + + late final __objc_msgSend_130Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_getObjects_1 = _registerName1("getObjects:"); - void _objc_msgSend_118( + void _objc_msgSend_131( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ) { - return __objc_msgSend_118( + return __objc_msgSend_131( obj, sel, objects, ); } - late final __objc_msgSend_118Ptr = _lookup< + late final __objc_msgSend_131Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< + late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_arrayWithContentsOfFile_1 = _registerName1("arrayWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_119( + ffi.Pointer _objc_msgSend_132( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_119( + return __objc_msgSend_132( obj, sel, path, ); } - late final __objc_msgSend_119Ptr = _lookup< + late final __objc_msgSend_132Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< + late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayWithContentsOfURL_1 = _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_120( + ffi.Pointer _objc_msgSend_133( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_120( + return __objc_msgSend_133( obj, sel, url, ); } - late final __objc_msgSend_120Ptr = _lookup< + late final __objc_msgSend_133Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< + late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3115,13 +3486,13 @@ class SwiftLibrary { _registerName1("initWithContentsOfURL:"); late final _sel_writeToURL_atomically_1 = _registerName1("writeToURL:atomically:"); - bool _objc_msgSend_121( + bool _objc_msgSend_134( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, bool atomically, ) { - return __objc_msgSend_121( + return __objc_msgSend_134( obj, sel, url, @@ -3129,11 +3500,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_121Ptr = _lookup< + late final __objc_msgSend_134Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -3141,13 +3512,13 @@ class SwiftLibrary { _registerName1("pathsMatchingExtensions:"); late final _sel_valueForKey_1 = _registerName1("valueForKey:"); late final _sel_setValue_forKey_1 = _registerName1("setValue:forKey:"); - void _objc_msgSend_122( + void _objc_msgSend_135( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ) { - return __objc_msgSend_122( + return __objc_msgSend_135( obj, sel, value, @@ -3155,21 +3526,21 @@ class SwiftLibrary { ); } - late final __objc_msgSend_122Ptr = _lookup< + late final __objc_msgSend_135Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1 = _registerName1( "addObserver:toObjectsAtIndexes:forKeyPath:options:context:"); - void _objc_msgSend_123( + void _objc_msgSend_136( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3178,7 +3549,7 @@ class SwiftLibrary { int options, ffi.Pointer context, ) { - return __objc_msgSend_123( + return __objc_msgSend_136( obj, sel, observer, @@ -3189,7 +3560,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_123Ptr = _lookup< + late final __objc_msgSend_136Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3199,7 +3570,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< + late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3211,7 +3582,7 @@ class SwiftLibrary { late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1 = _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); - void _objc_msgSend_124( + void _objc_msgSend_137( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3219,7 +3590,7 @@ class SwiftLibrary { ffi.Pointer keyPath, ffi.Pointer context, ) { - return __objc_msgSend_124( + return __objc_msgSend_137( obj, sel, observer, @@ -3229,7 +3600,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_124Ptr = _lookup< + late final __objc_msgSend_137Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3238,7 +3609,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3249,14 +3620,14 @@ class SwiftLibrary { late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1 = _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:"); - void _objc_msgSend_125( + void _objc_msgSend_138( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer indexes, ffi.Pointer keyPath, ) { - return __objc_msgSend_125( + return __objc_msgSend_138( obj, sel, observer, @@ -3265,7 +3636,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_125Ptr = _lookup< + late final __objc_msgSend_138Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3273,7 +3644,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3283,7 +3654,7 @@ class SwiftLibrary { late final _sel_addObserver_forKeyPath_options_context_1 = _registerName1("addObserver:forKeyPath:options:context:"); - void _objc_msgSend_126( + void _objc_msgSend_139( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -3291,7 +3662,7 @@ class SwiftLibrary { int options, ffi.Pointer context, ) { - return __objc_msgSend_126( + return __objc_msgSend_139( obj, sel, observer, @@ -3301,7 +3672,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_126Ptr = _lookup< + late final __objc_msgSend_139Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3310,7 +3681,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< + late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3321,14 +3692,14 @@ class SwiftLibrary { late final _sel_removeObserver_forKeyPath_context_1 = _registerName1("removeObserver:forKeyPath:context:"); - void _objc_msgSend_127( + void _objc_msgSend_140( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer keyPath, ffi.Pointer context, ) { - return __objc_msgSend_127( + return __objc_msgSend_140( obj, sel, observer, @@ -3337,7 +3708,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_127Ptr = _lookup< + late final __objc_msgSend_140Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -3345,7 +3716,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< + late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3355,13 +3726,13 @@ class SwiftLibrary { late final _sel_removeObserver_forKeyPath_1 = _registerName1("removeObserver:forKeyPath:"); - void _objc_msgSend_128( + void _objc_msgSend_141( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer keyPath, ) { - return __objc_msgSend_128( + return __objc_msgSend_141( obj, sel, observer, @@ -3369,14 +3740,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_128Ptr = _lookup< + late final __objc_msgSend_141Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3385,13 +3756,13 @@ class SwiftLibrary { late final _class_NSPredicate1 = _getClass1("NSPredicate"); late final _sel_predicateWithFormat_argumentArray_1 = _registerName1("predicateWithFormat:argumentArray:"); - ffi.Pointer _objc_msgSend_129( + ffi.Pointer _objc_msgSend_142( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ffi.Pointer arguments, ) { - return __objc_msgSend_129( + return __objc_msgSend_142( obj, sel, predicateFormat, @@ -3399,14 +3770,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_129Ptr = _lookup< + late final __objc_msgSend_142Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3415,35 +3786,35 @@ class SwiftLibrary { late final _sel_predicateWithFormat_1 = _registerName1("predicateWithFormat:"); - ffi.Pointer _objc_msgSend_130( + ffi.Pointer _objc_msgSend_143( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ) { - return __objc_msgSend_130( + return __objc_msgSend_143( obj, sel, predicateFormat, ); } - late final __objc_msgSend_130Ptr = _lookup< + late final __objc_msgSend_143Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_predicateWithFormat_arguments_1 = _registerName1("predicateWithFormat:arguments:"); - ffi.Pointer _objc_msgSend_131( + ffi.Pointer _objc_msgSend_144( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_131( + return __objc_msgSend_144( obj, sel, predicateFormat, @@ -3451,14 +3822,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_131Ptr = _lookup< + late final __objc_msgSend_144Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3467,24 +3838,44 @@ class SwiftLibrary { late final _sel_predicateFromMetadataQueryString_1 = _registerName1("predicateFromMetadataQueryString:"); + ffi.Pointer _objc_msgSend_145( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer queryString, + ) { + return __objc_msgSend_145( + obj, + sel, + queryString, + ); + } + + late final __objc_msgSend_145Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_predicateWithValue_1 = _registerName1("predicateWithValue:"); - ffi.Pointer _objc_msgSend_132( + ffi.Pointer _objc_msgSend_146( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_132( + return __objc_msgSend_146( obj, sel, value, ); } - late final __objc_msgSend_132Ptr = _lookup< + late final __objc_msgSend_146Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< + late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -3493,14 +3884,14 @@ class SwiftLibrary { late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); late final _sel_initWithObjects_forKeys_count_1 = _registerName1("initWithObjects:forKeys:count:"); - instancetype _objc_msgSend_133( + instancetype _objc_msgSend_147( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int cnt, ) { - return __objc_msgSend_133( + return __objc_msgSend_147( obj, sel, objects, @@ -3509,15 +3900,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_133Ptr = _lookup< + late final __objc_msgSend_147Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -3532,35 +3923,35 @@ class SwiftLibrary { _registerName1("descriptionInStringsFileFormat"); late final _sel_isEqualToDictionary_1 = _registerName1("isEqualToDictionary:"); - bool _objc_msgSend_134( + bool _objc_msgSend_148( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_134( + return __objc_msgSend_148( obj, sel, otherDictionary, ); } - late final __objc_msgSend_134Ptr = _lookup< + late final __objc_msgSend_148Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< + late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_objectsForKeys_notFoundMarker_1 = _registerName1("objectsForKeys:notFoundMarker:"); - ffi.Pointer _objc_msgSend_135( + ffi.Pointer _objc_msgSend_149( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer marker, ) { - return __objc_msgSend_135( + return __objc_msgSend_149( obj, sel, keys, @@ -3568,14 +3959,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_135Ptr = _lookup< + late final __objc_msgSend_149Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< + late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3586,14 +3977,14 @@ class SwiftLibrary { _registerName1("keysSortedByValueUsingSelector:"); late final _sel_getObjects_andKeys_count_1 = _registerName1("getObjects:andKeys:count:"); - void _objc_msgSend_136( + void _objc_msgSend_150( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int count, ) { - return __objc_msgSend_136( + return __objc_msgSend_150( obj, sel, objects, @@ -3602,15 +3993,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_136Ptr = _lookup< + late final __objc_msgSend_150Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3622,35 +4013,35 @@ class SwiftLibrary { _registerName1("objectForKeyedSubscript:"); late final _sel_enumerateKeysAndObjectsUsingBlock_1 = _registerName1("enumerateKeysAndObjectsUsingBlock:"); - void _objc_msgSend_137( + void _objc_msgSend_151( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_137( + return __objc_msgSend_151( obj, sel, block, ); } - late final __objc_msgSend_137Ptr = _lookup< + late final __objc_msgSend_151Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< + late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); - void _objc_msgSend_138( + void _objc_msgSend_152( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_138( + return __objc_msgSend_152( obj, sel, opts, @@ -3658,11 +4049,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_138Ptr = _lookup< + late final __objc_msgSend_152Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -3670,14 +4061,63 @@ class SwiftLibrary { _registerName1("keysSortedByValueUsingComparator:"); late final _sel_keysSortedByValueWithOptions_usingComparator_1 = _registerName1("keysSortedByValueWithOptions:usingComparator:"); + late final _sel_keysOfEntriesPassingTest_1 = + _registerName1("keysOfEntriesPassingTest:"); + ffi.Pointer _objc_msgSend_153( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_153( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_153Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_keysOfEntriesWithOptions_passingTest_1 = + _registerName1("keysOfEntriesWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_154( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_154( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_154Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); - void _objc_msgSend_139( + void _objc_msgSend_155( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, ) { - return __objc_msgSend_139( + return __objc_msgSend_155( obj, sel, objects, @@ -3685,14 +4125,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_139Ptr = _lookup< + late final __objc_msgSend_155Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< + late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -3701,58 +4141,58 @@ class SwiftLibrary { late final _sel_dictionaryWithContentsOfFile_1 = _registerName1("dictionaryWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_140( + ffi.Pointer _objc_msgSend_156( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_140( + return __objc_msgSend_156( obj, sel, path, ); } - late final __objc_msgSend_140Ptr = _lookup< + late final __objc_msgSend_156Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< + late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithContentsOfURL_1 = _registerName1("dictionaryWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_141( + ffi.Pointer _objc_msgSend_157( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_141( + return __objc_msgSend_157( obj, sel, url, ); } - late final __objc_msgSend_141Ptr = _lookup< + late final __objc_msgSend_157Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< + late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionary1 = _registerName1("dictionary"); late final _sel_dictionaryWithObject_forKey_1 = _registerName1("dictionaryWithObject:forKey:"); - instancetype _objc_msgSend_142( + instancetype _objc_msgSend_158( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer key, ) { - return __objc_msgSend_142( + return __objc_msgSend_158( obj, sel, object, @@ -3760,14 +4200,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_142Ptr = _lookup< + late final __objc_msgSend_158Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< + late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3777,35 +4217,35 @@ class SwiftLibrary { _registerName1("dictionaryWithObjectsAndKeys:"); late final _sel_dictionaryWithDictionary_1 = _registerName1("dictionaryWithDictionary:"); - instancetype _objc_msgSend_143( + instancetype _objc_msgSend_159( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_143( + return __objc_msgSend_159( obj, sel, dict, ); } - late final __objc_msgSend_143Ptr = _lookup< + late final __objc_msgSend_159Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< + late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithObjects_forKeys_1 = _registerName1("dictionaryWithObjects:forKeys:"); - instancetype _objc_msgSend_144( + instancetype _objc_msgSend_160( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer keys, ) { - return __objc_msgSend_144( + return __objc_msgSend_160( obj, sel, objects, @@ -3813,14 +4253,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_144Ptr = _lookup< + late final __objc_msgSend_160Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -3829,13 +4269,13 @@ class SwiftLibrary { late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); late final _sel_initWithDictionary_copyItems_1 = _registerName1("initWithDictionary:copyItems:"); - instancetype _objc_msgSend_145( + instancetype _objc_msgSend_161( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, bool flag, ) { - return __objc_msgSend_145( + return __objc_msgSend_161( obj, sel, otherDictionary, @@ -3843,23 +4283,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_145Ptr = _lookup< + late final __objc_msgSend_161Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithObjects_forKeys_1 = _registerName1("initWithObjects:forKeys:"); - ffi.Pointer _objc_msgSend_146( + ffi.Pointer _objc_msgSend_162( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_146( + return __objc_msgSend_162( obj, sel, url, @@ -3867,14 +4307,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_146Ptr = _lookup< + late final __objc_msgSend_162Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< + late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3887,14 +4327,14 @@ class SwiftLibrary { _registerName1("sharedKeySetForKeys:"); late final _sel_countByEnumeratingWithState_objects_count_1 = _registerName1("countByEnumeratingWithState:objects:count:"); - int _objc_msgSend_147( + int _objc_msgSend_163( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer state, ffi.Pointer> buffer, int len, ) { - return __objc_msgSend_147( + return __objc_msgSend_163( obj, sel, state, @@ -3903,15 +4343,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_147Ptr = _lookup< + late final __objc_msgSend_163Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -3920,84 +4360,84 @@ class SwiftLibrary { int)>(); late final _sel_fileSize1 = _registerName1("fileSize"); - int _objc_msgSend_148( + int _objc_msgSend_164( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_148( + return __objc_msgSend_164( obj, sel, ); } - late final __objc_msgSend_148Ptr = _lookup< + late final __objc_msgSend_164Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< + late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_NSDate1 = _getClass1("NSDate"); late final _sel_timeIntervalSinceReferenceDate1 = _registerName1("timeIntervalSinceReferenceDate"); - double _objc_msgSend_149( + double _objc_msgSend_165( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_149( + return __objc_msgSend_165( obj, sel, ); } - late final __objc_msgSend_149Ptr = _lookup< + late final __objc_msgSend_165Ptr = _lookup< ffi.NativeFunction< - NSTimeInterval Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTimeIntervalSinceReferenceDate_1 = _registerName1("initWithTimeIntervalSinceReferenceDate:"); - instancetype _objc_msgSend_150( + instancetype _objc_msgSend_166( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_150( + return __objc_msgSend_166( obj, sel, ti, ); } - late final __objc_msgSend_150Ptr = _lookup< + late final __objc_msgSend_166Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_timeIntervalSinceDate_1 = _registerName1("timeIntervalSinceDate:"); - double _objc_msgSend_151( + double _objc_msgSend_167( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_151( + return __objc_msgSend_167( obj, sel, anotherDate, ); } - late final __objc_msgSend_151Ptr = _lookup< + late final __objc_msgSend_167Ptr = _lookup< ffi.NativeFunction< - NSTimeInterval Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + ffi.Double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4009,66 +4449,66 @@ class SwiftLibrary { late final _sel_dateByAddingTimeInterval_1 = _registerName1("dateByAddingTimeInterval:"); late final _sel_earlierDate_1 = _registerName1("earlierDate:"); - ffi.Pointer _objc_msgSend_152( + ffi.Pointer _objc_msgSend_168( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_152( + return __objc_msgSend_168( obj, sel, anotherDate, ); } - late final __objc_msgSend_152Ptr = _lookup< + late final __objc_msgSend_168Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< + late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_laterDate_1 = _registerName1("laterDate:"); late final _sel_compare_1 = _registerName1("compare:"); - int _objc_msgSend_153( + int _objc_msgSend_169( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_153( + return __objc_msgSend_169( obj, sel, other, ); } - late final __objc_msgSend_153Ptr = _lookup< + late final __objc_msgSend_169Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); - bool _objc_msgSend_154( + bool _objc_msgSend_170( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDate, ) { - return __objc_msgSend_154( + return __objc_msgSend_170( obj, sel, otherDate, ); } - late final __objc_msgSend_154Ptr = _lookup< + late final __objc_msgSend_170Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4081,13 +4521,13 @@ class SwiftLibrary { _registerName1("dateWithTimeIntervalSince1970:"); late final _sel_dateWithTimeInterval_sinceDate_1 = _registerName1("dateWithTimeInterval:sinceDate:"); - instancetype _objc_msgSend_155( + instancetype _objc_msgSend_171( ffi.Pointer obj, ffi.Pointer sel, double secsToBeAdded, ffi.Pointer date, ) { - return __objc_msgSend_155( + return __objc_msgSend_171( obj, sel, secsToBeAdded, @@ -4095,30 +4535,30 @@ class SwiftLibrary { ); } - late final __objc_msgSend_155Ptr = _lookup< + late final __objc_msgSend_171Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< + ffi.Double, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_distantFuture1 = _registerName1("distantFuture"); - ffi.Pointer _objc_msgSend_156( + ffi.Pointer _objc_msgSend_172( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_156( + return __objc_msgSend_172( obj, sel, ); } - late final __objc_msgSend_156Ptr = _lookup< + late final __objc_msgSend_172Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< + late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4132,13 +4572,13 @@ class SwiftLibrary { _registerName1("initWithTimeInterval:sinceDate:"); late final _sel_dateWithNaturalLanguageString_locale_1 = _registerName1("dateWithNaturalLanguageString:locale:"); - ffi.Pointer _objc_msgSend_157( + ffi.Pointer _objc_msgSend_173( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer locale, ) { - return __objc_msgSend_157( + return __objc_msgSend_173( obj, sel, string, @@ -4146,14 +4586,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_157Ptr = _lookup< + late final __objc_msgSend_173Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< + late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4167,14 +4607,14 @@ class SwiftLibrary { late final _sel_calendarDate1 = _registerName1("calendarDate"); late final _sel_dateWithString_calendarFormat_locale_1 = _registerName1("dateWithString:calendarFormat:locale:"); - ffi.Pointer _objc_msgSend_158( + ffi.Pointer _objc_msgSend_174( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer format, ffi.Pointer locale, ) { - return __objc_msgSend_158( + return __objc_msgSend_174( obj, sel, description, @@ -4183,7 +4623,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_158Ptr = _lookup< + late final __objc_msgSend_174Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -4191,7 +4631,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4201,13 +4641,13 @@ class SwiftLibrary { late final _sel_dateWithString_calendarFormat_1 = _registerName1("dateWithString:calendarFormat:"); - ffi.Pointer _objc_msgSend_159( + ffi.Pointer _objc_msgSend_175( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer format, ) { - return __objc_msgSend_159( + return __objc_msgSend_175( obj, sel, description, @@ -4215,14 +4655,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_159Ptr = _lookup< + late final __objc_msgSend_175Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< + late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4234,45 +4674,45 @@ class SwiftLibrary { late final _sel_data1 = _registerName1("data"); late final _sel_secondsFromGMTForDate_1 = _registerName1("secondsFromGMTForDate:"); - int _objc_msgSend_160( + int _objc_msgSend_176( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aDate, ) { - return __objc_msgSend_160( + return __objc_msgSend_176( obj, sel, aDate, ); } - late final __objc_msgSend_160Ptr = _lookup< + late final __objc_msgSend_176Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< + late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_abbreviationForDate_1 = _registerName1("abbreviationForDate:"); - ffi.Pointer _objc_msgSend_161( + ffi.Pointer _objc_msgSend_177( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aDate, ) { - return __objc_msgSend_161( + return __objc_msgSend_177( obj, sel, aDate, ); } - late final __objc_msgSend_161Ptr = _lookup< + late final __objc_msgSend_177Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< + late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4282,45 +4722,65 @@ class SwiftLibrary { _registerName1("daylightSavingTimeOffsetForDate:"); late final _sel_nextDaylightSavingTimeTransitionAfterDate_1 = _registerName1("nextDaylightSavingTimeTransitionAfterDate:"); - late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); - ffi.Pointer _objc_msgSend_162( + ffi.Pointer _objc_msgSend_178( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer aDate, ) { - return __objc_msgSend_162( + return __objc_msgSend_178( obj, sel, + aDate, ); } - late final __objc_msgSend_162Ptr = _lookup< + late final __objc_msgSend_178Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); - late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); - late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); - void _objc_msgSend_163( + late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); + ffi.Pointer _objc_msgSend_179( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, ) { - return __objc_msgSend_163( + return __objc_msgSend_179( + obj, + sel, + ); + } + + late final __objc_msgSend_179Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); + late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); + late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); + void _objc_msgSend_180( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_180( obj, sel, value, ); } - late final __objc_msgSend_163Ptr = _lookup< + late final __objc_msgSend_180Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4328,43 +4788,43 @@ class SwiftLibrary { late final _sel_knownTimeZoneNames1 = _registerName1("knownTimeZoneNames"); late final _sel_abbreviationDictionary1 = _registerName1("abbreviationDictionary"); - ffi.Pointer _objc_msgSend_164( + ffi.Pointer _objc_msgSend_181( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_164( + return __objc_msgSend_181( obj, sel, ); } - late final __objc_msgSend_164Ptr = _lookup< + late final __objc_msgSend_181Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setAbbreviationDictionary_1 = _registerName1("setAbbreviationDictionary:"); - void _objc_msgSend_165( + void _objc_msgSend_182( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_165( + return __objc_msgSend_182( obj, sel, value, ); } - late final __objc_msgSend_165Ptr = _lookup< + late final __objc_msgSend_182Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4377,37 +4837,55 @@ class SwiftLibrary { _registerName1("daylightSavingTimeOffset"); late final _sel_nextDaylightSavingTimeTransition1 = _registerName1("nextDaylightSavingTimeTransition"); + ffi.Pointer _objc_msgSend_183( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_183( + obj, + sel, + ); + } + + late final __objc_msgSend_183Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_isEqualToTimeZone_1 = _registerName1("isEqualToTimeZone:"); - bool _objc_msgSend_166( + bool _objc_msgSend_184( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_166( + return __objc_msgSend_184( obj, sel, aTimeZone, ); } - late final __objc_msgSend_166Ptr = _lookup< + late final __objc_msgSend_184Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< + late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSLocale1 = _getClass1("NSLocale"); late final _sel_displayNameForKey_value_1 = _registerName1("displayNameForKey:value:"); - ffi.Pointer _objc_msgSend_167( + ffi.Pointer _objc_msgSend_185( ffi.Pointer obj, ffi.Pointer sel, - NSLocaleKey key, + ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_167( + return __objc_msgSend_185( obj, sel, key, @@ -4415,16 +4893,19 @@ class SwiftLibrary { ); } - late final __objc_msgSend_167Ptr = _lookup< + late final __objc_msgSend_185Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSLocaleKey, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSLocaleKey, ffi.Pointer)>(); + late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); late final _sel_initWithLocaleIdentifier_1 = _registerName1("initWithLocaleIdentifier:"); @@ -4434,9 +4915,31 @@ class SwiftLibrary { late final _sel_languageCode1 = _registerName1("languageCode"); late final _sel_localizedStringForLanguageCode_1 = _registerName1("localizedStringForLanguageCode:"); + ffi.Pointer _objc_msgSend_186( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer languageCode, + ) { + return __objc_msgSend_186( + obj, + sel, + languageCode, + ); + } + + late final __objc_msgSend_186Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_languageIdentifier1 = _registerName1("languageIdentifier"); late final _sel_countryCode1 = _registerName1("countryCode"); late final _sel_localizedStringForCountryCode_1 = _registerName1("localizedStringForCountryCode:"); + late final _sel_regionCode1 = _registerName1("regionCode"); late final _sel_scriptCode1 = _registerName1("scriptCode"); late final _sel_localizedStringForScriptCode_1 = _registerName1("localizedStringForScriptCode:"); @@ -4445,21 +4948,21 @@ class SwiftLibrary { _registerName1("localizedStringForVariantCode:"); late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); - ffi.Pointer _objc_msgSend_168( + ffi.Pointer _objc_msgSend_187( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_168( + return __objc_msgSend_187( obj, sel, ); } - late final __objc_msgSend_168Ptr = _lookup< + late final __objc_msgSend_187Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4488,90 +4991,130 @@ class SwiftLibrary { late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); late final _sel_characterSetWithRange_1 = _registerName1("characterSetWithRange:"); - ffi.Pointer _objc_msgSend_169( + ffi.Pointer _objc_msgSend_188( ffi.Pointer obj, ffi.Pointer sel, - NSRange aRange, + _NSRange aRange, ) { - return __objc_msgSend_169( + return __objc_msgSend_188( obj, sel, aRange, ); } - late final __objc_msgSend_169Ptr = _lookup< + late final __objc_msgSend_188Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_characterSetWithCharactersInString_1 = _registerName1("characterSetWithCharactersInString:"); - ffi.Pointer _objc_msgSend_170( + ffi.Pointer _objc_msgSend_189( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, ) { - return __objc_msgSend_170( + return __objc_msgSend_189( obj, sel, aString, ); } - late final __objc_msgSend_170Ptr = _lookup< + late final __objc_msgSend_189Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< + late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithBitmapRepresentation_1 = _registerName1("characterSetWithBitmapRepresentation:"); - ffi.Pointer _objc_msgSend_171( + ffi.Pointer _objc_msgSend_190( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_171( + return __objc_msgSend_190( obj, sel, data, ); } - late final __objc_msgSend_171Ptr = _lookup< + late final __objc_msgSend_190Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< + late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithContentsOfFile_1 = _registerName1("characterSetWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_191( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fName, + ) { + return __objc_msgSend_191( + obj, + sel, + fName, + ); + } + + late final __objc_msgSend_191Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + instancetype _objc_msgSend_192( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, + ) { + return __objc_msgSend_192( + obj, + sel, + coder, + ); + } + + late final __objc_msgSend_192Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); - bool _objc_msgSend_172( + bool _objc_msgSend_193( ffi.Pointer obj, ffi.Pointer sel, int aCharacter, ) { - return __objc_msgSend_172( + return __objc_msgSend_193( obj, sel, aCharacter, ); } - late final __objc_msgSend_172Ptr = _lookup< + late final __objc_msgSend_193Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - unichar)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< + ffi.UnsignedShort)>>('objc_msgSend'); + late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_bitmapRepresentation1 = @@ -4579,64 +5122,64 @@ class SwiftLibrary { late final _sel_invertedSet1 = _registerName1("invertedSet"); late final _sel_longCharacterIsMember_1 = _registerName1("longCharacterIsMember:"); - bool _objc_msgSend_173( + bool _objc_msgSend_194( ffi.Pointer obj, ffi.Pointer sel, int theLongChar, ) { - return __objc_msgSend_173( + return __objc_msgSend_194( obj, sel, theLongChar, ); } - late final __objc_msgSend_173Ptr = _lookup< + late final __objc_msgSend_194Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - UTF32Char)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); - bool _objc_msgSend_174( + bool _objc_msgSend_195( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer theOtherSet, ) { - return __objc_msgSend_174( + return __objc_msgSend_195( obj, sel, theOtherSet, ); } - late final __objc_msgSend_174Ptr = _lookup< + late final __objc_msgSend_195Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< + late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); - bool _objc_msgSend_175( + bool _objc_msgSend_196( ffi.Pointer obj, ffi.Pointer sel, int thePlane, ) { - return __objc_msgSend_175( + return __objc_msgSend_196( obj, sel, thePlane, ); } - late final __objc_msgSend_175Ptr = _lookup< + late final __objc_msgSend_196Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Uint8)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_URLUserAllowedCharacterSet1 = @@ -4679,21 +5222,21 @@ class SwiftLibrary { _registerName1("alternateQuotationEndDelimiter"); late final _sel_autoupdatingCurrentLocale1 = _registerName1("autoupdatingCurrentLocale"); - ffi.Pointer _objc_msgSend_176( + ffi.Pointer _objc_msgSend_197( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_176( + return __objc_msgSend_197( obj, sel, ); } - late final __objc_msgSend_176Ptr = _lookup< + late final __objc_msgSend_197Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4711,25 +5254,45 @@ class SwiftLibrary { late final _sel_preferredLanguages1 = _registerName1("preferredLanguages"); late final _sel_componentsFromLocaleIdentifier_1 = _registerName1("componentsFromLocaleIdentifier:"); + ffi.Pointer _objc_msgSend_198( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ) { + return __objc_msgSend_198( + obj, + sel, + string, + ); + } + + late final __objc_msgSend_198Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_localeIdentifierFromComponents_1 = _registerName1("localeIdentifierFromComponents:"); - ffi.Pointer _objc_msgSend_177( + ffi.Pointer _objc_msgSend_199( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_177( + return __objc_msgSend_199( obj, sel, dict, ); } - late final __objc_msgSend_177Ptr = _lookup< + late final __objc_msgSend_199Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< + late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4739,67 +5302,67 @@ class SwiftLibrary { _registerName1("canonicalLanguageIdentifierFromString:"); late final _sel_localeIdentifierFromWindowsLocaleCode_1 = _registerName1("localeIdentifierFromWindowsLocaleCode:"); - ffi.Pointer _objc_msgSend_178( + ffi.Pointer _objc_msgSend_200( ffi.Pointer obj, ffi.Pointer sel, int lcid, ) { - return __objc_msgSend_178( + return __objc_msgSend_200( obj, sel, lcid, ); } - late final __objc_msgSend_178Ptr = _lookup< + late final __objc_msgSend_200Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Uint32)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = _registerName1("windowsLocaleCodeFromLocaleIdentifier:"); - int _objc_msgSend_179( + int _objc_msgSend_201( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localeIdentifier, ) { - return __objc_msgSend_179( + return __objc_msgSend_201( obj, sel, localeIdentifier, ); } - late final __objc_msgSend_179Ptr = _lookup< + late final __objc_msgSend_201Ptr = _lookup< ffi.NativeFunction< ffi.Uint32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterDirectionForLanguage_1 = _registerName1("characterDirectionForLanguage:"); - int _objc_msgSend_180( + int _objc_msgSend_202( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer isoLangCode, ) { - return __objc_msgSend_180( + return __objc_msgSend_202( obj, sel, isoLangCode, ); } - late final __objc_msgSend_180Ptr = _lookup< + late final __objc_msgSend_202Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< + late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4807,13 +5370,13 @@ class SwiftLibrary { _registerName1("lineDirectionForLanguage:"); late final _sel_localizedName_locale_1 = _registerName1("localizedName:locale:"); - ffi.Pointer _objc_msgSend_181( + ffi.Pointer _objc_msgSend_203( ffi.Pointer obj, ffi.Pointer sel, int style, ffi.Pointer locale, ) { - return __objc_msgSend_181( + return __objc_msgSend_203( obj, sel, style, @@ -4821,27 +5384,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_181Ptr = _lookup< + late final __objc_msgSend_203Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< + late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_timeZoneWithName_1 = _registerName1("timeZoneWithName:"); late final _sel_timeZoneWithName_data_1 = _registerName1("timeZoneWithName:data:"); - instancetype _objc_msgSend_182( + instancetype _objc_msgSend_204( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tzName, ffi.Pointer aData, ) { - return __objc_msgSend_182( + return __objc_msgSend_204( obj, sel, tzName, @@ -4849,14 +5412,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_182Ptr = _lookup< + late final __objc_msgSend_204Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< + late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4864,23 +5427,23 @@ class SwiftLibrary { late final _sel_initWithName_data_1 = _registerName1("initWithName:data:"); late final _sel_timeZoneForSecondsFromGMT_1 = _registerName1("timeZoneForSecondsFromGMT:"); - instancetype _objc_msgSend_183( + instancetype _objc_msgSend_205( ffi.Pointer obj, ffi.Pointer sel, int seconds, ) { - return __objc_msgSend_183( + return __objc_msgSend_205( obj, sel, seconds, ); } - late final __objc_msgSend_183Ptr = _lookup< + late final __objc_msgSend_205Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -4888,7 +5451,7 @@ class SwiftLibrary { _registerName1("timeZoneWithAbbreviation:"); late final _sel_dateWithYear_month_day_hour_minute_second_timeZone_1 = _registerName1("dateWithYear:month:day:hour:minute:second:timeZone:"); - ffi.Pointer _objc_msgSend_184( + ffi.Pointer _objc_msgSend_206( ffi.Pointer obj, ffi.Pointer sel, int year, @@ -4899,7 +5462,7 @@ class SwiftLibrary { int second, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_184( + return __objc_msgSend_206( obj, sel, year, @@ -4912,19 +5475,19 @@ class SwiftLibrary { ); } - late final __objc_msgSend_184Ptr = _lookup< + late final __objc_msgSend_206Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSUInteger, - NSUInteger, - NSUInteger, - NSUInteger, - NSUInteger, + ffi.Long, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< + late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -4938,7 +5501,7 @@ class SwiftLibrary { late final _sel_dateByAddingYears_months_days_hours_minutes_seconds_1 = _registerName1("dateByAddingYears:months:days:hours:minutes:seconds:"); - ffi.Pointer _objc_msgSend_185( + ffi.Pointer _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, int year, @@ -4948,7 +5511,7 @@ class SwiftLibrary { int minute, int second, ) { - return __objc_msgSend_185( + return __objc_msgSend_207( obj, sel, year, @@ -4960,18 +5523,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_185Ptr = _lookup< + late final __objc_msgSend_207Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int)>(); @@ -4987,6 +5550,34 @@ class SwiftLibrary { late final _sel_calendarFormat1 = _registerName1("calendarFormat"); late final _sel_descriptionWithCalendarFormat_locale_1 = _registerName1("descriptionWithCalendarFormat:locale:"); + ffi.Pointer _objc_msgSend_208( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer locale, + ) { + return __objc_msgSend_208( + obj, + sel, + format, + locale, + ); + } + + late final __objc_msgSend_208Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_descriptionWithCalendarFormat_1 = _registerName1("descriptionWithCalendarFormat:"); late final _sel_timeZone1 = _registerName1("timeZone"); @@ -4997,61 +5588,61 @@ class SwiftLibrary { late final _sel_initWithYear_month_day_hour_minute_second_timeZone_1 = _registerName1("initWithYear:month:day:hour:minute:second:timeZone:"); late final _sel_setCalendarFormat_1 = _registerName1("setCalendarFormat:"); - void _objc_msgSend_186( + void _objc_msgSend_209( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ) { - return __objc_msgSend_186( + return __objc_msgSend_209( obj, sel, format, ); } - late final __objc_msgSend_186Ptr = _lookup< + late final __objc_msgSend_209Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setTimeZone_1 = _registerName1("setTimeZone:"); - void _objc_msgSend_187( + void _objc_msgSend_210( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_187( + return __objc_msgSend_210( obj, sel, aTimeZone, ); } - late final __objc_msgSend_187Ptr = _lookup< + late final __objc_msgSend_210Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< + late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_years_months_days_hours_minutes_seconds_sinceDate_1 = _registerName1("years:months:days:hours:minutes:seconds:sinceDate:"); - void _objc_msgSend_188( + void _objc_msgSend_211( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, ffi.Pointer date, ) { - return __objc_msgSend_188( + return __objc_msgSend_211( obj, sel, yp, @@ -5064,39 +5655,39 @@ class SwiftLibrary { ); } - late final __objc_msgSend_188Ptr = _lookup< + late final __objc_msgSend_211Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< + late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_dateWithCalendarFormat_timeZone_1 = _registerName1("dateWithCalendarFormat:timeZone:"); - ffi.Pointer _objc_msgSend_189( + ffi.Pointer _objc_msgSend_212( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer aTimeZone, ) { - return __objc_msgSend_189( + return __objc_msgSend_212( obj, sel, format, @@ -5104,14 +5695,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_189Ptr = _lookup< + late final __objc_msgSend_212Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< + late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5120,14 +5711,14 @@ class SwiftLibrary { late final _sel_descriptionWithCalendarFormat_timeZone_locale_1 = _registerName1("descriptionWithCalendarFormat:timeZone:locale:"); - ffi.Pointer _objc_msgSend_190( + ffi.Pointer _objc_msgSend_213( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer aTimeZone, ffi.Pointer locale, ) { - return __objc_msgSend_190( + return __objc_msgSend_213( obj, sel, format, @@ -5136,7 +5727,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_190Ptr = _lookup< + late final __objc_msgSend_213Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5144,7 +5735,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< + late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5166,21 +5757,21 @@ class SwiftLibrary { _registerName1("fileSystemFileNumber"); late final _sel_fileExtensionHidden1 = _registerName1("fileExtensionHidden"); late final _sel_fileHFSCreatorCode1 = _registerName1("fileHFSCreatorCode"); - int _objc_msgSend_191( + int _objc_msgSend_214( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_191( + return __objc_msgSend_214( obj, sel, ); } - late final __objc_msgSend_191Ptr = _lookup< + late final __objc_msgSend_214Ptr = _lookup< ffi.NativeFunction< - OSType Function( + ffi.UnsignedInt Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_fileHFSTypeCode1 = _registerName1("fileHFSTypeCode"); @@ -5188,44 +5779,44 @@ class SwiftLibrary { late final _sel_fileIsAppendOnly1 = _registerName1("fileIsAppendOnly"); late final _sel_fileCreationDate1 = _registerName1("fileCreationDate"); late final _sel_fileOwnerAccountID1 = _registerName1("fileOwnerAccountID"); - ffi.Pointer _objc_msgSend_192( + ffi.Pointer _objc_msgSend_215( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_192( + return __objc_msgSend_215( obj, sel, ); } - late final __objc_msgSend_192Ptr = _lookup< + late final __objc_msgSend_215Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_fileGroupOwnerAccountID1 = _registerName1("fileGroupOwnerAccountID"); late final _sel_predicateWithBlock_1 = _registerName1("predicateWithBlock:"); - ffi.Pointer _objc_msgSend_193( + ffi.Pointer _objc_msgSend_216( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_193( + return __objc_msgSend_216( obj, sel, block, ); } - late final __objc_msgSend_193Ptr = _lookup< + late final __objc_msgSend_216Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< + late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -5233,15 +5824,35 @@ class SwiftLibrary { late final _sel_predicateWithSubstitutionVariables_1 = _registerName1("predicateWithSubstitutionVariables:"); late final _sel_evaluateWithObject_1 = _registerName1("evaluateWithObject:"); + bool _objc_msgSend_217( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_217( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_217Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_evaluateWithObject_substitutionVariables_1 = _registerName1("evaluateWithObject:substitutionVariables:"); - bool _objc_msgSend_194( + bool _objc_msgSend_218( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer bindings, ) { - return __objc_msgSend_194( + return __objc_msgSend_218( obj, sel, object, @@ -5249,315 +5860,315 @@ class SwiftLibrary { ); } - late final __objc_msgSend_194Ptr = _lookup< + late final __objc_msgSend_218Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< + late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allowEvaluation1 = _registerName1("allowEvaluation"); late final _sel_filteredArrayUsingPredicate_1 = _registerName1("filteredArrayUsingPredicate:"); - ffi.Pointer _objc_msgSend_195( + ffi.Pointer _objc_msgSend_219( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_195( + return __objc_msgSend_219( obj, sel, predicate, ); } - late final __objc_msgSend_195Ptr = _lookup< + late final __objc_msgSend_219Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< + late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithChar_1 = _registerName1("initWithChar:"); - ffi.Pointer _objc_msgSend_196( + ffi.Pointer _objc_msgSend_220( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_196( + return __objc_msgSend_220( obj, sel, value, ); } - late final __objc_msgSend_196Ptr = _lookup< + late final __objc_msgSend_220Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Char)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedChar_1 = _registerName1("initWithUnsignedChar:"); - ffi.Pointer _objc_msgSend_197( + ffi.Pointer _objc_msgSend_221( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_197( + return __objc_msgSend_221( obj, sel, value, ); } - late final __objc_msgSend_197Ptr = _lookup< + late final __objc_msgSend_221Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< + late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithShort_1 = _registerName1("initWithShort:"); - ffi.Pointer _objc_msgSend_198( + ffi.Pointer _objc_msgSend_222( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_198( + return __objc_msgSend_222( obj, sel, value, ); } - late final __objc_msgSend_198Ptr = _lookup< + late final __objc_msgSend_222Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Short)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedShort_1 = _registerName1("initWithUnsignedShort:"); - ffi.Pointer _objc_msgSend_199( + ffi.Pointer _objc_msgSend_223( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_199( + return __objc_msgSend_223( obj, sel, value, ); } - late final __objc_msgSend_199Ptr = _lookup< + late final __objc_msgSend_223Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< + late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithInt_1 = _registerName1("initWithInt:"); - ffi.Pointer _objc_msgSend_200( + ffi.Pointer _objc_msgSend_224( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_200( + return __objc_msgSend_224( obj, sel, value, ); } - late final __objc_msgSend_200Ptr = _lookup< + late final __objc_msgSend_224Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< + late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedInt_1 = _registerName1("initWithUnsignedInt:"); - ffi.Pointer _objc_msgSend_201( + ffi.Pointer _objc_msgSend_225( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_201( + return __objc_msgSend_225( obj, sel, value, ); } - late final __objc_msgSend_201Ptr = _lookup< + late final __objc_msgSend_225Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLong_1 = _registerName1("initWithLong:"); - ffi.Pointer _objc_msgSend_202( + ffi.Pointer _objc_msgSend_226( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_202( + return __objc_msgSend_226( obj, sel, value, ); } - late final __objc_msgSend_202Ptr = _lookup< + late final __objc_msgSend_226Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLong_1 = _registerName1("initWithUnsignedLong:"); - ffi.Pointer _objc_msgSend_203( + ffi.Pointer _objc_msgSend_227( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_203( + return __objc_msgSend_227( obj, sel, value, ); } - late final __objc_msgSend_203Ptr = _lookup< + late final __objc_msgSend_227Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); - ffi.Pointer _objc_msgSend_204( + ffi.Pointer _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_204( + return __objc_msgSend_228( obj, sel, value, ); } - late final __objc_msgSend_204Ptr = _lookup< + late final __objc_msgSend_228Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLongLong_1 = _registerName1("initWithUnsignedLongLong:"); - ffi.Pointer _objc_msgSend_205( + ffi.Pointer _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_205( + return __objc_msgSend_229( obj, sel, value, ); } - late final __objc_msgSend_205Ptr = _lookup< + late final __objc_msgSend_229Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); - ffi.Pointer _objc_msgSend_206( + ffi.Pointer _objc_msgSend_230( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_206( + return __objc_msgSend_230( obj, sel, value, ); } - late final __objc_msgSend_206Ptr = _lookup< + late final __objc_msgSend_230Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); - ffi.Pointer _objc_msgSend_207( + ffi.Pointer _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_207( + return __objc_msgSend_231( obj, sel, value, ); } - late final __objc_msgSend_207Ptr = _lookup< + late final __objc_msgSend_231Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_initWithBool_1 = _registerName1("initWithBool:"); - ffi.Pointer _objc_msgSend_208( + ffi.Pointer _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_208( + return __objc_msgSend_232( obj, sel, value, ); } - late final __objc_msgSend_208Ptr = _lookup< + late final __objc_msgSend_232Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -5565,134 +6176,134 @@ class SwiftLibrary { late final _sel_initWithUnsignedInteger_1 = _registerName1("initWithUnsignedInteger:"); late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_209( + int _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_209( + return __objc_msgSend_233( obj, sel, ); } - late final __objc_msgSend_209Ptr = _lookup< + late final __objc_msgSend_233Ptr = _lookup< ffi.NativeFunction< ffi.Char Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_210( + int _objc_msgSend_234( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_210( + return __objc_msgSend_234( obj, sel, ); } - late final __objc_msgSend_210Ptr = _lookup< + late final __objc_msgSend_234Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedChar Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_211( + int _objc_msgSend_235( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_211( + return __objc_msgSend_235( obj, sel, ); } - late final __objc_msgSend_211Ptr = _lookup< + late final __objc_msgSend_235Ptr = _lookup< ffi.NativeFunction< ffi.Short Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_212( + int _objc_msgSend_236( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_212( + return __objc_msgSend_236( obj, sel, ); } - late final __objc_msgSend_212Ptr = _lookup< + late final __objc_msgSend_236Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedShort Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_213( + int _objc_msgSend_237( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_213( + return __objc_msgSend_237( obj, sel, ); } - late final __objc_msgSend_213Ptr = _lookup< + late final __objc_msgSend_237Ptr = _lookup< ffi.NativeFunction< ffi.Int Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< + late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); late final _sel_longValue1 = _registerName1("longValue"); late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_214( + int _objc_msgSend_238( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_214( + return __objc_msgSend_238( obj, sel, ); } - late final __objc_msgSend_214Ptr = _lookup< + late final __objc_msgSend_238Ptr = _lookup< ffi.NativeFunction< ffi.LongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< + late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedLongLongValue1 = _registerName1("unsignedLongLongValue"); late final _sel_floatValue1 = _registerName1("floatValue"); - double _objc_msgSend_215( + double _objc_msgSend_239( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_215( + return __objc_msgSend_239( obj, sel, ); } - late final __objc_msgSend_215Ptr = _lookup< + late final __objc_msgSend_239Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< + ffi.Float Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_doubleValue1 = _registerName1("doubleValue"); @@ -5701,44 +6312,44 @@ class SwiftLibrary { late final _sel_unsignedIntegerValue1 = _registerName1("unsignedIntegerValue"); late final _sel_stringValue1 = _registerName1("stringValue"); - int _objc_msgSend_216( + int _objc_msgSend_240( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherNumber, ) { - return __objc_msgSend_216( + return __objc_msgSend_240( obj, sel, otherNumber, ); } - late final __objc_msgSend_216Ptr = _lookup< + late final __objc_msgSend_240Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< + late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); - bool _objc_msgSend_217( + bool _objc_msgSend_241( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_217( + return __objc_msgSend_241( obj, sel, number, ); } - late final __objc_msgSend_217Ptr = _lookup< + late final __objc_msgSend_241Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5774,13 +6385,13 @@ class SwiftLibrary { late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); late final _sel_getFileSystemRepresentation_maxLength_1 = _registerName1("getFileSystemRepresentation:maxLength:"); - bool _objc_msgSend_218( + bool _objc_msgSend_242( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferLength, ) { - return __objc_msgSend_218( + return __objc_msgSend_242( obj, sel, buffer, @@ -5788,11 +6399,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_218Ptr = _lookup< + late final __objc_msgSend_242Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -5802,23 +6413,23 @@ class SwiftLibrary { late final _sel_standardizedURL1 = _registerName1("standardizedURL"); late final _sel_checkResourceIsReachableAndReturnError_1 = _registerName1("checkResourceIsReachableAndReturnError:"); - bool _objc_msgSend_219( + bool _objc_msgSend_243( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_219( + return __objc_msgSend_243( obj, sel, error, ); } - late final __objc_msgSend_219Ptr = _lookup< + late final __objc_msgSend_243Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< + late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -5827,14 +6438,14 @@ class SwiftLibrary { late final _sel_filePathURL1 = _registerName1("filePathURL"); late final _sel_getResourceValue_forKey_error_1 = _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_220( + bool _objc_msgSend_244( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> value, - NSURLResourceKey key, + ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_220( + return __objc_msgSend_244( obj, sel, value, @@ -5843,33 +6454,31 @@ class SwiftLibrary { ); } - late final __objc_msgSend_220Ptr = _lookup< + late final __objc_msgSend_244Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSURLResourceKey, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< + late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSURLResourceKey, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_getPromisedItemResourceValue_forKey_error_1 = - _registerName1("getPromisedItemResourceValue:forKey:error:"); - late final _sel_promisedItemResourceValuesForKeys_error_1 = - _registerName1("promisedItemResourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_221( + late final _sel_resourceValuesForKeys_error_1 = + _registerName1("resourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_245( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_221( + return __objc_msgSend_245( obj, sel, keys, @@ -5877,266 +6486,651 @@ class SwiftLibrary { ); } - late final __objc_msgSend_221Ptr = _lookup< + late final __objc_msgSend_245Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< + late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); - late final _sel_checkPromisedItemIsReachableAndReturnError_1 = - _registerName1("checkPromisedItemIsReachableAndReturnError:"); - late final _sel_fileURLWithPathComponents_1 = - _registerName1("fileURLWithPathComponents:"); - ffi.Pointer _objc_msgSend_222( + late final _sel_setResourceValue_forKey_error_1 = + _registerName1("setResourceValue:forKey:error:"); + bool _objc_msgSend_246( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer components, + ffi.Pointer value, + ffi.Pointer key, + ffi.Pointer> error, ) { - return __objc_msgSend_222( + return __objc_msgSend_246( obj, sel, - components, + value, + key, + error, ); } - late final __objc_msgSend_222Ptr = _lookup< + late final __objc_msgSend_246Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_pathComponents1 = _registerName1("pathComponents"); - late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); - late final _sel_pathExtension1 = _registerName1("pathExtension"); - late final _sel_URLByAppendingPathComponent_1 = - _registerName1("URLByAppendingPathComponent:"); - late final _sel_URLByAppendingPathComponent_isDirectory_1 = - _registerName1("URLByAppendingPathComponent:isDirectory:"); - late final _sel_URLByDeletingLastPathComponent1 = - _registerName1("URLByDeletingLastPathComponent"); - late final _sel_URLByAppendingPathExtension_1 = - _registerName1("URLByAppendingPathExtension:"); - late final _sel_URLByDeletingPathExtension1 = - _registerName1("URLByDeletingPathExtension"); - late final _sel_URLByStandardizingPath1 = - _registerName1("URLByStandardizingPath"); - late final _sel_URLByResolvingSymlinksInPath1 = - _registerName1("URLByResolvingSymlinksInPath"); - late final _sel_resourceDataUsingCache_1 = - _registerName1("resourceDataUsingCache:"); - ffi.Pointer _objc_msgSend_223( + late final _sel_setResourceValues_error_1 = + _registerName1("setResourceValues:error:"); + bool _objc_msgSend_247( ffi.Pointer obj, ffi.Pointer sel, - bool shouldUseCache, + ffi.Pointer keyedValues, + ffi.Pointer> error, ) { - return __objc_msgSend_223( + return __objc_msgSend_247( obj, sel, - shouldUseCache, + keyedValues, + error, ); } - late final __objc_msgSend_223Ptr = _lookup< + late final __objc_msgSend_247Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_loadResourceDataNotifyingClient_usingCache_1 = - _registerName1("loadResourceDataNotifyingClient:usingCache:"); - void _objc_msgSend_224( + late final _sel_removeCachedResourceValueForKey_1 = + _registerName1("removeCachedResourceValueForKey:"); + void _objc_msgSend_248( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer client, - bool shouldUseCache, + ffi.Pointer key, ) { - return __objc_msgSend_224( + return __objc_msgSend_248( obj, sel, - client, - shouldUseCache, + key, ); } - late final __objc_msgSend_224Ptr = _lookup< + late final __objc_msgSend_248Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer)>(); - late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); - late final _sel_setResourceData_1 = _registerName1("setResourceData:"); - late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); - bool _objc_msgSend_225( + late final _sel_removeAllCachedResourceValues1 = + _registerName1("removeAllCachedResourceValues"); + late final _sel_setTemporaryResourceValue_forKey_1 = + _registerName1("setTemporaryResourceValue:forKey:"); + late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = + _registerName1( + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); + ffi.Pointer _objc_msgSend_249( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer property, - ffi.Pointer propertyKey, + int options, + ffi.Pointer keys, + ffi.Pointer relativeURL, + ffi.Pointer> error, ) { - return __objc_msgSend_225( + return __objc_msgSend_249( obj, sel, - property, - propertyKey, + options, + keys, + relativeURL, + error, ); } - late final __objc_msgSend_225Ptr = _lookup< + late final __objc_msgSend_249Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); - late final _sel_registerURLHandleClass_1 = - _registerName1("registerURLHandleClass:"); - late final _sel_URLHandleClassForURL_1 = - _registerName1("URLHandleClassForURL:"); - ffi.Pointer _objc_msgSend_226( + late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + instancetype _objc_msgSend_250( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anURL, + ffi.Pointer bookmarkData, + int options, + ffi.Pointer relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error, ) { - return __objc_msgSend_226( + return __objc_msgSend_250( obj, sel, - anURL, + bookmarkData, + options, + relativeURL, + isStale, + error, ); } - late final __objc_msgSend_226Ptr = _lookup< + late final __objc_msgSend_250Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_status1 = _registerName1("status"); - int _objc_msgSend_227( + late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + late final _sel_resourceValuesForKeys_fromBookmarkData_1 = + _registerName1("resourceValuesForKeys:fromBookmarkData:"); + ffi.Pointer _objc_msgSend_251( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer bookmarkData, ) { - return __objc_msgSend_227( + return __objc_msgSend_251( obj, sel, + keys, + bookmarkData, ); } - late final __objc_msgSend_227Ptr = _lookup< + late final __objc_msgSend_251Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_failureReason1 = _registerName1("failureReason"); - late final _sel_addClient_1 = _registerName1("addClient:"); - late final _sel_removeClient_1 = _registerName1("removeClient:"); - late final _sel_loadInBackground1 = _registerName1("loadInBackground"); - late final _sel_cancelLoadInBackground1 = - _registerName1("cancelLoadInBackground"); - late final _sel_resourceData1 = _registerName1("resourceData"); - late final _sel_availableResourceData1 = - _registerName1("availableResourceData"); - late final _sel_expectedResourceDataSize1 = - _registerName1("expectedResourceDataSize"); - late final _sel_flushCachedData1 = _registerName1("flushCachedData"); - late final _sel_backgroundLoadDidFailWithReason_1 = - _registerName1("backgroundLoadDidFailWithReason:"); - late final _sel_didLoadBytes_loadComplete_1 = - _registerName1("didLoadBytes:loadComplete:"); - void _objc_msgSend_228( + late final _sel_writeBookmarkData_toURL_options_error_1 = + _registerName1("writeBookmarkData:toURL:options:error:"); + bool _objc_msgSend_252( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer newBytes, - bool yorn, + ffi.Pointer bookmarkData, + ffi.Pointer bookmarkFileURL, + int options, + ffi.Pointer> error, ) { - return __objc_msgSend_228( + return __objc_msgSend_252( obj, sel, - newBytes, - yorn, + bookmarkData, + bookmarkFileURL, + options, + error, ); } - late final __objc_msgSend_228Ptr = _lookup< + late final __objc_msgSend_252Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); - bool _objc_msgSend_229( + late final _sel_bookmarkDataWithContentsOfURL_error_1 = + _registerName1("bookmarkDataWithContentsOfURL:error:"); + ffi.Pointer _objc_msgSend_253( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anURL, + ffi.Pointer bookmarkFileURL, + ffi.Pointer> error, ) { - return __objc_msgSend_229( + return __objc_msgSend_253( obj, sel, - anURL, + bookmarkFileURL, + error, ); } - late final __objc_msgSend_229Ptr = _lookup< + late final __objc_msgSend_253Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); - ffi.Pointer _objc_msgSend_230( + late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = + _registerName1("URLByResolvingAliasFileAtURL:options:error:"); + instancetype _objc_msgSend_254( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anURL, + ffi.Pointer url, + int options, + ffi.Pointer> error, ) { - return __objc_msgSend_230( + return __objc_msgSend_254( obj, sel, - anURL, - ); - } + url, + options, + error, + ); + } - late final __objc_msgSend_230Ptr = _lookup< + late final __objc_msgSend_254Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_startAccessingSecurityScopedResource1 = + _registerName1("startAccessingSecurityScopedResource"); + late final _sel_stopAccessingSecurityScopedResource1 = + _registerName1("stopAccessingSecurityScopedResource"); + late final _sel_getPromisedItemResourceValue_forKey_error_1 = + _registerName1("getPromisedItemResourceValue:forKey:error:"); + late final _sel_promisedItemResourceValuesForKeys_error_1 = + _registerName1("promisedItemResourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_255( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer> error, + ) { + return __objc_msgSend_255( + obj, + sel, + keys, + error, + ); + } + + late final __objc_msgSend_255Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_checkPromisedItemIsReachableAndReturnError_1 = + _registerName1("checkPromisedItemIsReachableAndReturnError:"); + late final _sel_fileURLWithPathComponents_1 = + _registerName1("fileURLWithPathComponents:"); + ffi.Pointer _objc_msgSend_256( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer components, + ) { + return __objc_msgSend_256( + obj, + sel, + components, + ); + } + + late final __objc_msgSend_256Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_pathComponents1 = _registerName1("pathComponents"); + late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); + late final _sel_pathExtension1 = _registerName1("pathExtension"); + late final _sel_URLByAppendingPathComponent_1 = + _registerName1("URLByAppendingPathComponent:"); + ffi.Pointer _objc_msgSend_257( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pathComponent, + ) { + return __objc_msgSend_257( + obj, + sel, + pathComponent, + ); + } + + late final __objc_msgSend_257Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URLByAppendingPathComponent_isDirectory_1 = + _registerName1("URLByAppendingPathComponent:isDirectory:"); + ffi.Pointer _objc_msgSend_258( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pathComponent, + bool isDirectory, + ) { + return __objc_msgSend_258( + obj, + sel, + pathComponent, + isDirectory, + ); + } + + late final __objc_msgSend_258Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_URLByDeletingLastPathComponent1 = + _registerName1("URLByDeletingLastPathComponent"); + late final _sel_URLByAppendingPathExtension_1 = + _registerName1("URLByAppendingPathExtension:"); + late final _sel_URLByDeletingPathExtension1 = + _registerName1("URLByDeletingPathExtension"); + late final _sel_URLByStandardizingPath1 = + _registerName1("URLByStandardizingPath"); + late final _sel_URLByResolvingSymlinksInPath1 = + _registerName1("URLByResolvingSymlinksInPath"); + late final _sel_resourceDataUsingCache_1 = + _registerName1("resourceDataUsingCache:"); + ffi.Pointer _objc_msgSend_259( + ffi.Pointer obj, + ffi.Pointer sel, + bool shouldUseCache, + ) { + return __objc_msgSend_259( + obj, + sel, + shouldUseCache, + ); + } + + late final __objc_msgSend_259Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_loadResourceDataNotifyingClient_usingCache_1 = + _registerName1("loadResourceDataNotifyingClient:usingCache:"); + void _objc_msgSend_260( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer client, + bool shouldUseCache, + ) { + return __objc_msgSend_260( + obj, + sel, + client, + shouldUseCache, + ); + } + + late final __objc_msgSend_260Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); + late final _sel_setResourceData_1 = _registerName1("setResourceData:"); + late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); + bool _objc_msgSend_261( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer propertyKey, + ) { + return __objc_msgSend_261( + obj, + sel, + property, + propertyKey, + ); + } + + late final __objc_msgSend_261Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); + late final _sel_registerURLHandleClass_1 = + _registerName1("registerURLHandleClass:"); + late final _sel_URLHandleClassForURL_1 = + _registerName1("URLHandleClassForURL:"); + ffi.Pointer _objc_msgSend_262( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_262( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_262Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_status1 = _registerName1("status"); + int _objc_msgSend_263( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_263( + obj, + sel, + ); + } + + late final __objc_msgSend_263Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_failureReason1 = _registerName1("failureReason"); + late final _sel_addClient_1 = _registerName1("addClient:"); + late final _sel_removeClient_1 = _registerName1("removeClient:"); + late final _sel_loadInBackground1 = _registerName1("loadInBackground"); + late final _sel_cancelLoadInBackground1 = + _registerName1("cancelLoadInBackground"); + late final _sel_resourceData1 = _registerName1("resourceData"); + late final _sel_availableResourceData1 = + _registerName1("availableResourceData"); + late final _sel_expectedResourceDataSize1 = + _registerName1("expectedResourceDataSize"); + late final _sel_flushCachedData1 = _registerName1("flushCachedData"); + late final _sel_backgroundLoadDidFailWithReason_1 = + _registerName1("backgroundLoadDidFailWithReason:"); + late final _sel_didLoadBytes_loadComplete_1 = + _registerName1("didLoadBytes:loadComplete:"); + void _objc_msgSend_264( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer newBytes, + bool yorn, + ) { + return __objc_msgSend_264( + obj, + sel, + newBytes, + yorn, + ); + } + + late final __objc_msgSend_264Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); + bool _objc_msgSend_265( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_265( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_265Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); + ffi.Pointer _objc_msgSend_266( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_266( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_266Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); - ffi.Pointer _objc_msgSend_231( + ffi.Pointer _objc_msgSend_267( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURL, bool willCache, ) { - return __objc_msgSend_231( + return __objc_msgSend_267( obj, sel, anURL, @@ -6144,14 +7138,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_231Ptr = _lookup< + late final __objc_msgSend_267Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -6166,36 +7160,36 @@ class SwiftLibrary { late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); late final _sel_URLHandleUsingCache_1 = _registerName1("URLHandleUsingCache:"); - ffi.Pointer _objc_msgSend_232( + ffi.Pointer _objc_msgSend_268( ffi.Pointer obj, ffi.Pointer sel, bool shouldUseCache, ) { - return __objc_msgSend_232( + return __objc_msgSend_268( obj, sel, shouldUseCache, ); } - late final __objc_msgSend_232Ptr = _lookup< + late final __objc_msgSend_268Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_writeToFile_options_error_1 = _registerName1("writeToFile:options:error:"); - bool _objc_msgSend_233( + bool _objc_msgSend_269( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_233( + return __objc_msgSend_269( obj, sel, path, @@ -6204,7 +7198,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_233Ptr = _lookup< + late final __objc_msgSend_269Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6212,7 +7206,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6222,14 +7216,14 @@ class SwiftLibrary { late final _sel_writeToURL_options_error_1 = _registerName1("writeToURL:options:error:"); - bool _objc_msgSend_234( + bool _objc_msgSend_270( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_234( + return __objc_msgSend_270( obj, sel, url, @@ -6238,7 +7232,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_234Ptr = _lookup< + late final __objc_msgSend_270Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6246,7 +7240,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6256,14 +7250,16 @@ class SwiftLibrary { late final _sel_rangeOfData_options_range_1 = _registerName1("rangeOfData:options:range:"); - NSRange _objc_msgSend_235( + void _objc_msgSend_271( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataToFind, int mask, - NSRange searchRange, + _NSRange searchRange, ) { - return __objc_msgSend_235( + return __objc_msgSend_271( + stret, obj, sel, dataToFind, @@ -6272,45 +7268,50 @@ class SwiftLibrary { ); } - late final __objc_msgSend_235Ptr = _lookup< + late final __objc_msgSend_271Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_enumerateByteRangesUsingBlock_1 = _registerName1("enumerateByteRangesUsingBlock:"); - void _objc_msgSend_236( + void _objc_msgSend_272( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_236( + return __objc_msgSend_272( obj, sel, block, ); } - late final __objc_msgSend_236Ptr = _lookup< + late final __objc_msgSend_272Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataWithBytes_length_1 = _registerName1("dataWithBytes:length:"); - instancetype _objc_msgSend_237( + instancetype _objc_msgSend_273( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ) { - return __objc_msgSend_237( + return __objc_msgSend_273( obj, sel, bytes, @@ -6318,11 +7319,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_237Ptr = _lookup< + late final __objc_msgSend_273Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -6330,14 +7331,14 @@ class SwiftLibrary { _registerName1("dataWithBytesNoCopy:length:"); late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_238( + instancetype _objc_msgSend_274( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool b, ) { - return __objc_msgSend_238( + return __objc_msgSend_274( obj, sel, bytes, @@ -6346,24 +7347,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_238Ptr = _lookup< + late final __objc_msgSend_274Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataWithContentsOfFile_options_error_1 = _registerName1("dataWithContentsOfFile:options:error:"); - instancetype _objc_msgSend_239( + instancetype _objc_msgSend_275( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_239( + return __objc_msgSend_275( obj, sel, path, @@ -6372,7 +7377,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_239Ptr = _lookup< + late final __objc_msgSend_275Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6380,7 +7385,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< + late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6390,14 +7395,14 @@ class SwiftLibrary { late final _sel_dataWithContentsOfURL_options_error_1 = _registerName1("dataWithContentsOfURL:options:error:"); - instancetype _objc_msgSend_240( + instancetype _objc_msgSend_276( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_240( + return __objc_msgSend_276( obj, sel, url, @@ -6406,7 +7411,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_240Ptr = _lookup< + late final __objc_msgSend_276Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6414,7 +7419,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6426,6 +7431,26 @@ class SwiftLibrary { _registerName1("dataWithContentsOfFile:"); late final _sel_dataWithContentsOfURL_1 = _registerName1("dataWithContentsOfURL:"); + instancetype _objc_msgSend_277( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_277( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_277Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithBytes_length_1 = _registerName1("initWithBytes:length:"); late final _sel_initWithBytesNoCopy_length_1 = @@ -6434,14 +7459,14 @@ class SwiftLibrary { _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); late final _sel_initWithBytesNoCopy_length_deallocator_1 = _registerName1("initWithBytesNoCopy:length:deallocator:"); - instancetype _objc_msgSend_241( + instancetype _objc_msgSend_278( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_241( + return __objc_msgSend_278( obj, sel, bytes, @@ -6450,15 +7475,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_241Ptr = _lookup< + late final __objc_msgSend_278Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< + late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -6467,36 +7492,36 @@ class SwiftLibrary { late final _sel_initWithContentsOfURL_options_error_1 = _registerName1("initWithContentsOfURL:options:error:"); late final _sel_initWithData_1 = _registerName1("initWithData:"); - instancetype _objc_msgSend_242( + instancetype _objc_msgSend_279( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_242( + return __objc_msgSend_279( obj, sel, data, ); } - late final __objc_msgSend_242Ptr = _lookup< + late final __objc_msgSend_279Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< + late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataWithData_1 = _registerName1("dataWithData:"); late final _sel_initWithBase64EncodedString_options_1 = _registerName1("initWithBase64EncodedString:options:"); - instancetype _objc_msgSend_243( + instancetype _objc_msgSend_280( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64String, int options, ) { - return __objc_msgSend_243( + return __objc_msgSend_280( obj, sel, base64String, @@ -6504,45 +7529,45 @@ class SwiftLibrary { ); } - late final __objc_msgSend_243Ptr = _lookup< + late final __objc_msgSend_280Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< + late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedStringWithOptions_1 = _registerName1("base64EncodedStringWithOptions:"); - ffi.Pointer _objc_msgSend_244( + ffi.Pointer _objc_msgSend_281( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_244( + return __objc_msgSend_281( obj, sel, options, ); } - late final __objc_msgSend_244Ptr = _lookup< + late final __objc_msgSend_281Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBase64EncodedData_options_1 = _registerName1("initWithBase64EncodedData:options:"); - instancetype _objc_msgSend_245( + instancetype _objc_msgSend_282( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64Data, int options, ) { - return __objc_msgSend_245( + return __objc_msgSend_282( obj, sel, base64Data, @@ -6550,45 +7575,45 @@ class SwiftLibrary { ); } - late final __objc_msgSend_245Ptr = _lookup< + late final __objc_msgSend_282Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< + late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedDataWithOptions_1 = _registerName1("base64EncodedDataWithOptions:"); - ffi.Pointer _objc_msgSend_246( + ffi.Pointer _objc_msgSend_283( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_246( + return __objc_msgSend_283( obj, sel, options, ); } - late final __objc_msgSend_246Ptr = _lookup< + late final __objc_msgSend_283Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_decompressedDataUsingAlgorithm_error_1 = _registerName1("decompressedDataUsingAlgorithm:error:"); - instancetype _objc_msgSend_247( + instancetype _objc_msgSend_284( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_247( + return __objc_msgSend_284( obj, sel, algorithm, @@ -6596,14 +7621,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_247Ptr = _lookup< + late final __objc_msgSend_284Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -6618,37 +7643,55 @@ class SwiftLibrary { _registerName1("initWithBase64Encoding:"); late final _sel_base64Encoding1 = _registerName1("base64Encoding"); late final _sel_encodeDataObject_1 = _registerName1("encodeDataObject:"); - void _objc_msgSend_248( + void _objc_msgSend_285( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_248( + return __objc_msgSend_285( obj, sel, data, ); } - late final __objc_msgSend_248Ptr = _lookup< + late final __objc_msgSend_285Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeDataObject1 = _registerName1("decodeDataObject"); + ffi.Pointer _objc_msgSend_286( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_286( + obj, + sel, + ); + } + + late final __objc_msgSend_286Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_decodeValueOfObjCType_at_size_1 = _registerName1("decodeValueOfObjCType:at:size:"); - void _objc_msgSend_249( + void _objc_msgSend_287( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer data, int size, ) { - return __objc_msgSend_249( + return __objc_msgSend_287( obj, sel, type, @@ -6657,41 +7700,61 @@ class SwiftLibrary { ); } - late final __objc_msgSend_249Ptr = _lookup< + late final __objc_msgSend_287Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_versionForClassName_1 = _registerName1("versionForClassName:"); - int _objc_msgSend_250( + int _objc_msgSend_288( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer className, ) { - return __objc_msgSend_250( + return __objc_msgSend_288( obj, sel, className, ); } - late final __objc_msgSend_250Ptr = _lookup< + late final __objc_msgSend_288Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeObject_1 = _registerName1("encodeObject:"); + void _objc_msgSend_289( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_289( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_289Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_encodeRootObject_1 = _registerName1("encodeRootObject:"); late final _sel_encodeBycopyObject_1 = _registerName1("encodeBycopyObject:"); late final _sel_encodeByrefObject_1 = _registerName1("encodeByrefObject:"); @@ -6699,36 +7762,36 @@ class SwiftLibrary { _registerName1("encodeConditionalObject:"); late final _sel_encodeValuesOfObjCTypes_1 = _registerName1("encodeValuesOfObjCTypes:"); - void _objc_msgSend_251( + void _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer types, ) { - return __objc_msgSend_251( + return __objc_msgSend_290( obj, sel, types, ); } - late final __objc_msgSend_251Ptr = _lookup< + late final __objc_msgSend_290Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeArrayOfObjCType_count_at_1 = _registerName1("encodeArrayOfObjCType:count:at:"); - void _objc_msgSend_252( + void _objc_msgSend_291( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, int count, ffi.Pointer array, ) { - return __objc_msgSend_252( + return __objc_msgSend_291( obj, sel, type, @@ -6737,15 +7800,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_252Ptr = _lookup< + late final __objc_msgSend_291Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -6753,25 +7816,25 @@ class SwiftLibrary { late final _sel_decodeObject1 = _registerName1("decodeObject"); late final _sel_decodeTopLevelObjectAndReturnError_1 = _registerName1("decodeTopLevelObjectAndReturnError:"); - ffi.Pointer _objc_msgSend_253( + ffi.Pointer _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_253( + return __objc_msgSend_292( obj, sel, error, ); } - late final __objc_msgSend_253Ptr = _lookup< + late final __objc_msgSend_292Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -6781,66 +7844,68 @@ class SwiftLibrary { _registerName1("decodeArrayOfObjCType:count:at:"); late final _sel_decodeBytesWithReturnedLength_1 = _registerName1("decodeBytesWithReturnedLength:"); - ffi.Pointer _objc_msgSend_254( + ffi.Pointer _objc_msgSend_293( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer lengthp, + ffi.Pointer lengthp, ) { - return __objc_msgSend_254( + return __objc_msgSend_293( obj, sel, lengthp, ); } - late final __objc_msgSend_254Ptr = _lookup< + late final __objc_msgSend_293Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_encodePropertyList_1 = _registerName1("encodePropertyList:"); late final _sel_decodePropertyList1 = _registerName1("decodePropertyList"); late final _sel_setObjectZone_1 = _registerName1("setObjectZone:"); - void _objc_msgSend_255( + void _objc_msgSend_294( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer zone, + ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_255( + return __objc_msgSend_294( obj, sel, zone, ); } - late final __objc_msgSend_255Ptr = _lookup< + late final __objc_msgSend_294Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_NSZone>)>(); late final _sel_objectZone1 = _registerName1("objectZone"); - ffi.Pointer _objc_msgSend_256( + ffi.Pointer<_NSZone> _objc_msgSend_295( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_256( + return __objc_msgSend_295( obj, sel, ); } - late final __objc_msgSend_256Ptr = _lookup< + late final __objc_msgSend_295Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer<_NSZone> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< - ffi.Pointer Function( + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + ffi.Pointer<_NSZone> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_systemVersion1 = _registerName1("systemVersion"); @@ -6850,13 +7915,13 @@ class SwiftLibrary { late final _sel_encodeConditionalObject_forKey_1 = _registerName1("encodeConditionalObject:forKey:"); late final _sel_encodeBool_forKey_1 = _registerName1("encodeBool:forKey:"); - void _objc_msgSend_257( + void _objc_msgSend_296( ffi.Pointer obj, ffi.Pointer sel, bool value, ffi.Pointer key, ) { - return __objc_msgSend_257( + return __objc_msgSend_296( obj, sel, value, @@ -6864,22 +7929,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_257Ptr = _lookup< + late final __objc_msgSend_296Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); late final _sel_encodeInt_forKey_1 = _registerName1("encodeInt:forKey:"); - void _objc_msgSend_258( + void _objc_msgSend_297( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_258( + return __objc_msgSend_297( obj, sel, value, @@ -6887,22 +7952,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_258Ptr = _lookup< + late final __objc_msgSend_297Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeInt32_forKey_1 = _registerName1("encodeInt32:forKey:"); - void _objc_msgSend_259( + void _objc_msgSend_298( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_259( + return __objc_msgSend_298( obj, sel, value, @@ -6910,22 +7975,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_259Ptr = _lookup< + late final __objc_msgSend_298Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeInt64_forKey_1 = _registerName1("encodeInt64:forKey:"); - void _objc_msgSend_260( + void _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_260( + return __objc_msgSend_299( obj, sel, value, @@ -6933,22 +7998,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_260Ptr = _lookup< + late final __objc_msgSend_299Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_encodeFloat_forKey_1 = _registerName1("encodeFloat:forKey:"); - void _objc_msgSend_261( + void _objc_msgSend_300( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_261( + return __objc_msgSend_300( obj, sel, value, @@ -6956,23 +8021,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_261Ptr = _lookup< + late final __objc_msgSend_300Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_encodeDouble_forKey_1 = _registerName1("encodeDouble:forKey:"); - void _objc_msgSend_262( + void _objc_msgSend_301( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_262( + return __objc_msgSend_301( obj, sel, value, @@ -6980,24 +8045,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_262Ptr = _lookup< + late final __objc_msgSend_301Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_encodeBytes_length_forKey_1 = _registerName1("encodeBytes:length:forKey:"); - void _objc_msgSend_263( + void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer key, ) { - return __objc_msgSend_263( + return __objc_msgSend_302( obj, sel, bytes, @@ -7006,15 +8071,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_263Ptr = _lookup< + late final __objc_msgSend_302Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -7023,13 +8088,13 @@ class SwiftLibrary { late final _sel_decodeObjectForKey_1 = _registerName1("decodeObjectForKey:"); late final _sel_decodeTopLevelObjectForKey_error_1 = _registerName1("decodeTopLevelObjectForKey:error:"); - ffi.Pointer _objc_msgSend_264( + ffi.Pointer _objc_msgSend_303( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_264( + return __objc_msgSend_303( obj, sel, key, @@ -7037,14 +8102,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_264Ptr = _lookup< + late final __objc_msgSend_303Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7053,119 +8118,119 @@ class SwiftLibrary { late final _sel_decodeBoolForKey_1 = _registerName1("decodeBoolForKey:"); late final _sel_decodeIntForKey_1 = _registerName1("decodeIntForKey:"); - int _objc_msgSend_265( + int _objc_msgSend_304( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_265( + return __objc_msgSend_304( obj, sel, key, ); } - late final __objc_msgSend_265Ptr = _lookup< + late final __objc_msgSend_304Ptr = _lookup< ffi.NativeFunction< ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeInt32ForKey_1 = _registerName1("decodeInt32ForKey:"); - int _objc_msgSend_266( + int _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_266( + return __objc_msgSend_305( obj, sel, key, ); } - late final __objc_msgSend_266Ptr = _lookup< + late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeInt64ForKey_1 = _registerName1("decodeInt64ForKey:"); - int _objc_msgSend_267( + int _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_267( + return __objc_msgSend_306( obj, sel, key, ); } - late final __objc_msgSend_267Ptr = _lookup< + late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeFloatForKey_1 = _registerName1("decodeFloatForKey:"); - double _objc_msgSend_268( + double _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_268( + return __objc_msgSend_307( obj, sel, key, ); } - late final __objc_msgSend_268Ptr = _lookup< + late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< ffi.Float Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeDoubleForKey_1 = _registerName1("decodeDoubleForKey:"); - double _objc_msgSend_269( + double _objc_msgSend_308( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_269( + return __objc_msgSend_308( obj, sel, key, ); } - late final __objc_msgSend_269Ptr = _lookup< + late final __objc_msgSend_308Ptr = _lookup< ffi.NativeFunction< ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeBytesForKey_returnedLength_1 = _registerName1("decodeBytesForKey:returnedLength:"); - ffi.Pointer _objc_msgSend_270( + ffi.Pointer _objc_msgSend_309( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, - ffi.Pointer lengthp, + ffi.Pointer lengthp, ) { - return __objc_msgSend_270( + return __objc_msgSend_309( obj, sel, key, @@ -7173,29 +8238,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_270Ptr = _lookup< + late final __objc_msgSend_309Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_encodeInteger_forKey_1 = _registerName1("encodeInteger:forKey:"); - void _objc_msgSend_271( + void _objc_msgSend_310( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_271( + return __objc_msgSend_310( obj, sel, value, @@ -7203,11 +8268,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_271Ptr = _lookup< + late final __objc_msgSend_310Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + ffi.Long, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -7217,13 +8282,13 @@ class SwiftLibrary { _registerName1("requiresSecureCoding"); late final _sel_decodeObjectOfClass_forKey_1 = _registerName1("decodeObjectOfClass:forKey:"); - ffi.Pointer _objc_msgSend_272( + ffi.Pointer _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ) { - return __objc_msgSend_272( + return __objc_msgSend_311( obj, sel, aClass, @@ -7231,14 +8296,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_272Ptr = _lookup< + late final __objc_msgSend_311Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7247,14 +8312,14 @@ class SwiftLibrary { late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); - ffi.Pointer _objc_msgSend_273( + ffi.Pointer _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_273( + return __objc_msgSend_312( obj, sel, aClass, @@ -7263,7 +8328,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_273Ptr = _lookup< + late final __objc_msgSend_312Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7271,7 +8336,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7281,13 +8346,13 @@ class SwiftLibrary { late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = _registerName1("decodeArrayOfObjectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_274( + ffi.Pointer _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cls, ffi.Pointer key, ) { - return __objc_msgSend_274( + return __objc_msgSend_313( obj, sel, cls, @@ -7295,14 +8360,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_274Ptr = _lookup< + late final __objc_msgSend_313Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7311,14 +8376,14 @@ class SwiftLibrary { late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_275( + ffi.Pointer _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyCls, ffi.Pointer objectCls, ffi.Pointer key, ) { - return __objc_msgSend_275( + return __objc_msgSend_314( obj, sel, keyCls, @@ -7327,7 +8392,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_275Ptr = _lookup< + late final __objc_msgSend_314Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7335,7 +8400,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7345,13 +8410,13 @@ class SwiftLibrary { late final _sel_decodeObjectOfClasses_forKey_1 = _registerName1("decodeObjectOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_276( + ffi.Pointer _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_276( + return __objc_msgSend_315( obj, sel, classes, @@ -7359,14 +8424,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_276Ptr = _lookup< + late final __objc_msgSend_315Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7375,14 +8440,14 @@ class SwiftLibrary { late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); - ffi.Pointer _objc_msgSend_277( + ffi.Pointer _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_277( + return __objc_msgSend_316( obj, sel, classes, @@ -7391,7 +8456,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_277Ptr = _lookup< + late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7399,7 +8464,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7409,13 +8474,13 @@ class SwiftLibrary { late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_278( + ffi.Pointer _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_278( + return __objc_msgSend_317( obj, sel, classes, @@ -7423,14 +8488,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_278Ptr = _lookup< + late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7440,14 +8505,14 @@ class SwiftLibrary { late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = _registerName1( "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_279( + ffi.Pointer _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyClasses, ffi.Pointer objectClasses, ffi.Pointer key, ) { - return __objc_msgSend_279( + return __objc_msgSend_318( obj, sel, keyClasses, @@ -7456,7 +8521,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_279Ptr = _lookup< + late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7464,7 +8529,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7475,80 +8540,80 @@ class SwiftLibrary { late final _sel_decodePropertyListForKey_1 = _registerName1("decodePropertyListForKey:"); late final _sel_allowedClasses1 = _registerName1("allowedClasses"); - ffi.Pointer _objc_msgSend_280( + ffi.Pointer _objc_msgSend_319( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_280( + return __objc_msgSend_319( obj, sel, ); } - late final __objc_msgSend_280Ptr = _lookup< + late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_failWithError_1 = _registerName1("failWithError:"); - void _objc_msgSend_281( + void _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, ) { - return __objc_msgSend_281( + return __objc_msgSend_320( obj, sel, error, ); } - late final __objc_msgSend_281Ptr = _lookup< + late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodingFailurePolicy1 = _registerName1("decodingFailurePolicy"); - int _objc_msgSend_282( + int _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_282( + return __objc_msgSend_321( obj, sel, ); } - late final __objc_msgSend_282Ptr = _lookup< + late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_error1 = _registerName1("error"); - ffi.Pointer _objc_msgSend_283( + ffi.Pointer _objc_msgSend_322( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_283( + return __objc_msgSend_322( obj, sel, ); } - late final __objc_msgSend_283Ptr = _lookup< + late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -7557,76 +8622,76 @@ class SwiftLibrary { late final _sel_decodeValueOfObjCType_at_1 = _registerName1("decodeValueOfObjCType:at:"); late final _sel_encodePoint_1 = _registerName1("encodePoint:"); - void _objc_msgSend_284( + void _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, - NSPoint point, + CGPoint point, ) { - return __objc_msgSend_284( + return __objc_msgSend_323( obj, sel, point, ); } - late final __objc_msgSend_284Ptr = _lookup< + late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSPoint)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSPoint)>(); + CGPoint)>>('objc_msgSend'); + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGPoint)>(); late final _sel_decodePoint1 = _registerName1("decodePoint"); late final _sel_encodeSize_1 = _registerName1("encodeSize:"); - void _objc_msgSend_285( + void _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, - NSSize size, + CGSize size, ) { - return __objc_msgSend_285( + return __objc_msgSend_324( obj, sel, size, ); } - late final __objc_msgSend_285Ptr = _lookup< + late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSSize)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSSize)>(); + CGSize)>>('objc_msgSend'); + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize)>(); late final _sel_decodeSize1 = _registerName1("decodeSize"); late final _sel_encodeRect_1 = _registerName1("encodeRect:"); - void _objc_msgSend_286( + void _objc_msgSend_325( ffi.Pointer obj, ffi.Pointer sel, - NSRect rect, + CGRect rect, ) { - return __objc_msgSend_286( + return __objc_msgSend_325( obj, sel, rect, ); } - late final __objc_msgSend_286Ptr = _lookup< + late final __objc_msgSend_325Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRect)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRect)>(); + CGRect)>>('objc_msgSend'); + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect)>(); late final _sel_decodeRect1 = _registerName1("decodeRect"); late final _sel_encodePoint_forKey_1 = _registerName1("encodePoint:forKey:"); - void _objc_msgSend_287( + void _objc_msgSend_326( ffi.Pointer obj, ffi.Pointer sel, - NSPoint point, + CGPoint point, ffi.Pointer key, ) { - return __objc_msgSend_287( + return __objc_msgSend_326( obj, sel, point, @@ -7634,22 +8699,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_287Ptr = _lookup< + late final __objc_msgSend_326Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSPoint, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSPoint, + CGPoint, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGPoint, ffi.Pointer)>(); late final _sel_encodeSize_forKey_1 = _registerName1("encodeSize:forKey:"); - void _objc_msgSend_288( + void _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, - NSSize size, + CGSize size, ffi.Pointer key, ) { - return __objc_msgSend_288( + return __objc_msgSend_327( obj, sel, size, @@ -7657,22 +8722,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_288Ptr = _lookup< + late final __objc_msgSend_327Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSSize, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSSize, + CGSize, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize, ffi.Pointer)>(); late final _sel_encodeRect_forKey_1 = _registerName1("encodeRect:forKey:"); - void _objc_msgSend_289( + void _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, - NSRect rect, + CGRect rect, ffi.Pointer key, ) { - return __objc_msgSend_289( + return __objc_msgSend_328( obj, sel, rect, @@ -7680,129 +8745,144 @@ class SwiftLibrary { ); } - late final __objc_msgSend_289Ptr = _lookup< + late final __objc_msgSend_328Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRect, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRect, + CGRect, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect, ffi.Pointer)>(); late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); - NSPoint _objc_msgSend_290( + void _objc_msgSend_329( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_290( + return __objc_msgSend_329( + stret, obj, sel, key, ); } - late final __objc_msgSend_290Ptr = _lookup< + late final __objc_msgSend_329Ptr = _lookup< ffi.NativeFunction< - NSPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< - NSPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); - NSSize _objc_msgSend_291( + void _objc_msgSend_330( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_291( + return __objc_msgSend_330( + stret, obj, sel, key, ); } - late final __objc_msgSend_291Ptr = _lookup< + late final __objc_msgSend_330Ptr = _lookup< ffi.NativeFunction< - NSSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< - NSSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); - NSRect _objc_msgSend_292( + void _objc_msgSend_331( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_292( + return __objc_msgSend_331( + stret, obj, sel, key, ); } - late final __objc_msgSend_292Ptr = _lookup< + late final __objc_msgSend_331Ptr = _lookup< ffi.NativeFunction< - NSRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< - NSRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); - ffi.Pointer _objc_msgSend_293( + ffi.Pointer _objc_msgSend_332( ffi.Pointer obj, ffi.Pointer sel, int from, ) { - return __objc_msgSend_293( + return __objc_msgSend_332( obj, sel, from, ); } - late final __objc_msgSend_293Ptr = _lookup< + late final __objc_msgSend_332Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); - ffi.Pointer _objc_msgSend_294( + ffi.Pointer _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_294( + return __objc_msgSend_333( obj, sel, range, ); } - late final __objc_msgSend_294Ptr = _lookup< + late final __objc_msgSend_333Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_getCharacters_range_1 = _registerName1("getCharacters:range:"); - void _objc_msgSend_295( + void _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - NSRange range, + ffi.Pointer buffer, + _NSRange range, ) { - return __objc_msgSend_295( + return __objc_msgSend_334( obj, sel, buffer, @@ -7810,42 +8890,42 @@ class SwiftLibrary { ); } - late final __objc_msgSend_295Ptr = _lookup< + late final __objc_msgSend_334Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); - int _objc_msgSend_296( + int _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_296( + return __objc_msgSend_335( obj, sel, string, ); } - late final __objc_msgSend_296Ptr = _lookup< + late final __objc_msgSend_335Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_compare_options_1 = _registerName1("compare:options:"); - int _objc_msgSend_297( + int _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ) { - return __objc_msgSend_297( + return __objc_msgSend_336( obj, sel, string, @@ -7853,24 +8933,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_297Ptr = _lookup< + late final __objc_msgSend_336Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_compare_options_range_1 = _registerName1("compare:options:range:"); - int _objc_msgSend_298( + int _objc_msgSend_337( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, - NSRange rangeOfReceiverToCompare, + _NSRange rangeOfReceiverToCompare, ) { - return __objc_msgSend_298( + return __objc_msgSend_337( obj, sel, string, @@ -7879,25 +8959,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_298Ptr = _lookup< + late final __objc_msgSend_337Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Pointer, int, _NSRange)>(); late final _sel_compare_options_range_locale_1 = _registerName1("compare:options:range:locale:"); - int _objc_msgSend_299( + int _objc_msgSend_338( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, - NSRange rangeOfReceiverToCompare, + _NSRange rangeOfReceiverToCompare, ffi.Pointer locale, ) { - return __objc_msgSend_299( + return __objc_msgSend_338( obj, sel, string, @@ -7907,18 +8987,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_299Ptr = _lookup< + late final __objc_msgSend_338Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_caseInsensitiveCompare_1 = _registerName1("caseInsensitiveCompare:"); @@ -7932,13 +9012,13 @@ class SwiftLibrary { late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); late final _sel_commonPrefixWithString_options_1 = _registerName1("commonPrefixWithString:options:"); - ffi.Pointer _objc_msgSend_300( + ffi.Pointer _objc_msgSend_339( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int mask, ) { - return __objc_msgSend_300( + return __objc_msgSend_339( obj, sel, str, @@ -7946,14 +9026,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_300Ptr = _lookup< + late final __objc_msgSend_339Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -7964,36 +9044,43 @@ class SwiftLibrary { _registerName1("localizedStandardContainsString:"); late final _sel_localizedStandardRangeOfString_1 = _registerName1("localizedStandardRangeOfString:"); - NSRange _objc_msgSend_301( + void _objc_msgSend_340( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, ) { - return __objc_msgSend_301( + return __objc_msgSend_340( + stret, obj, sel, str, ); } - late final __objc_msgSend_301Ptr = _lookup< + late final __objc_msgSend_340Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); late final _sel_rangeOfString_options_1 = _registerName1("rangeOfString:options:"); - NSRange _objc_msgSend_302( + void _objc_msgSend_341( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, ) { - return __objc_msgSend_302( + return __objc_msgSend_341( + stret, obj, sel, searchString, @@ -8001,24 +9088,30 @@ class SwiftLibrary { ); } - late final __objc_msgSend_302Ptr = _lookup< + late final __objc_msgSend_341Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfString_options_range_1 = _registerName1("rangeOfString:options:range:"); - NSRange _objc_msgSend_303( + void _objc_msgSend_342( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, - NSRange rangeOfReceiverToSearch, + _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_303( + return __objc_msgSend_342( + stret, obj, sel, searchString, @@ -8027,25 +9120,32 @@ class SwiftLibrary { ); } - late final __objc_msgSend_303Ptr = _lookup< + late final __objc_msgSend_342Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfString_options_range_locale_1 = _registerName1("rangeOfString:options:range:locale:"); - NSRange _objc_msgSend_304( + void _objc_msgSend_343( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, - NSRange rangeOfReceiverToSearch, + _NSRange rangeOfReceiverToSearch, ffi.Pointer locale, ) { - return __objc_msgSend_304( + return __objc_msgSend_343( + stret, obj, sel, searchString, @@ -8055,50 +9155,64 @@ class SwiftLibrary { ); } - late final __objc_msgSend_304Ptr = _lookup< + late final __objc_msgSend_343Ptr = _lookup< ffi.NativeFunction< - NSRange Function( + ffi.Void Function( + ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + _NSRange, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_1 = _registerName1("rangeOfCharacterFromSet:"); - NSRange _objc_msgSend_305( + void _objc_msgSend_344( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { - return __objc_msgSend_305( + return __objc_msgSend_344( + stret, obj, sel, searchSet, ); } - late final __objc_msgSend_305Ptr = _lookup< + late final __objc_msgSend_344Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1("rangeOfCharacterFromSet:options:"); - NSRange _objc_msgSend_306( + void _objc_msgSend_345( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { - return __objc_msgSend_306( + return __objc_msgSend_345( + stret, obj, sel, searchSet, @@ -8106,24 +9220,30 @@ class SwiftLibrary { ); } - late final __objc_msgSend_306Ptr = _lookup< + late final __objc_msgSend_345Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1("rangeOfCharacterFromSet:options:range:"); - NSRange _objc_msgSend_307( + void _objc_msgSend_346( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, - NSRange rangeOfReceiverToSearch, + _NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_307( + return __objc_msgSend_346( + stret, obj, sel, searchSet, @@ -8132,56 +9252,66 @@ class SwiftLibrary { ); } - late final __objc_msgSend_307Ptr = _lookup< + late final __objc_msgSend_346Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - NSRange _objc_msgSend_308( + void _objc_msgSend_347( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_308( + return __objc_msgSend_347( + stret, obj, sel, index, ); } - late final __objc_msgSend_308Ptr = _lookup< + late final __objc_msgSend_347Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend_stret'); + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1("rangeOfComposedCharacterSequencesForRange:"); - NSRange _objc_msgSend_309( + void _objc_msgSend_348( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_309( + return __objc_msgSend_348( + stret, obj, sel, range, ); } - late final __objc_msgSend_309Ptr = _lookup< + late final __objc_msgSend_348Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< - NSRange Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, _NSRange)>(); late final _sel_stringByAppendingString_1 = _registerName1("stringByAppendingString:"); @@ -8198,23 +9328,23 @@ class SwiftLibrary { _registerName1("localizedCapitalizedString"); late final _sel_uppercaseStringWithLocale_1 = _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_310( + ffi.Pointer _objc_msgSend_349( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_310( + return __objc_msgSend_349( obj, sel, locale, ); } - late final __objc_msgSend_310Ptr = _lookup< + late final __objc_msgSend_349Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -8224,15 +9354,15 @@ class SwiftLibrary { _registerName1("capitalizedStringWithLocale:"); late final _sel_getLineStart_end_contentsEnd_forRange_1 = _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_311( + void _objc_msgSend_350( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range, + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range, ) { - return __objc_msgSend_311( + return __objc_msgSend_350( obj, sel, startPtr, @@ -8242,23 +9372,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_311Ptr = _lookup< + late final __objc_msgSend_350Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>(); late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = @@ -8267,14 +9397,14 @@ class SwiftLibrary { _registerName1("paragraphRangeForRange:"); late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_312( + void _objc_msgSend_351( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_312( + return __objc_msgSend_351( obj, sel, range, @@ -8283,33 +9413,33 @@ class SwiftLibrary { ); } - late final __objc_msgSend_312Ptr = _lookup< + late final __objc_msgSend_351Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateLinesUsingBlock_1 = _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_313( + void _objc_msgSend_352( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_313( + return __objc_msgSend_352( obj, sel, block, ); } - late final __objc_msgSend_313Ptr = _lookup< + late final __objc_msgSend_352Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -8318,13 +9448,13 @@ class SwiftLibrary { late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); late final _sel_dataUsingEncoding_allowLossyConversion_1 = _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_314( + ffi.Pointer _objc_msgSend_353( ffi.Pointer obj, ffi.Pointer sel, int encoding, bool lossy, ) { - return __objc_msgSend_314( + return __objc_msgSend_353( obj, sel, encoding, @@ -8332,35 +9462,35 @@ class SwiftLibrary { ); } - late final __objc_msgSend_314Ptr = _lookup< + late final __objc_msgSend_353Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_315( + ffi.Pointer _objc_msgSend_354( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_315( + return __objc_msgSend_354( obj, sel, encoding, ); } - late final __objc_msgSend_315Ptr = _lookup< + late final __objc_msgSend_354Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -8370,14 +9500,14 @@ class SwiftLibrary { _registerName1("cStringUsingEncoding:"); late final _sel_getCString_maxLength_encoding_1 = _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_316( + bool _objc_msgSend_355( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, int encoding, ) { - return __objc_msgSend_316( + return __objc_msgSend_355( obj, sel, buffer, @@ -8386,33 +9516,33 @@ class SwiftLibrary { ); } - late final __objc_msgSend_316Ptr = _lookup< + late final __objc_msgSend_355Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + ffi.UnsignedLong, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = _registerName1( "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); - bool _objc_msgSend_317( + bool _objc_msgSend_356( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, - ffi.Pointer usedBufferCount, + ffi.Pointer usedBufferCount, int encoding, int options, - NSRange range, - NSRangePointer leftover, + _NSRange range, + ffi.Pointer<_NSRange> leftover, ) { - return __objc_msgSend_317( + return __objc_msgSend_356( obj, sel, buffer, @@ -8425,29 +9555,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_317Ptr = _lookup< + late final __objc_msgSend_356Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, ffi.Int32, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, + ffi.Pointer, int, int, - NSRange, - NSRangePointer)>(); + _NSRange, + ffi.Pointer<_NSRange>)>(); late final _sel_maximumLengthOfBytesUsingEncoding_1 = _registerName1("maximumLengthOfBytesUsingEncoding:"); @@ -8455,22 +9585,22 @@ class SwiftLibrary { _registerName1("lengthOfBytesUsingEncoding:"); late final _sel_availableStringEncodings1 = _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_318( + ffi.Pointer _objc_msgSend_357( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_318( + return __objc_msgSend_357( obj, sel, ); } - late final __objc_msgSend_318Ptr = _lookup< + late final __objc_msgSend_357Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< - ffi.Pointer Function( + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedNameOfStringEncoding_1 = @@ -8487,60 +9617,80 @@ class SwiftLibrary { _registerName1("precomposedStringWithCompatibilityMapping"); late final _sel_componentsSeparatedByString_1 = _registerName1("componentsSeparatedByString:"); + ffi.Pointer _objc_msgSend_358( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, + ) { + return __objc_msgSend_358( + obj, + sel, + separator, + ); + } + + late final __objc_msgSend_358Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_componentsSeparatedByCharactersInSet_1 = _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_319( + ffi.Pointer _objc_msgSend_359( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_319( + return __objc_msgSend_359( obj, sel, separator, ); } - late final __objc_msgSend_319Ptr = _lookup< + late final __objc_msgSend_359Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByTrimmingCharactersInSet_1 = _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_320( + ffi.Pointer _objc_msgSend_360( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_320( + return __objc_msgSend_360( obj, sel, set1, ); } - late final __objc_msgSend_320Ptr = _lookup< + late final __objc_msgSend_360Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); - ffi.Pointer _objc_msgSend_321( + ffi.Pointer _objc_msgSend_361( ffi.Pointer obj, ffi.Pointer sel, int newLength, ffi.Pointer padString, int padIndex, ) { - return __objc_msgSend_321( + return __objc_msgSend_361( obj, sel, newLength, @@ -8549,27 +9699,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_321Ptr = _lookup< + late final __objc_msgSend_361Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_stringByFoldingWithOptions_locale_1 = _registerName1("stringByFoldingWithOptions:locale:"); - ffi.Pointer _objc_msgSend_322( + ffi.Pointer _objc_msgSend_362( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer locale, ) { - return __objc_msgSend_322( + return __objc_msgSend_362( obj, sel, options, @@ -8577,29 +9727,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_322Ptr = _lookup< + late final __objc_msgSend_362Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = _registerName1( "stringByReplacingOccurrencesOfString:withString:options:range:"); - ffi.Pointer _objc_msgSend_323( + ffi.Pointer _objc_msgSend_363( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, int options, - NSRange searchRange, + _NSRange searchRange, ) { - return __objc_msgSend_323( + return __objc_msgSend_363( obj, sel, target, @@ -8609,7 +9759,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_323Ptr = _lookup< + late final __objc_msgSend_363Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8617,25 +9767,25 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - NSRange)>(); + _NSRange)>(); late final _sel_stringByReplacingOccurrencesOfString_withString_1 = _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_324( + ffi.Pointer _objc_msgSend_364( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, ) { - return __objc_msgSend_324( + return __objc_msgSend_364( obj, sel, target, @@ -8643,14 +9793,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_324Ptr = _lookup< + late final __objc_msgSend_364Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8659,13 +9809,13 @@ class SwiftLibrary { late final _sel_stringByReplacingCharactersInRange_withString_1 = _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_325( + ffi.Pointer _objc_msgSend_365( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacement, ) { - return __objc_msgSend_325( + return __objc_msgSend_365( obj, sel, range, @@ -8673,26 +9823,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_325Ptr = _lookup< + late final __objc_msgSend_365Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_stringByApplyingTransform_reverse_1 = _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_326( + ffi.Pointer _objc_msgSend_366( ffi.Pointer obj, ffi.Pointer sel, - NSStringTransform transform, + ffi.Pointer transform, bool reverse, ) { - return __objc_msgSend_326( + return __objc_msgSend_366( obj, sel, transform, @@ -8700,20 +9850,20 @@ class SwiftLibrary { ); } - late final __objc_msgSend_326Ptr = _lookup< + late final __objc_msgSend_366Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSStringTransform, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSStringTransform, bool)>(); + ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_writeToURL_atomically_encoding_error_1 = _registerName1("writeToURL:atomically:encoding:error:"); - bool _objc_msgSend_327( + bool _objc_msgSend_367( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -8721,7 +9871,7 @@ class SwiftLibrary { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_327( + return __objc_msgSend_367( obj, sel, url, @@ -8731,16 +9881,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_327Ptr = _lookup< + late final __objc_msgSend_367Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8751,7 +9901,7 @@ class SwiftLibrary { late final _sel_writeToFile_atomically_encoding_error_1 = _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_328( + bool _objc_msgSend_368( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -8759,7 +9909,7 @@ class SwiftLibrary { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_328( + return __objc_msgSend_368( obj, sel, path, @@ -8769,16 +9919,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_328Ptr = _lookup< + late final __objc_msgSend_368Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8790,14 +9940,14 @@ class SwiftLibrary { late final _sel_hash1 = _registerName1("hash"); late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_329( + instancetype _objc_msgSend_369( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer characters, + ffi.Pointer characters, int length, bool freeBuffer, ) { - return __objc_msgSend_329( + return __objc_msgSend_369( obj, sel, characters, @@ -8806,24 +9956,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_329Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + late final __objc_msgSend_369Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); + ffi.Pointer, int, bool)>(); late final _sel_initWithCharactersNoCopy_length_deallocator_1 = _registerName1("initWithCharactersNoCopy:length:deallocator:"); - instancetype _objc_msgSend_330( + instancetype _objc_msgSend_370( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer chars, + ffi.Pointer chars, int len, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_330( + return __objc_msgSend_370( obj, sel, chars, @@ -8832,27 +9986,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_330Ptr = _lookup< + late final __objc_msgSend_370Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, + ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithCharacters_length_1 = _registerName1("initWithCharacters:length:"); - instancetype _objc_msgSend_331( + instancetype _objc_msgSend_371( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer characters, + ffi.Pointer characters, int length, ) { - return __objc_msgSend_331( + return __objc_msgSend_371( obj, sel, characters, @@ -8860,45 +10014,48 @@ class SwiftLibrary { ); } - late final __objc_msgSend_331Ptr = _lookup< + late final __objc_msgSend_371Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, int)>(); late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_332( + instancetype _objc_msgSend_372( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_332( + return __objc_msgSend_372( obj, sel, nullTerminatedCString, ); } - late final __objc_msgSend_332Ptr = _lookup< + late final __objc_msgSend_372Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); late final _sel_initWithFormat_arguments_1 = _registerName1("initWithFormat:arguments:"); - instancetype _objc_msgSend_333( + instancetype _objc_msgSend_373( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_333( + return __objc_msgSend_373( obj, sel, format, @@ -8906,29 +10063,54 @@ class SwiftLibrary { ); } - late final __objc_msgSend_333Ptr = _lookup< + late final __objc_msgSend_373Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); late final _sel_initWithFormat_locale_1 = _registerName1("initWithFormat:locale:"); + instancetype _objc_msgSend_374( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer locale, + ) { + return __objc_msgSend_374( + obj, + sel, + format, + locale, + ); + } + + late final __objc_msgSend_374Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithFormat_locale_arguments_1 = _registerName1("initWithFormat:locale:arguments:"); - instancetype _objc_msgSend_334( + instancetype _objc_msgSend_375( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_334( + return __objc_msgSend_375( obj, sel, format, @@ -8937,7 +10119,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_334Ptr = _lookup< + late final __objc_msgSend_375Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8945,7 +10127,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8953,15 +10135,170 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); + late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); + instancetype _objc_msgSend_376( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer> error, + ) { + return __objc_msgSend_376( + obj, + sel, + format, + validFormatSpecifiers, + error, + ); + } + + late final __objc_msgSend_376Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); + instancetype _objc_msgSend_377( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer locale, + ffi.Pointer> error, + ) { + return __objc_msgSend_377( + obj, + sel, + format, + validFormatSpecifiers, + locale, + error, + ); + } + + late final __objc_msgSend_377Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); + instancetype _objc_msgSend_378( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error, + ) { + return __objc_msgSend_378( + obj, + sel, + format, + validFormatSpecifiers, + argList, + error, + ); + } + + late final __objc_msgSend_378Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); + instancetype _objc_msgSend_379( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error, + ) { + return __objc_msgSend_379( + obj, + sel, + format, + validFormatSpecifiers, + locale, + argList, + error, + ); + } + + late final __objc_msgSend_379Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>(); + late final _sel_initWithData_encoding_1 = _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_335( + instancetype _objc_msgSend_380( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int encoding, ) { - return __objc_msgSend_335( + return __objc_msgSend_380( obj, sel, data, @@ -8969,24 +10306,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_335Ptr = _lookup< + late final __objc_msgSend_380Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBytes_length_encoding_1 = _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_336( + instancetype _objc_msgSend_381( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int len, int encoding, ) { - return __objc_msgSend_336( + return __objc_msgSend_381( obj, sel, bytes, @@ -8995,21 +10332,21 @@ class SwiftLibrary { ); } - late final __objc_msgSend_336Ptr = _lookup< + late final __objc_msgSend_381Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + ffi.UnsignedLong, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); - instancetype _objc_msgSend_337( + instancetype _objc_msgSend_382( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9017,7 +10354,7 @@ class SwiftLibrary { int encoding, bool freeBuffer, ) { - return __objc_msgSend_337( + return __objc_msgSend_382( obj, sel, bytes, @@ -9027,22 +10364,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_337Ptr = _lookup< + late final __objc_msgSend_382Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, bool)>(); late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); - instancetype _objc_msgSend_338( + instancetype _objc_msgSend_383( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9050,7 +10387,7 @@ class SwiftLibrary { int encoding, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_338( + return __objc_msgSend_383( obj, sel, bytes, @@ -9060,16 +10397,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_338Ptr = _lookup< + late final __objc_msgSend_383Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSStringEncoding, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9082,15 +10419,20 @@ class SwiftLibrary { late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); late final _sel_localizedStringWithFormat_1 = _registerName1("localizedStringWithFormat:"); + late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1("stringWithValidatedFormat:validFormatSpecifiers:error:"); + late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1( + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_initWithCString_encoding_1 = _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_339( + instancetype _objc_msgSend_384( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, int encoding, ) { - return __objc_msgSend_339( + return __objc_msgSend_384( obj, sel, nullTerminatedCString, @@ -9098,11 +10440,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_339Ptr = _lookup< + late final __objc_msgSend_384Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -9110,14 +10452,14 @@ class SwiftLibrary { _registerName1("stringWithCString:encoding:"); late final _sel_initWithContentsOfURL_encoding_error_1 = _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_340( + instancetype _objc_msgSend_385( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_340( + return __objc_msgSend_385( obj, sel, url, @@ -9126,15 +10468,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_340Ptr = _lookup< + late final __objc_msgSend_385Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9144,14 +10486,14 @@ class SwiftLibrary { late final _sel_initWithContentsOfFile_encoding_error_1 = _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_341( + instancetype _objc_msgSend_386( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_341( + return __objc_msgSend_386( obj, sel, path, @@ -9160,15 +10502,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_341Ptr = _lookup< + late final __objc_msgSend_386Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSStringEncoding, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9182,14 +10524,14 @@ class SwiftLibrary { _registerName1("stringWithContentsOfFile:encoding:error:"); late final _sel_initWithContentsOfURL_usedEncoding_error_1 = _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_342( + instancetype _objc_msgSend_387( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, - ffi.Pointer enc, + ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_342( + return __objc_msgSend_387( obj, sel, url, @@ -9198,32 +10540,32 @@ class SwiftLibrary { ); } - late final __objc_msgSend_342Ptr = _lookup< + late final __objc_msgSend_387Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); late final _sel_initWithContentsOfFile_usedEncoding_error_1 = _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_343( + instancetype _objc_msgSend_388( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, - ffi.Pointer enc, + ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_343( + return __objc_msgSend_388( obj, sel, path, @@ -9232,20 +10574,20 @@ class SwiftLibrary { ); } - late final __objc_msgSend_343Ptr = _lookup< + late final __objc_msgSend_388Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = @@ -9255,7 +10597,7 @@ class SwiftLibrary { late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = _registerName1( "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_344( + int _objc_msgSend_389( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, @@ -9263,7 +10605,7 @@ class SwiftLibrary { ffi.Pointer> string, ffi.Pointer usedLossyConversion, ) { - return __objc_msgSend_344( + return __objc_msgSend_389( obj, sel, data, @@ -9273,16 +10615,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_344Ptr = _lookup< + late final __objc_msgSend_389Ptr = _lookup< ffi.NativeFunction< - NSStringEncoding Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -9294,19 +10636,37 @@ class SwiftLibrary { late final _sel_propertyList1 = _registerName1("propertyList"); late final _sel_propertyListFromStringsFileFormat1 = _registerName1("propertyListFromStringsFileFormat"); + ffi.Pointer _objc_msgSend_390( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_390( + obj, + sel, + ); + } + + late final __objc_msgSend_390Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_cString1 = _registerName1("cString"); late final _sel_lossyCString1 = _registerName1("lossyCString"); late final _sel_cStringLength1 = _registerName1("cStringLength"); late final _sel_getCString_1 = _registerName1("getCString:"); late final _sel_getCString_maxLength_1 = _registerName1("getCString:maxLength:"); - void _objc_msgSend_345( + void _objc_msgSend_391( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, ) { - return __objc_msgSend_345( + return __objc_msgSend_391( obj, sel, bytes, @@ -9314,25 +10674,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_345Ptr = _lookup< + late final __objc_msgSend_391Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getCString_maxLength_range_remainingRange_1 = _registerName1("getCString:maxLength:range:remainingRange:"); - void _objc_msgSend_346( + void _objc_msgSend_392( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, - NSRange aRange, - NSRangePointer leftoverRange, + _NSRange aRange, + ffi.Pointer<_NSRange> leftoverRange, ) { - return __objc_msgSend_346( + return __objc_msgSend_392( obj, sel, bytes, @@ -9342,18 +10702,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_346Ptr = _lookup< + late final __objc_msgSend_392Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + ffi.UnsignedLong, + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, NSRangePointer)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); late final _sel_stringWithContentsOfFile_1 = _registerName1("stringWithContentsOfFile:"); @@ -9361,14 +10721,14 @@ class SwiftLibrary { _registerName1("stringWithContentsOfURL:"); late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_347( + ffi.Pointer _objc_msgSend_393( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool freeBuffer, ) { - return __objc_msgSend_347( + return __objc_msgSend_393( obj, sel, bytes, @@ -9377,15 +10737,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_347Ptr = _lookup< + late final __objc_msgSend_393Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); @@ -9396,66 +10756,66 @@ class SwiftLibrary { _registerName1("stringWithCString:length:"); late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_348( + void _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, + ffi.Pointer buffer, ) { - return __objc_msgSend_348( + return __objc_msgSend_394( obj, sel, buffer, ); } - late final __objc_msgSend_348Ptr = _lookup< + late final __objc_msgSend_394Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_variantFittingPresentationWidth_1 = _registerName1("variantFittingPresentationWidth:"); - ffi.Pointer _objc_msgSend_349( + ffi.Pointer _objc_msgSend_395( ffi.Pointer obj, ffi.Pointer sel, int width, ) { - return __objc_msgSend_349( + return __objc_msgSend_395( obj, sel, width, ); } - late final __objc_msgSend_349Ptr = _lookup< + late final __objc_msgSend_395Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pathWithComponents_1 = _registerName1("pathWithComponents:"); - ffi.Pointer _objc_msgSend_350( + ffi.Pointer _objc_msgSend_396( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer components, ) { - return __objc_msgSend_350( + return __objc_msgSend_396( obj, sel, components, ); } - late final __objc_msgSend_350Ptr = _lookup< + late final __objc_msgSend_396Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9481,7 +10841,7 @@ class SwiftLibrary { late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1 = _registerName1( "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"); - int _objc_msgSend_351( + int _objc_msgSend_397( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> outputName, @@ -9489,7 +10849,7 @@ class SwiftLibrary { ffi.Pointer> outputArray, ffi.Pointer filterTypes, ) { - return __objc_msgSend_351( + return __objc_msgSend_397( obj, sel, outputName, @@ -9499,16 +10859,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_351Ptr = _lookup< + late final __objc_msgSend_397Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Bool, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -9519,10 +10879,50 @@ class SwiftLibrary { late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); + ffi.Pointer _objc_msgSend_398( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer allowedCharacters, + ) { + return __objc_msgSend_398( + obj, + sel, + allowedCharacters, + ); + } + + late final __objc_msgSend_398Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_stringByRemovingPercentEncoding1 = _registerName1("stringByRemovingPercentEncoding"); late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = _registerName1("stringByAddingPercentEscapesUsingEncoding:"); + ffi.Pointer _objc_msgSend_399( + ffi.Pointer obj, + ffi.Pointer sel, + int enc, + ) { + return __objc_msgSend_399( + obj, + sel, + enc, + ); + } + + late final __objc_msgSend_399Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); late final _class_NSOrthography1 = _getClass1("NSOrthography"); @@ -9530,13 +10930,13 @@ class SwiftLibrary { late final _sel_languageMap1 = _registerName1("languageMap"); late final _sel_initWithDominantScript_languageMap_1 = _registerName1("initWithDominantScript:languageMap:"); - instancetype _objc_msgSend_352( + instancetype _objc_msgSend_400( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer script, ffi.Pointer map, ) { - return __objc_msgSend_352( + return __objc_msgSend_400( obj, sel, script, @@ -9544,14 +10944,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_352Ptr = _lookup< + late final __objc_msgSend_400Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9568,16 +10968,16 @@ class SwiftLibrary { late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1 = _registerName1( "linguisticTagsInRange:scheme:options:orthography:tokenRanges:"); - ffi.Pointer _objc_msgSend_353( + ffi.Pointer _objc_msgSend_401( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + ffi.Pointer scheme, int options, ffi.Pointer orthography, ffi.Pointer> tokenRanges, ) { - return __objc_msgSend_353( + return __objc_msgSend_401( obj, sel, range, @@ -9588,22 +10988,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_353Ptr = _lookup< + late final __objc_msgSend_401Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, int, ffi.Pointer, ffi.Pointer>)>(); @@ -9611,16 +11011,16 @@ class SwiftLibrary { late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1 = _registerName1( "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:"); - void _objc_msgSend_354( + void _objc_msgSend_402( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + ffi.Pointer scheme, int options, ffi.Pointer orthography, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_354( + return __objc_msgSend_402( obj, sel, range, @@ -9631,143 +11031,142 @@ class SwiftLibrary { ); } - late final __objc_msgSend_354Ptr = _lookup< + late final __objc_msgSend_402Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - NSRange, - NSLinguisticTagScheme, + _NSRange, + ffi.Pointer, int, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_allObjects1 = _registerName1("allObjects"); late final _sel_anyObject1 = _registerName1("anyObject"); late final _sel_intersectsSet_1 = _registerName1("intersectsSet:"); - bool _objc_msgSend_355( + bool _objc_msgSend_403( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_355( + return __objc_msgSend_403( obj, sel, otherSet, ); } - late final __objc_msgSend_355Ptr = _lookup< + late final __objc_msgSend_403Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToSet_1 = _registerName1("isEqualToSet:"); late final _sel_isSubsetOfSet_1 = _registerName1("isSubsetOfSet:"); late final _sel_setByAddingObject_1 = _registerName1("setByAddingObject:"); - ffi.Pointer _objc_msgSend_356( + ffi.Pointer _objc_msgSend_404( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_356( + return __objc_msgSend_404( obj, sel, anObject, ); } - late final __objc_msgSend_356Ptr = _lookup< + late final __objc_msgSend_404Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromSet_1 = _registerName1("setByAddingObjectsFromSet:"); - ffi.Pointer _objc_msgSend_357( + ffi.Pointer _objc_msgSend_405( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_357( + return __objc_msgSend_405( obj, sel, other, ); } - late final __objc_msgSend_357Ptr = _lookup< + late final __objc_msgSend_405Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setByAddingObjectsFromArray_1 = _registerName1("setByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_358( + ffi.Pointer _objc_msgSend_406( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_358( + return __objc_msgSend_406( obj, sel, other, ); } - late final __objc_msgSend_358Ptr = _lookup< + late final __objc_msgSend_406Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_359( + void _objc_msgSend_407( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_359( + return __objc_msgSend_407( obj, sel, block, ); } - late final __objc_msgSend_359Ptr = _lookup< + late final __objc_msgSend_407Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - void _objc_msgSend_360( + void _objc_msgSend_408( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_360( + return __objc_msgSend_408( obj, sel, opts, @@ -9775,44 +11174,44 @@ class SwiftLibrary { ); } - late final __objc_msgSend_360Ptr = _lookup< + late final __objc_msgSend_408Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< + late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); - ffi.Pointer _objc_msgSend_361( + ffi.Pointer _objc_msgSend_409( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_361( + return __objc_msgSend_409( obj, sel, predicate, ); } - late final __objc_msgSend_361Ptr = _lookup< + late final __objc_msgSend_409Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsWithOptions_passingTest_1 = _registerName1("objectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_362( + ffi.Pointer _objc_msgSend_410( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_362( + return __objc_msgSend_410( obj, sel, opts, @@ -9820,14 +11219,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_362Ptr = _lookup< + late final __objc_msgSend_410Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9837,23 +11236,23 @@ class SwiftLibrary { _registerName1("setWithObjects:count:"); late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); late final _sel_setWithSet_1 = _registerName1("setWithSet:"); - instancetype _objc_msgSend_363( + instancetype _objc_msgSend_411( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_363( + return __objc_msgSend_411( obj, sel, set1, ); } - late final __objc_msgSend_363Ptr = _lookup< + late final __objc_msgSend_411Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -9861,13 +11260,13 @@ class SwiftLibrary { late final _sel_initWithSet_1 = _registerName1("initWithSet:"); late final _sel_initWithSet_copyItems_1 = _registerName1("initWithSet:copyItems:"); - instancetype _objc_msgSend_364( + instancetype _objc_msgSend_412( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_364( + return __objc_msgSend_412( obj, sel, set1, @@ -9875,74 +11274,74 @@ class SwiftLibrary { ); } - late final __objc_msgSend_364Ptr = _lookup< + late final __objc_msgSend_412Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_filteredSetUsingPredicate_1 = _registerName1("filteredSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_365( + ffi.Pointer _objc_msgSend_413( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_365( + return __objc_msgSend_413( obj, sel, predicate, ); } - late final __objc_msgSend_365Ptr = _lookup< + late final __objc_msgSend_413Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_invocationWithMethodSignature_1 = _registerName1("invocationWithMethodSignature:"); - ffi.Pointer _objc_msgSend_366( + ffi.Pointer _objc_msgSend_414( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sig, ) { - return __objc_msgSend_366( + return __objc_msgSend_414( obj, sel, sig, ); } - late final __objc_msgSend_366Ptr = _lookup< + late final __objc_msgSend_414Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignature1 = _registerName1("methodSignature"); - ffi.Pointer _objc_msgSend_367( + ffi.Pointer _objc_msgSend_415( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_367( + return __objc_msgSend_415( obj, sel, ); } - late final __objc_msgSend_367Ptr = _lookup< + late final __objc_msgSend_415Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -9950,63 +11349,63 @@ class SwiftLibrary { late final _sel_argumentsRetained1 = _registerName1("argumentsRetained"); late final _sel_target1 = _registerName1("target"); late final _sel_setTarget_1 = _registerName1("setTarget:"); - void _objc_msgSend_368( + void _objc_msgSend_416( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_368( + return __objc_msgSend_416( obj, sel, value, ); } - late final __objc_msgSend_368Ptr = _lookup< + late final __objc_msgSend_416Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selector1 = _registerName1("selector"); - ffi.Pointer _objc_msgSend_369( + ffi.Pointer _objc_msgSend_417( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_369( + return __objc_msgSend_417( obj, sel, ); } - late final __objc_msgSend_369Ptr = _lookup< + late final __objc_msgSend_417Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSelector_1 = _registerName1("setSelector:"); - void _objc_msgSend_370( + void _objc_msgSend_418( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_370( + return __objc_msgSend_418( obj, sel, value, ); } - late final __objc_msgSend_370Ptr = _lookup< + late final __objc_msgSend_418Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10014,13 +11413,13 @@ class SwiftLibrary { late final _sel_setReturnValue_1 = _registerName1("setReturnValue:"); late final _sel_getArgument_atIndex_1 = _registerName1("getArgument:atIndex:"); - void _objc_msgSend_371( + void _objc_msgSend_419( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentLocation, int idx, ) { - return __objc_msgSend_371( + return __objc_msgSend_419( obj, sel, argumentLocation, @@ -10028,11 +11427,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_371Ptr = _lookup< + late final __objc_msgSend_419Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -10040,46 +11439,68 @@ class SwiftLibrary { _registerName1("setArgument:atIndex:"); late final _sel_invoke1 = _registerName1("invoke"); late final _sel_invokeWithTarget_1 = _registerName1("invokeWithTarget:"); + late final _sel_invokeUsingIMP_1 = _registerName1("invokeUsingIMP:"); + void _objc_msgSend_420( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> imp, + ) { + return __objc_msgSend_420( + obj, + sel, + imp, + ); + } + + late final __objc_msgSend_420Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>( + 'objc_msgSend'); + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); - void _objc_msgSend_372( + void _objc_msgSend_421( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anInvocation, ) { - return __objc_msgSend_372( + return __objc_msgSend_421( obj, sel, anInvocation, ); } - late final __objc_msgSend_372Ptr = _lookup< + late final __objc_msgSend_421Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_methodSignatureForSelector_1 = _registerName1("methodSignatureForSelector:"); - ffi.Pointer _objc_msgSend_373( + ffi.Pointer _objc_msgSend_422( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_373( + return __objc_msgSend_422( obj, sel, aSelector, ); } - late final __objc_msgSend_373Ptr = _lookup< + late final __objc_msgSend_422Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10096,23 +11517,23 @@ class SwiftLibrary { late final _sel_debugDescription1 = _registerName1("debugDescription"); late final _sel_version1 = _registerName1("version"); late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_374( + void _objc_msgSend_423( ffi.Pointer obj, ffi.Pointer sel, int aVersion, ) { - return __objc_msgSend_374( + return __objc_msgSend_423( obj, sel, aVersion, ); } - late final __objc_msgSend_374Ptr = _lookup< + late final __objc_msgSend_423Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_classForCoder1 = _registerName1("classForCoder"); @@ -10126,7 +11547,7 @@ class SwiftLibrary { late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = _registerName1( "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_375( + void _objc_msgSend_424( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, @@ -10135,7 +11556,7 @@ class SwiftLibrary { ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo, ) { - return __objc_msgSend_375( + return __objc_msgSend_424( obj, sel, error, @@ -10146,17 +11567,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_375Ptr = _lookup< + late final __objc_msgSend_424Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10168,13 +11589,13 @@ class SwiftLibrary { late final _sel_attemptRecoveryFromError_optionIndex_1 = _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_376( + bool _objc_msgSend_425( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, int recoveryOptionIndex, ) { - return __objc_msgSend_376( + return __objc_msgSend_425( obj, sel, error, @@ -10182,17 +11603,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_376Ptr = _lookup< + late final __objc_msgSend_425Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performSelector_withObject_afterDelay_inModes_1 = _registerName1("performSelector:withObject:afterDelay:inModes:"); - void _objc_msgSend_377( + void _objc_msgSend_426( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -10200,7 +11621,7 @@ class SwiftLibrary { double delay, ffi.Pointer modes, ) { - return __objc_msgSend_377( + return __objc_msgSend_426( obj, sel, aSelector, @@ -10210,16 +11631,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_377Ptr = _lookup< + late final __objc_msgSend_426Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10230,14 +11651,14 @@ class SwiftLibrary { late final _sel_performSelector_withObject_afterDelay_1 = _registerName1("performSelector:withObject:afterDelay:"); - void _objc_msgSend_378( + void _objc_msgSend_427( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer anArgument, double delay, ) { - return __objc_msgSend_378( + return __objc_msgSend_427( obj, sel, aSelector, @@ -10246,27 +11667,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_378Ptr = _lookup< + late final __objc_msgSend_427Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, double)>(); late final _sel_URL_resourceDataDidBecomeAvailable_1 = _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_379( + void _objc_msgSend_428( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer newBytes, ) { - return __objc_msgSend_379( + return __objc_msgSend_428( obj, sel, sender, @@ -10274,36 +11695,36 @@ class SwiftLibrary { ); } - late final __objc_msgSend_379Ptr = _lookup< + late final __objc_msgSend_428Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLResourceDidFinishLoading_1 = _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_380( + void _objc_msgSend_429( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ) { - return __objc_msgSend_380( + return __objc_msgSend_429( obj, sel, sender, ); } - late final __objc_msgSend_380Ptr = _lookup< + late final __objc_msgSend_429Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10311,13 +11732,13 @@ class SwiftLibrary { _registerName1("URLResourceDidCancelLoading:"); late final _sel_URL_resourceDidFailLoadingWithReason_1 = _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_381( + void _objc_msgSend_430( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer reason, ) { - return __objc_msgSend_381( + return __objc_msgSend_430( obj, sel, sender, @@ -10325,47 +11746,47 @@ class SwiftLibrary { ); } - late final __objc_msgSend_381Ptr = _lookup< + late final __objc_msgSend_430Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< + late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSFileManager1 = _getClass1("NSFileManager"); late final _sel_defaultManager1 = _registerName1("defaultManager"); - ffi.Pointer _objc_msgSend_382( + ffi.Pointer _objc_msgSend_431( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_382( + return __objc_msgSend_431( obj, sel, ); } - late final __objc_msgSend_382Ptr = _lookup< + late final __objc_msgSend_431Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1 = _registerName1( "mountedVolumeURLsIncludingResourceValuesForKeys:options:"); - ffi.Pointer _objc_msgSend_383( + ffi.Pointer _objc_msgSend_432( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer propertyKeys, int options, ) { - return __objc_msgSend_383( + return __objc_msgSend_432( obj, sel, propertyKeys, @@ -10373,27 +11794,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_383Ptr = _lookup< + late final __objc_msgSend_432Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_unmountVolumeAtURL_options_completionHandler_1 = _registerName1("unmountVolumeAtURL:options:completionHandler:"); - void _objc_msgSend_384( + void _objc_msgSend_433( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_384( + return __objc_msgSend_433( obj, sel, url, @@ -10402,7 +11823,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_384Ptr = _lookup< + late final __objc_msgSend_433Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10410,14 +11831,14 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1 = _registerName1( "contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"); - ffi.Pointer _objc_msgSend_385( + ffi.Pointer _objc_msgSend_434( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10425,7 +11846,7 @@ class SwiftLibrary { int mask, ffi.Pointer> error, ) { - return __objc_msgSend_385( + return __objc_msgSend_434( obj, sel, url, @@ -10435,7 +11856,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_385Ptr = _lookup< + late final __objc_msgSend_434Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10444,7 +11865,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10455,13 +11876,13 @@ class SwiftLibrary { late final _sel_URLsForDirectory_inDomains_1 = _registerName1("URLsForDirectory:inDomains:"); - ffi.Pointer _objc_msgSend_386( + ffi.Pointer _objc_msgSend_435( ffi.Pointer obj, ffi.Pointer sel, int directory, int domainMask, ) { - return __objc_msgSend_386( + return __objc_msgSend_435( obj, sel, directory, @@ -10469,18 +11890,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_386Ptr = _lookup< + late final __objc_msgSend_435Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_URLForDirectory_inDomain_appropriateForURL_create_error_1 = _registerName1( "URLForDirectory:inDomain:appropriateForURL:create:error:"); - ffi.Pointer _objc_msgSend_387( + ffi.Pointer _objc_msgSend_436( ffi.Pointer obj, ffi.Pointer sel, int directory, @@ -10489,7 +11910,7 @@ class SwiftLibrary { bool shouldCreate, ffi.Pointer> error, ) { - return __objc_msgSend_387( + return __objc_msgSend_436( obj, sel, directory, @@ -10500,7 +11921,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_387Ptr = _lookup< + late final __objc_msgSend_436Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -10510,7 +11931,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10522,7 +11943,7 @@ class SwiftLibrary { late final _sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"); - bool _objc_msgSend_388( + bool _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -10530,7 +11951,7 @@ class SwiftLibrary { ffi.Pointer otherURL, ffi.Pointer> error, ) { - return __objc_msgSend_388( + return __objc_msgSend_437( obj, sel, outRelationship, @@ -10540,7 +11961,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_388Ptr = _lookup< + late final __objc_msgSend_437Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10549,7 +11970,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10560,7 +11981,7 @@ class SwiftLibrary { late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); - bool _objc_msgSend_389( + bool _objc_msgSend_438( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer outRelationship, @@ -10569,7 +11990,7 @@ class SwiftLibrary { ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_389( + return __objc_msgSend_438( obj, sel, outRelationship, @@ -10580,7 +12001,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_389Ptr = _lookup< + late final __objc_msgSend_438Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10590,7 +12011,7 @@ class SwiftLibrary { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10603,7 +12024,7 @@ class SwiftLibrary { late final _sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_390( + bool _objc_msgSend_439( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -10611,7 +12032,7 @@ class SwiftLibrary { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_390( + return __objc_msgSend_439( obj, sel, url, @@ -10621,7 +12042,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_390Ptr = _lookup< + late final __objc_msgSend_439Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10630,7 +12051,7 @@ class SwiftLibrary { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10641,14 +12062,14 @@ class SwiftLibrary { late final _sel_createSymbolicLinkAtURL_withDestinationURL_error_1 = _registerName1("createSymbolicLinkAtURL:withDestinationURL:error:"); - bool _objc_msgSend_391( + bool _objc_msgSend_440( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer destURL, ffi.Pointer> error, ) { - return __objc_msgSend_391( + return __objc_msgSend_440( obj, sel, url, @@ -10657,7 +12078,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_391Ptr = _lookup< + late final __objc_msgSend_440Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10665,7 +12086,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10677,14 +12098,14 @@ class SwiftLibrary { late final _sel_setDelegate_1 = _registerName1("setDelegate:"); late final _sel_setAttributes_ofItemAtPath_error_1 = _registerName1("setAttributes:ofItemAtPath:error:"); - bool _objc_msgSend_392( + bool _objc_msgSend_441( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_392( + return __objc_msgSend_441( obj, sel, attributes, @@ -10693,7 +12114,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_392Ptr = _lookup< + late final __objc_msgSend_441Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10701,7 +12122,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10712,7 +12133,7 @@ class SwiftLibrary { late final _sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1 = _registerName1( "createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_393( + bool _objc_msgSend_442( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -10720,7 +12141,7 @@ class SwiftLibrary { ffi.Pointer attributes, ffi.Pointer> error, ) { - return __objc_msgSend_393( + return __objc_msgSend_442( obj, sel, path, @@ -10730,7 +12151,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_393Ptr = _lookup< + late final __objc_msgSend_442Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10739,7 +12160,7 @@ class SwiftLibrary { ffi.Bool, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10750,13 +12171,13 @@ class SwiftLibrary { late final _sel_contentsOfDirectoryAtPath_error_1 = _registerName1("contentsOfDirectoryAtPath:error:"); - ffi.Pointer _objc_msgSend_394( + ffi.Pointer _objc_msgSend_443( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_394( + return __objc_msgSend_443( obj, sel, path, @@ -10764,14 +12185,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_394Ptr = _lookup< + late final __objc_msgSend_443Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10782,13 +12203,13 @@ class SwiftLibrary { _registerName1("subpathsOfDirectoryAtPath:error:"); late final _sel_attributesOfItemAtPath_error_1 = _registerName1("attributesOfItemAtPath:error:"); - ffi.Pointer _objc_msgSend_395( + ffi.Pointer _objc_msgSend_444( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_395( + return __objc_msgSend_444( obj, sel, path, @@ -10796,14 +12217,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_395Ptr = _lookup< + late final __objc_msgSend_444Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10814,14 +12235,14 @@ class SwiftLibrary { _registerName1("attributesOfFileSystemForPath:error:"); late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); - bool _objc_msgSend_396( + bool _objc_msgSend_445( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer destPath, ffi.Pointer> error, ) { - return __objc_msgSend_396( + return __objc_msgSend_445( obj, sel, path, @@ -10830,7 +12251,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_396Ptr = _lookup< + late final __objc_msgSend_445Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10838,7 +12259,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10848,13 +12269,13 @@ class SwiftLibrary { late final _sel_destinationOfSymbolicLinkAtPath_error_1 = _registerName1("destinationOfSymbolicLinkAtPath:error:"); - ffi.Pointer _objc_msgSend_397( + ffi.Pointer _objc_msgSend_446( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_397( + return __objc_msgSend_446( obj, sel, path, @@ -10862,14 +12283,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_397Ptr = _lookup< + late final __objc_msgSend_446Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -10884,13 +12305,13 @@ class SwiftLibrary { _registerName1("linkItemAtPath:toPath:error:"); late final _sel_removeItemAtPath_error_1 = _registerName1("removeItemAtPath:error:"); - bool _objc_msgSend_398( + bool _objc_msgSend_447( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer> error, ) { - return __objc_msgSend_398( + return __objc_msgSend_447( obj, sel, path, @@ -10898,14 +12319,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_398Ptr = _lookup< + late final __objc_msgSend_447Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -10919,14 +12340,14 @@ class SwiftLibrary { _registerName1("removeItemAtURL:error:"); late final _sel_trashItemAtURL_resultingItemURL_error_1 = _registerName1("trashItemAtURL:resultingItemURL:error:"); - bool _objc_msgSend_399( + bool _objc_msgSend_448( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> outResultingURL, ffi.Pointer> error, ) { - return __objc_msgSend_399( + return __objc_msgSend_448( obj, sel, url, @@ -10935,7 +12356,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_399Ptr = _lookup< + late final __objc_msgSend_448Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -10943,7 +12364,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -10953,13 +12374,13 @@ class SwiftLibrary { late final _sel_fileAttributesAtPath_traverseLink_1 = _registerName1("fileAttributesAtPath:traverseLink:"); - ffi.Pointer _objc_msgSend_400( + ffi.Pointer _objc_msgSend_449( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool yorn, ) { - return __objc_msgSend_400( + return __objc_msgSend_449( obj, sel, path, @@ -10967,26 +12388,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_400Ptr = _lookup< + late final __objc_msgSend_449Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_changeFileAttributes_atPath_1 = _registerName1("changeFileAttributes:atPath:"); - bool _objc_msgSend_401( + bool _objc_msgSend_450( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attributes, ffi.Pointer path, ) { - return __objc_msgSend_401( + return __objc_msgSend_450( obj, sel, attributes, @@ -10994,14 +12415,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_401Ptr = _lookup< + late final __objc_msgSend_450Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11013,13 +12434,13 @@ class SwiftLibrary { _registerName1("pathContentOfSymbolicLinkAtPath:"); late final _sel_createSymbolicLinkAtPath_pathContent_1 = _registerName1("createSymbolicLinkAtPath:pathContent:"); - bool _objc_msgSend_402( + bool _objc_msgSend_451( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer otherpath, ) { - return __objc_msgSend_402( + return __objc_msgSend_451( obj, sel, path, @@ -11027,165 +12448,507 @@ class SwiftLibrary { ); } - late final __objc_msgSend_402Ptr = _lookup< + late final __objc_msgSend_451Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_createDirectoryAtPath_attributes_1 = + _registerName1("createDirectoryAtPath:attributes:"); + bool _objc_msgSend_452( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer attributes, + ) { + return __objc_msgSend_452( + obj, + sel, + path, + attributes, + ); + } + + late final __objc_msgSend_452Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_linkPath_toPath_handler_1 = + _registerName1("linkPath:toPath:handler:"); + bool _objc_msgSend_453( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer src, + ffi.Pointer dest, + ffi.Pointer handler, + ) { + return __objc_msgSend_453( + obj, + sel, + src, + dest, + handler, + ); + } + + late final __objc_msgSend_453Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_copyPath_toPath_handler_1 = + _registerName1("copyPath:toPath:handler:"); + late final _sel_movePath_toPath_handler_1 = + _registerName1("movePath:toPath:handler:"); + late final _sel_removeFileAtPath_handler_1 = + _registerName1("removeFileAtPath:handler:"); + bool _objc_msgSend_454( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer handler, + ) { + return __objc_msgSend_454( + obj, + sel, + path, + handler, + ); + } + + late final __objc_msgSend_454Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_createDirectoryAtPath_attributes_1 = - _registerName1("createDirectoryAtPath:attributes:"); - bool _objc_msgSend_403( + late final _sel_currentDirectoryPath1 = + _registerName1("currentDirectoryPath"); + late final _sel_changeCurrentDirectoryPath_1 = + _registerName1("changeCurrentDirectoryPath:"); + late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); + late final _sel_fileExistsAtPath_isDirectory_1 = + _registerName1("fileExistsAtPath:isDirectory:"); + bool _objc_msgSend_455( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer isDirectory, + ) { + return __objc_msgSend_455( + obj, + sel, + path, + isDirectory, + ); + } + + late final __objc_msgSend_455Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isReadableFileAtPath_1 = + _registerName1("isReadableFileAtPath:"); + late final _sel_isWritableFileAtPath_1 = + _registerName1("isWritableFileAtPath:"); + late final _sel_isExecutableFileAtPath_1 = + _registerName1("isExecutableFileAtPath:"); + late final _sel_isDeletableFileAtPath_1 = + _registerName1("isDeletableFileAtPath:"); + late final _sel_contentsEqualAtPath_andPath_1 = + _registerName1("contentsEqualAtPath:andPath:"); + late final _sel_displayNameAtPath_1 = _registerName1("displayNameAtPath:"); + late final _sel_componentsToDisplayForPath_1 = + _registerName1("componentsToDisplayForPath:"); + late final _sel_enumeratorAtPath_1 = _registerName1("enumeratorAtPath:"); + late final _sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1 = + _registerName1( + "enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); + ffi.Pointer _objc_msgSend_456( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer keys, + int mask, + ffi.Pointer<_ObjCBlock> handler, + ) { + return __objc_msgSend_456( + obj, + sel, + url, + keys, + mask, + handler, + ); + } + + late final __objc_msgSend_456Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_subpathsAtPath_1 = _registerName1("subpathsAtPath:"); + late final _sel_contentsAtPath_1 = _registerName1("contentsAtPath:"); + ffi.Pointer _objc_msgSend_457( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_457( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_457Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_createFileAtPath_contents_attributes_1 = + _registerName1("createFileAtPath:contents:attributes:"); + bool _objc_msgSend_458( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer data, + ffi.Pointer attr, + ) { + return __objc_msgSend_458( + obj, + sel, + path, + data, + attr, + ); + } + + late final __objc_msgSend_458Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileSystemRepresentationWithPath_1 = + _registerName1("fileSystemRepresentationWithPath:"); + ffi.Pointer _objc_msgSend_459( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_459( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_459Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_stringWithFileSystemRepresentation_length_1 = + _registerName1("stringWithFileSystemRepresentation:length:"); + ffi.Pointer _objc_msgSend_460( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + int len, + ) { + return __objc_msgSend_460( + obj, + sel, + str, + len, + ); + } + + late final __objc_msgSend_460Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1 = + _registerName1( + "replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"); + bool _objc_msgSend_461( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer originalItemURL, + ffi.Pointer newItemURL, + ffi.Pointer backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_461( + obj, + sel, + originalItemURL, + newItemURL, + backupItemName, + options, + resultingURL, + error, + ); + } + + late final __objc_msgSend_461Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_setUbiquitous_itemAtURL_destinationURL_error_1 = + _registerName1("setUbiquitous:itemAtURL:destinationURL:error:"); + bool _objc_msgSend_462( + ffi.Pointer obj, + ffi.Pointer sel, + bool flag, + ffi.Pointer url, + ffi.Pointer destinationURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_462( + obj, + sel, + flag, + url, + destinationURL, + error, + ); + } + + late final __objc_msgSend_462Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_isUbiquitousItemAtURL_1 = + _registerName1("isUbiquitousItemAtURL:"); + late final _sel_startDownloadingUbiquitousItemAtURL_error_1 = + _registerName1("startDownloadingUbiquitousItemAtURL:error:"); + late final _sel_evictUbiquitousItemAtURL_error_1 = + _registerName1("evictUbiquitousItemAtURL:error:"); + late final _sel_URLForUbiquityContainerIdentifier_1 = + _registerName1("URLForUbiquityContainerIdentifier:"); + ffi.Pointer _objc_msgSend_463( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer attributes, + ffi.Pointer containerIdentifier, ) { - return __objc_msgSend_403( + return __objc_msgSend_463( obj, sel, - path, - attributes, + containerIdentifier, ); } - late final __objc_msgSend_403Ptr = _lookup< + late final __objc_msgSend_463Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_linkPath_toPath_handler_1 = - _registerName1("linkPath:toPath:handler:"); - bool _objc_msgSend_404( + late final _sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1 = + _registerName1( + "URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); + ffi.Pointer _objc_msgSend_464( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer src, - ffi.Pointer dest, - ffi.Pointer handler, + ffi.Pointer url, + ffi.Pointer> outDate, + ffi.Pointer> error, ) { - return __objc_msgSend_404( + return __objc_msgSend_464( obj, sel, - src, - dest, - handler, + url, + outDate, + error, ); } - late final __objc_msgSend_404Ptr = _lookup< + late final __objc_msgSend_464Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< - bool Function( + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_copyPath_toPath_handler_1 = - _registerName1("copyPath:toPath:handler:"); - late final _sel_movePath_toPath_handler_1 = - _registerName1("movePath:toPath:handler:"); - late final _sel_removeFileAtPath_handler_1 = - _registerName1("removeFileAtPath:handler:"); - bool _objc_msgSend_405( + late final _sel_ubiquityIdentityToken1 = + _registerName1("ubiquityIdentityToken"); + late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = + _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); + void _objc_msgSend_465( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer handler, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_405( + return __objc_msgSend_465( obj, sel, - path, - handler, + url, + completionHandler, ); } - late final __objc_msgSend_405Ptr = _lookup< + late final __objc_msgSend_465Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_currentDirectoryPath1 = - _registerName1("currentDirectoryPath"); - late final _sel_changeCurrentDirectoryPath_1 = - _registerName1("changeCurrentDirectoryPath:"); - late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); - late final _sel_fileExistsAtPath_isDirectory_1 = - _registerName1("fileExistsAtPath:isDirectory:"); - bool _objc_msgSend_406( + late final _sel_containerURLForSecurityApplicationGroupIdentifier_1 = + _registerName1("containerURLForSecurityApplicationGroupIdentifier:"); + late final _sel_homeDirectoryForCurrentUser1 = + _registerName1("homeDirectoryForCurrentUser"); + ffi.Pointer _objc_msgSend_466( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer isDirectory, ) { - return __objc_msgSend_406( + return __objc_msgSend_466( obj, sel, - path, - isDirectory, ); } - late final __objc_msgSend_406Ptr = _lookup< + late final __objc_msgSend_466Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_isReadableFileAtPath_1 = - _registerName1("isReadableFileAtPath:"); - late final _sel_isWritableFileAtPath_1 = - _registerName1("isWritableFileAtPath:"); - late final _sel_isExecutableFileAtPath_1 = - _registerName1("isExecutableFileAtPath:"); - late final _sel_isDeletableFileAtPath_1 = - _registerName1("isDeletableFileAtPath:"); - late final _sel_contentsEqualAtPath_andPath_1 = - _registerName1("contentsEqualAtPath:andPath:"); - late final _sel_displayNameAtPath_1 = _registerName1("displayNameAtPath:"); - late final _sel_componentsToDisplayForPath_1 = - _registerName1("componentsToDisplayForPath:"); - late final _sel_homeDirectoryForCurrentUser1 = - _registerName1("homeDirectoryForCurrentUser"); late final _sel_temporaryDirectory1 = _registerName1("temporaryDirectory"); late final _sel_homeDirectoryForUser_1 = _registerName1("homeDirectoryForUser:"); late final _sel_fileManager_shouldProceedAfterError_1 = _registerName1("fileManager:shouldProceedAfterError:"); - bool _objc_msgSend_407( + bool _objc_msgSend_467( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer errorInfo, ) { - return __objc_msgSend_407( + return __objc_msgSend_467( obj, sel, fm, @@ -11193,26 +12956,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_407Ptr = _lookup< + late final __objc_msgSend_467Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileManager_willProcessPath_1 = _registerName1("fileManager:willProcessPath:"); - void _objc_msgSend_408( + void _objc_msgSend_468( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer path, ) { - return __objc_msgSend_408( + return __objc_msgSend_468( obj, sel, fm, @@ -11220,14 +12983,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_408Ptr = _lookup< + late final __objc_msgSend_468Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11237,13 +13000,13 @@ class SwiftLibrary { late final _sel_addObject_1 = _registerName1("addObject:"); late final _sel_insertObject_atIndex_1 = _registerName1("insertObject:atIndex:"); - void _objc_msgSend_409( + void _objc_msgSend_469( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int index, ) { - return __objc_msgSend_409( + return __objc_msgSend_469( obj, sel, anObject, @@ -11251,45 +13014,45 @@ class SwiftLibrary { ); } - late final __objc_msgSend_409Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeLastObject1 = _registerName1("removeLastObject"); late final _sel_removeObjectAtIndex_1 = _registerName1("removeObjectAtIndex:"); - void _objc_msgSend_410( + void _objc_msgSend_470( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_410( + return __objc_msgSend_470( obj, sel, index, ); } - late final __objc_msgSend_410Ptr = _lookup< + late final __objc_msgSend_470Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_411( + void _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_411( + return __objc_msgSend_471( obj, sel, index, @@ -11297,46 +13060,46 @@ class SwiftLibrary { ); } - late final __objc_msgSend_411Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); late final _sel_addObjectsFromArray_1 = _registerName1("addObjectsFromArray:"); - void _objc_msgSend_412( + void _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_412( + return __objc_msgSend_472( obj, sel, otherArray, ); } - late final __objc_msgSend_412Ptr = _lookup< + late final __objc_msgSend_472Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_413( + void _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_413( + return __objc_msgSend_473( obj, sel, idx1, @@ -11344,23 +13107,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_413Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); late final _sel_removeObject_inRange_1 = _registerName1("removeObject:inRange:"); - void _objc_msgSend_414( + void _objc_msgSend_474( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_414( + return __objc_msgSend_474( obj, sel, anObject, @@ -11368,13 +13131,13 @@ class SwiftLibrary { ); } - late final __objc_msgSend_414Ptr = _lookup< + late final __objc_msgSend_474Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_removeObject_1 = _registerName1("removeObject:"); late final _sel_removeObjectIdenticalTo_inRange_1 = @@ -11383,13 +13146,13 @@ class SwiftLibrary { _registerName1("removeObjectIdenticalTo:"); late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_415( + void _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indices, + ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_415( + return __objc_msgSend_475( obj, sel, indices, @@ -11397,47 +13160,50 @@ class SwiftLibrary { ); } - late final __objc_msgSend_415Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, int)>(); late final _sel_removeObjectsInArray_1 = _registerName1("removeObjectsInArray:"); late final _sel_removeObjectsInRange_1 = _registerName1("removeObjectsInRange:"); - void _objc_msgSend_416( + void _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_416( + return __objc_msgSend_476( obj, sel, range, ); } - late final __objc_msgSend_416Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange)>(); + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_417( + void _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer otherArray, - NSRange otherRange, + _NSRange otherRange, ) { - return __objc_msgSend_417( + return __objc_msgSend_477( obj, sel, range, @@ -11446,23 +13212,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_417Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, - ffi.Pointer, NSRange)>(); + _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_418( + void _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_418( + return __objc_msgSend_478( obj, sel, range, @@ -11470,28 +13236,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_418Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_setArray_1 = _registerName1("setArray:"); late final _sel_sortUsingFunction_context_1 = _registerName1("sortUsingFunction:context:"); - void _objc_msgSend_419( + void _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> compare, ffi.Pointer context, ) { - return __objc_msgSend_419( + return __objc_msgSend_479( obj, sel, compare, @@ -11499,36 +13265,36 @@ class SwiftLibrary { ); } - late final __objc_msgSend_419Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>(); late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); late final _sel_insertObjects_atIndexes_1 = _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_420( + void _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_420( + return __objc_msgSend_480( obj, sel, objects, @@ -11536,48 +13302,48 @@ class SwiftLibrary { ); } - late final __objc_msgSend_420Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeObjectsAtIndexes_1 = _registerName1("removeObjectsAtIndexes:"); - void _objc_msgSend_421( + void _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_421( + return __objc_msgSend_481( obj, sel, indexes, ); } - late final __objc_msgSend_421Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_422( + void _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_422( + return __objc_msgSend_482( obj, sel, indexes, @@ -11585,14 +13351,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_422Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11600,35 +13366,35 @@ class SwiftLibrary { _registerName1("setObject:atIndexedSubscript:"); late final _sel_sortUsingComparator_1 = _registerName1("sortUsingComparator:"); - void _objc_msgSend_423( + void _objc_msgSend_483( ffi.Pointer obj, ffi.Pointer sel, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_423( + return __objc_msgSend_483( obj, sel, cmptr, ); } - late final __objc_msgSend_423Ptr = _lookup< + late final __objc_msgSend_483Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, NSComparator)>(); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortWithOptions_usingComparator_1 = _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_424( + void _objc_msgSend_484( ffi.Pointer obj, ffi.Pointer sel, int opts, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_424( + return __objc_msgSend_484( obj, sel, opts, @@ -11636,52 +13402,52 @@ class SwiftLibrary { ); } - late final __objc_msgSend_424Ptr = _lookup< + late final __objc_msgSend_484Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, int, NSComparator)>(); + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_425( + ffi.Pointer _objc_msgSend_485( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_425( + return __objc_msgSend_485( obj, sel, path, ); } - late final __objc_msgSend_425Ptr = _lookup< + late final __objc_msgSend_485Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_426( + ffi.Pointer _objc_msgSend_486( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_426( + return __objc_msgSend_486( obj, sel, url, ); } - late final __objc_msgSend_426Ptr = _lookup< + late final __objc_msgSend_486Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11690,49 +13456,69 @@ class SwiftLibrary { _registerName1("sortUsingDescriptors:"); late final _sel_filterUsingPredicate_1 = _registerName1("filterUsingPredicate:"); - void _objc_msgSend_427( + void _objc_msgSend_487( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_427( + return __objc_msgSend_487( obj, sel, predicate, ); } - late final __objc_msgSend_427Ptr = _lookup< + late final __objc_msgSend_487Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_mutableArrayValueForKey_1 = _registerName1("mutableArrayValueForKey:"); + ffi.Pointer _objc_msgSend_488( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_488( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_488Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSMutableOrderedSet1 = _getClass1("NSMutableOrderedSet"); late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); late final _sel_isEqualToOrderedSet_1 = _registerName1("isEqualToOrderedSet:"); - bool _objc_msgSend_428( + bool _objc_msgSend_489( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_428( + return __objc_msgSend_489( obj, sel, other, ); } - late final __objc_msgSend_428Ptr = _lookup< + late final __objc_msgSend_489Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11741,21 +13527,39 @@ class SwiftLibrary { late final _sel_isSubsetOfOrderedSet_1 = _registerName1("isSubsetOfOrderedSet:"); late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); - ffi.Pointer _objc_msgSend_429( + ffi.Pointer _objc_msgSend_490( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_429( + return __objc_msgSend_490( obj, sel, ); } - late final __objc_msgSend_429Ptr = _lookup< + late final __objc_msgSend_490Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_491( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_491( + obj, + sel, + ); + } + + late final __objc_msgSend_491Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -11768,36 +13572,36 @@ class SwiftLibrary { _registerName1("orderedSetWithObjects:"); late final _sel_orderedSetWithOrderedSet_1 = _registerName1("orderedSetWithOrderedSet:"); - instancetype _objc_msgSend_430( + instancetype _objc_msgSend_492( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_430( + return __objc_msgSend_492( obj, sel, set1, ); } - late final __objc_msgSend_430Ptr = _lookup< + late final __objc_msgSend_492Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = _registerName1("orderedSetWithOrderedSet:range:copyItems:"); - instancetype _objc_msgSend_431( + instancetype _objc_msgSend_493( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, - NSRange range, + _NSRange range, bool flag, ) { - return __objc_msgSend_431( + return __objc_msgSend_493( obj, sel, set1, @@ -11806,26 +13610,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_431Ptr = _lookup< + late final __objc_msgSend_493Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, bool)>(); + ffi.Pointer, _NSRange, bool)>(); late final _sel_orderedSetWithArray_1 = _registerName1("orderedSetWithArray:"); late final _sel_orderedSetWithArray_range_copyItems_1 = _registerName1("orderedSetWithArray:range:copyItems:"); - instancetype _objc_msgSend_432( + instancetype _objc_msgSend_494( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, - NSRange range, + _NSRange range, bool flag, ) { - return __objc_msgSend_432( + return __objc_msgSend_494( obj, sel, array, @@ -11834,13 +13638,13 @@ class SwiftLibrary { ); } - late final __objc_msgSend_432Ptr = _lookup< + late final __objc_msgSend_494Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange, bool)>(); + ffi.Pointer, _NSRange, bool)>(); late final _sel_orderedSetWithSet_1 = _registerName1("orderedSetWithSet:"); late final _sel_orderedSetWithSet_copyItems_1 = @@ -11849,13 +13653,13 @@ class SwiftLibrary { late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); late final _sel_initWithOrderedSet_copyItems_1 = _registerName1("initWithOrderedSet:copyItems:"); - instancetype _objc_msgSend_433( + instancetype _objc_msgSend_495( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_433( + return __objc_msgSend_495( obj, sel, set1, @@ -11863,11 +13667,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_433Ptr = _lookup< + late final __objc_msgSend_495Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -11875,36 +13679,122 @@ class SwiftLibrary { _registerName1("initWithOrderedSet:range:copyItems:"); late final _sel_initWithArray_range_copyItems_1 = _registerName1("initWithArray:range:copyItems:"); + late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = + _registerName1( + "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_496( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_496( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_496Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_differenceFromOrderedSet_withOptions_1 = + _registerName1("differenceFromOrderedSet:withOptions:"); + ffi.Pointer _objc_msgSend_497( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ) { + return __objc_msgSend_497( + obj, + sel, + other, + options, + ); + } + + late final __objc_msgSend_497Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_differenceFromOrderedSet_1 = + _registerName1("differenceFromOrderedSet:"); + late final _sel_orderedSetByApplyingDifference_1 = + _registerName1("orderedSetByApplyingDifference:"); + ffi.Pointer _objc_msgSend_498( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer difference, + ) { + return __objc_msgSend_498( + obj, + sel, + difference, + ); + } + + late final __objc_msgSend_498Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_filteredOrderedSetUsingPredicate_1 = _registerName1("filteredOrderedSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_434( + ffi.Pointer _objc_msgSend_499( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer p, ) { - return __objc_msgSend_434( + return __objc_msgSend_499( obj, sel, p, ); } - late final __objc_msgSend_434Ptr = _lookup< + late final __objc_msgSend_499Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); - void _objc_msgSend_435( + void _objc_msgSend_500( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_435( + return __objc_msgSend_500( obj, sel, objects, @@ -11912,26 +13802,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_435Ptr = _lookup< + late final __objc_msgSend_500Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_moveObjectsAtIndexes_toIndex_1 = _registerName1("moveObjectsAtIndexes:toIndex:"); - void _objc_msgSend_436( + void _objc_msgSend_501( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int idx, ) { - return __objc_msgSend_436( + return __objc_msgSend_501( obj, sel, indexes, @@ -11939,25 +13829,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_436Ptr = _lookup< + late final __objc_msgSend_501Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setObject_atIndex_1 = _registerName1("setObject:atIndex:"); late final _sel_replaceObjectsInRange_withObjects_count_1 = _registerName1("replaceObjectsInRange:withObjects:count:"); - void _objc_msgSend_437( + void _objc_msgSend_502( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_437( + return __objc_msgSend_502( obj, sel, range, @@ -11966,60 +13856,60 @@ class SwiftLibrary { ); } - late final __objc_msgSend_437Ptr = _lookup< + late final __objc_msgSend_502Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer>, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer>, int)>(); late final _sel_intersectOrderedSet_1 = _registerName1("intersectOrderedSet:"); - void _objc_msgSend_438( + void _objc_msgSend_503( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_438( + return __objc_msgSend_503( obj, sel, other, ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_503Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_minusOrderedSet_1 = _registerName1("minusOrderedSet:"); late final _sel_unionOrderedSet_1 = _registerName1("unionOrderedSet:"); late final _sel_intersectSet_1 = _registerName1("intersectSet:"); - void _objc_msgSend_439( + void _objc_msgSend_504( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_439( + return __objc_msgSend_504( obj, sel, other, ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_504Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12027,14 +13917,14 @@ class SwiftLibrary { late final _sel_unionSet_1 = _registerName1("unionSet:"); late final _sel_sortRange_options_usingComparator_1 = _registerName1("sortRange:options:usingComparator:"); - void _objc_msgSend_440( + void _objc_msgSend_505( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, int opts, - NSComparator cmptr, + ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_440( + return __objc_msgSend_505( obj, sel, range, @@ -12043,35 +13933,35 @@ class SwiftLibrary { ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_505Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - NSComparator)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_orderedSetWithCapacity_1 = _registerName1("orderedSetWithCapacity:"); late final _sel_mutableOrderedSetValueForKey_1 = _registerName1("mutableOrderedSetValueForKey:"); - ffi.Pointer _objc_msgSend_441( + ffi.Pointer _objc_msgSend_506( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_441( + return __objc_msgSend_506( obj, sel, key, ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_506Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12080,23 +13970,23 @@ class SwiftLibrary { late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); late final _sel_mutableSetValueForKey_1 = _registerName1("mutableSetValueForKey:"); - ffi.Pointer _objc_msgSend_442( + ffi.Pointer _objc_msgSend_507( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_442( + return __objc_msgSend_507( obj, sel, key, ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_507Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12118,45 +14008,45 @@ class SwiftLibrary { late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); late final _sel_dictionaryWithValuesForKeys_1 = _registerName1("dictionaryWithValuesForKeys:"); - ffi.Pointer _objc_msgSend_443( + ffi.Pointer _objc_msgSend_508( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ) { - return __objc_msgSend_443( + return __objc_msgSend_508( obj, sel, keys, ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_508Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setValuesForKeysWithDictionary_1 = _registerName1("setValuesForKeysWithDictionary:"); - void _objc_msgSend_444( + void _objc_msgSend_509( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ) { - return __objc_msgSend_444( + return __objc_msgSend_509( obj, sel, keyedValues, ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_509Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12177,7 +14067,7 @@ class SwiftLibrary { _registerName1("takeValuesFromDictionary:"); late final _sel_observeValueForKeyPath_ofObject_change_context_1 = _registerName1("observeValueForKeyPath:ofObject:change:context:"); - void _objc_msgSend_445( + void _objc_msgSend_510( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyPath, @@ -12185,7 +14075,7 @@ class SwiftLibrary { ffi.Pointer change, ffi.Pointer context, ) { - return __objc_msgSend_445( + return __objc_msgSend_510( obj, sel, keyPath, @@ -12195,7 +14085,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_510Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12204,7 +14094,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12219,14 +14109,14 @@ class SwiftLibrary { _registerName1("didChangeValueForKey:"); late final _sel_willChange_valuesAtIndexes_forKey_1 = _registerName1("willChange:valuesAtIndexes:forKey:"); - void _objc_msgSend_446( + void _objc_msgSend_511( ffi.Pointer obj, ffi.Pointer sel, int changeKind, ffi.Pointer indexes, ffi.Pointer key, ) { - return __objc_msgSend_446( + return __objc_msgSend_511( obj, sel, changeKind, @@ -12235,7 +14125,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_511Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12243,7 +14133,7 @@ class SwiftLibrary { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -12251,14 +14141,14 @@ class SwiftLibrary { _registerName1("didChange:valuesAtIndexes:forKey:"); late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); - void _objc_msgSend_447( + void _objc_msgSend_512( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, int mutationKind, ffi.Pointer objects, ) { - return __objc_msgSend_447( + return __objc_msgSend_512( obj, sel, key, @@ -12267,7 +14157,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_512Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12275,7 +14165,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -12283,23 +14173,23 @@ class SwiftLibrary { _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); late final _sel_observationInfo1 = _registerName1("observationInfo"); late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); - void _objc_msgSend_448( + void _objc_msgSend_513( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_448( + return __objc_msgSend_513( obj, sel, value, ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_513Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12308,36 +14198,36 @@ class SwiftLibrary { late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); late final _sel_initRequiringSecureCoding_1 = _registerName1("initRequiringSecureCoding:"); - instancetype _objc_msgSend_449( + instancetype _objc_msgSend_514( ffi.Pointer obj, ffi.Pointer sel, bool requiresSecureCoding, ) { - return __objc_msgSend_449( + return __objc_msgSend_514( obj, sel, requiresSecureCoding, ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_514Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); - ffi.Pointer _objc_msgSend_450( + ffi.Pointer _objc_msgSend_515( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, bool requiresSecureCoding, ffi.Pointer> error, ) { - return __objc_msgSend_450( + return __objc_msgSend_515( obj, sel, object, @@ -12346,7 +14236,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_515Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -12354,7 +14244,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -12365,23 +14255,23 @@ class SwiftLibrary { late final _class_NSMutableData1 = _getClass1("NSMutableData"); late final _sel_mutableBytes1 = _registerName1("mutableBytes"); late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_451( + void _objc_msgSend_516( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_451( + return __objc_msgSend_516( obj, sel, value, ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_516Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); @@ -12389,13 +14279,13 @@ class SwiftLibrary { late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); late final _sel_replaceBytesInRange_withBytes_1 = _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_452( + void _objc_msgSend_517( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer bytes, ) { - return __objc_msgSend_452( + return __objc_msgSend_517( obj, sel, range, @@ -12403,26 +14293,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_517Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_resetBytesInRange_1 = _registerName1("resetBytesInRange:"); late final _sel_setData_1 = _registerName1("setData:"); late final _sel_replaceBytesInRange_withBytes_length_1 = _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_453( + void _objc_msgSend_518( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacementBytes, int replacementLength, ) { - return __objc_msgSend_453( + return __objc_msgSend_518( obj, sel, range, @@ -12431,26 +14321,50 @@ class SwiftLibrary { ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_518Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, int)>(); late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); + instancetype _objc_msgSend_519( + ffi.Pointer obj, + ffi.Pointer sel, + int aNumItems, + ) { + return __objc_msgSend_519( + obj, + sel, + aNumItems, + ); + } + + late final __objc_msgSend_519Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); late final _sel_initWithLength_1 = _registerName1("initWithLength:"); late final _sel_decompressUsingAlgorithm_error_1 = _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_454( + bool _objc_msgSend_520( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_454( + return __objc_msgSend_520( obj, sel, algorithm, @@ -12458,14 +14372,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_520Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -12473,99 +14387,99 @@ class SwiftLibrary { _registerName1("compressUsingAlgorithm:error:"); late final _sel_initForWritingWithMutableData_1 = _registerName1("initForWritingWithMutableData:"); - instancetype _objc_msgSend_455( + instancetype _objc_msgSend_521( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_455( + return __objc_msgSend_521( obj, sel, data, ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_521Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archivedDataWithRootObject_1 = _registerName1("archivedDataWithRootObject:"); - ffi.Pointer _objc_msgSend_456( + ffi.Pointer _objc_msgSend_522( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rootObject, ) { - return __objc_msgSend_456( + return __objc_msgSend_522( obj, sel, rootObject, ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_522Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archiveRootObject_toFile_1 = _registerName1("archiveRootObject:toFile:"); late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_457( + int _objc_msgSend_523( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_457( + return __objc_msgSend_523( obj, sel, ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_523Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); - void _objc_msgSend_458( + void _objc_msgSend_524( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_458( + return __objc_msgSend_524( obj, sel, value, ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_524Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_encodedData1 = _registerName1("encodedData"); late final _sel_finishEncoding1 = _registerName1("finishEncoding"); late final _sel_setClassName_forClass_1 = _registerName1("setClassName:forClass:"); - void _objc_msgSend_459( + void _objc_msgSend_525( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer codedName, ffi.Pointer cls, ) { - return __objc_msgSend_459( + return __objc_msgSend_525( obj, sel, codedName, @@ -12573,65 +14487,85 @@ class SwiftLibrary { ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_525Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); + ffi.Pointer _objc_msgSend_526( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cls, + ) { + return __objc_msgSend_526( + obj, + sel, + cls, + ); + } + + late final __objc_msgSend_526Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setRequiresSecureCoding_1 = _registerName1("setRequiresSecureCoding:"); - void _objc_msgSend_460( + void _objc_msgSend_527( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_460( + return __objc_msgSend_527( obj, sel, value, ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_527Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_replacementObjectForKeyedArchiver_1 = _registerName1("replacementObjectForKeyedArchiver:"); - ffi.Pointer _objc_msgSend_461( + ffi.Pointer _objc_msgSend_528( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_461( + return __objc_msgSend_528( obj, sel, archiver, ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_528Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelectorOnMainThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_462( + void _objc_msgSend_529( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -12639,7 +14573,7 @@ class SwiftLibrary { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_462( + return __objc_msgSend_529( obj, sel, aSelector, @@ -12649,7 +14583,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_529Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12658,7 +14592,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12669,14 +14603,14 @@ class SwiftLibrary { late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); - void _objc_msgSend_463( + void _objc_msgSend_530( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_463( + return __objc_msgSend_530( obj, sel, aSelector, @@ -12685,7 +14619,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_530Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12693,62 +14627,62 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSThread1 = _getClass1("NSThread"); late final _sel_currentThread1 = _registerName1("currentThread"); - ffi.Pointer _objc_msgSend_464( + ffi.Pointer _objc_msgSend_531( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_464( + return __objc_msgSend_531( obj, sel, ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_531Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_detachNewThreadWithBlock_1 = _registerName1("detachNewThreadWithBlock:"); - void _objc_msgSend_465( + void _objc_msgSend_532( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_465( + return __objc_msgSend_532( obj, sel, block, ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_532Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_detachNewThreadSelector_toTarget_withObject_1 = _registerName1("detachNewThreadSelector:toTarget:withObject:"); - void _objc_msgSend_466( + void _objc_msgSend_533( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, ffi.Pointer target, ffi.Pointer argument, ) { - return __objc_msgSend_466( + return __objc_msgSend_533( obj, sel, selector, @@ -12757,7 +14691,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_533Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12765,7 +14699,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12777,13 +14711,13 @@ class SwiftLibrary { late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); - void _objc_msgSend_467( + void _objc_msgSend_534( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_467( + return __objc_msgSend_534( obj, sel, anObject, @@ -12791,14 +14725,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_534Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12809,213 +14743,238 @@ class SwiftLibrary { late final _sel_setDictionary_1 = _registerName1("setDictionary:"); late final _sel_setObject_forKeyedSubscript_1 = _registerName1("setObject:forKeyedSubscript:"); + void _objc_msgSend_535( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ffi.Pointer key, + ) { + return __objc_msgSend_535( + obj, + sel, + obj1, + key, + ); + } + + late final __objc_msgSend_535Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_dictionaryWithCapacity_1 = _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_468( + ffi.Pointer _objc_msgSend_536( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_468( + return __objc_msgSend_536( obj, sel, path, ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_536Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_469( + ffi.Pointer _objc_msgSend_537( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_469( + return __objc_msgSend_537( obj, sel, url, ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_537Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithSharedKeySet_1 = _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_470( + ffi.Pointer _objc_msgSend_538( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_470( + return __objc_msgSend_538( obj, sel, keyset, ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_538Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_threadDictionary1 = _registerName1("threadDictionary"); - ffi.Pointer _objc_msgSend_471( + ffi.Pointer _objc_msgSend_539( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_471( + return __objc_msgSend_539( obj, sel, ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_539Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); - void _objc_msgSend_472( + void _objc_msgSend_540( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_472( + return __objc_msgSend_540( obj, sel, date, ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_540Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepForTimeInterval_1 = _registerName1("sleepForTimeInterval:"); - void _objc_msgSend_473( + void _objc_msgSend_541( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_473( + return __objc_msgSend_541( obj, sel, ti, ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_541Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_exit1 = _registerName1("exit"); late final _sel_threadPriority1 = _registerName1("threadPriority"); late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_474( + void _objc_msgSend_542( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_474( + return __objc_msgSend_542( obj, sel, value, ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_542Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_475( + int _objc_msgSend_543( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_475( + return __objc_msgSend_543( obj, sel, ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_543Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQualityOfService_1 = _registerName1("setQualityOfService:"); - void _objc_msgSend_476( + void _objc_msgSend_544( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_476( + return __objc_msgSend_544( obj, sel, value, ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_544Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_callStackReturnAddresses1 = _registerName1("callStackReturnAddresses"); late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); late final _sel_setName_1 = _registerName1("setName:"); - void _objc_msgSend_477( + void _objc_msgSend_545( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_477( + return __objc_msgSend_545( obj, sel, value, ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_545Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13025,14 +14984,14 @@ class SwiftLibrary { late final _sel_mainThread1 = _registerName1("mainThread"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_478( + instancetype _objc_msgSend_546( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer selector, ffi.Pointer argument, ) { - return __objc_msgSend_478( + return __objc_msgSend_546( obj, sel, target, @@ -13041,7 +15000,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_546Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -13049,7 +15008,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13058,23 +15017,23 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); - instancetype _objc_msgSend_479( + instancetype _objc_msgSend_547( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_479( + return __objc_msgSend_547( obj, sel, block, ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_547Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -13087,7 +15046,7 @@ class SwiftLibrary { late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelector:onThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_480( + void _objc_msgSend_548( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13096,7 +15055,7 @@ class SwiftLibrary { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_480( + return __objc_msgSend_548( obj, sel, aSelector, @@ -13107,7 +15066,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_548Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13117,7 +15076,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13129,7 +15088,7 @@ class SwiftLibrary { late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = _registerName1("performSelector:onThread:withObject:waitUntilDone:"); - void _objc_msgSend_481( + void _objc_msgSend_549( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13137,7 +15096,7 @@ class SwiftLibrary { ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_481( + return __objc_msgSend_549( obj, sel, aSelector, @@ -13147,7 +15106,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_549Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13156,7 +15115,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13170,33 +15129,33 @@ class SwiftLibrary { late final _sel_classForArchiver1 = _registerName1("classForArchiver"); late final _class_NSArchiver1 = _getClass1("NSArchiver"); late final _sel_archiverData1 = _registerName1("archiverData"); - ffi.Pointer _objc_msgSend_482( + ffi.Pointer _objc_msgSend_550( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_482( + return __objc_msgSend_550( obj, sel, ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_550Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeClassName_intoClassName_1 = _registerName1("encodeClassName:intoClassName:"); - void _objc_msgSend_483( + void _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer trueName, ffi.Pointer inArchiveName, ) { - return __objc_msgSend_483( + return __objc_msgSend_551( obj, sel, trueName, @@ -13204,14 +15163,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_551Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13221,23 +15180,23 @@ class SwiftLibrary { _registerName1("replaceObject:withObject:"); late final _sel_replacementObjectForArchiver_1 = _registerName1("replacementObjectForArchiver:"); - ffi.Pointer _objc_msgSend_484( + ffi.Pointer _objc_msgSend_552( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_484( + return __objc_msgSend_552( obj, sel, archiver, ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_552Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13246,21 +15205,21 @@ class SwiftLibrary { late final _sel_isBycopy1 = _registerName1("isBycopy"); late final _sel_isByref1 = _registerName1("isByref"); late final _class_NSPort1 = _getClass1("NSPort"); - ffi.Pointer _objc_msgSend_485( + ffi.Pointer _objc_msgSend_553( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_485( + return __objc_msgSend_553( obj, sel, ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_553Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -13268,55 +15227,56 @@ class SwiftLibrary { late final _sel_isValid1 = _registerName1("isValid"); late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); - ffi.Pointer _objc_msgSend_486( + ffi.Pointer _objc_msgSend_554( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_486( + return __objc_msgSend_554( obj, sel, ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_554Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainRunLoop1 = _registerName1("mainRunLoop"); late final _sel_currentMode1 = _registerName1("currentMode"); late final _sel_getCFRunLoop1 = _registerName1("getCFRunLoop"); - CFRunLoopRef _objc_msgSend_487( + ffi.Pointer<__CFRunLoop> _objc_msgSend_555( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_487( + return __objc_msgSend_555( obj, sel, ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_555Ptr = _lookup< ffi.NativeFunction< - CFRunLoopRef Function( + ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< - CFRunLoopRef Function(ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + ffi.Pointer<__CFRunLoop> Function( + ffi.Pointer, ffi.Pointer)>(); late final _class_NSTimer1 = _getClass1("NSTimer"); late final _sel_timerWithTimeInterval_invocation_repeats_1 = _registerName1("timerWithTimeInterval:invocation:repeats:"); - ffi.Pointer _objc_msgSend_488( + ffi.Pointer _objc_msgSend_556( ffi.Pointer obj, ffi.Pointer sel, double ti, ffi.Pointer invocation, bool yesOrNo, ) { - return __objc_msgSend_488( + return __objc_msgSend_556( obj, sel, ti, @@ -13325,15 +15285,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_556Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer, bool)>(); @@ -13341,7 +15301,7 @@ class SwiftLibrary { _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); - ffi.Pointer _objc_msgSend_489( + ffi.Pointer _objc_msgSend_557( ffi.Pointer obj, ffi.Pointer sel, double ti, @@ -13350,7 +15310,7 @@ class SwiftLibrary { ffi.Pointer userInfo, bool yesOrNo, ) { - return __objc_msgSend_489( + return __objc_msgSend_557( obj, sel, ti, @@ -13361,17 +15321,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_557Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13386,14 +15346,14 @@ class SwiftLibrary { "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); late final _sel_timerWithTimeInterval_repeats_block_1 = _registerName1("timerWithTimeInterval:repeats:block:"); - ffi.Pointer _objc_msgSend_490( + ffi.Pointer _objc_msgSend_558( ffi.Pointer obj, ffi.Pointer sel, double interval, bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_490( + return __objc_msgSend_558( obj, sel, interval, @@ -13402,15 +15362,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_558Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); @@ -13418,7 +15378,7 @@ class SwiftLibrary { _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); late final _sel_initWithFireDate_interval_repeats_block_1 = _registerName1("initWithFireDate:interval:repeats:block:"); - instancetype _objc_msgSend_491( + instancetype _objc_msgSend_559( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -13426,7 +15386,7 @@ class SwiftLibrary { bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_491( + return __objc_msgSend_559( obj, sel, date, @@ -13436,23 +15396,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_491Ptr = _lookup< + late final __objc_msgSend_559Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_1 = _registerName1( "initWithFireDate:interval:target:selector:userInfo:repeats:"); - instancetype _objc_msgSend_492( + instancetype _objc_msgSend_560( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -13462,7 +15422,7 @@ class SwiftLibrary { ffi.Pointer ui, bool rep, ) { - return __objc_msgSend_492( + return __objc_msgSend_560( obj, sel, date, @@ -13474,18 +15434,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_492Ptr = _lookup< + late final __objc_msgSend_560Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13499,38 +15459,37 @@ class SwiftLibrary { late final _sel_fire1 = _registerName1("fire"); late final _sel_fireDate1 = _registerName1("fireDate"); late final _sel_setFireDate_1 = _registerName1("setFireDate:"); - void _objc_msgSend_493( + void _objc_msgSend_561( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_493( + return __objc_msgSend_561( obj, sel, value, ); } - late final __objc_msgSend_493Ptr = _lookup< + late final __objc_msgSend_561Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_timeInterval1 = _registerName1("timeInterval"); late final _sel_tolerance1 = _registerName1("tolerance"); late final _sel_setTolerance_1 = _registerName1("setTolerance:"); - late final _sel_userInfo1 = _registerName1("userInfo"); late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); - void _objc_msgSend_494( + void _objc_msgSend_562( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timer, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_494( + return __objc_msgSend_562( obj, sel, timer, @@ -13538,22 +15497,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_494Ptr = _lookup< + late final __objc_msgSend_562Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); - void _objc_msgSend_495( + void _objc_msgSend_563( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aPort, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_495( + return __objc_msgSend_563( obj, sel, aPort, @@ -13561,45 +15523,48 @@ class SwiftLibrary { ); } - late final __objc_msgSend_495Ptr = _lookup< + late final __objc_msgSend_563Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_removePort_forMode_1 = _registerName1("removePort:forMode:"); late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); - ffi.Pointer _objc_msgSend_496( + ffi.Pointer _objc_msgSend_564( ffi.Pointer obj, ffi.Pointer sel, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_496( + return __objc_msgSend_564( obj, sel, mode, ); } - late final __objc_msgSend_496Ptr = _lookup< + late final __objc_msgSend_564Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_acceptInputForMode_beforeDate_1 = _registerName1("acceptInputForMode:beforeDate:"); - void _objc_msgSend_497( + void _objc_msgSend_565( ffi.Pointer obj, ffi.Pointer sel, - NSRunLoopMode mode, + ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_497( + return __objc_msgSend_565( obj, sel, mode, @@ -13607,24 +15572,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_497Ptr = _lookup< + late final __objc_msgSend_565Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_run1 = _registerName1("run"); late final _sel_runUntilDate_1 = _registerName1("runUntilDate:"); late final _sel_runMode_beforeDate_1 = _registerName1("runMode:beforeDate:"); - bool _objc_msgSend_498( + bool _objc_msgSend_566( ffi.Pointer obj, ffi.Pointer sel, - NSRunLoopMode mode, + ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_498( + return __objc_msgSend_566( obj, sel, mode, @@ -13632,24 +15600,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_498Ptr = _lookup< + late final __objc_msgSend_566Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - NSRunLoopMode, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_configureAsServer1 = _registerName1("configureAsServer"); late final _sel_performInModes_block_1 = _registerName1("performInModes:block:"); - void _objc_msgSend_499( + void _objc_msgSend_567( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer modes, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_499( + return __objc_msgSend_567( obj, sel, modes, @@ -13657,21 +15628,21 @@ class SwiftLibrary { ); } - late final __objc_msgSend_499Ptr = _lookup< + late final __objc_msgSend_567Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performBlock_1 = _registerName1("performBlock:"); late final _sel_performSelector_target_argument_order_modes_1 = _registerName1("performSelector:target:argument:order:modes:"); - void _objc_msgSend_500( + void _objc_msgSend_568( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13680,7 +15651,7 @@ class SwiftLibrary { int order, ffi.Pointer modes, ) { - return __objc_msgSend_500( + return __objc_msgSend_568( obj, sel, aSelector, @@ -13691,7 +15662,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_500Ptr = _lookup< + late final __objc_msgSend_568Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13699,9 +15670,9 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13717,13 +15688,13 @@ class SwiftLibrary { _registerName1("cancelPerformSelectorsWithTarget:"); late final _sel_scheduleInRunLoop_forMode_1 = _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_501( + void _objc_msgSend_569( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runLoop, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_501( + return __objc_msgSend_569( obj, sel, runLoop, @@ -13731,20 +15702,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_501Ptr = _lookup< + late final __objc_msgSend_569Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_removeFromRunLoop_forMode_1 = _registerName1("removeFromRunLoop:forMode:"); late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); late final _sel_sendBeforeDate_components_from_reserved_1 = _registerName1("sendBeforeDate:components:from:reserved:"); - bool _objc_msgSend_502( + bool _objc_msgSend_570( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -13752,7 +15726,7 @@ class SwiftLibrary { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_502( + return __objc_msgSend_570( obj, sel, limitDate, @@ -13762,7 +15736,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_502Ptr = _lookup< + late final __objc_msgSend_570Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -13770,8 +15744,8 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -13782,7 +15756,7 @@ class SwiftLibrary { late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = _registerName1("sendBeforeDate:msgid:components:from:reserved:"); - bool _objc_msgSend_503( + bool _objc_msgSend_571( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -13791,7 +15765,7 @@ class SwiftLibrary { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_503( + return __objc_msgSend_571( obj, sel, limitDate, @@ -13802,17 +15776,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_503Ptr = _lookup< + late final __objc_msgSend_571Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -13826,76 +15800,101 @@ class SwiftLibrary { late final _sel_statistics1 = _registerName1("statistics"); late final _sel_allConnections1 = _registerName1("allConnections"); late final _sel_defaultConnection1 = _registerName1("defaultConnection"); - ffi.Pointer _objc_msgSend_504( + ffi.Pointer _objc_msgSend_572( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_504( + return __objc_msgSend_572( obj, sel, ); } - late final __objc_msgSend_504Ptr = _lookup< + late final __objc_msgSend_572Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRegisteredName_host_1 = _registerName1("connectionWithRegisteredName:host:"); + instancetype _objc_msgSend_573( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer hostName, + ) { + return __objc_msgSend_573( + obj, + sel, + name, + hostName, + ); + } + + late final __objc_msgSend_573Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSPortNameServer1 = _getClass1("NSPortNameServer"); late final _sel_systemDefaultPortNameServer1 = _registerName1("systemDefaultPortNameServer"); - ffi.Pointer _objc_msgSend_505( + ffi.Pointer _objc_msgSend_574( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_505( + return __objc_msgSend_574( obj, sel, ); } - late final __objc_msgSend_505Ptr = _lookup< + late final __objc_msgSend_574Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_1 = _registerName1("portForName:"); - ffi.Pointer _objc_msgSend_506( + ffi.Pointer _objc_msgSend_575( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_506( + return __objc_msgSend_575( obj, sel, name, ); } - late final __objc_msgSend_506Ptr = _lookup< + late final __objc_msgSend_575Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_host_1 = _registerName1("portForName:host:"); - ffi.Pointer _objc_msgSend_507( + ffi.Pointer _objc_msgSend_576( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer host, ) { - return __objc_msgSend_507( + return __objc_msgSend_576( obj, sel, name, @@ -13903,14 +15902,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_507Ptr = _lookup< + late final __objc_msgSend_576Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13918,13 +15917,13 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_registerPort_name_1 = _registerName1("registerPort:name:"); - bool _objc_msgSend_508( + bool _objc_msgSend_577( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer port, ffi.Pointer name, ) { - return __objc_msgSend_508( + return __objc_msgSend_577( obj, sel, port, @@ -13932,28 +15931,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_508Ptr = _lookup< + late final __objc_msgSend_577Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removePortForName_1 = _registerName1("removePortForName:"); late final _sel_connectionWithRegisteredName_host_usingNameServer_1 = _registerName1("connectionWithRegisteredName:host:usingNameServer:"); - instancetype _objc_msgSend_509( + instancetype _objc_msgSend_578( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_509( + return __objc_msgSend_578( obj, sel, name, @@ -13962,7 +15961,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_509Ptr = _lookup< + late final __objc_msgSend_578Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -13970,7 +15969,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13980,16 +15979,36 @@ class SwiftLibrary { late final _class_NSDistantObject1 = _getClass1("NSDistantObject"); late final _class_NSProxy1 = _getClass1("NSProxy"); + ffi.Pointer _objc_msgSend_579( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sel1, + ) { + return __objc_msgSend_579( + obj, + sel, + sel1, + ); + } + + late final __objc_msgSend_579Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_respondsToSelector_1 = _registerName1("respondsToSelector:"); late final _sel_proxyWithTarget_connection_1 = _registerName1("proxyWithTarget:connection:"); - ffi.Pointer _objc_msgSend_510( + ffi.Pointer _objc_msgSend_580( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer connection, ) { - return __objc_msgSend_510( + return __objc_msgSend_580( obj, sel, target, @@ -13997,14 +16016,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_510Ptr = _lookup< + late final __objc_msgSend_580Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14015,40 +16034,68 @@ class SwiftLibrary { _registerName1("initWithTarget:connection:"); late final _sel_proxyWithLocal_connection_1 = _registerName1("proxyWithLocal:connection:"); + ffi.Pointer _objc_msgSend_581( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer connection, + ) { + return __objc_msgSend_581( + obj, + sel, + target, + connection, + ); + } + + late final __objc_msgSend_581Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithLocal_connection_1 = _registerName1("initWithLocal:connection:"); late final _sel_setProtocolForProxy_1 = _registerName1("setProtocolForProxy:"); - void _objc_msgSend_511( + void _objc_msgSend_582( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer proto, ) { - return __objc_msgSend_511( + return __objc_msgSend_582( obj, sel, proto, ); } - late final __objc_msgSend_511Ptr = _lookup< + late final __objc_msgSend_582Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionForProxy1 = _registerName1("connectionForProxy"); late final _sel_rootProxyForConnectionWithRegisteredName_host_1 = _registerName1("rootProxyForConnectionWithRegisteredName:host:"); - ffi.Pointer _objc_msgSend_512( + ffi.Pointer _objc_msgSend_583( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ) { - return __objc_msgSend_512( + return __objc_msgSend_583( obj, sel, name, @@ -14056,14 +16103,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_512Ptr = _lookup< + late final __objc_msgSend_583Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< + late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14073,14 +16120,14 @@ class SwiftLibrary { late final _sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1 = _registerName1( "rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); - ffi.Pointer _objc_msgSend_513( + ffi.Pointer _objc_msgSend_584( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_513( + return __objc_msgSend_584( obj, sel, name, @@ -14089,7 +16136,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_513Ptr = _lookup< + late final __objc_msgSend_584Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14097,7 +16144,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< + late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14107,14 +16154,14 @@ class SwiftLibrary { late final _sel_serviceConnectionWithName_rootObject_usingNameServer_1 = _registerName1("serviceConnectionWithName:rootObject:usingNameServer:"); - instancetype _objc_msgSend_514( + instancetype _objc_msgSend_585( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer root, ffi.Pointer server, ) { - return __objc_msgSend_514( + return __objc_msgSend_585( obj, sel, name, @@ -14123,7 +16170,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_514Ptr = _lookup< + late final __objc_msgSend_585Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14131,7 +16178,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< + late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14141,6 +16188,31 @@ class SwiftLibrary { late final _sel_serviceConnectionWithName_rootObject_1 = _registerName1("serviceConnectionWithName:rootObject:"); + instancetype _objc_msgSend_586( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer root, + ) { + return __objc_msgSend_586( + obj, + sel, + name, + root, + ); + } + + late final __objc_msgSend_586Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_requestTimeout1 = _registerName1("requestTimeout"); late final _sel_setRequestTimeout_1 = _registerName1("setRequestTimeout:"); late final _sel_replyTimeout1 = _registerName1("replyTimeout"); @@ -14152,21 +16224,21 @@ class SwiftLibrary { late final _sel_setIndependentConversationQueueing_1 = _registerName1("setIndependentConversationQueueing:"); late final _sel_rootProxy1 = _registerName1("rootProxy"); - ffi.Pointer _objc_msgSend_515( + ffi.Pointer _objc_msgSend_587( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_515( + return __objc_msgSend_587( obj, sel, ); } - late final __objc_msgSend_515Ptr = _lookup< + late final __objc_msgSend_587Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< + late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14174,15 +16246,35 @@ class SwiftLibrary { late final _sel_removeRequestMode_1 = _registerName1("removeRequestMode:"); late final _sel_requestModes1 = _registerName1("requestModes"); late final _sel_registerName_1 = _registerName1("registerName:"); + bool _objc_msgSend_588( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_588( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_588Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_registerName_withNameServer_1 = _registerName1("registerName:withNameServer:"); - bool _objc_msgSend_516( + bool _objc_msgSend_589( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer server, ) { - return __objc_msgSend_516( + return __objc_msgSend_589( obj, sel, name, @@ -14190,26 +16282,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_516Ptr = _lookup< + late final __objc_msgSend_589Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< + late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithReceivePort_sendPort_1 = _registerName1("connectionWithReceivePort:sendPort:"); - instancetype _objc_msgSend_517( + instancetype _objc_msgSend_590( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer receivePort, ffi.Pointer sendPort, ) { - return __objc_msgSend_517( + return __objc_msgSend_590( obj, sel, receivePort, @@ -14217,14 +16309,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_517Ptr = _lookup< + late final __objc_msgSend_590Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14238,23 +16330,23 @@ class SwiftLibrary { late final _sel_multipleThreadsEnabled1 = _registerName1("multipleThreadsEnabled"); late final _sel_addRunLoop_1 = _registerName1("addRunLoop:"); - void _objc_msgSend_518( + void _objc_msgSend_591( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runloop, ) { - return __objc_msgSend_518( + return __objc_msgSend_591( obj, sel, runloop, ); } - late final __objc_msgSend_518Ptr = _lookup< + late final __objc_msgSend_591Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14266,14 +16358,14 @@ class SwiftLibrary { _registerName1("dispatchWithComponents:"); late final _sel_addConnection_toRunLoop_forMode_1 = _registerName1("addConnection:toRunLoop:forMode:"); - void _objc_msgSend_519( + void _objc_msgSend_592( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer conn, ffi.Pointer runLoop, - NSRunLoopMode mode, + ffi.Pointer mode, ) { - return __objc_msgSend_519( + return __objc_msgSend_592( obj, sel, conn, @@ -14282,53 +16374,93 @@ class SwiftLibrary { ); } - late final __objc_msgSend_519Ptr = _lookup< + late final __objc_msgSend_592Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, NSRunLoopMode)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); late final _sel_removeConnection_fromRunLoop_forMode_1 = _registerName1("removeConnection:fromRunLoop:forMode:"); late final _sel_encodePortObject_1 = _registerName1("encodePortObject:"); - void _objc_msgSend_520( + void _objc_msgSend_593( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aport, ) { - return __objc_msgSend_520( + return __objc_msgSend_593( obj, sel, aport, ); } - late final __objc_msgSend_520Ptr = _lookup< + late final __objc_msgSend_593Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< + late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_decodePortObject1 = _registerName1("decodePortObject"); + ffi.Pointer _objc_msgSend_594( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_594( + obj, + sel, + ); + } + + late final __objc_msgSend_594Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_connection1 = _registerName1("connection"); + ffi.Pointer _objc_msgSend_595( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_595( + obj, + sel, + ); + } + + late final __objc_msgSend_595Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_portCoderWithReceivePort_sendPort_components_1 = _registerName1("portCoderWithReceivePort:sendPort:components:"); - ffi.Pointer _objc_msgSend_521( + ffi.Pointer _objc_msgSend_596( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rcvPort, ffi.Pointer sndPort, ffi.Pointer comps, ) { - return __objc_msgSend_521( + return __objc_msgSend_596( obj, sel, rcvPort, @@ -14337,7 +16469,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_521Ptr = _lookup< + late final __objc_msgSend_596Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14345,7 +16477,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< + late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14358,36 +16490,36 @@ class SwiftLibrary { late final _sel_dispatch1 = _registerName1("dispatch"); late final _sel_replacementObjectForPortCoder_1 = _registerName1("replacementObjectForPortCoder:"); - ffi.Pointer _objc_msgSend_522( + ffi.Pointer _objc_msgSend_597( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_522( + return __objc_msgSend_597( obj, sel, coder, ); } - late final __objc_msgSend_522Ptr = _lookup< + late final __objc_msgSend_597Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< + late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSClassDescription1 = _getClass1("NSClassDescription"); late final _sel_registerClassDescription_forClass_1 = _registerName1("registerClassDescription:forClass:"); - void _objc_msgSend_523( + void _objc_msgSend_598( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer aClass, ) { - return __objc_msgSend_523( + return __objc_msgSend_598( obj, sel, description, @@ -14395,14 +16527,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_523Ptr = _lookup< + late final __objc_msgSend_598Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14410,23 +16542,23 @@ class SwiftLibrary { _registerName1("invalidateClassDescriptionCache"); late final _sel_classDescriptionForClass_1 = _registerName1("classDescriptionForClass:"); - ffi.Pointer _objc_msgSend_524( + ffi.Pointer _objc_msgSend_599( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_524( + return __objc_msgSend_599( obj, sel, aClass, ); } - late final __objc_msgSend_524Ptr = _lookup< + late final __objc_msgSend_599Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< + late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14438,21 +16570,21 @@ class SwiftLibrary { late final _sel_inverseForRelationshipKey_1 = _registerName1("inverseForRelationshipKey:"); late final _sel_classDescription1 = _registerName1("classDescription"); - ffi.Pointer _objc_msgSend_525( + ffi.Pointer _objc_msgSend_600( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_525( + return __objc_msgSend_600( obj, sel, ); } - late final __objc_msgSend_525Ptr = _lookup< + late final __objc_msgSend_600Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< + late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14461,34 +16593,34 @@ class SwiftLibrary { late final _class_NSAppleEventDescriptor1 = _getClass1("NSAppleEventDescriptor"); late final _sel_nullDescriptor1 = _registerName1("nullDescriptor"); - ffi.Pointer _objc_msgSend_526( + ffi.Pointer _objc_msgSend_601( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_526( + return __objc_msgSend_601( obj, sel, ); } - late final __objc_msgSend_526Ptr = _lookup< + late final __objc_msgSend_601Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDescriptorType_bytes_length_1 = _registerName1("descriptorWithDescriptorType:bytes:length:"); - ffi.Pointer _objc_msgSend_527( + ffi.Pointer _objc_msgSend_602( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_527( + return __objc_msgSend_602( obj, sel, descriptorType, @@ -14497,27 +16629,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_527Ptr = _lookup< + late final __objc_msgSend_602Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - DescType, + ffi.UnsignedInt, ffi.Pointer, - NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_descriptorWithDescriptorType_data_1 = _registerName1("descriptorWithDescriptorType:data:"); - ffi.Pointer _objc_msgSend_528( + ffi.Pointer _objc_msgSend_603( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_528( + return __objc_msgSend_603( obj, sel, descriptorType, @@ -14525,102 +16657,102 @@ class SwiftLibrary { ); } - late final __objc_msgSend_528Ptr = _lookup< + late final __objc_msgSend_603Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - DescType, + ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< + late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_descriptorWithBoolean_1 = _registerName1("descriptorWithBoolean:"); - ffi.Pointer _objc_msgSend_529( + ffi.Pointer _objc_msgSend_604( ffi.Pointer obj, ffi.Pointer sel, int boolean, ) { - return __objc_msgSend_529( + return __objc_msgSend_604( obj, sel, boolean, ); } - late final __objc_msgSend_529Ptr = _lookup< + late final __objc_msgSend_604Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, Boolean)>>('objc_msgSend'); - late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< + ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); + late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithEnumCode_1 = _registerName1("descriptorWithEnumCode:"); - ffi.Pointer _objc_msgSend_530( + ffi.Pointer _objc_msgSend_605( ffi.Pointer obj, ffi.Pointer sel, int enumerator, ) { - return __objc_msgSend_530( + return __objc_msgSend_605( obj, sel, enumerator, ); } - late final __objc_msgSend_530Ptr = _lookup< + late final __objc_msgSend_605Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, OSType)>>('objc_msgSend'); - late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithInt32_1 = _registerName1("descriptorWithInt32:"); - ffi.Pointer _objc_msgSend_531( + ffi.Pointer _objc_msgSend_606( ffi.Pointer obj, ffi.Pointer sel, int signedInt, ) { - return __objc_msgSend_531( + return __objc_msgSend_606( obj, sel, signedInt, ); } - late final __objc_msgSend_531Ptr = _lookup< + late final __objc_msgSend_606Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, SInt32)>>('objc_msgSend'); - late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< + ffi.Pointer, ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithDouble_1 = _registerName1("descriptorWithDouble:"); - ffi.Pointer _objc_msgSend_532( + ffi.Pointer _objc_msgSend_607( ffi.Pointer obj, ffi.Pointer sel, double doubleValue, ) { - return __objc_msgSend_532( + return __objc_msgSend_607( obj, sel, doubleValue, ); } - late final __objc_msgSend_532Ptr = _lookup< + late final __objc_msgSend_607Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< + late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); @@ -14628,73 +16760,73 @@ class SwiftLibrary { _registerName1("descriptorWithTypeCode:"); late final _sel_descriptorWithString_1 = _registerName1("descriptorWithString:"); - ffi.Pointer _objc_msgSend_533( + ffi.Pointer _objc_msgSend_608( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_533( + return __objc_msgSend_608( obj, sel, string, ); } - late final __objc_msgSend_533Ptr = _lookup< + late final __objc_msgSend_608Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< + late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDate_1 = _registerName1("descriptorWithDate:"); - ffi.Pointer _objc_msgSend_534( + ffi.Pointer _objc_msgSend_609( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_534( + return __objc_msgSend_609( obj, sel, date, ); } - late final __objc_msgSend_534Ptr = _lookup< + late final __objc_msgSend_609Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< + late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithFileURL_1 = _registerName1("descriptorWithFileURL:"); - ffi.Pointer _objc_msgSend_535( + ffi.Pointer _objc_msgSend_610( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fileURL, ) { - return __objc_msgSend_535( + return __objc_msgSend_610( obj, sel, fileURL, ); } - late final __objc_msgSend_535Ptr = _lookup< + late final __objc_msgSend_610Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - ffi.Pointer _objc_msgSend_536( + ffi.Pointer _objc_msgSend_611( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -14703,7 +16835,7 @@ class SwiftLibrary { int returnID, int transactionID, ) { - return __objc_msgSend_536( + return __objc_msgSend_611( obj, sel, eventClass, @@ -14714,17 +16846,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_536Ptr = _lookup< + late final __objc_msgSend_611Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - AEEventClass, - AEEventID, + ffi.UnsignedInt, + ffi.UnsignedInt, ffi.Pointer, - AEReturnID, - AETransactionID)>>('objc_msgSend'); - late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< + ffi.Short, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -14740,36 +16872,36 @@ class SwiftLibrary { _registerName1("descriptorWithApplicationURL:"); late final _sel_initWithAEDescNoCopy_1 = _registerName1("initWithAEDescNoCopy:"); - instancetype _objc_msgSend_537( + instancetype _objc_msgSend_612( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aeDesc, ) { - return __objc_msgSend_537( + return __objc_msgSend_612( obj, sel, aeDesc, ); } - late final __objc_msgSend_537Ptr = _lookup< + late final __objc_msgSend_612Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< + late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithDescriptorType_bytes_length_1 = _registerName1("initWithDescriptorType:bytes:length:"); - instancetype _objc_msgSend_538( + instancetype _objc_msgSend_613( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_538( + return __objc_msgSend_613( obj, sel, descriptorType, @@ -14778,23 +16910,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_538Ptr = _lookup< + late final __objc_msgSend_613Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - DescType, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithDescriptorType_data_1 = _registerName1("initWithDescriptorType:data:"); - instancetype _objc_msgSend_539( + instancetype _objc_msgSend_614( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_539( + return __objc_msgSend_614( obj, sel, descriptorType, @@ -14802,18 +16938,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_539Ptr = _lookup< + late final __objc_msgSend_614Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - DescType, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "initWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - instancetype _objc_msgSend_540( + instancetype _objc_msgSend_615( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -14822,7 +16958,7 @@ class SwiftLibrary { int returnID, int transactionID, ) { - return __objc_msgSend_540( + return __objc_msgSend_615( obj, sel, eventClass, @@ -14833,17 +16969,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_540Ptr = _lookup< + late final __objc_msgSend_615Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - AEEventClass, - AEEventID, + ffi.UnsignedInt, + ffi.UnsignedInt, ffi.Pointer, - AEReturnID, - AETransactionID)>>('objc_msgSend'); - late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< + ffi.Short, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -14851,21 +16987,21 @@ class SwiftLibrary { late final _sel_initRecordDescriptor1 = _registerName1("initRecordDescriptor"); late final _sel_aeDesc1 = _registerName1("aeDesc"); - ffi.Pointer _objc_msgSend_541( + ffi.Pointer _objc_msgSend_616( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_541( + return __objc_msgSend_616( obj, sel, ); } - late final __objc_msgSend_541Ptr = _lookup< + late final __objc_msgSend_616Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< + late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14882,13 +17018,13 @@ class SwiftLibrary { late final _sel_transactionID1 = _registerName1("transactionID"); late final _sel_setParamDescriptor_forKeyword_1 = _registerName1("setParamDescriptor:forKeyword:"); - void _objc_msgSend_542( + void _objc_msgSend_617( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int keyword, ) { - return __objc_msgSend_542( + return __objc_msgSend_617( obj, sel, descriptor, @@ -14896,35 +17032,55 @@ class SwiftLibrary { ); } - late final __objc_msgSend_542Ptr = _lookup< + late final __objc_msgSend_617Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, AEKeyword)>>('objc_msgSend'); - late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_paramDescriptorForKeyword_1 = _registerName1("paramDescriptorForKeyword:"); + ffi.Pointer _objc_msgSend_618( + ffi.Pointer obj, + ffi.Pointer sel, + int keyword, + ) { + return __objc_msgSend_618( + obj, + sel, + keyword, + ); + } + + late final __objc_msgSend_618Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_removeParamDescriptorWithKeyword_1 = _registerName1("removeParamDescriptorWithKeyword:"); - void _objc_msgSend_543( + void _objc_msgSend_619( ffi.Pointer obj, ffi.Pointer sel, int keyword, ) { - return __objc_msgSend_543( + return __objc_msgSend_619( obj, sel, keyword, ); } - late final __objc_msgSend_543Ptr = _lookup< + late final __objc_msgSend_619Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - AEKeyword)>>('objc_msgSend'); - late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAttributeDescriptor_forKeyword_1 = @@ -14933,14 +17089,14 @@ class SwiftLibrary { _registerName1("attributeDescriptorForKeyword:"); late final _sel_sendEventWithOptions_timeout_error_1 = _registerName1("sendEventWithOptions:timeout:error:"); - ffi.Pointer _objc_msgSend_544( + ffi.Pointer _objc_msgSend_620( ffi.Pointer obj, ffi.Pointer sel, int sendOptions, double timeoutInSeconds, ffi.Pointer> error, ) { - return __objc_msgSend_544( + return __objc_msgSend_620( obj, sel, sendOptions, @@ -14949,15 +17105,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_544Ptr = _lookup< + late final __objc_msgSend_620Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, - NSTimeInterval, + ffi.Double, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< + late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14969,13 +17125,13 @@ class SwiftLibrary { late final _sel_numberOfItems1 = _registerName1("numberOfItems"); late final _sel_insertDescriptor_atIndex_1 = _registerName1("insertDescriptor:atIndex:"); - void _objc_msgSend_545( + void _objc_msgSend_621( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int index, ) { - return __objc_msgSend_545( + return __objc_msgSend_621( obj, sel, descriptor, @@ -14983,32 +17139,32 @@ class SwiftLibrary { ); } - late final __objc_msgSend_545Ptr = _lookup< + late final __objc_msgSend_621Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorAtIndex_1 = _registerName1("descriptorAtIndex:"); - ffi.Pointer _objc_msgSend_546( + ffi.Pointer _objc_msgSend_622( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_546( + return __objc_msgSend_622( obj, sel, index, ); } - late final __objc_msgSend_546Ptr = _lookup< + late final __objc_msgSend_622Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -15022,58 +17178,58 @@ class SwiftLibrary { _registerName1("removeDescriptorWithKeyword:"); late final _sel_keywordForDescriptorAtIndex_1 = _registerName1("keywordForDescriptorAtIndex:"); - int _objc_msgSend_547( + int _objc_msgSend_623( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_547( + return __objc_msgSend_623( obj, sel, index, ); } - late final __objc_msgSend_547Ptr = _lookup< + late final __objc_msgSend_623Ptr = _lookup< ffi.NativeFunction< - AEKeyword Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + ffi.UnsignedInt Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_coerceToDescriptorType_1 = _registerName1("coerceToDescriptorType:"); late final _sel_objectSpecifierWithDescriptor_1 = _registerName1("objectSpecifierWithDescriptor:"); - ffi.Pointer _objc_msgSend_548( + ffi.Pointer _objc_msgSend_624( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, ) { - return __objc_msgSend_548( + return __objc_msgSend_624( obj, sel, descriptor, ); } - late final __objc_msgSend_548Ptr = _lookup< + late final __objc_msgSend_624Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< + late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithContainerSpecifier_key_1 = _registerName1("initWithContainerSpecifier:key:"); - instancetype _objc_msgSend_549( + instancetype _objc_msgSend_625( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_549( + return __objc_msgSend_625( obj, sel, container, @@ -15081,49 +17237,49 @@ class SwiftLibrary { ); } - late final __objc_msgSend_549Ptr = _lookup< + late final __objc_msgSend_625Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSScriptClassDescription1 = _getClass1("NSScriptClassDescription"); - ffi.Pointer _objc_msgSend_550( + ffi.Pointer _objc_msgSend_626( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_550( + return __objc_msgSend_626( obj, sel, aClass, ); } - late final __objc_msgSend_550Ptr = _lookup< + late final __objc_msgSend_626Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithSuiteName_className_dictionary_1 = _registerName1("initWithSuiteName:className:dictionary:"); - instancetype _objc_msgSend_551( + instancetype _objc_msgSend_627( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer suiteName, ffi.Pointer className, ffi.Pointer classDeclaration, ) { - return __objc_msgSend_551( + return __objc_msgSend_627( obj, sel, suiteName, @@ -15132,7 +17288,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_551Ptr = _lookup< + late final __objc_msgSend_627Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15140,7 +17296,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< + late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15154,21 +17310,21 @@ class SwiftLibrary { _registerName1("implementationClassName"); late final _sel_superclassDescription1 = _registerName1("superclassDescription"); - ffi.Pointer _objc_msgSend_552( + ffi.Pointer _objc_msgSend_628( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_552( + return __objc_msgSend_628( obj, sel, ); } - late final __objc_msgSend_552Ptr = _lookup< + late final __objc_msgSend_628Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< + late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15190,23 +17346,23 @@ class SwiftLibrary { _registerName1("typeForArgumentWithName:"); late final _sel_appleEventCodeForArgumentWithName_1 = _registerName1("appleEventCodeForArgumentWithName:"); - int _objc_msgSend_553( + int _objc_msgSend_629( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentName, ) { - return __objc_msgSend_553( + return __objc_msgSend_629( obj, sel, argumentName, ); } - late final __objc_msgSend_553Ptr = _lookup< + late final __objc_msgSend_629Ptr = _lookup< ffi.NativeFunction< - FourCharCode Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< + ffi.UnsignedInt Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15215,91 +17371,111 @@ class SwiftLibrary { late final _class_NSScriptCommand1 = _getClass1("NSScriptCommand"); late final _sel_initWithCommandDescription_1 = _registerName1("initWithCommandDescription:"); - instancetype _objc_msgSend_554( + instancetype _objc_msgSend_630( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDef, ) { - return __objc_msgSend_554( + return __objc_msgSend_630( obj, sel, commandDef, ); } - late final __objc_msgSend_554Ptr = _lookup< + late final __objc_msgSend_630Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< + late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_commandDescription1 = _registerName1("commandDescription"); - ffi.Pointer _objc_msgSend_555( + ffi.Pointer _objc_msgSend_631( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_555( + return __objc_msgSend_631( obj, sel, ); } - late final __objc_msgSend_555Ptr = _lookup< + late final __objc_msgSend_631Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_directParameter1 = _registerName1("directParameter"); late final _sel_setDirectParameter_1 = _registerName1("setDirectParameter:"); late final _sel_receiversSpecifier1 = _registerName1("receiversSpecifier"); - ffi.Pointer _objc_msgSend_556( + ffi.Pointer _objc_msgSend_632( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_556( + return __objc_msgSend_632( obj, sel, ); } - late final __objc_msgSend_556Ptr = _lookup< + late final __objc_msgSend_632Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< + late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReceiversSpecifier_1 = _registerName1("setReceiversSpecifier:"); - void _objc_msgSend_557( + void _objc_msgSend_633( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_557( + return __objc_msgSend_633( obj, sel, value, ); } - late final __objc_msgSend_557Ptr = _lookup< + late final __objc_msgSend_633Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_evaluatedReceivers1 = _registerName1("evaluatedReceivers"); late final _sel_arguments1 = _registerName1("arguments"); late final _sel_setArguments_1 = _registerName1("setArguments:"); + void _objc_msgSend_634( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_634( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_634Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_evaluatedArguments1 = _registerName1("evaluatedArguments"); late final _sel_isWellFormed1 = _registerName1("isWellFormed"); late final _sel_performDefaultImplementation1 = @@ -15308,46 +17484,64 @@ class SwiftLibrary { late final _sel_scriptErrorNumber1 = _registerName1("scriptErrorNumber"); late final _sel_setScriptErrorNumber_1 = _registerName1("setScriptErrorNumber:"); - void _objc_msgSend_558( + void _objc_msgSend_635( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_558( + return __objc_msgSend_635( obj, sel, value, ); } - late final __objc_msgSend_558Ptr = _lookup< + late final __objc_msgSend_635Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_scriptErrorOffendingObjectDescriptor1 = _registerName1("scriptErrorOffendingObjectDescriptor"); + ffi.Pointer _objc_msgSend_636( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_636( + obj, + sel, + ); + } + + late final __objc_msgSend_636Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setScriptErrorOffendingObjectDescriptor_1 = _registerName1("setScriptErrorOffendingObjectDescriptor:"); - void _objc_msgSend_559( + void _objc_msgSend_637( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_559( + return __objc_msgSend_637( obj, sel, value, ); } - late final __objc_msgSend_559Ptr = _lookup< + late final __objc_msgSend_637Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< + late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15359,21 +17553,21 @@ class SwiftLibrary { late final _sel_setScriptErrorString_1 = _registerName1("setScriptErrorString:"); late final _sel_currentCommand1 = _registerName1("currentCommand"); - ffi.Pointer _objc_msgSend_560( + ffi.Pointer _objc_msgSend_638( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_560( + return __objc_msgSend_638( obj, sel, ); } - late final __objc_msgSend_560Ptr = _lookup< + late final __objc_msgSend_638Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< + late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15383,90 +17577,108 @@ class SwiftLibrary { _registerName1("resumeExecutionWithResult:"); late final _sel_createCommandInstance1 = _registerName1("createCommandInstance"); + ffi.Pointer _objc_msgSend_639( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_639( + obj, + sel, + ); + } + + late final __objc_msgSend_639Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_createCommandInstanceWithZone_1 = _registerName1("createCommandInstanceWithZone:"); - ffi.Pointer _objc_msgSend_561( + ffi.Pointer _objc_msgSend_640( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer zone, + ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_561( + return __objc_msgSend_640( obj, sel, zone, ); } - late final __objc_msgSend_561Ptr = _lookup< + late final __objc_msgSend_640Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< + ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer<_NSZone>)>(); late final _sel_supportsCommand_1 = _registerName1("supportsCommand:"); - bool _objc_msgSend_562( + bool _objc_msgSend_641( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_562( + return __objc_msgSend_641( obj, sel, commandDescription, ); } - late final __objc_msgSend_562Ptr = _lookup< + late final __objc_msgSend_641Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< + late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selectorForCommand_1 = _registerName1("selectorForCommand:"); - ffi.Pointer _objc_msgSend_563( + ffi.Pointer _objc_msgSend_642( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_563( + return __objc_msgSend_642( obj, sel, commandDescription, ); } - late final __objc_msgSend_563Ptr = _lookup< + late final __objc_msgSend_642Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< + late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_typeForKey_1 = _registerName1("typeForKey:"); late final _sel_classDescriptionForKey_1 = _registerName1("classDescriptionForKey:"); - ffi.Pointer _objc_msgSend_564( + ffi.Pointer _objc_msgSend_643( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_564( + return __objc_msgSend_643( obj, sel, key, ); } - late final __objc_msgSend_564Ptr = _lookup< + late final __objc_msgSend_643Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15474,23 +17686,23 @@ class SwiftLibrary { _registerName1("appleEventCodeForKey:"); late final _sel_keyWithAppleEventCode_1 = _registerName1("keyWithAppleEventCode:"); - ffi.Pointer _objc_msgSend_565( + ffi.Pointer _objc_msgSend_644( ffi.Pointer obj, ffi.Pointer sel, int appleEventCode, ) { - return __objc_msgSend_565( + return __objc_msgSend_644( obj, sel, appleEventCode, ); } - late final __objc_msgSend_565Ptr = _lookup< + late final __objc_msgSend_644Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, FourCharCode)>>('objc_msgSend'); - late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -15509,14 +17721,14 @@ class SwiftLibrary { late final _sel_initWithContainerClassDescription_containerSpecifier_key_1 = _registerName1( "initWithContainerClassDescription:containerSpecifier:key:"); - instancetype _objc_msgSend_566( + instancetype _objc_msgSend_645( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classDesc, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_566( + return __objc_msgSend_645( obj, sel, classDesc, @@ -15525,7 +17737,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_566Ptr = _lookup< + late final __objc_msgSend_645Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15533,7 +17745,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< + late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15556,40 +17768,60 @@ class SwiftLibrary { _registerName1("setContainerIsRangeContainerObject:"); late final _sel_key1 = _registerName1("key"); late final _sel_setKey_1 = _registerName1("setKey:"); + void _objc_msgSend_646( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_646( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_646Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_containerClassDescription1 = _registerName1("containerClassDescription"); late final _sel_setContainerClassDescription_1 = _registerName1("setContainerClassDescription:"); - void _objc_msgSend_567( + void _objc_msgSend_647( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_567( + return __objc_msgSend_647( obj, sel, value, ); } - late final __objc_msgSend_567Ptr = _lookup< + late final __objc_msgSend_647Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_keyClassDescription1 = _registerName1("keyClassDescription"); late final _sel_indicesOfObjectsByEvaluatingWithContainer_count_1 = _registerName1("indicesOfObjectsByEvaluatingWithContainer:count:"); - ffi.Pointer _objc_msgSend_568( + ffi.Pointer _objc_msgSend_648( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, - ffi.Pointer count, + ffi.Pointer count, ) { - return __objc_msgSend_568( + return __objc_msgSend_648( obj, sel, container, @@ -15597,19 +17829,19 @@ class SwiftLibrary { ); } - late final __objc_msgSend_568Ptr = _lookup< + late final __objc_msgSend_648Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< - ffi.Pointer Function( + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_objectsByEvaluatingWithContainers_1 = _registerName1("objectsByEvaluatingWithContainers:"); @@ -15624,23 +17856,23 @@ class SwiftLibrary { late final _sel_descriptor1 = _registerName1("descriptor"); late final _sel_scriptingValueForSpecifier_1 = _registerName1("scriptingValueForSpecifier:"); - ffi.Pointer _objc_msgSend_569( + ffi.Pointer _objc_msgSend_649( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectSpecifier, ) { - return __objc_msgSend_569( + return __objc_msgSend_649( obj, sel, objectSpecifier, ); } - late final __objc_msgSend_569Ptr = _lookup< + late final __objc_msgSend_649Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< + late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15649,14 +17881,14 @@ class SwiftLibrary { _registerName1("setScriptingProperties:"); late final _sel_copyScriptingValue_forKey_withProperties_1 = _registerName1("copyScriptingValue:forKey:withProperties:"); - ffi.Pointer _objc_msgSend_570( + ffi.Pointer _objc_msgSend_650( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer properties, ) { - return __objc_msgSend_570( + return __objc_msgSend_650( obj, sel, value, @@ -15665,7 +17897,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_570Ptr = _lookup< + late final __objc_msgSend_650Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15673,7 +17905,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< + late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15684,7 +17916,7 @@ class SwiftLibrary { late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1 = _registerName1( "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:"); - ffi.Pointer _objc_msgSend_571( + ffi.Pointer _objc_msgSend_651( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectClass, @@ -15692,7 +17924,7 @@ class SwiftLibrary { ffi.Pointer contentsValue, ffi.Pointer properties, ) { - return __objc_msgSend_571( + return __objc_msgSend_651( obj, sel, objectClass, @@ -15702,7 +17934,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_571Ptr = _lookup< + late final __objc_msgSend_651Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15711,7 +17943,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15723,13 +17955,13 @@ class SwiftLibrary { late final _sel_classCode1 = _registerName1("classCode"); late final _sel_valueAtIndex_inPropertyWithKey_1 = _registerName1("valueAtIndex:inPropertyWithKey:"); - ffi.Pointer _objc_msgSend_572( + ffi.Pointer _objc_msgSend_652( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_572( + return __objc_msgSend_652( obj, sel, index, @@ -15737,14 +17969,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_572Ptr = _lookup< + late final __objc_msgSend_652Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -15754,14 +17986,14 @@ class SwiftLibrary { _registerName1("valueWithUniqueID:inPropertyWithKey:"); late final _sel_insertValue_atIndex_inPropertyWithKey_1 = _registerName1("insertValue:atIndex:inPropertyWithKey:"); - void _objc_msgSend_573( + void _objc_msgSend_653( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, int index, ffi.Pointer key, ) { - return __objc_msgSend_573( + return __objc_msgSend_653( obj, sel, value, @@ -15770,27 +18002,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_573Ptr = _lookup< + late final __objc_msgSend_653Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_removeValueAtIndex_fromPropertyWithKey_1 = _registerName1("removeValueAtIndex:fromPropertyWithKey:"); - void _objc_msgSend_574( + void _objc_msgSend_654( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_574( + return __objc_msgSend_654( obj, sel, index, @@ -15798,24 +18030,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_574Ptr = _lookup< + late final __objc_msgSend_654Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_1 = _registerName1("replaceValueAtIndex:inPropertyWithKey:withValue:"); - void _objc_msgSend_575( + void _objc_msgSend_655( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_575( + return __objc_msgSend_655( obj, sel, index, @@ -15824,41 +18056,94 @@ class SwiftLibrary { ); } - late final __objc_msgSend_575Ptr = _lookup< + late final __objc_msgSend_655Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< + late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); late final _sel_insertValue_inPropertyWithKey_1 = _registerName1("insertValue:inPropertyWithKey:"); + void _objc_msgSend_656( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ) { + return __objc_msgSend_656( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_656Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_coerceValue_forKey_1 = _registerName1("coerceValue:forKey:"); + ffi.Pointer _objc_msgSend_657( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ) { + return __objc_msgSend_657( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_657Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_objectSpecifier1 = _registerName1("objectSpecifier"); late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_1 = _registerName1("indicesOfObjectsByEvaluatingObjectSpecifier:"); - ffi.Pointer _objc_msgSend_576( + ffi.Pointer _objc_msgSend_658( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer specifier, ) { - return __objc_msgSend_576( + return __objc_msgSend_658( obj, sel, specifier, ); } - late final __objc_msgSend_576Ptr = _lookup< + late final __objc_msgSend_658Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< + late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15890,43 +18175,43 @@ class SwiftLibrary { late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); late final _class_NSProgress1 = _getClass1("NSProgress"); late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_577( + ffi.Pointer _objc_msgSend_659( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_577( + return __objc_msgSend_659( obj, sel, ); } - late final __objc_msgSend_577Ptr = _lookup< + late final __objc_msgSend_659Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< + late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progressWithTotalUnitCount_1 = _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_578( + ffi.Pointer _objc_msgSend_660( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_578( + return __objc_msgSend_660( obj, sel, unitCount, ); } - late final __objc_msgSend_578Ptr = _lookup< + late final __objc_msgSend_660Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< + late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -15934,14 +18219,14 @@ class SwiftLibrary { _registerName1("discreteProgressWithTotalUnitCount:"); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_579( + ffi.Pointer _objc_msgSend_661( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer parent, int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_579( + return __objc_msgSend_661( obj, sel, unitCount, @@ -15950,7 +18235,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_579Ptr = _lookup< + late final __objc_msgSend_661Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15958,62 +18243,67 @@ class SwiftLibrary { ffi.Int64, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithParent_userInfo_1 = _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_580( + instancetype _objc_msgSend_662( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, + ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_580( + return __objc_msgSend_662( obj, sel, parentProgressOrNil, + userInfoOrNil, ); } - late final __objc_msgSend_580Ptr = _lookup< + late final __objc_msgSend_662Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< + late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_581( + void _objc_msgSend_663( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_581( + return __objc_msgSend_663( obj, sel, unitCount, ); } - late final __objc_msgSend_581Ptr = _lookup< + late final __objc_msgSend_663Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_582( + void _objc_msgSend_664( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_582( + return __objc_msgSend_664( obj, sel, unitCount, @@ -16021,24 +18311,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_582Ptr = _lookup< + late final __objc_msgSend_664Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_resignCurrent1 = _registerName1("resignCurrent"); late final _sel_addChild_withPendingUnitCount_1 = _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_583( + void _objc_msgSend_665( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_583( + return __objc_msgSend_665( obj, sel, child, @@ -16046,57 +18336,55 @@ class SwiftLibrary { ); } - late final __objc_msgSend_583Ptr = _lookup< + late final __objc_msgSend_665Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< + late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_584( + int _objc_msgSend_666( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_584( + return __objc_msgSend_666( obj, sel, ); } - late final __objc_msgSend_584Ptr = _lookup< + late final __objc_msgSend_666Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< + late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_585( + void _objc_msgSend_667( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_585( + return __objc_msgSend_667( obj, sel, value, ); } - late final __objc_msgSend_585Ptr = _lookup< + late final __objc_msgSend_667Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< + late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); late final _sel_setCompletedUnitCount_1 = _registerName1("setCompletedUnitCount:"); - late final _sel_localizedDescription1 = - _registerName1("localizedDescription"); late final _sel_setLocalizedDescription_1 = _registerName1("setLocalizedDescription:"); late final _sel_localizedAdditionalDescription1 = @@ -16109,43 +18397,43 @@ class SwiftLibrary { late final _sel_setPausable_1 = _registerName1("setPausable:"); late final _sel_isPaused1 = _registerName1("isPaused"); late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_586( + ffi.Pointer<_ObjCBlock> _objc_msgSend_668( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_586( + return __objc_msgSend_668( obj, sel, ); } - late final __objc_msgSend_586Ptr = _lookup< + late final __objc_msgSend_668Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setCancellationHandler_1 = _registerName1("setCancellationHandler:"); - void _objc_msgSend_587( + void _objc_msgSend_669( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_587( + return __objc_msgSend_669( obj, sel, value, ); } - late final __objc_msgSend_587Ptr = _lookup< + late final __objc_msgSend_669Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -16159,17 +18447,109 @@ class SwiftLibrary { late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); late final _sel_pause1 = _registerName1("pause"); late final _sel_resume1 = _registerName1("resume"); + late final _sel_kind1 = _registerName1("kind"); + late final _sel_setKind_1 = _registerName1("setKind:"); + late final _sel_estimatedTimeRemaining1 = + _registerName1("estimatedTimeRemaining"); + late final _sel_setEstimatedTimeRemaining_1 = + _registerName1("setEstimatedTimeRemaining:"); + void _objc_msgSend_670( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_670( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_670Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_throughput1 = _registerName1("throughput"); + late final _sel_setThroughput_1 = _registerName1("setThroughput:"); + late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); + late final _sel_setFileOperationKind_1 = + _registerName1("setFileOperationKind:"); + late final _sel_fileURL1 = _registerName1("fileURL"); + late final _sel_setFileURL_1 = _registerName1("setFileURL:"); + void _objc_msgSend_671( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_671( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_671Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); + late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); + late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); + late final _sel_setFileCompletedCount_1 = + _registerName1("setFileCompletedCount:"); + late final _sel_publish1 = _registerName1("publish"); + late final _sel_unpublish1 = _registerName1("unpublish"); + late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = + _registerName1("addSubscriberForFileURL:withPublishingHandler:"); + ffi.Pointer _objc_msgSend_672( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> publishingHandler, + ) { + return __objc_msgSend_672( + obj, + sel, + url, + publishingHandler, + ); + } + + late final __objc_msgSend_672Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); + late final _sel_isOld1 = _registerName1("isOld"); late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_588( + void _objc_msgSend_673( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_588( + return __objc_msgSend_673( obj, sel, typeIdentifier, @@ -16178,7 +18558,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_588Ptr = _lookup< + late final __objc_msgSend_673Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16186,14 +18566,14 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = _registerName1( "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_589( + void _objc_msgSend_674( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -16201,7 +18581,7 @@ class SwiftLibrary { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_589( + return __objc_msgSend_674( obj, sel, typeIdentifier, @@ -16211,7 +18591,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_589Ptr = _lookup< + late final __objc_msgSend_674Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16220,7 +18600,7 @@ class SwiftLibrary { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< + late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -16228,23 +18608,23 @@ class SwiftLibrary { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_590( + ffi.Pointer _objc_msgSend_675( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_590( + return __objc_msgSend_675( obj, sel, fileOptions, ); } - late final __objc_msgSend_590Ptr = _lookup< + late final __objc_msgSend_675Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< + late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16253,13 +18633,13 @@ class SwiftLibrary { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_591( + bool _objc_msgSend_676( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_591( + return __objc_msgSend_676( obj, sel, typeIdentifier, @@ -16267,24 +18647,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_591Ptr = _lookup< + late final __objc_msgSend_676Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< + late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_592( + ffi.Pointer _objc_msgSend_677( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_592( + return __objc_msgSend_677( obj, sel, typeIdentifier, @@ -16292,14 +18672,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_592Ptr = _lookup< + late final __objc_msgSend_677Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16309,13 +18689,13 @@ class SwiftLibrary { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_593( + ffi.Pointer _objc_msgSend_678( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_593( + return __objc_msgSend_678( obj, sel, typeIdentifier, @@ -16323,14 +18703,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_593Ptr = _lookup< + late final __objc_msgSend_678Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< + late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16340,13 +18720,13 @@ class SwiftLibrary { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_594( + ffi.Pointer _objc_msgSend_679( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_594( + return __objc_msgSend_679( obj, sel, typeIdentifier, @@ -16354,14 +18734,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_594Ptr = _lookup< + late final __objc_msgSend_679Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16372,13 +18752,13 @@ class SwiftLibrary { late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_595( + void _objc_msgSend_680( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_595( + return __objc_msgSend_680( obj, sel, object, @@ -16386,24 +18766,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_595Ptr = _lookup< + late final __objc_msgSend_680Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_596( + void _objc_msgSend_681( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_596( + return __objc_msgSend_681( obj, sel, aClass, @@ -16412,7 +18792,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_596Ptr = _lookup< + late final __objc_msgSend_681Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -16420,7 +18800,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< + late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -16428,13 +18808,13 @@ class SwiftLibrary { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_597( + ffi.Pointer _objc_msgSend_682( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_597( + return __objc_msgSend_682( obj, sel, aClass, @@ -16442,14 +18822,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_597Ptr = _lookup< + late final __objc_msgSend_682Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< + late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16458,15 +18838,40 @@ class SwiftLibrary { late final _sel_initWithItem_typeIdentifier_1 = _registerName1("initWithItem:typeIdentifier:"); + instancetype _objc_msgSend_683( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer item, + ffi.Pointer typeIdentifier, + ) { + return __objc_msgSend_683( + obj, + sel, + item, + typeIdentifier, + ); + } + + late final __objc_msgSend_683Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_598( + void _objc_msgSend_684( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, - NSItemProviderLoadHandler loadHandler, + ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_598( + return __objc_msgSend_684( obj, sel, typeIdentifier, @@ -16474,27 +18879,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_598Ptr = _lookup< + late final __objc_msgSend_684Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSItemProviderLoadHandler)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_599( + void _objc_msgSend_685( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, - NSItemProviderCompletionHandler completionHandler, + ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_599( + return __objc_msgSend_685( obj, sel, typeIdentifier, @@ -16503,72 +18908,72 @@ class SwiftLibrary { ); } - late final __objc_msgSend_599Ptr = _lookup< + late final __objc_msgSend_685Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderCompletionHandler)>(); + ffi.Pointer<_ObjCBlock>)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - NSItemProviderLoadHandler _objc_msgSend_600( + ffi.Pointer<_ObjCBlock> _objc_msgSend_686( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_600( + return __objc_msgSend_686( obj, sel, ); } - late final __objc_msgSend_600Ptr = _lookup< + late final __objc_msgSend_686Ptr = _lookup< ffi.NativeFunction< - NSItemProviderLoadHandler Function( + ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< - NSItemProviderLoadHandler Function( + late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_601( + void _objc_msgSend_687( ffi.Pointer obj, ffi.Pointer sel, - NSItemProviderLoadHandler value, + ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_601( + return __objc_msgSend_687( obj, sel, value, ); } - late final __objc_msgSend_601Ptr = _lookup< + late final __objc_msgSend_687Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSItemProviderLoadHandler)>(); + ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_602( + void _objc_msgSend_688( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, - NSItemProviderCompletionHandler completionHandler, + ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_602( + return __objc_msgSend_688( obj, sel, options, @@ -16576,27 +18981,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_602Ptr = _lookup< + late final __objc_msgSend_688Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSItemProviderCompletionHandler)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSMutableString1 = _getClass1("NSMutableString"); late final _sel_replaceCharactersInRange_withString_1 = _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_603( + void _objc_msgSend_689( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_603( + return __objc_msgSend_689( obj, sel, range, @@ -16604,23 +19009,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_603Ptr = _lookup< + late final __objc_msgSend_689Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_604( + void _objc_msgSend_690( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_604( + return __objc_msgSend_690( obj, sel, aString, @@ -16628,11 +19033,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_604Ptr = _lookup< + late final __objc_msgSend_690Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -16643,15 +19048,15 @@ class SwiftLibrary { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_605( + int _objc_msgSend_691( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, int options, - NSRange searchRange, + _NSRange searchRange, ) { - return __objc_msgSend_605( + return __objc_msgSend_691( obj, sel, target, @@ -16661,30 +19066,30 @@ class SwiftLibrary { ); } - late final __objc_msgSend_605Ptr = _lookup< + late final __objc_msgSend_691Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_606( + bool _objc_msgSend_692( ffi.Pointer obj, ffi.Pointer sel, - NSStringTransform transform, + ffi.Pointer transform, bool reverse, - NSRange range, - NSRangePointer resultingRange, + _NSRange range, + ffi.Pointer<_NSRange> resultingRange, ) { - return __objc_msgSend_606( + return __objc_msgSend_692( obj, sel, transform, @@ -16694,36 +19099,36 @@ class SwiftLibrary { ); } - late final __objc_msgSend_606Ptr = _lookup< + late final __objc_msgSend_692Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - NSStringTransform, + ffi.Pointer, ffi.Bool, - NSRange, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - NSStringTransform, bool, NSRange, NSRangePointer)>(); + ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - ffi.Pointer _objc_msgSend_607( + ffi.Pointer _objc_msgSend_693( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_607( + return __objc_msgSend_693( obj, sel, capacity, ); } - late final __objc_msgSend_607Ptr = _lookup< + late final __objc_msgSend_693Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16732,14 +19137,14 @@ class SwiftLibrary { late final _sel_object1 = _registerName1("object"); late final _sel_initWithName_object_userInfo_1 = _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_608( + instancetype _objc_msgSend_694( ffi.Pointer obj, ffi.Pointer sel, - NSNotificationName name, + ffi.Pointer name, ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_608( + return __objc_msgSend_694( obj, sel, name, @@ -16748,19 +19153,19 @@ class SwiftLibrary { ); } - late final __objc_msgSend_608Ptr = _lookup< + late final __objc_msgSend_694Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSNotificationName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< + late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSNotificationName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16770,21 +19175,21 @@ class SwiftLibrary { _registerName1("notificationWithName:object:userInfo:"); late final _class_NSBundle1 = _getClass1("NSBundle"); late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_609( + ffi.Pointer _objc_msgSend_695( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_609( + return __objc_msgSend_695( obj, sel, ); } - late final __objc_msgSend_609Ptr = _lookup< + late final __objc_msgSend_695Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< + late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16793,45 +19198,45 @@ class SwiftLibrary { late final _sel_bundleWithURL_1 = _registerName1("bundleWithURL:"); late final _sel_initWithURL_1 = _registerName1("initWithURL:"); late final _sel_bundleForClass_1 = _registerName1("bundleForClass:"); - ffi.Pointer _objc_msgSend_610( + ffi.Pointer _objc_msgSend_696( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_610( + return __objc_msgSend_696( obj, sel, aClass, ); } - late final __objc_msgSend_610Ptr = _lookup< + late final __objc_msgSend_696Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< + late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_bundleWithIdentifier_1 = _registerName1("bundleWithIdentifier:"); - ffi.Pointer _objc_msgSend_611( + ffi.Pointer _objc_msgSend_697( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_611( + return __objc_msgSend_697( obj, sel, identifier, ); } - late final __objc_msgSend_611Ptr = _lookup< + late final __objc_msgSend_697Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< + late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16867,7 +19272,7 @@ class SwiftLibrary { late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_612( + ffi.Pointer _objc_msgSend_698( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -16875,7 +19280,7 @@ class SwiftLibrary { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_612( + return __objc_msgSend_698( obj, sel, name, @@ -16885,7 +19290,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_612Ptr = _lookup< + late final __objc_msgSend_698Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16894,7 +19299,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< + late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16906,14 +19311,14 @@ class SwiftLibrary { late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_613( + ffi.Pointer _objc_msgSend_699( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_613( + return __objc_msgSend_699( obj, sel, ext, @@ -16922,7 +19327,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_613Ptr = _lookup< + late final __objc_msgSend_699Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16930,7 +19335,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< + late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16940,13 +19345,13 @@ class SwiftLibrary { late final _sel_URLForResource_withExtension_1 = _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_614( + ffi.Pointer _objc_msgSend_700( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ) { - return __objc_msgSend_614( + return __objc_msgSend_700( obj, sel, name, @@ -16954,14 +19359,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_614Ptr = _lookup< + late final __objc_msgSend_700Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< + late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16970,14 +19375,14 @@ class SwiftLibrary { late final _sel_URLForResource_withExtension_subdirectory_1 = _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_615( + ffi.Pointer _objc_msgSend_701( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_615( + return __objc_msgSend_701( obj, sel, name, @@ -16986,7 +19391,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_615Ptr = _lookup< + late final __objc_msgSend_701Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16994,7 +19399,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< + late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17004,7 +19409,7 @@ class SwiftLibrary { late final _sel_URLForResource_withExtension_subdirectory_localization_1 = _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_616( + ffi.Pointer _objc_msgSend_702( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -17012,7 +19417,7 @@ class SwiftLibrary { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_616( + return __objc_msgSend_702( obj, sel, name, @@ -17022,7 +19427,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_616Ptr = _lookup< + late final __objc_msgSend_702Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17031,7 +19436,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< + late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17042,13 +19447,13 @@ class SwiftLibrary { late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1("URLsForResourcesWithExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_617( + ffi.Pointer _objc_msgSend_703( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_617( + return __objc_msgSend_703( obj, sel, ext, @@ -17056,14 +19461,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_617Ptr = _lookup< + late final __objc_msgSend_703Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< + late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17073,14 +19478,14 @@ class SwiftLibrary { late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_618( + ffi.Pointer _objc_msgSend_704( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_618( + return __objc_msgSend_704( obj, sel, ext, @@ -17089,7 +19494,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_618Ptr = _lookup< + late final __objc_msgSend_704Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17097,7 +19502,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17107,14 +19512,14 @@ class SwiftLibrary { late final _sel_pathForResource_ofType_inDirectory_1 = _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_619( + ffi.Pointer _objc_msgSend_705( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer bundlePath, ) { - return __objc_msgSend_619( + return __objc_msgSend_705( obj, sel, name, @@ -17123,7 +19528,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_619Ptr = _lookup< + late final __objc_msgSend_705Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17131,7 +19536,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< + late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17141,11 +19546,67 @@ class SwiftLibrary { late final _sel_pathsForResourcesOfType_inDirectory_1 = _registerName1("pathsForResourcesOfType:inDirectory:"); + ffi.Pointer _objc_msgSend_706( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer bundlePath, + ) { + return __objc_msgSend_706( + obj, + sel, + ext, + bundlePath, + ); + } + + late final __objc_msgSend_706Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_pathForResource_ofType_1 = _registerName1("pathForResource:ofType:"); + ffi.Pointer _objc_msgSend_707( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ) { + return __objc_msgSend_707( + obj, + sel, + name, + ext, + ); + } + + late final __objc_msgSend_707Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_620( + ffi.Pointer _objc_msgSend_708( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -17153,7 +19614,7 @@ class SwiftLibrary { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_620( + return __objc_msgSend_708( obj, sel, name, @@ -17163,7 +19624,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_620Ptr = _lookup< + late final __objc_msgSend_708Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17172,7 +19633,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< + late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17183,18 +19644,82 @@ class SwiftLibrary { late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); + ffi.Pointer _objc_msgSend_709( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, + ) { + return __objc_msgSend_709( + obj, + sel, + ext, + subpath, + localizationName, + ); + } + + late final __objc_msgSend_709Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_localizedStringForKey_value_table_1 = _registerName1("localizedStringForKey:value:table:"); + ffi.Pointer _objc_msgSend_710( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer tableName, + ) { + return __objc_msgSend_710( + obj, + sel, + key, + value, + tableName, + ); + } + + late final __objc_msgSend_710Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); late final _sel_attributesAtIndex_effectiveRange_1 = _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_621( + ffi.Pointer _objc_msgSend_711( ffi.Pointer obj, ffi.Pointer sel, int location, - NSRangePointer range, + ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_621( + return __objc_msgSend_711( obj, sel, location, @@ -17202,27 +19727,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_621Ptr = _lookup< + late final __objc_msgSend_711Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, NSRangePointer)>(); + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_attribute_atIndex_effectiveRange_1 = _registerName1("attribute:atIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_622( + ffi.Pointer _objc_msgSend_712( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey attrName, + ffi.Pointer attrName, int location, - NSRangePointer range, + ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_622( + return __objc_msgSend_712( obj, sel, attrName, @@ -17231,50 +19756,54 @@ class SwiftLibrary { ); } - late final __objc_msgSend_622Ptr = _lookup< + late final __objc_msgSend_712Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, - NSUInteger, - NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSAttributedStringKey, int, NSRangePointer)>(); + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_NSRange>)>(); late final _sel_attributedSubstringFromRange_1 = _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_623( + ffi.Pointer _objc_msgSend_713( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_623( + return __objc_msgSend_713( obj, sel, range, ); } - late final __objc_msgSend_623Ptr = _lookup< + late final __objc_msgSend_713Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_624( + ffi.Pointer _objc_msgSend_714( ffi.Pointer obj, ffi.Pointer sel, int location, - NSRangePointer range, - NSRange rangeLimit, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, ) { - return __objc_msgSend_624( + return __objc_msgSend_714( obj, sel, location, @@ -17283,29 +19812,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_624Ptr = _lookup< + late final __objc_msgSend_714Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSRangePointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, NSRangePointer, NSRange)>(); + ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_625( + ffi.Pointer _objc_msgSend_715( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey attrName, + ffi.Pointer attrName, int location, - NSRangePointer range, - NSRange rangeLimit, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, ) { - return __objc_msgSend_625( + return __objc_msgSend_715( obj, sel, attrName, @@ -17315,80 +19844,105 @@ class SwiftLibrary { ); } - late final __objc_msgSend_625Ptr = _lookup< + late final __objc_msgSend_715Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, - NSUInteger, - NSRangePointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, + ffi.Pointer, int, - NSRangePointer, - NSRange)>(); + ffi.Pointer<_NSRange>, + _NSRange)>(); late final _sel_isEqualToAttributedString_1 = _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_626( + bool _objc_msgSend_716( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_626( + return __objc_msgSend_716( obj, sel, other, ); } - late final __objc_msgSend_626Ptr = _lookup< + late final __objc_msgSend_716Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< + late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithString_attributes_1 = _registerName1("initWithString:attributes:"); + instancetype _objc_msgSend_717( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + ffi.Pointer attrs, + ) { + return __objc_msgSend_717( + obj, + sel, + str, + attrs, + ); + } + + late final __objc_msgSend_717Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithAttributedString_1 = _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_627( + instancetype _objc_msgSend_718( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrStr, ) { - return __objc_msgSend_627( + return __objc_msgSend_718( obj, sel, attrStr, ); } - late final __objc_msgSend_627Ptr = _lookup< + late final __objc_msgSend_718Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< + late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_enumerateAttributesInRange_options_usingBlock_1 = _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_628( + void _objc_msgSend_719( ffi.Pointer obj, ffi.Pointer sel, - NSRange enumerationRange, + _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_628( + return __objc_msgSend_719( obj, sel, enumerationRange, @@ -17397,25 +19951,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_628Ptr = _lookup< + late final __objc_msgSend_719Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = _registerName1("enumerateAttribute:inRange:options:usingBlock:"); - void _objc_msgSend_629( + void _objc_msgSend_720( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey attrName, - NSRange enumerationRange, + ffi.Pointer attrName, + _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_629( + return __objc_msgSend_720( obj, sel, attrName, @@ -17425,18 +19979,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_629Ptr = _lookup< + late final __objc_msgSend_720Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, - NSRange, + ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< + late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSAttributedStringMarkdownParsingOptions1 = _getClass1("NSAttributedStringMarkdownParsingOptions"); @@ -17445,87 +19999,91 @@ class SwiftLibrary { late final _sel_setAllowsExtendedAttributes_1 = _registerName1("setAllowsExtendedAttributes:"); late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_630( + int _objc_msgSend_721( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_630( + return __objc_msgSend_721( obj, sel, ); } - late final __objc_msgSend_630Ptr = _lookup< + late final __objc_msgSend_721Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< + late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setInterpretedSyntax_1 = _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_631( + void _objc_msgSend_722( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_631( + return __objc_msgSend_722( obj, sel, value, ); } - late final __objc_msgSend_631Ptr = _lookup< + late final __objc_msgSend_722Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< + late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_632( + int _objc_msgSend_723( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_632( + return __objc_msgSend_723( obj, sel, ); } - late final __objc_msgSend_632Ptr = _lookup< + late final __objc_msgSend_723Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< + late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_633( + void _objc_msgSend_724( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_633( + return __objc_msgSend_724( obj, sel, value, ); } - late final __objc_msgSend_633Ptr = _lookup< + late final __objc_msgSend_724Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< + late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); + late final _sel_appliesSourcePositionAttributes1 = + _registerName1("appliesSourcePositionAttributes"); + late final _sel_setAppliesSourcePositionAttributes_1 = + _registerName1("setAppliesSourcePositionAttributes:"); late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = _registerName1( "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_634( + instancetype _objc_msgSend_725( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownFile, @@ -17533,7 +20091,7 @@ class SwiftLibrary { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_634( + return __objc_msgSend_725( obj, sel, markdownFile, @@ -17543,7 +20101,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_634Ptr = _lookup< + late final __objc_msgSend_725Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17552,7 +20110,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17563,7 +20121,7 @@ class SwiftLibrary { late final _sel_initWithMarkdown_options_baseURL_error_1 = _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_635( + instancetype _objc_msgSend_726( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdown, @@ -17571,7 +20129,7 @@ class SwiftLibrary { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_635( + return __objc_msgSend_726( obj, sel, markdown, @@ -17581,7 +20139,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_635Ptr = _lookup< + late final __objc_msgSend_726Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17590,7 +20148,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< + late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17601,7 +20159,7 @@ class SwiftLibrary { late final _sel_initWithMarkdownString_options_baseURL_error_1 = _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_636( + instancetype _objc_msgSend_727( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownString, @@ -17609,7 +20167,7 @@ class SwiftLibrary { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_636( + return __objc_msgSend_727( obj, sel, markdownString, @@ -17619,7 +20177,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_636Ptr = _lookup< + late final __objc_msgSend_727Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17628,7 +20186,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17639,14 +20197,14 @@ class SwiftLibrary { late final _sel_initWithFormat_options_locale_1 = _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_637( + instancetype _objc_msgSend_728( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, ) { - return __objc_msgSend_637( + return __objc_msgSend_728( obj, sel, format, @@ -17655,7 +20213,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_637Ptr = _lookup< + late final __objc_msgSend_728Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17663,13 +20221,13 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< + late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithFormat_options_locale_arguments_1 = _registerName1("initWithFormat:options:locale:arguments:"); - instancetype _objc_msgSend_638( + instancetype _objc_msgSend_729( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -17677,7 +20235,7 @@ class SwiftLibrary { ffi.Pointer locale, ffi.Pointer<__va_list_tag> arguments, ) { - return __objc_msgSend_638( + return __objc_msgSend_729( obj, sel, format, @@ -17687,7 +20245,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_638Ptr = _lookup< + late final __objc_msgSend_729Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -17696,7 +20254,7 @@ class SwiftLibrary { ffi.Int32, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< + late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -17709,13 +20267,13 @@ class SwiftLibrary { _registerName1("localizedAttributedStringWithFormat:"); late final _sel_localizedAttributedStringWithFormat_options_1 = _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_639( + instancetype _objc_msgSend_730( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ) { - return __objc_msgSend_639( + return __objc_msgSend_730( obj, sel, format, @@ -17723,44 +20281,181 @@ class SwiftLibrary { ); } - late final __objc_msgSend_639Ptr = _lookup< + late final __objc_msgSend_730Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_initWithFormat_options_locale_context_1 = + _registerName1("initWithFormat:options:locale:context:"); + instancetype _objc_msgSend_731( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer context, + ) { + return __objc_msgSend_731( + obj, + sel, + format, + options, + locale, + context, + ); + } + + late final __objc_msgSend_731Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithFormat_options_locale_context_arguments_1 = + _registerName1("initWithFormat:options:locale:context:arguments:"); + instancetype _objc_msgSend_732( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer context, + ffi.Pointer<__va_list_tag> arguments, + ) { + return __objc_msgSend_732( + obj, + sel, + format, + options, + locale, + context, + arguments, + ); + } + + late final __objc_msgSend_732Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _sel_localizedAttributedStringWithFormat_context_1 = + _registerName1("localizedAttributedStringWithFormat:context:"); + instancetype _objc_msgSend_733( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer context, + ) { + return __objc_msgSend_733( + obj, + sel, + format, + context, + ); + } + + late final __objc_msgSend_733Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_localizedAttributedStringWithFormat_options_context_1 = + _registerName1("localizedAttributedStringWithFormat:options:context:"); + instancetype _objc_msgSend_734( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer context, + ) { + return __objc_msgSend_734( + obj, + sel, + format, + options, + context, + ); + } + + late final __objc_msgSend_734Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + late final _sel_attributedStringByInflectingString1 = _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_640( + ffi.Pointer _objc_msgSend_735( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_640( + return __objc_msgSend_735( obj, sel, ); } - late final __objc_msgSend_640Ptr = _lookup< + late final __objc_msgSend_735Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< + late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedAttributedStringForKey_value_table_1 = _registerName1("localizedAttributedStringForKey:value:table:"); - ffi.Pointer _objc_msgSend_641( + ffi.Pointer _objc_msgSend_736( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ffi.Pointer tableName, ) { - return __objc_msgSend_641( + return __objc_msgSend_736( obj, sel, key, @@ -17769,7 +20464,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_641Ptr = _lookup< + late final __objc_msgSend_736Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17777,7 +20472,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< + late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17802,13 +20497,13 @@ class SwiftLibrary { _registerName1("preferredLocalizationsFromArray:"); late final _sel_preferredLocalizationsFromArray_forPreferences_1 = _registerName1("preferredLocalizationsFromArray:forPreferences:"); - ffi.Pointer _objc_msgSend_642( + ffi.Pointer _objc_msgSend_737( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localizationsArray, ffi.Pointer preferencesArray, ) { - return __objc_msgSend_642( + return __objc_msgSend_737( obj, sel, localizationsArray, @@ -17816,14 +20511,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_642Ptr = _lookup< + late final __objc_msgSend_737Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< + late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17834,13 +20529,13 @@ class SwiftLibrary { _registerName1("executableArchitectures"); late final _sel_setPreservationPriority_forTags_1 = _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_643( + void _objc_msgSend_738( ffi.Pointer obj, ffi.Pointer sel, double priority, ffi.Pointer tags, ) { - return __objc_msgSend_643( + return __objc_msgSend_738( obj, sel, priority, @@ -17848,11 +20543,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_643Ptr = _lookup< + late final __objc_msgSend_738Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< + late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); @@ -17862,13 +20557,13 @@ class SwiftLibrary { _getClass1("NSMutableAttributedString"); late final _sel_setAttributes_range_1 = _registerName1("setAttributes:range:"); - void _objc_msgSend_644( + void _objc_msgSend_739( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrs, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_644( + return __objc_msgSend_739( obj, sel, attrs, @@ -17876,43 +20571,43 @@ class SwiftLibrary { ); } - late final __objc_msgSend_644Ptr = _lookup< + late final __objc_msgSend_739Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_645( + ffi.Pointer _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_645( + return __objc_msgSend_740( obj, sel, ); } - late final __objc_msgSend_645Ptr = _lookup< + late final __objc_msgSend_740Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< + late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addAttribute_value_range_1 = _registerName1("addAttribute:value:range:"); - void _objc_msgSend_646( + void _objc_msgSend_741( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey name, + ffi.Pointer name, ffi.Pointer value, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_646( + return __objc_msgSend_741( obj, sel, name, @@ -17921,29 +20616,51 @@ class SwiftLibrary { ); } - late final __objc_msgSend_646Ptr = _lookup< + late final __objc_msgSend_741Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, ffi.Pointer, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_addAttributes_range_1 = _registerName1("addAttributes:range:"); + void _objc_msgSend_742( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrs, + _NSRange range, + ) { + return __objc_msgSend_742( + obj, + sel, + attrs, + range, + ); + } + + late final __objc_msgSend_742Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + late final _sel_removeAttribute_range_1 = _registerName1("removeAttribute:range:"); - void _objc_msgSend_647( + void _objc_msgSend_743( ffi.Pointer obj, ffi.Pointer sel, - NSAttributedStringKey name, - NSRange range, + ffi.Pointer name, + _NSRange range, ) { - return __objc_msgSend_647( + return __objc_msgSend_743( obj, sel, name, @@ -17951,23 +20668,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_647Ptr = _lookup< + late final __objc_msgSend_743Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - NSAttributedStringKey, NSRange)>(); + ffi.Pointer, _NSRange)>(); late final _sel_replaceCharactersInRange_withAttributedString_1 = _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_648( + void _objc_msgSend_744( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer attrString, ) { - return __objc_msgSend_648( + return __objc_msgSend_744( obj, sel, range, @@ -17975,23 +20692,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_648Ptr = _lookup< + late final __objc_msgSend_744Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertAttributedString_atIndex_1 = _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_649( + void _objc_msgSend_745( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, int loc, ) { - return __objc_msgSend_649( + return __objc_msgSend_745( obj, sel, attrString, @@ -17999,33 +20716,33 @@ class SwiftLibrary { ); } - late final __objc_msgSend_649Ptr = _lookup< + late final __objc_msgSend_745Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendAttributedString_1 = _registerName1("appendAttributedString:"); - void _objc_msgSend_650( + void _objc_msgSend_746( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, ) { - return __objc_msgSend_650( + return __objc_msgSend_746( obj, sel, attrString, ); } - late final __objc_msgSend_650Ptr = _lookup< + late final __objc_msgSend_746Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< + late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18039,15 +20756,35 @@ class SwiftLibrary { late final _class_NSFormatter1 = _getClass1("NSFormatter"); late final _sel_stringForObjectValue_1 = _registerName1("stringForObjectValue:"); + ffi.Pointer _objc_msgSend_747( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ) { + return __objc_msgSend_747( + obj, + sel, + obj1, + ); + } + + late final __objc_msgSend_747Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_651( + ffi.Pointer _objc_msgSend_748( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, ffi.Pointer attrs, ) { - return __objc_msgSend_651( + return __objc_msgSend_748( obj, sel, obj1, @@ -18055,14 +20792,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_651Ptr = _lookup< + late final __objc_msgSend_748Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18073,14 +20810,14 @@ class SwiftLibrary { _registerName1("editingStringForObjectValue:"); late final _sel_getObjectValue_forString_errorDescription_1 = _registerName1("getObjectValue:forString:errorDescription:"); - bool _objc_msgSend_652( + bool _objc_msgSend_749( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, ffi.Pointer> error, ) { - return __objc_msgSend_652( + return __objc_msgSend_749( obj, sel, obj1, @@ -18089,7 +20826,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_652Ptr = _lookup< + late final __objc_msgSend_749Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18097,7 +20834,7 @@ class SwiftLibrary { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< + late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18107,14 +20844,14 @@ class SwiftLibrary { late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = _registerName1("isPartialStringValid:newEditingString:errorDescription:"); - bool _objc_msgSend_653( + bool _objc_msgSend_750( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer partialString, ffi.Pointer> newString, ffi.Pointer> error, ) { - return __objc_msgSend_653( + return __objc_msgSend_750( obj, sel, partialString, @@ -18123,7 +20860,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_653Ptr = _lookup< + late final __objc_msgSend_750Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18131,7 +20868,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< + late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -18142,16 +20879,16 @@ class SwiftLibrary { late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = _registerName1( "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_654( + bool _objc_msgSend_751( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> partialStringPtr, - NSRangePointer proposedSelRangePtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, ffi.Pointer origString, - NSRange origSelRange, + _NSRange origSelRange, ffi.Pointer> error, ) { - return __objc_msgSend_654( + return __objc_msgSend_751( obj, sel, partialStringPtr, @@ -18162,76 +20899,76 @@ class SwiftLibrary { ); } - late final __objc_msgSend_654Ptr = _lookup< + late final __objc_msgSend_751Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSRangePointer, + ffi.Pointer<_NSRange>, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< + late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - NSRangePointer, + ffi.Pointer<_NSRange>, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer>)>(); late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_655( + int _objc_msgSend_752( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_655( + return __objc_msgSend_752( obj, sel, ); } - late final __objc_msgSend_655Ptr = _lookup< + late final __objc_msgSend_752Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< + late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFormattingContext_1 = _registerName1("setFormattingContext:"); - void _objc_msgSend_656( + void _objc_msgSend_753( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_656( + return __objc_msgSend_753( obj, sel, value, ); } - late final __objc_msgSend_656Ptr = _lookup< + late final __objc_msgSend_753Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getObjectValue_forString_range_error_1 = _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_657( + bool _objc_msgSend_754( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, - ffi.Pointer rangep, + ffi.Pointer<_NSRange> rangep, ffi.Pointer> error, ) { - return __objc_msgSend_657( + return __objc_msgSend_754( obj, sel, obj1, @@ -18241,36 +20978,56 @@ class SwiftLibrary { ); } - late final __objc_msgSend_657Ptr = _lookup< + late final __objc_msgSend_754Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<_NSRange>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer, - ffi.Pointer, + ffi.Pointer<_NSRange>, ffi.Pointer>)>(); late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); + ffi.Pointer _objc_msgSend_755( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + ) { + return __objc_msgSend_755( + obj, + sel, + date, + ); + } + + late final __objc_msgSend_755Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_dateFromString_1 = _registerName1("dateFromString:"); late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); - ffi.Pointer _objc_msgSend_658( + ffi.Pointer _objc_msgSend_756( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, int dstyle, int tstyle, ) { - return __objc_msgSend_658( + return __objc_msgSend_756( obj, sel, date, @@ -18279,7 +21036,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_658Ptr = _lookup< + late final __objc_msgSend_756Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18287,20 +21044,20 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< + late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_dateFormatFromTemplate_options_locale_1 = _registerName1("dateFormatFromTemplate:options:locale:"); - ffi.Pointer _objc_msgSend_659( + ffi.Pointer _objc_msgSend_757( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tmplate, int opts, ffi.Pointer locale, ) { - return __objc_msgSend_659( + return __objc_msgSend_757( obj, sel, tmplate, @@ -18309,15 +21066,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_659Ptr = _lookup< + late final __objc_msgSend_757Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< + late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18327,42 +21084,42 @@ class SwiftLibrary { late final _sel_defaultFormatterBehavior1 = _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_660( + int _objc_msgSend_758( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_660( + return __objc_msgSend_758( obj, sel, ); } - late final __objc_msgSend_660Ptr = _lookup< + late final __objc_msgSend_758Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< + late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefaultFormatterBehavior_1 = _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_661( + void _objc_msgSend_759( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_661( + return __objc_msgSend_759( obj, sel, value, ); } - late final __objc_msgSend_661Ptr = _lookup< + late final __objc_msgSend_759Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< + late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLocalizedDateFormatFromTemplate_1 = @@ -18370,64 +21127,64 @@ class SwiftLibrary { late final _sel_dateFormat1 = _registerName1("dateFormat"); late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_662( + int _objc_msgSend_760( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_662( + return __objc_msgSend_760( obj, sel, ); } - late final __objc_msgSend_662Ptr = _lookup< + late final __objc_msgSend_760Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< + late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_663( + void _objc_msgSend_761( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_663( + return __objc_msgSend_761( obj, sel, value, ); } - late final __objc_msgSend_663Ptr = _lookup< + late final __objc_msgSend_761Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< + late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_timeStyle1 = _registerName1("timeStyle"); late final _sel_setTimeStyle_1 = _registerName1("setTimeStyle:"); late final _sel_locale1 = _registerName1("locale"); late final _sel_setLocale_1 = _registerName1("setLocale:"); - void _objc_msgSend_664( + void _objc_msgSend_762( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_664( + return __objc_msgSend_762( obj, sel, value, ); } - late final __objc_msgSend_664Ptr = _lookup< + late final __objc_msgSend_762Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< + late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18440,21 +21197,21 @@ class SwiftLibrary { _registerName1("setFormatterBehavior:"); late final _class_NSCalendar1 = _getClass1("NSCalendar"); late final _sel_currentCalendar1 = _registerName1("currentCalendar"); - ffi.Pointer _objc_msgSend_665( + ffi.Pointer _objc_msgSend_763( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_665( + return __objc_msgSend_763( obj, sel, ); } - late final __objc_msgSend_665Ptr = _lookup< + late final __objc_msgSend_763Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< + late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -18462,28 +21219,66 @@ class SwiftLibrary { _registerName1("autoupdatingCurrentCalendar"); late final _sel_calendarWithIdentifier_1 = _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_666( + ffi.Pointer _objc_msgSend_764( ffi.Pointer obj, ffi.Pointer sel, - NSCalendarIdentifier calendarIdentifierConstant, + ffi.Pointer calendarIdentifierConstant, ) { - return __objc_msgSend_666( + return __objc_msgSend_764( obj, sel, calendarIdentifierConstant, ); } - late final __objc_msgSend_666Ptr = _lookup< + late final __objc_msgSend_764Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSCalendarIdentifier)>>('objc_msgSend'); - late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSCalendarIdentifier)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCalendarIdentifier_1 = _registerName1("initWithCalendarIdentifier:"); + ffi.Pointer _objc_msgSend_765( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_765( + obj, + sel, + ); + } + + late final __objc_msgSend_765Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_766( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_766( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_766Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_firstWeekday1 = _registerName1("firstWeekday"); late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); late final _sel_minimumDaysInFirstWeek1 = @@ -18521,36 +21316,41 @@ class SwiftLibrary { late final _sel_AMSymbol1 = _registerName1("AMSymbol"); late final _sel_PMSymbol1 = _registerName1("PMSymbol"); late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); - NSRange _objc_msgSend_667( + void _objc_msgSend_767( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_667( + return __objc_msgSend_767( + stret, obj, sel, unit, ); } - late final __objc_msgSend_667Ptr = _lookup< + late final __objc_msgSend_767Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); + late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); late final _sel_rangeOfUnit_inUnit_forDate_1 = _registerName1("rangeOfUnit:inUnit:forDate:"); - NSRange _objc_msgSend_668( + void _objc_msgSend_768( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_668( + return __objc_msgSend_768( + stret, obj, sel, smaller, @@ -18559,24 +21359,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_668Ptr = _lookup< + late final __objc_msgSend_768Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, int, int, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_ordinalityOfUnit_inUnit_forDate_1 = _registerName1("ordinalityOfUnit:inUnit:forDate:"); - int _objc_msgSend_669( + int _objc_msgSend_769( ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_669( + return __objc_msgSend_769( obj, sel, smaller, @@ -18585,25 +21390,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_669Ptr = _lookup< + late final __objc_msgSend_769Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_rangeOfUnit_startDate_interval_forDate_1 = _registerName1("rangeOfUnit:startDate:interval:forDate:"); - bool _objc_msgSend_670( + bool _objc_msgSend_770( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_670( + return __objc_msgSend_770( obj, sel, unit, @@ -18613,44 +21422,100 @@ class SwiftLibrary { ); } - late final __objc_msgSend_670Ptr = _lookup< + late final __objc_msgSend_770Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, int, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); late final _sel_calendar1 = _registerName1("calendar"); + ffi.Pointer _objc_msgSend_771( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_771( + obj, + sel, + ); + } + + late final __objc_msgSend_771Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_671( + void _objc_msgSend_772( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_671( + return __objc_msgSend_772( obj, sel, value, ); } - late final __objc_msgSend_671Ptr = _lookup< + late final __objc_msgSend_772Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_773( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_773( + obj, + sel, + ); + } + + late final __objc_msgSend_773Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_774( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_774( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_774Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18689,13 +21554,13 @@ class SwiftLibrary { late final _sel_setWeek_1 = _registerName1("setWeek:"); late final _sel_setValue_forComponent_1 = _registerName1("setValue:forComponent:"); - void _objc_msgSend_672( + void _objc_msgSend_775( ffi.Pointer obj, ffi.Pointer sel, int value, int unit, ) { - return __objc_msgSend_672( + return __objc_msgSend_775( obj, sel, value, @@ -18703,86 +21568,86 @@ class SwiftLibrary { ); } - late final __objc_msgSend_672Ptr = _lookup< + late final __objc_msgSend_775Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSInteger, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + ffi.Long, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); - int _objc_msgSend_673( + int _objc_msgSend_776( ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_673( + return __objc_msgSend_776( obj, sel, unit, ); } - late final __objc_msgSend_673Ptr = _lookup< + late final __objc_msgSend_776Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< + late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isValidDate1 = _registerName1("isValidDate"); late final _sel_isValidDateInCalendar_1 = _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_674( + bool _objc_msgSend_777( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendar, ) { - return __objc_msgSend_674( + return __objc_msgSend_777( obj, sel, calendar, ); } - late final __objc_msgSend_674Ptr = _lookup< + late final __objc_msgSend_777Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< + late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_675( + ffi.Pointer _objc_msgSend_778( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ) { - return __objc_msgSend_675( + return __objc_msgSend_778( obj, sel, comps, ); } - late final __objc_msgSend_675Ptr = _lookup< + late final __objc_msgSend_778Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< + late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_components_fromDate_1 = _registerName1("components:fromDate:"); - ffi.Pointer _objc_msgSend_676( + ffi.Pointer _objc_msgSend_779( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, ffi.Pointer date, ) { - return __objc_msgSend_676( + return __objc_msgSend_779( obj, sel, unitFlags, @@ -18790,27 +21655,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_676Ptr = _lookup< + late final __objc_msgSend_779Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< + late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateByAddingComponents_toDate_options_1 = _registerName1("dateByAddingComponents:toDate:options:"); - ffi.Pointer _objc_msgSend_677( + ffi.Pointer _objc_msgSend_780( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ffi.Pointer date, int opts, ) { - return __objc_msgSend_677( + return __objc_msgSend_780( obj, sel, comps, @@ -18819,7 +21684,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_677Ptr = _lookup< + late final __objc_msgSend_780Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18827,7 +21692,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18837,7 +21702,7 @@ class SwiftLibrary { late final _sel_components_fromDate_toDate_options_1 = _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_678( + ffi.Pointer _objc_msgSend_781( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -18845,7 +21710,7 @@ class SwiftLibrary { ffi.Pointer resultDate, int opts, ) { - return __objc_msgSend_678( + return __objc_msgSend_781( obj, sel, unitFlags, @@ -18855,7 +21720,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_678Ptr = _lookup< + late final __objc_msgSend_781Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18864,7 +21729,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< + late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18875,16 +21740,16 @@ class SwiftLibrary { late final _sel_getEra_year_month_day_fromDate_1 = _registerName1("getEra:year:month:day:fromDate:"); - void _objc_msgSend_679( + void _objc_msgSend_782( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, ffi.Pointer date, ) { - return __objc_msgSend_679( + return __objc_msgSend_782( obj, sel, eraValuePointer, @@ -18895,24 +21760,24 @@ class SwiftLibrary { ); } - late final __objc_msgSend_679Ptr = _lookup< + late final __objc_msgSend_782Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< + late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1 = @@ -18920,13 +21785,13 @@ class SwiftLibrary { late final _sel_getHour_minute_second_nanosecond_fromDate_1 = _registerName1("getHour:minute:second:nanosecond:fromDate:"); late final _sel_component_fromDate_1 = _registerName1("component:fromDate:"); - int _objc_msgSend_680( + int _objc_msgSend_783( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer date, ) { - return __objc_msgSend_680( + return __objc_msgSend_783( obj, sel, unit, @@ -18934,18 +21799,18 @@ class SwiftLibrary { ); } - late final __objc_msgSend_680Ptr = _lookup< + late final __objc_msgSend_783Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< + late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1 = _registerName1( "dateWithEra:year:month:day:hour:minute:second:nanosecond:"); - ffi.Pointer _objc_msgSend_681( + ffi.Pointer _objc_msgSend_784( ffi.Pointer obj, ffi.Pointer sel, int eraValue, @@ -18957,7 +21822,7 @@ class SwiftLibrary { int secondValue, int nanosecondValue, ) { - return __objc_msgSend_681( + return __objc_msgSend_784( obj, sel, eraValue, @@ -18971,20 +21836,20 @@ class SwiftLibrary { ); } - late final __objc_msgSend_681Ptr = _lookup< + late final __objc_msgSend_784Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int, int, int)>(); @@ -18994,13 +21859,13 @@ class SwiftLibrary { late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); late final _sel_componentsInTimeZone_fromDate_1 = _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_682( + ffi.Pointer _objc_msgSend_785( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timezone, ffi.Pointer date, ) { - return __objc_msgSend_682( + return __objc_msgSend_785( obj, sel, timezone, @@ -19008,14 +21873,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_682Ptr = _lookup< + late final __objc_msgSend_785Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< + late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19024,14 +21889,14 @@ class SwiftLibrary { late final _sel_compareDate_toDate_toUnitGranularity_1 = _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_683( + int _objc_msgSend_786( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_683( + return __objc_msgSend_786( obj, sel, date1, @@ -19040,7 +21905,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_683Ptr = _lookup< + late final __objc_msgSend_786Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -19048,20 +21913,20 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_equalToDate_toUnitGranularity_1 = _registerName1("isDate:equalToDate:toUnitGranularity:"); - bool _objc_msgSend_684( + bool _objc_msgSend_787( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_684( + return __objc_msgSend_787( obj, sel, date1, @@ -19070,7 +21935,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_684Ptr = _lookup< + late final __objc_msgSend_787Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19078,19 +21943,19 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_inSameDayAsDate_1 = _registerName1("isDate:inSameDayAsDate:"); - bool _objc_msgSend_685( + bool _objc_msgSend_788( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, ) { - return __objc_msgSend_685( + return __objc_msgSend_788( obj, sel, date1, @@ -19098,14 +21963,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_685Ptr = _lookup< + late final __objc_msgSend_788Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< + late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19115,14 +21980,14 @@ class SwiftLibrary { late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); - bool _objc_msgSend_686( + bool _objc_msgSend_789( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_686( + return __objc_msgSend_789( obj, sel, datep, @@ -19131,33 +21996,33 @@ class SwiftLibrary { ); } - late final __objc_msgSend_686Ptr = _lookup< + late final __objc_msgSend_789Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = _registerName1("nextWeekendStartDate:interval:options:afterDate:"); - bool _objc_msgSend_687( + bool _objc_msgSend_790( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, int options, ffi.Pointer date, ) { - return __objc_msgSend_687( + return __objc_msgSend_790( obj, sel, datep, @@ -19167,27 +22032,27 @@ class SwiftLibrary { ); } - late final __objc_msgSend_687Ptr = _lookup< + late final __objc_msgSend_790Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< + late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); late final _sel_components_fromDateComponents_toDateComponents_options_1 = _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_688( + ffi.Pointer _objc_msgSend_791( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -19195,7 +22060,7 @@ class SwiftLibrary { ffi.Pointer resultDateComp, int options, ) { - return __objc_msgSend_688( + return __objc_msgSend_791( obj, sel, unitFlags, @@ -19205,7 +22070,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_688Ptr = _lookup< + late final __objc_msgSend_791Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19214,7 +22079,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< + late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19225,7 +22090,7 @@ class SwiftLibrary { late final _sel_dateByAddingUnit_value_toDate_options_1 = _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_689( + ffi.Pointer _objc_msgSend_792( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -19233,7 +22098,7 @@ class SwiftLibrary { ffi.Pointer date, int options, ) { - return __objc_msgSend_689( + return __objc_msgSend_792( obj, sel, unit, @@ -19243,23 +22108,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_689Ptr = _lookup< + late final __objc_msgSend_792Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, - NSInteger, + ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int)>(); late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = _registerName1( "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); - void _objc_msgSend_690( + void _objc_msgSend_793( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, @@ -19267,7 +22132,7 @@ class SwiftLibrary { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_690( + return __objc_msgSend_793( obj, sel, start, @@ -19277,7 +22142,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_690Ptr = _lookup< + late final __objc_msgSend_793Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19286,7 +22151,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< + late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -19297,14 +22162,14 @@ class SwiftLibrary { late final _sel_nextDateAfterDate_matchingComponents_options_1 = _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_691( + ffi.Pointer _objc_msgSend_794( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer comps, int options, ) { - return __objc_msgSend_691( + return __objc_msgSend_794( obj, sel, date, @@ -19313,7 +22178,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_691Ptr = _lookup< + late final __objc_msgSend_794Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19321,7 +22186,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< + late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19331,7 +22196,7 @@ class SwiftLibrary { late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_692( + ffi.Pointer _objc_msgSend_795( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -19339,7 +22204,7 @@ class SwiftLibrary { int value, int options, ) { - return __objc_msgSend_692( + return __objc_msgSend_795( obj, sel, date, @@ -19349,22 +22214,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_692Ptr = _lookup< + late final __objc_msgSend_795Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSInteger, + ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< + late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int)>(); late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); - ffi.Pointer _objc_msgSend_693( + ffi.Pointer _objc_msgSend_796( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -19373,7 +22238,7 @@ class SwiftLibrary { int secondValue, int options, ) { - return __objc_msgSend_693( + return __objc_msgSend_796( obj, sel, date, @@ -19384,17 +22249,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_693Ptr = _lookup< + late final __objc_msgSend_796Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, + ffi.Long, + ffi.Long, + ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< + late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int, int)>(); @@ -19402,7 +22267,7 @@ class SwiftLibrary { _registerName1("dateBySettingUnit:value:ofDate:options:"); late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = _registerName1("dateBySettingHour:minute:second:ofDate:options:"); - ffi.Pointer _objc_msgSend_694( + ffi.Pointer _objc_msgSend_797( ffi.Pointer obj, ffi.Pointer sel, int h, @@ -19411,7 +22276,7 @@ class SwiftLibrary { ffi.Pointer date, int opts, ) { - return __objc_msgSend_694( + return __objc_msgSend_797( obj, sel, h, @@ -19422,29 +22287,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_694Ptr = _lookup< + late final __objc_msgSend_797Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, + ffi.Long, + ffi.Long, + ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< + late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, ffi.Pointer, int)>(); late final _sel_date_matchesComponents_1 = _registerName1("date:matchesComponents:"); - bool _objc_msgSend_695( + bool _objc_msgSend_798( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer components, ) { - return __objc_msgSend_695( + return __objc_msgSend_798( obj, sel, date, @@ -19452,42 +22317,82 @@ class SwiftLibrary { ); } - late final __objc_msgSend_695Ptr = _lookup< + late final __objc_msgSend_798Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< + late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + void _objc_msgSend_799( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_799( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_799Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_isLenient1 = _registerName1("isLenient"); late final _sel_setLenient_1 = _registerName1("setLenient:"); late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); late final _sel_setTwoDigitStartDate_1 = _registerName1("setTwoDigitStartDate:"); + void _objc_msgSend_800( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_800( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_800Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_defaultDate1 = _registerName1("defaultDate"); late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_696( + void _objc_msgSend_801( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_696( + return __objc_msgSend_801( obj, sel, value, ); } - late final __objc_msgSend_696Ptr = _lookup< + late final __objc_msgSend_801Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19536,56 +22441,56 @@ class SwiftLibrary { _registerName1("allowsNaturalLanguage"); late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_697( + ffi.Pointer _objc_msgSend_802( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_697( + return __objc_msgSend_802( obj, sel, number, ); } - late final __objc_msgSend_697Ptr = _lookup< + late final __objc_msgSend_802Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< + late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_numberFromString_1 = _registerName1("numberFromString:"); - ffi.Pointer _objc_msgSend_698( + ffi.Pointer _objc_msgSend_803( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_698( + return __objc_msgSend_803( obj, sel, string, ); } - late final __objc_msgSend_698Ptr = _lookup< + late final __objc_msgSend_803Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< + late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedStringFromNumber_numberStyle_1 = _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_699( + ffi.Pointer _objc_msgSend_804( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer num, int nstyle, ) { - return __objc_msgSend_699( + return __objc_msgSend_804( obj, sel, num, @@ -19593,112 +22498,112 @@ class SwiftLibrary { ); } - late final __objc_msgSend_699Ptr = _lookup< + late final __objc_msgSend_804Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< + late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); - int _objc_msgSend_700( + int _objc_msgSend_805( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_700( + return __objc_msgSend_805( obj, sel, ); } - late final __objc_msgSend_700Ptr = _lookup< + late final __objc_msgSend_805Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_701( + void _objc_msgSend_806( ffi.Pointer obj, ffi.Pointer sel, int behavior, ) { - return __objc_msgSend_701( + return __objc_msgSend_806( obj, sel, behavior, ); } - late final __objc_msgSend_701Ptr = _lookup< + late final __objc_msgSend_806Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< + late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_702( + int _objc_msgSend_807( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_702( + return __objc_msgSend_807( obj, sel, ); } - late final __objc_msgSend_702Ptr = _lookup< + late final __objc_msgSend_807Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< + late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); - void _objc_msgSend_703( + void _objc_msgSend_808( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_703( + return __objc_msgSend_808( obj, sel, value, ); } - late final __objc_msgSend_703Ptr = _lookup< + late final __objc_msgSend_808Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< + late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_generatesDecimalNumbers1 = _registerName1("generatesDecimalNumbers"); late final _sel_setGeneratesDecimalNumbers_1 = _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_704( + void _objc_msgSend_809( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_704( + return __objc_msgSend_809( obj, sel, value, ); } - late final __objc_msgSend_704Ptr = _lookup< + late final __objc_msgSend_809Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_negativeFormat1 = _registerName1("negativeFormat"); @@ -19798,110 +22703,128 @@ class SwiftLibrary { _registerName1("setSecondaryGroupingSize:"); late final _sel_multiplier1 = _registerName1("multiplier"); late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); - void _objc_msgSend_705( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_705( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_705Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - late final _sel_formatWidth1 = _registerName1("formatWidth"); late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); late final _sel_setPaddingCharacter_1 = _registerName1("setPaddingCharacter:"); late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_706( + int _objc_msgSend_810( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_706( + return __objc_msgSend_810( obj, sel, ); } - late final __objc_msgSend_706Ptr = _lookup< + late final __objc_msgSend_810Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_707( + void _objc_msgSend_811( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_707( + return __objc_msgSend_811( obj, sel, value, ); } - late final __objc_msgSend_707Ptr = _lookup< + late final __objc_msgSend_811Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_708( + int _objc_msgSend_812( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_708( + return __objc_msgSend_812( obj, sel, ); } - late final __objc_msgSend_708Ptr = _lookup< + late final __objc_msgSend_812Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< + late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); - void _objc_msgSend_709( + void _objc_msgSend_813( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_709( + return __objc_msgSend_813( obj, sel, value, ); } - late final __objc_msgSend_709Ptr = _lookup< + late final __objc_msgSend_813Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); + ffi.Pointer _objc_msgSend_814( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_814( + obj, + sel, + ); + } + + late final __objc_msgSend_814Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setRoundingIncrement_1 = _registerName1("setRoundingIncrement:"); + void _objc_msgSend_815( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_815( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_815Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_minimumIntegerDigits1 = _registerName1("minimumIntegerDigits"); late final _sel_setMinimumIntegerDigits_1 = @@ -19957,23 +22880,23 @@ class SwiftLibrary { _registerName1("attributedStringForZero"); late final _sel_setAttributedStringForZero_1 = _registerName1("setAttributedStringForZero:"); - void _objc_msgSend_710( + void _objc_msgSend_816( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_710( + return __objc_msgSend_816( obj, sel, value, ); } - late final __objc_msgSend_710Ptr = _lookup< + late final __objc_msgSend_816Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19989,28 +22912,28 @@ class SwiftLibrary { _getClass1("NSDecimalNumberHandler"); late final _sel_defaultDecimalNumberHandler1 = _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_711( + ffi.Pointer _objc_msgSend_817( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_711( + return __objc_msgSend_817( obj, sel, ); } - late final __objc_msgSend_711Ptr = _lookup< + late final __objc_msgSend_817Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = _registerName1( "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - instancetype _objc_msgSend_712( + instancetype _objc_msgSend_818( ffi.Pointer obj, ffi.Pointer sel, int roundingMode, @@ -20020,7 +22943,7 @@ class SwiftLibrary { bool underflow, bool divideByZero, ) { - return __objc_msgSend_712( + return __objc_msgSend_818( obj, sel, roundingMode, @@ -20032,7 +22955,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_712Ptr = _lookup< + late final __objc_msgSend_818Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -20043,7 +22966,7 @@ class SwiftLibrary { ffi.Bool, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, bool, bool, bool, bool)>(); @@ -20053,23 +22976,23 @@ class SwiftLibrary { late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); late final _sel_setRoundingBehavior_1 = _registerName1("setRoundingBehavior:"); - void _objc_msgSend_713( + void _objc_msgSend_819( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_713( + return __objc_msgSend_819( obj, sel, value, ); } - late final __objc_msgSend_713Ptr = _lookup< + late final __objc_msgSend_819Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< + late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20078,175 +23001,193 @@ class SwiftLibrary { late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); late final _sel_charactersToBeSkipped1 = _registerName1("charactersToBeSkipped"); + ffi.Pointer _objc_msgSend_820( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_820( + obj, + sel, + ); + } + + late final __objc_msgSend_820Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setCharactersToBeSkipped_1 = _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_714( + void _objc_msgSend_821( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_714( + return __objc_msgSend_821( obj, sel, value, ); } - late final __objc_msgSend_714Ptr = _lookup< + late final __objc_msgSend_821Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< + late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_caseSensitive1 = _registerName1("caseSensitive"); late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); late final _sel_scanInt_1 = _registerName1("scanInt:"); - bool _objc_msgSend_715( + bool _objc_msgSend_822( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_715( + return __objc_msgSend_822( obj, sel, result, ); } - late final __objc_msgSend_715Ptr = _lookup< + late final __objc_msgSend_822Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< + late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_716( + bool _objc_msgSend_823( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, + ffi.Pointer result, ) { - return __objc_msgSend_716( + return __objc_msgSend_823( obj, sel, result, ); } - late final __objc_msgSend_716Ptr = _lookup< + late final __objc_msgSend_823Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_717( + bool _objc_msgSend_824( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_717( + return __objc_msgSend_824( obj, sel, result, ); } - late final __objc_msgSend_717Ptr = _lookup< + late final __objc_msgSend_824Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanUnsignedLongLong_1 = _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_718( + bool _objc_msgSend_825( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_718( + return __objc_msgSend_825( obj, sel, result, ); } - late final __objc_msgSend_718Ptr = _lookup< + late final __objc_msgSend_825Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< + late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_719( + bool _objc_msgSend_826( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_719( + return __objc_msgSend_826( obj, sel, result, ); } - late final __objc_msgSend_719Ptr = _lookup< + late final __objc_msgSend_826Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_720( + bool _objc_msgSend_827( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_720( + return __objc_msgSend_827( obj, sel, result, ); } - late final __objc_msgSend_720Ptr = _lookup< + late final __objc_msgSend_827Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< + late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); - bool _objc_msgSend_721( + bool _objc_msgSend_828( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_721( + return __objc_msgSend_828( obj, sel, result, ); } - late final __objc_msgSend_721Ptr = _lookup< + late final __objc_msgSend_828Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< + late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20255,13 +23196,13 @@ class SwiftLibrary { late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); late final _sel_scanString_intoString_1 = _registerName1("scanString:intoString:"); - bool _objc_msgSend_722( + bool _objc_msgSend_829( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer> result, ) { - return __objc_msgSend_722( + return __objc_msgSend_829( obj, sel, string, @@ -20269,26 +23210,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_722Ptr = _lookup< + late final __objc_msgSend_829Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< + late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_scanCharactersFromSet_intoString_1 = _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_723( + bool _objc_msgSend_830( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ffi.Pointer> result, ) { - return __objc_msgSend_723( + return __objc_msgSend_830( obj, sel, set1, @@ -20296,14 +23237,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_723Ptr = _lookup< + late final __objc_msgSend_830Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< + late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -20316,37 +23257,37 @@ class SwiftLibrary { late final _sel_localizedScannerWithString_1 = _registerName1("localizedScannerWithString:"); late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_724( + bool _objc_msgSend_831( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dcm, ) { - return __objc_msgSend_724( + return __objc_msgSend_831( obj, sel, dcm, ); } - late final __objc_msgSend_724Ptr = _lookup< + late final __objc_msgSend_831Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSException1 = _getClass1("NSException"); late final _sel_exceptionWithName_reason_userInfo_1 = _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_725( + ffi.Pointer _objc_msgSend_832( ffi.Pointer obj, ffi.Pointer sel, - NSExceptionName name, + ffi.Pointer name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_725( + return __objc_msgSend_832( obj, sel, name, @@ -20355,37 +23296,69 @@ class SwiftLibrary { ); } - late final __objc_msgSend_725Ptr = _lookup< + late final __objc_msgSend_832Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< + late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithName_reason_userInfo_1 = _registerName1("initWithName:reason:userInfo:"); + instancetype _objc_msgSend_833( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aName, + ffi.Pointer aReason, + ffi.Pointer aUserInfo, + ) { + return __objc_msgSend_833( + obj, + sel, + aName, + aReason, + aUserInfo, + ); + } + + late final __objc_msgSend_833Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_reason1 = _registerName1("reason"); late final _sel_raise1 = _registerName1("raise"); late final _sel_raise_format_1 = _registerName1("raise:format:"); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_726( + void _objc_msgSend_834( ffi.Pointer obj, ffi.Pointer sel, - NSExceptionName name, + ffi.Pointer name, ffi.Pointer format, ffi.Pointer<__va_list_tag> argList, ) { - return __objc_msgSend_726( + return __objc_msgSend_834( obj, sel, name, @@ -20394,19 +23367,19 @@ class SwiftLibrary { ); } - late final __objc_msgSend_726Ptr = _lookup< + late final __objc_msgSend_834Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< + late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, - NSExceptionName, + ffi.Pointer, ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); @@ -20414,13 +23387,13 @@ class SwiftLibrary { late final _sel_availableData1 = _registerName1("availableData"); late final _sel_initWithFileDescriptor_closeOnDealloc_1 = _registerName1("initWithFileDescriptor:closeOnDealloc:"); - instancetype _objc_msgSend_727( + instancetype _objc_msgSend_835( ffi.Pointer obj, ffi.Pointer sel, int fd, bool closeopt, ) { - return __objc_msgSend_727( + return __objc_msgSend_835( obj, sel, fd, @@ -20428,47 +23401,47 @@ class SwiftLibrary { ); } - late final __objc_msgSend_727Ptr = _lookup< + late final __objc_msgSend_835Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< + late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_readDataToEndOfFileAndReturnError_1 = _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_728( + ffi.Pointer _objc_msgSend_836( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_728( + return __objc_msgSend_836( obj, sel, error, ); } - late final __objc_msgSend_728Ptr = _lookup< + late final __objc_msgSend_836Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< + late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_readDataUpToLength_error_1 = _registerName1("readDataUpToLength:error:"); - ffi.Pointer _objc_msgSend_729( + ffi.Pointer _objc_msgSend_837( ffi.Pointer obj, ffi.Pointer sel, int length, ffi.Pointer> error, ) { - return __objc_msgSend_729( + return __objc_msgSend_837( obj, sel, length, @@ -20476,25 +23449,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_729Ptr = _lookup< + late final __objc_msgSend_837Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_730( + bool _objc_msgSend_838( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer> error, ) { - return __objc_msgSend_730( + return __objc_msgSend_838( obj, sel, data, @@ -20502,25 +23475,25 @@ class SwiftLibrary { ); } - late final __objc_msgSend_730Ptr = _lookup< + late final __objc_msgSend_838Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< + late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_731( + bool _objc_msgSend_839( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer offsetInFile, ffi.Pointer> error, ) { - return __objc_msgSend_731( + return __objc_msgSend_839( obj, sel, offsetInFile, @@ -20528,14 +23501,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_731Ptr = _lookup< + late final __objc_msgSend_839Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20545,13 +23518,13 @@ class SwiftLibrary { late final _sel_seekToEndReturningOffset_error_1 = _registerName1("seekToEndReturningOffset:error:"); late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_732( + bool _objc_msgSend_840( ffi.Pointer obj, ffi.Pointer sel, int offset, ffi.Pointer> error, ) { - return __objc_msgSend_732( + return __objc_msgSend_840( obj, sel, offset, @@ -20559,14 +23532,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_732Ptr = _lookup< + late final __objc_msgSend_840Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -20578,21 +23551,21 @@ class SwiftLibrary { _registerName1("closeAndReturnError:"); late final _sel_fileHandleWithStandardInput1 = _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_733( + ffi.Pointer _objc_msgSend_841( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_733( + return __objc_msgSend_841( obj, sel, ); } - late final __objc_msgSend_733Ptr = _lookup< + late final __objc_msgSend_841Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -20610,13 +23583,13 @@ class SwiftLibrary { _registerName1("fileHandleForUpdatingAtPath:"); late final _sel_fileHandleForReadingFromURL_error_1 = _registerName1("fileHandleForReadingFromURL:error:"); - instancetype _objc_msgSend_734( + instancetype _objc_msgSend_842( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_734( + return __objc_msgSend_842( obj, sel, url, @@ -20624,14 +23597,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_734Ptr = _lookup< + late final __objc_msgSend_842Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -20641,6 +23614,26 @@ class SwiftLibrary { _registerName1("fileHandleForUpdatingURL:error:"); late final _sel_readInBackgroundAndNotifyForModes_1 = _registerName1("readInBackgroundAndNotifyForModes:"); + void _objc_msgSend_843( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer modes, + ) { + return __objc_msgSend_843( + obj, + sel, + modes, + ); + } + + late final __objc_msgSend_843Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_readInBackgroundAndNotify1 = _registerName1("readInBackgroundAndNotify"); late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = @@ -20656,43 +23649,43 @@ class SwiftLibrary { late final _sel_waitForDataInBackgroundAndNotify1 = _registerName1("waitForDataInBackgroundAndNotify"); late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_735( + ffi.Pointer<_ObjCBlock> _objc_msgSend_844( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_735( + return __objc_msgSend_844( obj, sel, ); } - late final __objc_msgSend_735Ptr = _lookup< + late final __objc_msgSend_844Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< + late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReadabilityHandler_1 = _registerName1("setReadabilityHandler:"); - void _objc_msgSend_736( + void _objc_msgSend_845( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_736( + return __objc_msgSend_845( obj, sel, value, ); } - late final __objc_msgSend_736Ptr = _lookup< + late final __objc_msgSend_845Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< + late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -20701,49 +23694,69 @@ class SwiftLibrary { _registerName1("setWriteabilityHandler:"); late final _sel_initWithFileDescriptor_1 = _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_737( + instancetype _objc_msgSend_846( ffi.Pointer obj, ffi.Pointer sel, int fd, ) { - return __objc_msgSend_737( + return __objc_msgSend_846( obj, sel, fd, ); } - late final __objc_msgSend_737Ptr = _lookup< + late final __objc_msgSend_846Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< + late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); + ffi.Pointer _objc_msgSend_847( + ffi.Pointer obj, + ffi.Pointer sel, + int length, + ) { + return __objc_msgSend_847( + obj, + sel, + length, + ); + } + + late final __objc_msgSend_847Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_offsetInFile1 = _registerName1("offsetInFile"); late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_738( + void _objc_msgSend_848( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_738( + return __objc_msgSend_848( obj, sel, offset, ); } - late final __objc_msgSend_738Ptr = _lookup< + late final __objc_msgSend_848Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< + late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_truncateFileAtOffset_1 = @@ -20753,68 +23766,88 @@ class SwiftLibrary { late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); late final _sel_sharedHTTPCookieStorage1 = _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_739( + ffi.Pointer _objc_msgSend_849( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_739( + return __objc_msgSend_849( obj, sel, ); } - late final __objc_msgSend_739Ptr = _lookup< + late final __objc_msgSend_849Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< + late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_740( + ffi.Pointer _objc_msgSend_850( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_740( + return __objc_msgSend_850( obj, sel, identifier, ); } - late final __objc_msgSend_740Ptr = _lookup< + late final __objc_msgSend_850Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< + late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_cookies1 = _registerName1("cookies"); late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); + instancetype _objc_msgSend_851( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer properties, + ) { + return __objc_msgSend_851( + obj, + sel, + properties, + ); + } + + late final __objc_msgSend_851Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_cookieWithProperties_1 = _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_741( + ffi.Pointer _objc_msgSend_852( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer properties, ) { - return __objc_msgSend_741( + return __objc_msgSend_852( obj, sel, properties, ); } - late final __objc_msgSend_741Ptr = _lookup< + late final __objc_msgSend_852Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< + late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20822,13 +23855,13 @@ class SwiftLibrary { _registerName1("requestHeaderFieldsWithCookies:"); late final _sel_cookiesWithResponseHeaderFields_forURL_1 = _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_742( + ffi.Pointer _objc_msgSend_853( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer headerFields, ffi.Pointer URL, ) { - return __objc_msgSend_742( + return __objc_msgSend_853( obj, sel, headerFields, @@ -20836,14 +23869,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_742Ptr = _lookup< + late final __objc_msgSend_853Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20861,23 +23894,23 @@ class SwiftLibrary { late final _sel_portList1 = _registerName1("portList"); late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_743( + void _objc_msgSend_854( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookie, ) { - return __objc_msgSend_743( + return __objc_msgSend_854( obj, sel, cookie, ); } - late final __objc_msgSend_743Ptr = _lookup< + late final __objc_msgSend_854Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20887,14 +23920,14 @@ class SwiftLibrary { late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); late final _sel_setCookies_forURL_mainDocumentURL_1 = _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_744( + void _objc_msgSend_855( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer URL, ffi.Pointer mainDocumentURL, ) { - return __objc_msgSend_744( + return __objc_msgSend_855( obj, sel, cookies, @@ -20903,7 +23936,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_744Ptr = _lookup< + late final __objc_msgSend_855Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20911,7 +23944,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20920,42 +23953,42 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_745( + int _objc_msgSend_856( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_745( + return __objc_msgSend_856( obj, sel, ); } - late final __objc_msgSend_745Ptr = _lookup< + late final __objc_msgSend_856Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< + late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setCookieAcceptPolicy_1 = _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_746( + void _objc_msgSend_857( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_746( + return __objc_msgSend_857( obj, sel, value, ); } - late final __objc_msgSend_746Ptr = _lookup< + late final __objc_msgSend_857Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_sortedCookiesUsingDescriptors_1 = @@ -20968,14 +24001,14 @@ class SwiftLibrary { _registerName1("supportsSecureCoding"); late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_747( + instancetype _objc_msgSend_858( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, int cachePolicy, double timeoutInterval, ) { - return __objc_msgSend_747( + return __objc_msgSend_858( obj, sel, URL, @@ -20984,15 +24017,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_747Ptr = _lookup< + late final __objc_msgSend_858Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, double)>(); @@ -21000,41 +24029,41 @@ class SwiftLibrary { _registerName1("initWithURL:cachePolicy:timeoutInterval:"); late final _sel_URL1 = _registerName1("URL"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_748( + int _objc_msgSend_859( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_748( + return __objc_msgSend_859( obj, sel, ); } - late final __objc_msgSend_748Ptr = _lookup< + late final __objc_msgSend_859Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_749( + int _objc_msgSend_860( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_749( + return __objc_msgSend_860( obj, sel, ); } - late final __objc_msgSend_749Ptr = _lookup< + late final __objc_msgSend_860Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_allowsCellularAccess1 = @@ -21045,23 +24074,25 @@ class SwiftLibrary { _registerName1("allowsConstrainedNetworkAccess"); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_750( + int _objc_msgSend_861( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_750( + return __objc_msgSend_861( obj, sel, ); } - late final __objc_msgSend_750Ptr = _lookup< + late final __objc_msgSend_861Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); + late final _sel_requiresDNSSECValidation1 = + _registerName1("requiresDNSSECValidation"); late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); late final _sel_valueForHTTPHeaderField_1 = @@ -21071,34 +24102,59 @@ class SwiftLibrary { late final _class_NSStream1 = _getClass1("NSStream"); late final _sel_open1 = _registerName1("open"); late final _sel_close1 = _registerName1("close"); + bool _objc_msgSend_862( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer key, + ) { + return __objc_msgSend_862( + obj, + sel, + property, + key, + ); + } + + late final __objc_msgSend_862Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_751( + int _objc_msgSend_863( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_751( + return __objc_msgSend_863( obj, sel, ); } - late final __objc_msgSend_751Ptr = _lookup< + late final __objc_msgSend_863Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_streamError1 = _registerName1("streamError"); late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); - int _objc_msgSend_752( + int _objc_msgSend_864( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int len, ) { - return __objc_msgSend_752( + return __objc_msgSend_864( obj, sel, buffer, @@ -21106,11 +24162,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_752Ptr = _lookup< + late final __objc_msgSend_864Ptr = _lookup< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -21118,13 +24174,13 @@ class SwiftLibrary { late final _sel_initToMemory1 = _registerName1("initToMemory"); late final _sel_initToBuffer_capacity_1 = _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_753( + instancetype _objc_msgSend_865( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int capacity, ) { - return __objc_msgSend_753( + return __objc_msgSend_865( obj, sel, buffer, @@ -21132,15 +24188,37 @@ class SwiftLibrary { ); } - late final __objc_msgSend_753Ptr = _lookup< + late final __objc_msgSend_865Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); + instancetype _objc_msgSend_866( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + bool shouldAppend, + ) { + return __objc_msgSend_866( + obj, + sel, + url, + shouldAppend, + ); + } + + late final __objc_msgSend_866Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + late final _sel_initToFileAtPath_append_1 = _registerName1("initToFileAtPath:append:"); late final _sel_outputStreamToMemory1 = @@ -21153,7 +24231,7 @@ class SwiftLibrary { _registerName1("outputStreamWithURL:append:"); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_754( + void _objc_msgSend_867( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, @@ -21161,7 +24239,7 @@ class SwiftLibrary { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_754( + return __objc_msgSend_867( obj, sel, hostname, @@ -21171,16 +24249,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_754Ptr = _lookup< + late final __objc_msgSend_867Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21192,25 +24270,45 @@ class SwiftLibrary { late final _class_NSHost1 = _getClass1("NSHost"); late final _sel_currentHost1 = _registerName1("currentHost"); late final _sel_hostWithName_1 = _registerName1("hostWithName:"); + instancetype _objc_msgSend_868( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_868( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_868Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); - bool _objc_msgSend_755( + bool _objc_msgSend_869( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aHost, ) { - return __objc_msgSend_755( + return __objc_msgSend_869( obj, sel, aHost, ); } - late final __objc_msgSend_755Ptr = _lookup< + late final __objc_msgSend_869Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21220,30 +24318,30 @@ class SwiftLibrary { late final _sel_localizedName1 = _registerName1("localizedName"); late final _sel_setHostCacheEnabled_1 = _registerName1("setHostCacheEnabled:"); - void _objc_msgSend_756( + void _objc_msgSend_870( ffi.Pointer obj, ffi.Pointer sel, bool flag, ) { - return __objc_msgSend_756( + return __objc_msgSend_870( obj, sel, flag, ); } - late final __objc_msgSend_756Ptr = _lookup< + late final __objc_msgSend_870Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< + late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_isHostCacheEnabled1 = _registerName1("isHostCacheEnabled"); late final _sel_flushHostCache1 = _registerName1("flushHostCache"); late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_757( + void _objc_msgSend_871( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -21251,7 +24349,7 @@ class SwiftLibrary { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_757( + return __objc_msgSend_871( obj, sel, host, @@ -21261,16 +24359,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_757Ptr = _lookup< + late final __objc_msgSend_871Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< + late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21281,14 +24379,14 @@ class SwiftLibrary { late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_758( + void _objc_msgSend_872( ffi.Pointer obj, ffi.Pointer sel, int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_758( + return __objc_msgSend_872( obj, sel, bufferSize, @@ -21297,15 +24395,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_758Ptr = _lookup< + late final __objc_msgSend_872Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< + late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -21315,13 +24413,13 @@ class SwiftLibrary { late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_759( + bool _objc_msgSend_873( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> buffer, - ffi.Pointer len, + ffi.Pointer len, ) { - return __objc_msgSend_759( + return __objc_msgSend_873( obj, sel, buffer, @@ -21329,40 +24427,63 @@ class SwiftLibrary { ); } - late final __objc_msgSend_759Ptr = _lookup< + late final __objc_msgSend_873Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>(); late final _sel_hasBytesAvailable1 = _registerName1("hasBytesAvailable"); late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); late final _sel_inputStreamWithData_1 = _registerName1("inputStreamWithData:"); + instancetype _objc_msgSend_874( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_874( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_874Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_inputStreamWithFileAtPath_1 = _registerName1("inputStreamWithFileAtPath:"); late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_760( + ffi.Pointer _objc_msgSend_875( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_760( + return __objc_msgSend_875( obj, sel, ); } - late final __objc_msgSend_760Ptr = _lookup< + late final __objc_msgSend_875Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< + late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21371,21 +24492,21 @@ class SwiftLibrary { late final _sel_HTTPShouldUsePipelining1 = _registerName1("HTTPShouldUsePipelining"); late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_761( + ffi.Pointer _objc_msgSend_876( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_761( + return __objc_msgSend_876( obj, sel, ); } - late final __objc_msgSend_761Ptr = _lookup< + late final __objc_msgSend_876Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< + late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21394,7 +24515,7 @@ class SwiftLibrary { late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = _registerName1( "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_762( + instancetype _objc_msgSend_877( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, @@ -21402,7 +24523,7 @@ class SwiftLibrary { int length, ffi.Pointer name, ) { - return __objc_msgSend_762( + return __objc_msgSend_877( obj, sel, URL, @@ -21412,16 +24533,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_762Ptr = _lookup< + late final __objc_msgSend_877Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< + late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -21436,25 +24557,43 @@ class SwiftLibrary { late final _sel_textEncodingName1 = _registerName1("textEncodingName"); late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_763( + ffi.Pointer _objc_msgSend_878( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_763( + return __objc_msgSend_878( obj, sel, ); } - late final __objc_msgSend_763Ptr = _lookup< + late final __objc_msgSend_878Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< + late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progress1 = _registerName1("progress"); + ffi.Pointer _objc_msgSend_879( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_879( + obj, + sel, + ); + } + + late final __objc_msgSend_879Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); late final _sel_setEarliestBeginDate_1 = _registerName1("setEarliestBeginDate:"); @@ -21476,43 +24615,43 @@ class SwiftLibrary { late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_764( + int _objc_msgSend_880( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_764( + return __objc_msgSend_880( obj, sel, ); } - late final __objc_msgSend_764Ptr = _lookup< + late final __objc_msgSend_880Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< + late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_suspend1 = _registerName1("suspend"); late final _sel_priority1 = _registerName1("priority"); late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_765( + void _objc_msgSend_881( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_765( + return __objc_msgSend_881( obj, sel, value, ); } - late final __objc_msgSend_765Ptr = _lookup< + late final __objc_msgSend_881Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_prefersIncrementalDelivery1 = @@ -21521,13 +24660,13 @@ class SwiftLibrary { _registerName1("setPrefersIncrementalDelivery:"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); - void _objc_msgSend_766( + void _objc_msgSend_882( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer task, ) { - return __objc_msgSend_766( + return __objc_msgSend_882( obj, sel, cookies, @@ -21535,26 +24674,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_766Ptr = _lookup< + late final __objc_msgSend_882Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCookiesForTask_completionHandler_1 = _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_767( + void _objc_msgSend_883( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_767( + return __objc_msgSend_883( obj, sel, task, @@ -21562,14 +24701,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_767Ptr = _lookup< + late final __objc_msgSend_883Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -21577,13 +24716,13 @@ class SwiftLibrary { late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); late final _sel_indexPathWithIndexes_length_1 = _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_768( + instancetype _objc_msgSend_884( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, + ffi.Pointer indexes, int length, ) { - return __objc_msgSend_768( + return __objc_msgSend_884( obj, sel, indexes, @@ -21591,67 +24730,70 @@ class SwiftLibrary { ); } - late final __objc_msgSend_768Ptr = _lookup< + late final __objc_msgSend_884Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, int)>(); late final _sel_initWithIndexes_length_1 = _registerName1("initWithIndexes:length:"); late final _sel_indexPathByAddingIndex_1 = _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_769( + ffi.Pointer _objc_msgSend_885( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_769( + return __objc_msgSend_885( obj, sel, index, ); } - late final __objc_msgSend_769Ptr = _lookup< + late final __objc_msgSend_885Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexPathByRemovingLastIndex1 = _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_770( + ffi.Pointer _objc_msgSend_886( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_770( + return __objc_msgSend_886( obj, sel, ); } - late final __objc_msgSend_770Ptr = _lookup< + late final __objc_msgSend_886Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< + late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); - void _objc_msgSend_771( + void _objc_msgSend_887( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, - NSRange positionRange, + ffi.Pointer indexes, + _NSRange positionRange, ) { - return __objc_msgSend_771( + return __objc_msgSend_887( obj, sel, indexes, @@ -21659,72 +24801,72 @@ class SwiftLibrary { ); } - late final __objc_msgSend_771Ptr = _lookup< + late final __objc_msgSend_887Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer, _NSRange)>(); - int _objc_msgSend_772( + int _objc_msgSend_888( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherObject, ) { - return __objc_msgSend_772( + return __objc_msgSend_888( obj, sel, otherObject, ); } - late final __objc_msgSend_772Ptr = _lookup< + late final __objc_msgSend_888Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_773( + void _objc_msgSend_889( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, + ffi.Pointer indexes, ) { - return __objc_msgSend_773( + return __objc_msgSend_889( obj, sel, indexes, ); } - late final __objc_msgSend_773Ptr = _lookup< + late final __objc_msgSend_889Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); late final _sel_automaticRule1 = _registerName1("automaticRule"); - ffi.Pointer _objc_msgSend_774( + ffi.Pointer _objc_msgSend_890( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_774( + return __objc_msgSend_890( obj, sel, ); } - late final __objc_msgSend_774Ptr = _lookup< + late final __objc_msgSend_890Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< + late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21733,118 +24875,309 @@ class SwiftLibrary { _registerName1("canInflectPreferredLocalization"); late final _class_NSMorphology1 = _getClass1("NSMorphology"); late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_775( + int _objc_msgSend_891( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_775( + return __objc_msgSend_891( obj, sel, ); } - late final __objc_msgSend_775Ptr = _lookup< + late final __objc_msgSend_891Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< + late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalGender_1 = _registerName1("setGrammaticalGender:"); - void _objc_msgSend_776( + void _objc_msgSend_892( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_776( + return __objc_msgSend_892( obj, sel, value, ); } - late final __objc_msgSend_776Ptr = _lookup< + late final __objc_msgSend_892Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< + late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_777( + int _objc_msgSend_893( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_777( + return __objc_msgSend_893( obj, sel, ); } - late final __objc_msgSend_777Ptr = _lookup< + late final __objc_msgSend_893Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< + late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_778( + void _objc_msgSend_894( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_778( + return __objc_msgSend_894( obj, sel, value, ); } - late final __objc_msgSend_778Ptr = _lookup< + late final __objc_msgSend_894Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< + late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_779( + int _objc_msgSend_895( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_779( + return __objc_msgSend_895( obj, sel, ); } - late final __objc_msgSend_779Ptr = _lookup< + late final __objc_msgSend_895Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< + late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_780( + void _objc_msgSend_896( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_780( + return __objc_msgSend_896( obj, sel, value, ); } - late final __objc_msgSend_780Ptr = _lookup< + late final __objc_msgSend_896Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< + late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_grammaticalCase1 = _registerName1("grammaticalCase"); + int _objc_msgSend_897( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_897( + obj, + sel, + ); + } + + late final __objc_msgSend_897Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalCase_1 = _registerName1("setGrammaticalCase:"); + void _objc_msgSend_898( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_898( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_898Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_determination1 = _registerName1("determination"); + int _objc_msgSend_899( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_899( + obj, + sel, + ); + } + + late final __objc_msgSend_899Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDetermination_1 = _registerName1("setDetermination:"); + void _objc_msgSend_900( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_900( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_900Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_grammaticalPerson1 = _registerName1("grammaticalPerson"); + int _objc_msgSend_901( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_901( + obj, + sel, + ); + } + + late final __objc_msgSend_901Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalPerson_1 = + _registerName1("setGrammaticalPerson:"); + void _objc_msgSend_902( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_902( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_902Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_pronounType1 = _registerName1("pronounType"); + int _objc_msgSend_903( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_903( + obj, + sel, + ); + } + + late final __objc_msgSend_903Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPronounType_1 = _registerName1("setPronounType:"); + void _objc_msgSend_904( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_904( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_904Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_definiteness1 = _registerName1("definiteness"); + int _objc_msgSend_905( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_905( + obj, + sel, + ); + } + + late final __objc_msgSend_905Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDefiniteness_1 = _registerName1("setDefiniteness:"); + void _objc_msgSend_906( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_906( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_906Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSMorphologyCustomPronoun1 = @@ -21867,36 +25200,36 @@ class SwiftLibrary { late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); late final _sel_customPronounForLanguage_1 = _registerName1("customPronounForLanguage:"); - ffi.Pointer _objc_msgSend_781( + ffi.Pointer _objc_msgSend_907( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer language, ) { - return __objc_msgSend_781( + return __objc_msgSend_907( obj, sel, language, ); } - late final __objc_msgSend_781Ptr = _lookup< + late final __objc_msgSend_907Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< + late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setCustomPronoun_forLanguage_error_1 = _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_782( + bool _objc_msgSend_908( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer features, ffi.Pointer language, ffi.Pointer> error, ) { - return __objc_msgSend_782( + return __objc_msgSend_908( obj, sel, features, @@ -21905,7 +25238,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_782Ptr = _lookup< + late final __objc_msgSend_908Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -21913,7 +25246,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< + late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -21923,21 +25256,21 @@ class SwiftLibrary { late final _sel_isUnspecified1 = _registerName1("isUnspecified"); late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_783( + ffi.Pointer _objc_msgSend_909( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_783( + return __objc_msgSend_909( obj, sel, ); } - late final __objc_msgSend_783Ptr = _lookup< + late final __objc_msgSend_909Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< + late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -21947,64 +25280,64 @@ class SwiftLibrary { late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); late final _sel_isReady1 = _registerName1("isReady"); late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_784( + void _objc_msgSend_910( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer op, ) { - return __objc_msgSend_784( + return __objc_msgSend_910( obj, sel, op, ); } - late final __objc_msgSend_784Ptr = _lookup< + late final __objc_msgSend_910Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< + late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeDependency_1 = _registerName1("removeDependency:"); late final _sel_dependencies1 = _registerName1("dependencies"); late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_785( + int _objc_msgSend_911( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_785( + return __objc_msgSend_911( obj, sel, ); } - late final __objc_msgSend_785Ptr = _lookup< + late final __objc_msgSend_911Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< + late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_786( + void _objc_msgSend_912( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_786( + return __objc_msgSend_912( obj, sel, value, ); } - late final __objc_msgSend_786Ptr = _lookup< + late final __objc_msgSend_912Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< + late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completionBlock1 = _registerName1("completionBlock"); @@ -22013,13 +25346,13 @@ class SwiftLibrary { late final _sel_addOperation_1 = _registerName1("addOperation:"); late final _sel_addOperations_waitUntilFinished_1 = _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_787( + void _objc_msgSend_913( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ops, bool wait, ) { - return __objc_msgSend_787( + return __objc_msgSend_913( obj, sel, ops, @@ -22027,11 +25360,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_787Ptr = _lookup< + late final __objc_msgSend_913Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< + late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -22045,200 +25378,220 @@ class SwiftLibrary { late final _sel_isSuspended1 = _registerName1("isSuspended"); late final _sel_setSuspended_1 = _registerName1("setSuspended:"); late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - dispatch_queue_t _objc_msgSend_788( + ffi.Pointer _objc_msgSend_914( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_788( + return __objc_msgSend_914( obj, sel, ); } - late final __objc_msgSend_788Ptr = _lookup< + late final __objc_msgSend_914Ptr = _lookup< ffi.NativeFunction< - dispatch_queue_t Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< - dispatch_queue_t Function( + late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_789( + void _objc_msgSend_915( ffi.Pointer obj, ffi.Pointer sel, - dispatch_queue_t value, + ffi.Pointer value, ) { - return __objc_msgSend_789( + return __objc_msgSend_915( obj, sel, value, ); } - late final __objc_msgSend_789Ptr = _lookup< + late final __objc_msgSend_915Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - dispatch_queue_t)>>('objc_msgSend'); - late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer, dispatch_queue_t)>(); + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); late final _sel_waitUntilAllOperationsAreFinished1 = _registerName1("waitUntilAllOperationsAreFinished"); late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_790( + ffi.Pointer _objc_msgSend_916( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_790( + return __objc_msgSend_916( obj, sel, ); } - late final __objc_msgSend_790Ptr = _lookup< + late final __objc_msgSend_916Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainQueue1 = _registerName1("mainQueue"); + ffi.Pointer _objc_msgSend_917( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_917( + obj, + sel, + ); + } + + late final __objc_msgSend_917Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_operations1 = _registerName1("operations"); late final _sel_operationCount1 = _registerName1("operationCount"); late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_791( + instancetype _objc_msgSend_918( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_791( + return __objc_msgSend_918( obj, sel, options, ); } - late final __objc_msgSend_791Ptr = _lookup< + late final __objc_msgSend_918Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< + late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); late final _sel_pointerFunctionsWithOptions_1 = _registerName1("pointerFunctionsWithOptions:"); - ffi.Pointer _objc_msgSend_792( + ffi.Pointer _objc_msgSend_919( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_792( + return __objc_msgSend_919( obj, sel, options, ); } - late final __objc_msgSend_792Ptr = _lookup< + late final __objc_msgSend_919Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< + late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_hashFunction1 = _registerName1("hashFunction"); ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> - _objc_msgSend_793( + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_920( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_793( + return __objc_msgSend_920( obj, sel, ); } - late final __objc_msgSend_793Ptr = _lookup< + late final __objc_msgSend_920Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< + late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_794( + void _objc_msgSend_921( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_794( + return __objc_msgSend_921( obj, sel, value, ); } - late final __objc_msgSend_794Ptr = _lookup< + late final __objc_msgSend_921Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< + late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>(); late final _sel_isEqualFunction1 = _registerName1("isEqualFunction"); @@ -22249,18 +25602,18 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> - _objc_msgSend_795( + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_922( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_795( + return __objc_msgSend_922( obj, sel, ); } - late final __objc_msgSend_795Ptr = _lookup< + late final __objc_msgSend_922Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -22269,11 +25622,11 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< + late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Bool Function( @@ -22281,11 +25634,12 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_796( + void _objc_msgSend_923( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22295,17 +25649,18 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_796( + return __objc_msgSend_923( obj, sel, value, ); } - late final __objc_msgSend_796Ptr = _lookup< + late final __objc_msgSend_923Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22317,10 +25672,10 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< + late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22331,79 +25686,83 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>(); late final _sel_sizeFunction1 = _registerName1("sizeFunction"); - ffi.Pointer)>> - _objc_msgSend_797( + ffi.Pointer< + ffi.NativeFunction)>> + _objc_msgSend_924( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_797( + return __objc_msgSend_924( obj, sel, ); } - late final __objc_msgSend_797Ptr = _lookup< + late final __objc_msgSend_924Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>> + ffi.UnsignedLong Function(ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< + late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< ffi.Pointer< - ffi.NativeFunction)>> + ffi + .NativeFunction)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_798( + void _objc_msgSend_925( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer)>> + ffi.Pointer< + ffi + .NativeFunction)>> value, ) { - return __objc_msgSend_798( + return __objc_msgSend_925( obj, sel, value, ); } - late final __objc_msgSend_798Ptr = _lookup< + late final __objc_msgSend_925Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< + late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi - .NativeFunction)>>)>(); + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>(); late final _sel_descriptionFunction1 = _registerName1("descriptionFunction"); ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_799( + _objc_msgSend_926( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_799( + return __objc_msgSend_926( obj, sel, ); } - late final __objc_msgSend_799Ptr = + late final __objc_msgSend_926Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< @@ -22412,7 +25771,7 @@ class SwiftLibrary { ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> @@ -22420,7 +25779,7 @@ class SwiftLibrary { late final _sel_setDescriptionFunction_1 = _registerName1("setDescriptionFunction:"); - void _objc_msgSend_800( + void _objc_msgSend_927( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22428,14 +25787,14 @@ class SwiftLibrary { ffi.Pointer Function(ffi.Pointer)>> value, ) { - return __objc_msgSend_800( + return __objc_msgSend_927( obj, sel, value, ); } - late final __objc_msgSend_800Ptr = _lookup< + late final __objc_msgSend_927Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22444,7 +25803,7 @@ class SwiftLibrary { ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22459,18 +25818,18 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> - _objc_msgSend_801( + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_928( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_801( + return __objc_msgSend_928( obj, sel, ); } - late final __objc_msgSend_801Ptr = _lookup< + late final __objc_msgSend_928Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -22478,23 +25837,24 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< + late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setRelinquishFunction_1 = _registerName1("setRelinquishFunction:"); - void _objc_msgSend_802( + void _objc_msgSend_929( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22503,17 +25863,18 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_802( + return __objc_msgSend_929( obj, sel, value, ); } - late final __objc_msgSend_802Ptr = _lookup< + late final __objc_msgSend_929Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22524,10 +25885,10 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< + late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22537,7 +25898,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>(); late final _sel_acquireFunction1 = _registerName1("acquireFunction"); @@ -22546,45 +25907,45 @@ class SwiftLibrary { ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi - .NativeFunction)>>, - ffi.Bool)>> _objc_msgSend_803( + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> _objc_msgSend_930( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_803( + return __objc_msgSend_930( obj, sel, ); } - late final __objc_msgSend_803Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer)>>, - ffi.Bool)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< + late final __objc_msgSend_930Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_804( + void _objc_msgSend_931( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -22593,18 +25954,18 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function(ffi.Pointer)>>, ffi.Bool)>> value, ) { - return __objc_msgSend_804( + return __objc_msgSend_931( obj, sel, value, ); } - late final __objc_msgSend_804Ptr = _lookup< + late final __objc_msgSend_931Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22615,9 +25976,10 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>>)>>('objc_msgSend'); - late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< + late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22627,7 +25989,8 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>>)>(); late final _sel_usesStrongWriteBarrier1 = @@ -22640,107 +26003,107 @@ class SwiftLibrary { _registerName1("setUsesWeakReadAndWriteBarriers:"); late final _sel_initWithPointerFunctions_1 = _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_805( + instancetype _objc_msgSend_932( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_805( + return __objc_msgSend_932( obj, sel, functions, ); } - late final __objc_msgSend_805Ptr = _lookup< + late final __objc_msgSend_932Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerArrayWithOptions_1 = _registerName1("pointerArrayWithOptions:"); - ffi.Pointer _objc_msgSend_806( + ffi.Pointer _objc_msgSend_933( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_806( + return __objc_msgSend_933( obj, sel, options, ); } - late final __objc_msgSend_806Ptr = _lookup< + late final __objc_msgSend_933Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< + late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pointerArrayWithPointerFunctions_1 = _registerName1("pointerArrayWithPointerFunctions:"); - ffi.Pointer _objc_msgSend_807( + ffi.Pointer _objc_msgSend_934( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_807( + return __objc_msgSend_934( obj, sel, functions, ); } - late final __objc_msgSend_807Ptr = _lookup< + late final __objc_msgSend_934Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< + late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); - ffi.Pointer _objc_msgSend_808( + ffi.Pointer _objc_msgSend_935( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_808( + return __objc_msgSend_935( obj, sel, ); } - late final __objc_msgSend_808Ptr = _lookup< + late final __objc_msgSend_935Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< + late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); - ffi.Pointer _objc_msgSend_809( + ffi.Pointer _objc_msgSend_936( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_809( + return __objc_msgSend_936( obj, sel, index, ); } - late final __objc_msgSend_809Ptr = _lookup< + late final __objc_msgSend_936Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -22751,13 +26114,13 @@ class SwiftLibrary { _registerName1("insertPointer:atIndex:"); late final _sel_replacePointerAtIndex_withPointer_1 = _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_810( + void _objc_msgSend_937( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer item, ) { - return __objc_msgSend_810( + return __objc_msgSend_937( obj, sel, index, @@ -22765,11 +26128,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_810Ptr = _lookup< + late final __objc_msgSend_937Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -22781,21 +26144,21 @@ class SwiftLibrary { _registerName1("pointerArrayWithWeakObjects"); late final _sel_strongObjectsPointerArray1 = _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_811( + ffi.Pointer _objc_msgSend_938( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_811( + return __objc_msgSend_938( obj, sel, ); } - late final __objc_msgSend_811Ptr = _lookup< + late final __objc_msgSend_938Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< + late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22803,21 +26166,21 @@ class SwiftLibrary { _registerName1("weakObjectsPointerArray"); late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_812( + ffi.Pointer _objc_msgSend_939( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_812( + return __objc_msgSend_939( obj, sel, ); } - late final __objc_msgSend_812Ptr = _lookup< + late final __objc_msgSend_939Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< + late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22834,22 +26197,26 @@ class SwiftLibrary { _registerName1("operatingSystemVersionString"); late final _sel_operatingSystemVersion1 = _registerName1("operatingSystemVersion"); - NSOperatingSystemVersion _objc_msgSend_813( + void _objc_msgSend_940( + ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_813( + return __objc_msgSend_940( + stret, obj, sel, ); } - late final __objc_msgSend_813Ptr = _lookup< + late final __objc_msgSend_940Ptr = _lookup< ffi.NativeFunction< - NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< - NSOperatingSystemVersion Function( + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_stret'); + late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_processorCount1 = _registerName1("processorCount"); @@ -22858,23 +26225,23 @@ class SwiftLibrary { late final _sel_physicalMemory1 = _registerName1("physicalMemory"); late final _sel_isOperatingSystemAtLeastVersion_1 = _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_814( + bool _objc_msgSend_941( ffi.Pointer obj, ffi.Pointer sel, NSOperatingSystemVersion version, ) { - return __objc_msgSend_814( + return __objc_msgSend_941( obj, sel, version, ); } - late final __objc_msgSend_814Ptr = _lookup< + late final __objc_msgSend_941Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>(); @@ -22893,13 +26260,13 @@ class SwiftLibrary { _registerName1("setAutomaticTerminationSupportEnabled:"); late final _sel_beginActivityWithOptions_reason_1 = _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_815( + ffi.Pointer _objc_msgSend_942( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ) { - return __objc_msgSend_815( + return __objc_msgSend_942( obj, sel, options, @@ -22907,28 +26274,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_815Ptr = _lookup< + late final __objc_msgSend_942Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_endActivity_1 = _registerName1("endActivity:"); late final _sel_performActivityWithOptions_reason_usingBlock_1 = _registerName1("performActivityWithOptions:reason:usingBlock:"); - void _objc_msgSend_816( + void _objc_msgSend_943( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_816( + return __objc_msgSend_943( obj, sel, options, @@ -22937,7 +26304,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_816Ptr = _lookup< + late final __objc_msgSend_943Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22945,19 +26312,19 @@ class SwiftLibrary { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< + late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performExpiringActivityWithReason_usingBlock_1 = _registerName1("performExpiringActivityWithReason:usingBlock:"); - void _objc_msgSend_817( + void _objc_msgSend_944( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_817( + return __objc_msgSend_944( obj, sel, reason, @@ -22965,35 +26332,35 @@ class SwiftLibrary { ); } - late final __objc_msgSend_817Ptr = _lookup< + late final __objc_msgSend_944Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< + late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_userName1 = _registerName1("userName"); late final _sel_fullUserName1 = _registerName1("fullUserName"); late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_818( + int _objc_msgSend_945( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_818( + return __objc_msgSend_945( obj, sel, ); } - late final __objc_msgSend_818Ptr = _lookup< + late final __objc_msgSend_945Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< + late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_isLowPowerModeEnabled1 = @@ -23002,40 +26369,40 @@ class SwiftLibrary { late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_819( + int _objc_msgSend_946( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_819( + return __objc_msgSend_946( obj, sel, ); } - late final __objc_msgSend_819Ptr = _lookup< + late final __objc_msgSend_946Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< + late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_range1 = _registerName1("range"); late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_820( + ffi.Pointer _objc_msgSend_947( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_820( + return __objc_msgSend_947( obj, sel, ); } - late final __objc_msgSend_820Ptr = _lookup< + late final __objc_msgSend_947Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23047,14 +26414,14 @@ class SwiftLibrary { late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); late final _sel_regularExpressionWithPattern_options_error_1 = _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_821( + ffi.Pointer _objc_msgSend_948( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_821( + return __objc_msgSend_948( obj, sel, pattern, @@ -23063,7 +26430,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_821Ptr = _lookup< + late final __objc_msgSend_948Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -23071,7 +26438,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< + late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -23081,14 +26448,14 @@ class SwiftLibrary { late final _sel_initWithPattern_options_error_1 = _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_822( + instancetype _objc_msgSend_949( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_822( + return __objc_msgSend_949( obj, sel, pattern, @@ -23097,7 +26464,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_822Ptr = _lookup< + late final __objc_msgSend_949Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23105,7 +26472,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< + late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23115,21 +26482,21 @@ class SwiftLibrary { late final _sel_pattern1 = _registerName1("pattern"); late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_823( + int _objc_msgSend_950( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_823( + return __objc_msgSend_950( obj, sel, ); } - late final __objc_msgSend_823Ptr = _lookup< + late final __objc_msgSend_950Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< + late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_numberOfCaptureGroups1 = @@ -23138,15 +26505,15 @@ class SwiftLibrary { _registerName1("escapedPatternForString:"); late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_824( + void _objc_msgSend_951( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_824( + return __objc_msgSend_951( obj, sel, string, @@ -23156,29 +26523,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_824Ptr = _lookup< + late final __objc_msgSend_951Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< + late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); late final _sel_matchesInString_options_range_1 = _registerName1("matchesInString:options:range:"); - ffi.Pointer _objc_msgSend_825( + ffi.Pointer _objc_msgSend_952( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_825( + return __objc_msgSend_952( obj, sel, string, @@ -23187,28 +26554,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_825Ptr = _lookup< + late final __objc_msgSend_952Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_numberOfMatchesInString_options_range_1 = _registerName1("numberOfMatchesInString:options:range:"); - int _objc_msgSend_826( + int _objc_msgSend_953( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_826( + return __objc_msgSend_953( obj, sel, string, @@ -23217,24 +26584,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_826Ptr = _lookup< + late final __objc_msgSend_953Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Pointer, int, _NSRange)>(); late final _sel_firstMatchInString_options_range_1 = _registerName1("firstMatchInString:options:range:"); - ffi.Pointer _objc_msgSend_827( + ffi.Pointer _objc_msgSend_954( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_827( + return __objc_msgSend_954( obj, sel, string, @@ -23243,28 +26614,30 @@ class SwiftLibrary { ); } - late final __objc_msgSend_827Ptr = _lookup< + late final __objc_msgSend_954Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange)>>('objc_msgSend'); - late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, NSRange)>(); + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfFirstMatchInString_options_range_1 = _registerName1("rangeOfFirstMatchInString:options:range:"); - NSRange _objc_msgSend_828( + void _objc_msgSend_955( + ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_828( + return __objc_msgSend_955( + stret, obj, sel, string, @@ -23273,26 +26646,31 @@ class SwiftLibrary { ); } - late final __objc_msgSend_828Ptr = _lookup< + late final __objc_msgSend_955Ptr = _lookup< ffi.NativeFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< - NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange)>(); + ffi.Void Function( + ffi.Pointer<_NSRange>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend_stret'); + late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + void Function(ffi.Pointer<_NSRange>, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = _registerName1( "stringByReplacingMatchesInString:options:range:withTemplate:"); - ffi.Pointer _objc_msgSend_829( + ffi.Pointer _objc_msgSend_956( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_829( + return __objc_msgSend_956( obj, sel, string, @@ -23302,35 +26680,35 @@ class SwiftLibrary { ); } - late final __objc_msgSend_829Ptr = _lookup< + late final __objc_msgSend_956Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< + late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - NSRange, + _NSRange, ffi.Pointer)>(); late final _sel_replaceMatchesInString_options_range_withTemplate_1 = _registerName1("replaceMatchesInString:options:range:withTemplate:"); - int _objc_msgSend_830( + int _objc_msgSend_957( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, - NSRange range, + _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_830( + return __objc_msgSend_957( obj, sel, string, @@ -23340,22 +26718,22 @@ class SwiftLibrary { ); } - late final __objc_msgSend_830Ptr = _lookup< + late final __objc_msgSend_957Ptr = _lookup< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< + late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, NSRange, ffi.Pointer)>(); + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_replacementStringForResult_inString_offset_template_1 = _registerName1("replacementStringForResult:inString:offset:template:"); - ffi.Pointer _objc_msgSend_831( + ffi.Pointer _objc_msgSend_958( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, @@ -23363,7 +26741,7 @@ class SwiftLibrary { int offset, ffi.Pointer templ, ) { - return __objc_msgSend_831( + return __objc_msgSend_958( obj, sel, result, @@ -23373,16 +26751,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_831Ptr = _lookup< + late final __objc_msgSend_958Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< + late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -23394,21 +26772,21 @@ class SwiftLibrary { late final _sel_escapedTemplateForString_1 = _registerName1("escapedTemplateForString:"); late final _sel_regularExpression1 = _registerName1("regularExpression"); - ffi.Pointer _objc_msgSend_832( + ffi.Pointer _objc_msgSend_959( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_832( + return __objc_msgSend_959( obj, sel, ); } - late final __objc_msgSend_832Ptr = _lookup< + late final __objc_msgSend_959Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< + late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23418,36 +26796,36 @@ class SwiftLibrary { late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); late final _sel_resultByAdjustingRangesWithOffset_1 = _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_833( + ffi.Pointer _objc_msgSend_960( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_833( + return __objc_msgSend_960( obj, sel, offset, ); } - late final __objc_msgSend_833Ptr = _lookup< + late final __objc_msgSend_960Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_addressComponents1 = _registerName1("addressComponents"); late final _sel_orthographyCheckingResultWithRange_orthography_1 = _registerName1("orthographyCheckingResultWithRange:orthography:"); - ffi.Pointer _objc_msgSend_834( + ffi.Pointer _objc_msgSend_961( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer orthography, ) { - return __objc_msgSend_834( + return __objc_msgSend_961( obj, sel, range, @@ -23455,48 +26833,48 @@ class SwiftLibrary { ); } - late final __objc_msgSend_834Ptr = _lookup< + late final __objc_msgSend_961Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< + late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_spellCheckingResultWithRange_1 = _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_835( + ffi.Pointer _objc_msgSend_962( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ) { - return __objc_msgSend_835( + return __objc_msgSend_962( obj, sel, range, ); } - late final __objc_msgSend_835Ptr = _lookup< + late final __objc_msgSend_962Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSRange)>(); + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_grammarCheckingResultWithRange_details_1 = _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_836( + ffi.Pointer _objc_msgSend_963( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer details, ) { - return __objc_msgSend_836( + return __objc_msgSend_963( obj, sel, range, @@ -23504,26 +26882,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_836Ptr = _lookup< + late final __objc_msgSend_963Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< + late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_1 = _registerName1("dateCheckingResultWithRange:date:"); - ffi.Pointer _objc_msgSend_837( + ffi.Pointer _objc_msgSend_964( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer date, ) { - return __objc_msgSend_837( + return __objc_msgSend_964( obj, sel, range, @@ -23531,28 +26909,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_837Ptr = _lookup< + late final __objc_msgSend_964Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< + late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); - ffi.Pointer _objc_msgSend_838( + ffi.Pointer _objc_msgSend_965( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer date, ffi.Pointer timeZone, double duration, ) { - return __objc_msgSend_838( + return __objc_msgSend_965( obj, sel, range, @@ -23562,33 +26940,33 @@ class SwiftLibrary { ); } - late final __objc_msgSend_838Ptr = _lookup< + late final __objc_msgSend_965Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer, - NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer, double)>(); late final _sel_addressCheckingResultWithRange_components_1 = _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_839( + ffi.Pointer _objc_msgSend_966( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer components, ) { - return __objc_msgSend_839( + return __objc_msgSend_966( obj, sel, range, @@ -23596,26 +26974,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_839Ptr = _lookup< + late final __objc_msgSend_966Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< + late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_linkCheckingResultWithRange_URL_1 = _registerName1("linkCheckingResultWithRange:URL:"); - ffi.Pointer _objc_msgSend_840( + ffi.Pointer _objc_msgSend_967( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer url, ) { - return __objc_msgSend_840( + return __objc_msgSend_967( obj, sel, range, @@ -23623,26 +27001,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_840Ptr = _lookup< + late final __objc_msgSend_967Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< + late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_quoteCheckingResultWithRange_replacementString_1 = _registerName1("quoteCheckingResultWithRange:replacementString:"); - ffi.Pointer _objc_msgSend_841( + ffi.Pointer _objc_msgSend_968( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacementString, ) { - return __objc_msgSend_841( + return __objc_msgSend_968( obj, sel, range, @@ -23650,16 +27028,16 @@ class SwiftLibrary { ); } - late final __objc_msgSend_841Ptr = _lookup< + late final __objc_msgSend_968Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< + late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dashCheckingResultWithRange_replacementString_1 = _registerName1("dashCheckingResultWithRange:replacementString:"); @@ -23670,14 +27048,14 @@ class SwiftLibrary { late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = _registerName1( "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_842( + ffi.Pointer _objc_msgSend_969( ffi.Pointer obj, ffi.Pointer sel, - NSRange range, + _NSRange range, ffi.Pointer replacementString, ffi.Pointer alternativeStrings, ) { - return __objc_msgSend_842( + return __objc_msgSend_969( obj, sel, range, @@ -23686,33 +27064,33 @@ class SwiftLibrary { ); } - late final __objc_msgSend_842Ptr = _lookup< + late final __objc_msgSend_969Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< + late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRange, + _NSRange, ffi.Pointer, ffi.Pointer)>(); late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = _registerName1( "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_843( + ffi.Pointer _objc_msgSend_970( ffi.Pointer obj, ffi.Pointer sel, - NSRangePointer ranges, + ffi.Pointer<_NSRange> ranges, int count, ffi.Pointer regularExpression, ) { - return __objc_msgSend_843( + return __objc_msgSend_970( obj, sel, ranges, @@ -23721,19 +27099,19 @@ class SwiftLibrary { ); } - late final __objc_msgSend_843Ptr = _lookup< + late final __objc_msgSend_970Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRangePointer, - NSUInteger, + ffi.Pointer<_NSRange>, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSRangePointer, + ffi.Pointer<_NSRange>, int, ffi.Pointer)>(); @@ -23743,55 +27121,55 @@ class SwiftLibrary { _registerName1("transitInformationCheckingResultWithRange:components:"); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_844( + ffi.Pointer _objc_msgSend_971( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_844( + return __objc_msgSend_971( obj, sel, ); } - late final __objc_msgSend_844Ptr = _lookup< + late final __objc_msgSend_971Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< + late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_845( + void _objc_msgSend_972( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_845( + return __objc_msgSend_972( obj, sel, value, ); } - late final __objc_msgSend_845Ptr = _lookup< + late final __objc_msgSend_972Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< + late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_846( + instancetype _objc_msgSend_973( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer path, ) { - return __objc_msgSend_846( + return __objc_msgSend_973( obj, sel, memoryCapacity, @@ -23800,28 +27178,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_846Ptr = _lookup< + late final __objc_msgSend_973Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSUInteger, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< + late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); - instancetype _objc_msgSend_847( + instancetype _objc_msgSend_974( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer directoryURL, ) { - return __objc_msgSend_847( + return __objc_msgSend_974( obj, sel, memoryCapacity, @@ -23830,28 +27208,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_847Ptr = _lookup< + late final __objc_msgSend_974Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSUInteger, + ffi.UnsignedLong, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); late final _sel_initWithResponse_data_1 = _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_848( + instancetype _objc_msgSend_975( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, ffi.Pointer data, ) { - return __objc_msgSend_848( + return __objc_msgSend_975( obj, sel, response, @@ -23859,20 +27237,20 @@ class SwiftLibrary { ); } - late final __objc_msgSend_848Ptr = _lookup< + late final __objc_msgSend_975Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< + late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = _registerName1("initWithResponse:data:userInfo:storagePolicy:"); - instancetype _objc_msgSend_849( + instancetype _objc_msgSend_976( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, @@ -23880,7 +27258,7 @@ class SwiftLibrary { ffi.Pointer userInfo, int storagePolicy, ) { - return __objc_msgSend_849( + return __objc_msgSend_976( obj, sel, response, @@ -23890,7 +27268,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_849Ptr = _lookup< + late final __objc_msgSend_976Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23899,7 +27277,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< + late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23908,55 +27286,73 @@ class SwiftLibrary { ffi.Pointer, int)>(); + ffi.Pointer _objc_msgSend_977( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_977( + obj, + sel, + ); + } + + late final __objc_msgSend_977Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_850( + int _objc_msgSend_978( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_850( + return __objc_msgSend_978( obj, sel, ); } - late final __objc_msgSend_850Ptr = _lookup< + late final __objc_msgSend_978Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< + late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_cachedResponseForRequest_1 = _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_851( + ffi.Pointer _objc_msgSend_979( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_851( + return __objc_msgSend_979( obj, sel, request, ); } - late final __objc_msgSend_851Ptr = _lookup< + late final __objc_msgSend_979Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_storeCachedResponse_forRequest_1 = _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_852( + void _objc_msgSend_980( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer request, ) { - return __objc_msgSend_852( + return __objc_msgSend_980( obj, sel, cachedResponse, @@ -23964,36 +27360,36 @@ class SwiftLibrary { ); } - late final __objc_msgSend_852Ptr = _lookup< + late final __objc_msgSend_980Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< + late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeCachedResponseForRequest_1 = _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_853( + void _objc_msgSend_981( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_853( + return __objc_msgSend_981( obj, sel, request, ); } - late final __objc_msgSend_853Ptr = _lookup< + late final __objc_msgSend_981Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< + late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24010,13 +27406,13 @@ class SwiftLibrary { late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); late final _sel_storeCachedResponse_forDataTask_1 = _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_854( + void _objc_msgSend_982( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer dataTask, ) { - return __objc_msgSend_854( + return __objc_msgSend_982( obj, sel, cachedResponse, @@ -24024,26 +27420,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_854Ptr = _lookup< + late final __objc_msgSend_982Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< + late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCachedResponseForDataTask_completionHandler_1 = _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_855( + void _objc_msgSend_983( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_855( + return __objc_msgSend_983( obj, sel, dataTask, @@ -24051,50 +27447,50 @@ class SwiftLibrary { ); } - late final __objc_msgSend_855Ptr = _lookup< + late final __objc_msgSend_983Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< + late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_removeCachedResponseForDataTask_1 = _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_856( + void _objc_msgSend_984( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ) { - return __objc_msgSend_856( + return __objc_msgSend_984( obj, sel, dataTask, ); } - late final __objc_msgSend_856Ptr = _lookup< + late final __objc_msgSend_984Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< + late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); late final _sel_initWithRequest_delegate_startImmediately_1 = _registerName1("initWithRequest:delegate:startImmediately:"); - instancetype _objc_msgSend_857( + instancetype _objc_msgSend_985( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, bool startImmediately, ) { - return __objc_msgSend_857( + return __objc_msgSend_985( obj, sel, request, @@ -24103,7 +27499,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_857Ptr = _lookup< + late final __objc_msgSend_985Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24111,19 +27507,19 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< + late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithRequest_delegate_1 = _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_858( + instancetype _objc_msgSend_986( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_858( + return __objc_msgSend_986( obj, sel, request, @@ -24131,26 +27527,26 @@ class SwiftLibrary { ); } - late final __objc_msgSend_858Ptr = _lookup< + late final __objc_msgSend_986Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< + late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRequest_delegate_1 = _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_859( + ffi.Pointer _objc_msgSend_987( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_859( + return __objc_msgSend_987( obj, sel, request, @@ -24158,74 +27554,92 @@ class SwiftLibrary { ); } - late final __objc_msgSend_859Ptr = _lookup< + late final __objc_msgSend_987Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< + late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer _objc_msgSend_988( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_988( + obj, + sel, + ); + } + + late final __objc_msgSend_988Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_unscheduleFromRunLoop_forMode_1 = _registerName1("unscheduleFromRunLoop:forMode:"); late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); - void _objc_msgSend_860( + void _objc_msgSend_989( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer queue, ) { - return __objc_msgSend_860( + return __objc_msgSend_989( obj, sel, queue, ); } - late final __objc_msgSend_860Ptr = _lookup< + late final __objc_msgSend_989Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< + late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); - bool _objc_msgSend_861( + bool _objc_msgSend_990( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_861( + return __objc_msgSend_990( obj, sel, request, ); } - late final __objc_msgSend_861Ptr = _lookup< + late final __objc_msgSend_990Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< + late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sendSynchronousRequest_returningResponse_error_1 = _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_862( + ffi.Pointer _objc_msgSend_991( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer> response, ffi.Pointer> error, ) { - return __objc_msgSend_862( + return __objc_msgSend_991( obj, sel, request, @@ -24234,7 +27648,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_862Ptr = _lookup< + late final __objc_msgSend_991Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24242,7 +27656,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24252,14 +27666,14 @@ class SwiftLibrary { late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_863( + void _objc_msgSend_992( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer queue, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_863( + return __objc_msgSend_992( obj, sel, request, @@ -24268,7 +27682,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_863Ptr = _lookup< + late final __objc_msgSend_992Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24276,7 +27690,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< + late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24286,33 +27700,33 @@ class SwiftLibrary { late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_864( + int _objc_msgSend_993( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_864( + return __objc_msgSend_993( obj, sel, ); } - late final __objc_msgSend_864Ptr = _lookup< + late final __objc_msgSend_993Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< + late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithUser_password_persistence_1 = _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_865( + instancetype _objc_msgSend_994( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_865( + return __objc_msgSend_994( obj, sel, user, @@ -24321,7 +27735,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_865Ptr = _lookup< + late final __objc_msgSend_994Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24329,20 +27743,20 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_credentialWithUser_password_persistence_1 = _registerName1("credentialWithUser:password:persistence:"); - ffi.Pointer _objc_msgSend_866( + ffi.Pointer _objc_msgSend_995( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_866( + return __objc_msgSend_995( obj, sel, user, @@ -24351,7 +27765,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_866Ptr = _lookup< + late final __objc_msgSend_995Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24359,7 +27773,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24370,14 +27784,14 @@ class SwiftLibrary { late final _sel_hasPassword1 = _registerName1("hasPassword"); late final _sel_initWithIdentity_certificates_persistence_1 = _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_867( + instancetype _objc_msgSend_996( ffi.Pointer obj, ffi.Pointer sel, - SecIdentityRef identity, + ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_867( + return __objc_msgSend_996( obj, sel, identity, @@ -24386,28 +27800,28 @@ class SwiftLibrary { ); } - late final __objc_msgSend_867Ptr = _lookup< + late final __objc_msgSend_996Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, - SecIdentityRef, + ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< + late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - SecIdentityRef, ffi.Pointer, int)>(); + ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); late final _sel_credentialWithIdentity_certificates_persistence_1 = _registerName1("credentialWithIdentity:certificates:persistence:"); - ffi.Pointer _objc_msgSend_868( + ffi.Pointer _objc_msgSend_997( ffi.Pointer obj, ffi.Pointer sel, - SecIdentityRef identity, + ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_868( + return __objc_msgSend_997( obj, sel, identity, @@ -24416,87 +27830,88 @@ class SwiftLibrary { ); } - late final __objc_msgSend_868Ptr = _lookup< + late final __objc_msgSend_997Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - SecIdentityRef, + ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - SecIdentityRef, + ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); late final _sel_identity1 = _registerName1("identity"); - SecIdentityRef _objc_msgSend_869( + ffi.Pointer<__SecIdentity> _objc_msgSend_998( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_869( + return __objc_msgSend_998( obj, sel, ); } - late final __objc_msgSend_869Ptr = _lookup< + late final __objc_msgSend_998Ptr = _lookup< ffi.NativeFunction< - SecIdentityRef Function( + ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< - SecIdentityRef Function(ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_certificates1 = _registerName1("certificates"); late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); - instancetype _objc_msgSend_870( + instancetype _objc_msgSend_999( ffi.Pointer obj, ffi.Pointer sel, - SecTrustRef trust, + ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_870( + return __objc_msgSend_999( obj, sel, trust, ); } - late final __objc_msgSend_870Ptr = _lookup< + late final __objc_msgSend_999Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - SecTrustRef)>>('objc_msgSend'); - late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, SecTrustRef)>(); + ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecTrust>)>(); late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); - ffi.Pointer _objc_msgSend_871( + ffi.Pointer _objc_msgSend_1000( ffi.Pointer obj, ffi.Pointer sel, - SecTrustRef trust, + ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_871( + return __objc_msgSend_1000( obj, sel, trust, ); } - late final __objc_msgSend_871Ptr = _lookup< + late final __objc_msgSend_1000Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, SecTrustRef)>>('objc_msgSend'); - late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, SecTrustRef)>(); + ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); - instancetype _objc_msgSend_872( + instancetype _objc_msgSend_1001( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -24505,7 +27920,7 @@ class SwiftLibrary { ffi.Pointer realm, ffi.Pointer authenticationMethod, ) { - return __objc_msgSend_872( + return __objc_msgSend_1001( obj, sel, host, @@ -24516,17 +27931,17 @@ class SwiftLibrary { ); } - late final __objc_msgSend_872Ptr = _lookup< + late final __objc_msgSend_1001Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< + late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24548,77 +27963,78 @@ class SwiftLibrary { _registerName1("authenticationMethod"); late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); late final _sel_serverTrust1 = _registerName1("serverTrust"); - SecTrustRef _objc_msgSend_873( + ffi.Pointer<__SecTrust> _objc_msgSend_1002( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_873( + return __objc_msgSend_1002( obj, sel, ); } - late final __objc_msgSend_873Ptr = _lookup< + late final __objc_msgSend_1002Ptr = _lookup< ffi.NativeFunction< - SecTrustRef Function( + ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< - SecTrustRef Function(ffi.Pointer, ffi.Pointer)>(); + late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLCredentialStorage1 = _getClass1("NSURLCredentialStorage"); late final _sel_sharedCredentialStorage1 = _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_874( + ffi.Pointer _objc_msgSend_1003( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_874( + return __objc_msgSend_1003( obj, sel, ); } - late final __objc_msgSend_874Ptr = _lookup< + late final __objc_msgSend_1003Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_credentialsForProtectionSpace_1 = _registerName1("credentialsForProtectionSpace:"); - ffi.Pointer _objc_msgSend_875( + ffi.Pointer _objc_msgSend_1004( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_875( + return __objc_msgSend_1004( obj, sel, space, ); } - late final __objc_msgSend_875Ptr = _lookup< + late final __objc_msgSend_1004Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< + late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allCredentials1 = _registerName1("allCredentials"); late final _sel_setCredential_forProtectionSpace_1 = _registerName1("setCredential:forProtectionSpace:"); - void _objc_msgSend_876( + void _objc_msgSend_1005( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ) { - return __objc_msgSend_876( + return __objc_msgSend_1005( obj, sel, credential, @@ -24626,14 +28042,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_876Ptr = _lookup< + late final __objc_msgSend_1005Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< + late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24641,14 +28057,14 @@ class SwiftLibrary { _registerName1("removeCredential:forProtectionSpace:"); late final _sel_removeCredential_forProtectionSpace_options_1 = _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_877( + void _objc_msgSend_1006( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ffi.Pointer options, ) { - return __objc_msgSend_877( + return __objc_msgSend_1006( obj, sel, credential, @@ -24657,7 +28073,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_877Ptr = _lookup< + late final __objc_msgSend_1006Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24665,7 +28081,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< + late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24675,23 +28091,23 @@ class SwiftLibrary { late final _sel_defaultCredentialForProtectionSpace_1 = _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_878( + ffi.Pointer _objc_msgSend_1007( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_878( + return __objc_msgSend_1007( obj, sel, space, ); } - late final __objc_msgSend_878Ptr = _lookup< + late final __objc_msgSend_1007Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< + late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24700,14 +28116,14 @@ class SwiftLibrary { late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = _registerName1( "getCredentialsForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_879( + void _objc_msgSend_1008( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer protectionSpace, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_879( + return __objc_msgSend_1008( obj, sel, protectionSpace, @@ -24716,7 +28132,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_879Ptr = _lookup< + late final __objc_msgSend_1008Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24724,7 +28140,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24734,14 +28150,14 @@ class SwiftLibrary { late final _sel_setCredential_forProtectionSpace_task_1 = _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_880( + void _objc_msgSend_1009( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer protectionSpace, ffi.Pointer task, ) { - return __objc_msgSend_880( + return __objc_msgSend_1009( obj, sel, credential, @@ -24750,7 +28166,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_880Ptr = _lookup< + late final __objc_msgSend_1009Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24758,7 +28174,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< + late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24768,7 +28184,7 @@ class SwiftLibrary { late final _sel_removeCredential_forProtectionSpace_options_task_1 = _registerName1("removeCredential:forProtectionSpace:options:task:"); - void _objc_msgSend_881( + void _objc_msgSend_1010( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, @@ -24776,7 +28192,7 @@ class SwiftLibrary { ffi.Pointer options, ffi.Pointer task, ) { - return __objc_msgSend_881( + return __objc_msgSend_1010( obj, sel, credential, @@ -24786,7 +28202,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_881Ptr = _lookup< + late final __objc_msgSend_1010Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24795,7 +28211,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< + late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24807,14 +28223,14 @@ class SwiftLibrary { late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = _registerName1( "getDefaultCredentialForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_882( + void _objc_msgSend_1011( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_882( + return __objc_msgSend_1011( obj, sel, space, @@ -24823,7 +28239,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_882Ptr = _lookup< + late final __objc_msgSend_1011Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24831,7 +28247,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< + late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24844,14 +28260,14 @@ class SwiftLibrary { late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); late final _sel_initWithRequest_cachedResponse_client_1 = _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_883( + instancetype _objc_msgSend_1012( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_883( + return __objc_msgSend_1012( obj, sel, request, @@ -24860,7 +28276,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_883Ptr = _lookup< + late final __objc_msgSend_1012Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24868,7 +28284,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< + late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24879,56 +28295,56 @@ class SwiftLibrary { late final _sel_client1 = _registerName1("client"); late final _sel_request1 = _registerName1("request"); late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_884( + ffi.Pointer _objc_msgSend_1013( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_884( + return __objc_msgSend_1013( obj, sel, ); } - late final __objc_msgSend_884Ptr = _lookup< + late final __objc_msgSend_1013Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< + late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); late final _sel_canonicalRequestForRequest_1 = _registerName1("canonicalRequestForRequest:"); - ffi.Pointer _objc_msgSend_885( + ffi.Pointer _objc_msgSend_1014( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_885( + return __objc_msgSend_1014( obj, sel, request, ); } - late final __objc_msgSend_885Ptr = _lookup< + late final __objc_msgSend_1014Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< + late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_requestIsCacheEquivalent_toRequest_1 = _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_886( + bool _objc_msgSend_1015( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer a, ffi.Pointer b, ) { - return __objc_msgSend_886( + return __objc_msgSend_1015( obj, sel, a, @@ -24936,14 +28352,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_886Ptr = _lookup< + late final __objc_msgSend_1015Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< + late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24951,13 +28367,13 @@ class SwiftLibrary { late final _sel_stopLoading1 = _registerName1("stopLoading"); late final _sel_propertyForKey_inRequest_1 = _registerName1("propertyForKey:inRequest:"); - ffi.Pointer _objc_msgSend_887( + ffi.Pointer _objc_msgSend_1016( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_887( + return __objc_msgSend_1016( obj, sel, key, @@ -24965,14 +28381,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_887Ptr = _lookup< + late final __objc_msgSend_1016Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< + late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24981,67 +28397,47 @@ class SwiftLibrary { late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); late final _sel_setURL_1 = _registerName1("setURL:"); - void _objc_msgSend_888( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_888( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_888Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_889( + void _objc_msgSend_1017( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_889( + return __objc_msgSend_1017( obj, sel, value, ); } - late final __objc_msgSend_889Ptr = _lookup< + late final __objc_msgSend_1017Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< + late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); late final _sel_setNetworkServiceType_1 = _registerName1("setNetworkServiceType:"); - void _objc_msgSend_890( + void _objc_msgSend_1018( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_890( + return __objc_msgSend_1018( obj, sel, value, ); } - late final __objc_msgSend_890Ptr = _lookup< + late final __objc_msgSend_1018Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAllowsCellularAccess_1 = @@ -25053,71 +28449,98 @@ class SwiftLibrary { late final _sel_setAssumesHTTP3Capable_1 = _registerName1("setAssumesHTTP3Capable:"); late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_891( + void _objc_msgSend_1019( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_891( + return __objc_msgSend_1019( obj, sel, value, ); } - late final __objc_msgSend_891Ptr = _lookup< + late final __objc_msgSend_1019Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< + late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_setRequiresDNSSECValidation_1 = + _registerName1("setRequiresDNSSECValidation:"); late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); late final _sel_setAllHTTPHeaderFields_1 = _registerName1("setAllHTTPHeaderFields:"); late final _sel_setValue_forHTTPHeaderField_1 = _registerName1("setValue:forHTTPHeaderField:"); + void _objc_msgSend_1020( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer field, + ) { + return __objc_msgSend_1020( + obj, + sel, + value, + field, + ); + } + + late final __objc_msgSend_1020Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_addValue_forHTTPHeaderField_1 = _registerName1("addValue:forHTTPHeaderField:"); late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_892( + void _objc_msgSend_1021( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_892( + return __objc_msgSend_1021( obj, sel, value, ); } - late final __objc_msgSend_892Ptr = _lookup< + late final __objc_msgSend_1021Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_893( + void _objc_msgSend_1022( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_893( + return __objc_msgSend_1022( obj, sel, value, ); } - late final __objc_msgSend_893Ptr = _lookup< + late final __objc_msgSend_1022Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< + late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25127,14 +28550,14 @@ class SwiftLibrary { _registerName1("setHTTPShouldUsePipelining:"); late final _sel_setProperty_forKey_inRequest_1 = _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_894( + void _objc_msgSend_1023( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_894( + return __objc_msgSend_1023( obj, sel, value, @@ -25143,7 +28566,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_894Ptr = _lookup< + late final __objc_msgSend_1023Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -25151,7 +28574,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< + late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -25161,13 +28584,13 @@ class SwiftLibrary { late final _sel_removePropertyForKey_inRequest_1 = _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_895( + void _objc_msgSend_1024( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_895( + return __objc_msgSend_1024( obj, sel, key, @@ -25175,50 +28598,50 @@ class SwiftLibrary { ); } - late final __objc_msgSend_895Ptr = _lookup< + late final __objc_msgSend_1024Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< + late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_registerClass_1 = _registerName1("registerClass:"); late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); - bool _objc_msgSend_896( + bool _objc_msgSend_1025( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ) { - return __objc_msgSend_896( + return __objc_msgSend_1025( obj, sel, task, ); } - late final __objc_msgSend_896Ptr = _lookup< + late final __objc_msgSend_1025Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTask_cachedResponse_client_1 = _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_897( + instancetype _objc_msgSend_1026( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_897( + return __objc_msgSend_1026( obj, sel, task, @@ -25227,7 +28650,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_897Ptr = _lookup< + late final __objc_msgSend_1026Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25235,7 +28658,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -25244,43 +28667,43 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_898( + ffi.Pointer _objc_msgSend_1027( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_898( + return __objc_msgSend_1027( obj, sel, ); } - late final __objc_msgSend_898Ptr = _lookup< + late final __objc_msgSend_1027Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_899( + instancetype _objc_msgSend_1028( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer stream, ) { - return __objc_msgSend_899( + return __objc_msgSend_1028( obj, sel, stream, ); } - late final __objc_msgSend_899Ptr = _lookup< + late final __objc_msgSend_1028Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25294,65 +28717,65 @@ class SwiftLibrary { _registerName1("setShouldReportNamespacePrefixes:"); late final _sel_externalEntityResolvingPolicy1 = _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_900( + int _objc_msgSend_1029( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_900( + return __objc_msgSend_1029( obj, sel, ); } - late final __objc_msgSend_900Ptr = _lookup< + late final __objc_msgSend_1029Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setExternalEntityResolvingPolicy_1 = _registerName1("setExternalEntityResolvingPolicy:"); - void _objc_msgSend_901( + void _objc_msgSend_1030( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_901( + return __objc_msgSend_1030( obj, sel, value, ); } - late final __objc_msgSend_901Ptr = _lookup< + late final __objc_msgSend_1030Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_allowedExternalEntityURLs1 = _registerName1("allowedExternalEntityURLs"); late final _sel_setAllowedExternalEntityURLs_1 = _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_902( + void _objc_msgSend_1031( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_902( + return __objc_msgSend_1031( obj, sel, value, ); } - late final __objc_msgSend_902Ptr = _lookup< + late final __objc_msgSend_1031Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25370,14 +28793,14 @@ class SwiftLibrary { late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); late final _sel_initWithURL_options_error_1 = _registerName1("initWithURL:options:error:"); - instancetype _objc_msgSend_903( + instancetype _objc_msgSend_1032( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_903( + return __objc_msgSend_1032( obj, sel, url, @@ -25386,7 +28809,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_903Ptr = _lookup< + late final __objc_msgSend_1032Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25394,7 +28817,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -25424,14 +28847,14 @@ class SwiftLibrary { _registerName1("matchesContentsOfURL:"); late final _sel_readFromURL_options_error_1 = _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_904( + bool _objc_msgSend_1033( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_904( + return __objc_msgSend_1033( obj, sel, url, @@ -25440,7 +28863,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_904Ptr = _lookup< + late final __objc_msgSend_1033Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -25448,7 +28871,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -25458,7 +28881,7 @@ class SwiftLibrary { late final _sel_writeToURL_options_originalContentsURL_error_1 = _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_905( + bool _objc_msgSend_1034( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -25466,7 +28889,7 @@ class SwiftLibrary { ffi.Pointer originalContentsURL, ffi.Pointer> outError, ) { - return __objc_msgSend_905( + return __objc_msgSend_1034( obj, sel, url, @@ -25476,7 +28899,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_905Ptr = _lookup< + late final __objc_msgSend_1034Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -25485,7 +28908,7 @@ class SwiftLibrary { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -25497,35 +28920,35 @@ class SwiftLibrary { late final _sel_serializedRepresentation1 = _registerName1("serializedRepresentation"); late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); - ffi.Pointer _objc_msgSend_906( + ffi.Pointer _objc_msgSend_1035( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_906( + return __objc_msgSend_1035( obj, sel, child, ); } - late final __objc_msgSend_906Ptr = _lookup< + late final __objc_msgSend_1035Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< + late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addRegularFileWithContents_preferredFilename_1 = _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_907( + ffi.Pointer _objc_msgSend_1036( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer fileName, ) { - return __objc_msgSend_907( + return __objc_msgSend_1036( obj, sel, data, @@ -25533,14 +28956,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_907Ptr = _lookup< + late final __objc_msgSend_1036Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< + late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25548,28 +28971,48 @@ class SwiftLibrary { ffi.Pointer)>(); late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_908( + void _objc_msgSend_1037( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_908( + return __objc_msgSend_1037( obj, sel, child, ); } - late final __objc_msgSend_908Ptr = _lookup< + late final __objc_msgSend_1037Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< + late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileWrappers1 = _registerName1("fileWrappers"); late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); + ffi.Pointer _objc_msgSend_1038( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + ) { + return __objc_msgSend_1038( + obj, + sel, + child, + ); + } + + late final __objc_msgSend_1038Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_regularFileContents1 = _registerName1("regularFileContents"); late final _sel_symbolicLinkDestinationURL1 = _registerName1("symbolicLinkDestinationURL"); @@ -25580,14 +29023,14 @@ class SwiftLibrary { late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); late final _sel_writeToFile_atomically_updateFilenames_1 = _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_909( + bool _objc_msgSend_1039( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool atomicFlag, bool updateFilenamesFlag, ) { - return __objc_msgSend_909( + return __objc_msgSend_1039( obj, sel, path, @@ -25596,11 +29039,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_909Ptr = _lookup< + late final __objc_msgSend_1039Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< + late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, bool)>(); @@ -25611,21 +29054,21 @@ class SwiftLibrary { _registerName1("symbolicLinkDestination"); late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_910( + ffi.Pointer _objc_msgSend_1040( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_910( + return __objc_msgSend_1040( obj, sel, ); } - late final __objc_msgSend_910Ptr = _lookup< + late final __objc_msgSend_1040Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< + late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -25633,21 +29076,21 @@ class SwiftLibrary { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_911( + ffi.Pointer _objc_msgSend_1041( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_911( + return __objc_msgSend_1041( obj, sel, ); } - late final __objc_msgSend_911Ptr = _lookup< + late final __objc_msgSend_1041Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< + late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -25655,23 +29098,23 @@ class SwiftLibrary { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_912( + ffi.Pointer _objc_msgSend_1042( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_912( + return __objc_msgSend_1042( obj, sel, identifier, ); } - late final __objc_msgSend_912Ptr = _lookup< + late final __objc_msgSend_1042Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< + late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25707,42 +29150,42 @@ class SwiftLibrary { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_913( + int _objc_msgSend_1043( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_913( + return __objc_msgSend_1043( obj, sel, ); } - late final __objc_msgSend_913Ptr = _lookup< + late final __objc_msgSend_1043Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< + late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_914( + void _objc_msgSend_1044( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_914( + return __objc_msgSend_1044( obj, sel, value, ); } - late final __objc_msgSend_914Ptr = _lookup< + late final __objc_msgSend_1044Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -25751,42 +29194,42 @@ class SwiftLibrary { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_915( + int _objc_msgSend_1045( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_915( + return __objc_msgSend_1045( obj, sel, ); } - late final __objc_msgSend_915Ptr = _lookup< + late final __objc_msgSend_1045Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_916( + void _objc_msgSend_1046( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_916( + return __objc_msgSend_1046( obj, sel, value, ); } - late final __objc_msgSend_916Ptr = _lookup< + late final __objc_msgSend_1046Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< + late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -25810,134 +29253,228 @@ class SwiftLibrary { late final _sel_setHTTPMaximumConnectionsPerHost_1 = _registerName1("setHTTPMaximumConnectionsPerHost:"); late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); + ffi.Pointer _objc_msgSend_1047( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1047( + obj, + sel, + ); + } + + late final __objc_msgSend_1047Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_917( + void _objc_msgSend_1048( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_917( + return __objc_msgSend_1048( obj, sel, value, ); } - late final __objc_msgSend_917Ptr = _lookup< + late final __objc_msgSend_1048Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCredentialStorage1 = _registerName1("URLCredentialStorage"); + ffi.Pointer _objc_msgSend_1049( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1049( + obj, + sel, + ); + } + + late final __objc_msgSend_1049Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_918( + void _objc_msgSend_1050( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_918( + return __objc_msgSend_1050( obj, sel, value, ); } - late final __objc_msgSend_918Ptr = _lookup< + late final __objc_msgSend_1050Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< + late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCache1 = _registerName1("URLCache"); + ffi.Pointer _objc_msgSend_1051( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1051( + obj, + sel, + ); + } + + late final __objc_msgSend_1051Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCache_1 = _registerName1("setURLCache:"); + void _objc_msgSend_1052( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1052( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1052Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_shouldUseExtendedBackgroundIdleMode1 = _registerName1("shouldUseExtendedBackgroundIdleMode"); late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = _registerName1("setShouldUseExtendedBackgroundIdleMode:"); late final _sel_protocolClasses1 = _registerName1("protocolClasses"); late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); + void _objc_msgSend_1053( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1053( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1053Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1053 = __objc_msgSend_1053Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_919( + int _objc_msgSend_1054( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_919( + return __objc_msgSend_1054( obj, sel, ); } - late final __objc_msgSend_919Ptr = _lookup< + late final __objc_msgSend_1054Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< + late final __objc_msgSend_1054 = __objc_msgSend_1054Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_920( + void _objc_msgSend_1055( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_920( + return __objc_msgSend_1055( obj, sel, value, ); } - late final __objc_msgSend_920Ptr = _lookup< + late final __objc_msgSend_1055Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< + late final __objc_msgSend_1055 = __objc_msgSend_1055Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_backgroundSessionConfiguration_1 = _registerName1("backgroundSessionConfiguration:"); late final _sel_sessionWithConfiguration_1 = _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_921( + ffi.Pointer _objc_msgSend_1056( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_921( + return __objc_msgSend_1056( obj, sel, configuration, ); } - late final __objc_msgSend_921Ptr = _lookup< + late final __objc_msgSend_1056Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< + late final __objc_msgSend_1056 = __objc_msgSend_1056Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); - ffi.Pointer _objc_msgSend_922( + ffi.Pointer _objc_msgSend_1057( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_922( + return __objc_msgSend_1057( obj, sel, configuration, @@ -25946,7 +29483,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_922Ptr = _lookup< + late final __objc_msgSend_1057Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25954,7 +29491,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< + late final __objc_msgSend_1057 = __objc_msgSend_1057Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25976,102 +29513,124 @@ class SwiftLibrary { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_923( + void _objc_msgSend_1058( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_923( + return __objc_msgSend_1058( obj, sel, completionHandler, ); } - late final __objc_msgSend_923Ptr = _lookup< + late final __objc_msgSend_1058Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< + late final __objc_msgSend_1058 = __objc_msgSend_1058Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_924( + void _objc_msgSend_1059( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_924( + return __objc_msgSend_1059( obj, sel, completionHandler, ); } - late final __objc_msgSend_924Ptr = _lookup< + late final __objc_msgSend_1059Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< + late final __objc_msgSend_1059 = __objc_msgSend_1059Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_925( + ffi.Pointer _objc_msgSend_1060( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_925( + return __objc_msgSend_1060( obj, sel, request, ); } - late final __objc_msgSend_925Ptr = _lookup< + late final __objc_msgSend_1060Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< + late final __objc_msgSend_1060 = __objc_msgSend_1060Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_926( + ffi.Pointer _objc_msgSend_1061( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_926( + return __objc_msgSend_1061( obj, sel, url, ); } - late final __objc_msgSend_926Ptr = _lookup< + late final __objc_msgSend_1061Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< + late final __objc_msgSend_1061 = __objc_msgSend_1061Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLSessionUploadTask1 = _getClass1("NSURLSessionUploadTask"); + late final _sel_cancelByProducingResumeData_1 = + _registerName1("cancelByProducingResumeData:"); + void _objc_msgSend_1062( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_1062( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_1062Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_927( + ffi.Pointer _objc_msgSend_1063( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_927( + return __objc_msgSend_1063( obj, sel, request, @@ -26079,14 +29638,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_927Ptr = _lookup< + late final __objc_msgSend_1063Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< + late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26095,13 +29654,13 @@ class SwiftLibrary { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_928( + ffi.Pointer _objc_msgSend_1064( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_928( + return __objc_msgSend_1064( obj, sel, request, @@ -26109,129 +29668,129 @@ class SwiftLibrary { ); } - late final __objc_msgSend_928Ptr = _lookup< + late final __objc_msgSend_1064Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< + late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_uploadTaskWithStreamedRequest_1 = - _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_929( + late final _sel_uploadTaskWithResumeData_1 = + _registerName1("uploadTaskWithResumeData:"); + ffi.Pointer _objc_msgSend_1065( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer resumeData, ) { - return __objc_msgSend_929( + return __objc_msgSend_1065( obj, sel, - request, + resumeData, ); } - late final __objc_msgSend_929Ptr = _lookup< + late final __objc_msgSend_1065Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< + late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURLSessionDownloadTask1 = - _getClass1("NSURLSessionDownloadTask"); - late final _sel_cancelByProducingResumeData_1 = - _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_930( + late final _sel_uploadTaskWithStreamedRequest_1 = + _registerName1("uploadTaskWithStreamedRequest:"); + ffi.Pointer _objc_msgSend_1066( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer request, ) { - return __objc_msgSend_930( + return __objc_msgSend_1066( obj, sel, - completionHandler, + request, ); } - late final __objc_msgSend_930Ptr = _lookup< + late final __objc_msgSend_1066Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSURLSessionDownloadTask1 = + _getClass1("NSURLSessionDownloadTask"); late final _sel_downloadTaskWithRequest_1 = _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_931( + ffi.Pointer _objc_msgSend_1067( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_931( + return __objc_msgSend_1067( obj, sel, request, ); } - late final __objc_msgSend_931Ptr = _lookup< + late final __objc_msgSend_1067Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< + late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_932( + ffi.Pointer _objc_msgSend_1068( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_932( + return __objc_msgSend_1068( obj, sel, url, ); } - late final __objc_msgSend_932Ptr = _lookup< + late final __objc_msgSend_1068Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< + late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_933( + ffi.Pointer _objc_msgSend_1069( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_933( + return __objc_msgSend_1069( obj, sel, resumeData, ); } - late final __objc_msgSend_933Ptr = _lookup< + late final __objc_msgSend_1069Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< + late final __objc_msgSend_1069 = __objc_msgSend_1069Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26240,7 +29799,7 @@ class SwiftLibrary { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_934( + void _objc_msgSend_1070( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -26248,7 +29807,7 @@ class SwiftLibrary { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_934( + return __objc_msgSend_1070( obj, sel, minBytes, @@ -26258,29 +29817,29 @@ class SwiftLibrary { ); } - late final __objc_msgSend_934Ptr = _lookup< + late final __objc_msgSend_1070Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - NSUInteger, - NSTimeInterval, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< + late final __objc_msgSend_1070 = __objc_msgSend_1070Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int, double, ffi.Pointer<_ObjCBlock>)>(); late final _sel_writeData_timeout_completionHandler_1 = _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_935( + void _objc_msgSend_1071( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_935( + return __objc_msgSend_1071( obj, sel, data, @@ -26289,15 +29848,15 @@ class SwiftLibrary { ); } - late final __objc_msgSend_935Ptr = _lookup< + late final __objc_msgSend_1071Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSTimeInterval, + ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< + late final __objc_msgSend_1071 = __objc_msgSend_1071Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -26310,13 +29869,13 @@ class SwiftLibrary { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_936( + ffi.Pointer _objc_msgSend_1072( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_936( + return __objc_msgSend_1072( obj, sel, hostname, @@ -26324,21 +29883,21 @@ class SwiftLibrary { ); } - late final __objc_msgSend_936Ptr = _lookup< + late final __objc_msgSend_1072Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_1072 = __objc_msgSend_1072Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSNetService1 = _getClass1("NSNetService"); late final _sel_initWithDomain_type_name_port_1 = _registerName1("initWithDomain:type:name:port:"); - instancetype _objc_msgSend_937( + instancetype _objc_msgSend_1073( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer domain, @@ -26346,7 +29905,7 @@ class SwiftLibrary { ffi.Pointer name, int port, ) { - return __objc_msgSend_937( + return __objc_msgSend_1073( obj, sel, domain, @@ -26356,7 +29915,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_937Ptr = _lookup< + late final __objc_msgSend_1073Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26365,7 +29924,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< + late final __objc_msgSend_1073 = __objc_msgSend_1073Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26376,87 +29935,118 @@ class SwiftLibrary { late final _sel_initWithDomain_type_name_1 = _registerName1("initWithDomain:type:name:"); + instancetype _objc_msgSend_1074( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer domain, + ffi.Pointer type, + ffi.Pointer name, + ) { + return __objc_msgSend_1074( + obj, + sel, + domain, + type, + name, + ); + } + + late final __objc_msgSend_1074Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1074 = __objc_msgSend_1074Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); late final _sel_setIncludesPeerToPeer_1 = _registerName1("setIncludesPeerToPeer:"); late final _sel_type1 = _registerName1("type"); - late final _sel_publish1 = _registerName1("publish"); late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_938( + void _objc_msgSend_1075( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_938( + return __objc_msgSend_1075( obj, sel, options, ); } - late final __objc_msgSend_938Ptr = _lookup< + late final __objc_msgSend_1075Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< + late final __objc_msgSend_1075 = __objc_msgSend_1075Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_resolve1 = _registerName1("resolve"); late final _sel_stop1 = _registerName1("stop"); late final _sel_dictionaryFromTXTRecordData_1 = _registerName1("dictionaryFromTXTRecordData:"); - ffi.Pointer _objc_msgSend_939( + ffi.Pointer _objc_msgSend_1076( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtData, ) { - return __objc_msgSend_939( + return __objc_msgSend_1076( obj, sel, txtData, ); } - late final __objc_msgSend_939Ptr = _lookup< + late final __objc_msgSend_1076Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< + late final __objc_msgSend_1076 = __objc_msgSend_1076Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataFromTXTRecordDictionary_1 = _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_940( + ffi.Pointer _objc_msgSend_1077( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtDictionary, ) { - return __objc_msgSend_940( + return __objc_msgSend_1077( obj, sel, txtDictionary, ); } - late final __objc_msgSend_940Ptr = _lookup< + late final __objc_msgSend_1077Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + late final __objc_msgSend_1077 = __objc_msgSend_1077Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); late final _sel_getInputStream_outputStream_1 = _registerName1("getInputStream:outputStream:"); - bool _objc_msgSend_941( + bool _objc_msgSend_1078( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_941( + return __objc_msgSend_1078( obj, sel, inputStream, @@ -26464,14 +30054,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_941Ptr = _lookup< + late final __objc_msgSend_1078Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< + late final __objc_msgSend_1078 = __objc_msgSend_1078Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -26479,28 +30069,48 @@ class SwiftLibrary { ffi.Pointer>)>(); late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); + bool _objc_msgSend_1079( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer recordData, + ) { + return __objc_msgSend_1079( + obj, + sel, + recordData, + ); + } + + late final __objc_msgSend_1079Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1079 = __objc_msgSend_1079Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); late final _sel_startMonitoring1 = _registerName1("startMonitoring"); late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_942( + ffi.Pointer _objc_msgSend_1080( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_942( + return __objc_msgSend_1080( obj, sel, service, ); } - late final __objc_msgSend_942Ptr = _lookup< + late final __objc_msgSend_1080Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< + late final __objc_msgSend_1080 = __objc_msgSend_1080Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26508,32 +30118,32 @@ class SwiftLibrary { _getClass1("NSURLSessionWebSocketTask"); late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_943( + int _objc_msgSend_1081( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_943( + return __objc_msgSend_1081( obj, sel, ); } - late final __objc_msgSend_943Ptr = _lookup< + late final __objc_msgSend_1081Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< + late final __objc_msgSend_1081 = __objc_msgSend_1081Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_944( + void _objc_msgSend_1082( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_944( + return __objc_msgSend_1082( obj, sel, message, @@ -26541,70 +30151,70 @@ class SwiftLibrary { ); } - late final __objc_msgSend_944Ptr = _lookup< + late final __objc_msgSend_1082Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< + late final __objc_msgSend_1082 = __objc_msgSend_1082Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_945( + void _objc_msgSend_1083( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_945( + return __objc_msgSend_1083( obj, sel, completionHandler, ); } - late final __objc_msgSend_945Ptr = _lookup< + late final __objc_msgSend_1083Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< + late final __objc_msgSend_1083 = __objc_msgSend_1083Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_946( + void _objc_msgSend_1084( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_946( + return __objc_msgSend_1084( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_946Ptr = _lookup< + late final __objc_msgSend_1084Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< + late final __objc_msgSend_1084 = __objc_msgSend_1084Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_947( + void _objc_msgSend_1085( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_947( + return __objc_msgSend_1085( obj, sel, closeCode, @@ -26612,11 +30222,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_947Ptr = _lookup< + late final __objc_msgSend_1085Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< + late final __objc_msgSend_1085 = __objc_msgSend_1085Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -26624,55 +30234,55 @@ class SwiftLibrary { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_948( + int _objc_msgSend_1086( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_948( + return __objc_msgSend_1086( obj, sel, ); } - late final __objc_msgSend_948Ptr = _lookup< + late final __objc_msgSend_1086Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< + late final __objc_msgSend_1086 = __objc_msgSend_1086Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_949( + ffi.Pointer _objc_msgSend_1087( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_949( + return __objc_msgSend_1087( obj, sel, url, ); } - late final __objc_msgSend_949Ptr = _lookup< + late final __objc_msgSend_1087Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< + late final __objc_msgSend_1087 = __objc_msgSend_1087Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_950( + ffi.Pointer _objc_msgSend_1088( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_950( + return __objc_msgSend_1088( obj, sel, url, @@ -26680,14 +30290,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_950Ptr = _lookup< + late final __objc_msgSend_1088Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< + late final __objc_msgSend_1088 = __objc_msgSend_1088Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26696,35 +30306,35 @@ class SwiftLibrary { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_951( + ffi.Pointer _objc_msgSend_1089( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_951( + return __objc_msgSend_1089( obj, sel, request, ); } - late final __objc_msgSend_951Ptr = _lookup< + late final __objc_msgSend_1089Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< + late final __objc_msgSend_1089 = __objc_msgSend_1089Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_952( + ffi.Pointer _objc_msgSend_1090( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_952( + return __objc_msgSend_1090( obj, sel, request, @@ -26732,14 +30342,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_952Ptr = _lookup< + late final __objc_msgSend_1090Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< + late final __objc_msgSend_1090 = __objc_msgSend_1090Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26748,13 +30358,13 @@ class SwiftLibrary { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_953( + ffi.Pointer _objc_msgSend_1091( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_953( + return __objc_msgSend_1091( obj, sel, url, @@ -26762,14 +30372,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_953Ptr = _lookup< + late final __objc_msgSend_1091Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< + late final __objc_msgSend_1091 = __objc_msgSend_1091Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26778,14 +30388,14 @@ class SwiftLibrary { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_954( + ffi.Pointer _objc_msgSend_1092( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_954( + return __objc_msgSend_1092( obj, sel, request, @@ -26794,7 +30404,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_954Ptr = _lookup< + late final __objc_msgSend_1092Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26802,7 +30412,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< + late final __objc_msgSend_1092 = __objc_msgSend_1092Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26812,14 +30422,14 @@ class SwiftLibrary { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_955( + ffi.Pointer _objc_msgSend_1093( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_955( + return __objc_msgSend_1093( obj, sel, request, @@ -26828,7 +30438,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_955Ptr = _lookup< + late final __objc_msgSend_1093Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26836,7 +30446,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + late final __objc_msgSend_1093 = __objc_msgSend_1093Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26844,15 +30454,45 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithResumeData_completionHandler_1 = + _registerName1("uploadTaskWithResumeData:completionHandler:"); + ffi.Pointer _objc_msgSend_1094( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer resumeData, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_1094( + obj, + sel, + resumeData, + completionHandler, + ); + } + + late final __objc_msgSend_1094Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1094 = __objc_msgSend_1094Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_downloadTaskWithRequest_completionHandler_1 = _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_956( + ffi.Pointer _objc_msgSend_1095( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_956( + return __objc_msgSend_1095( obj, sel, request, @@ -26860,14 +30500,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_956Ptr = _lookup< + late final __objc_msgSend_1095Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< + late final __objc_msgSend_1095 = __objc_msgSend_1095Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26876,13 +30516,13 @@ class SwiftLibrary { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_957( + ffi.Pointer _objc_msgSend_1096( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_957( + return __objc_msgSend_1096( obj, sel, url, @@ -26890,14 +30530,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_957Ptr = _lookup< + late final __objc_msgSend_1096Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< + late final __objc_msgSend_1096 = __objc_msgSend_1096Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26906,13 +30546,13 @@ class SwiftLibrary { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_958( + ffi.Pointer _objc_msgSend_1097( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_958( + return __objc_msgSend_1097( obj, sel, resumeData, @@ -26920,14 +30560,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_958Ptr = _lookup< + late final __objc_msgSend_1097Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< + late final __objc_msgSend_1097 = __objc_msgSend_1097Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26935,33 +30575,51 @@ class SwiftLibrary { ffi.Pointer<_ObjCBlock>)>(); late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); - ffi.Pointer _objc_msgSend_959( + ffi.Pointer _objc_msgSend_1098( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_959( + return __objc_msgSend_1098( obj, sel, ); } - late final __objc_msgSend_959Ptr = _lookup< + late final __objc_msgSend_1098Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< + late final __objc_msgSend_1098 = __objc_msgSend_1098Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_1099( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1099( + obj, + sel, + ); + } + + late final __objc_msgSend_1099Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1099 = __objc_msgSend_1099Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_protocolCheckerWithTarget_protocol_1 = _registerName1("protocolCheckerWithTarget:protocol:"); - instancetype _objc_msgSend_960( + instancetype _objc_msgSend_1100( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aProtocol, ) { - return __objc_msgSend_960( + return __objc_msgSend_1100( obj, sel, anObject, @@ -26969,14 +30627,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_960Ptr = _lookup< + late final __objc_msgSend_1100Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< + late final __objc_msgSend_1100 = __objc_msgSend_1100Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27001,68 +30659,68 @@ class SwiftLibrary { late final _sel_isRunning1 = _registerName1("isRunning"); late final _sel_terminationStatus1 = _registerName1("terminationStatus"); late final _sel_terminationReason1 = _registerName1("terminationReason"); - int _objc_msgSend_961( + int _objc_msgSend_1101( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_961( + return __objc_msgSend_1101( obj, sel, ); } - late final __objc_msgSend_961Ptr = _lookup< + late final __objc_msgSend_1101Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< + late final __objc_msgSend_1101 = __objc_msgSend_1101Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_terminationHandler1 = _registerName1("terminationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_962( + ffi.Pointer<_ObjCBlock> _objc_msgSend_1102( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_962( + return __objc_msgSend_1102( obj, sel, ); } - late final __objc_msgSend_962Ptr = _lookup< + late final __objc_msgSend_1102Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< + late final __objc_msgSend_1102 = __objc_msgSend_1102Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setTerminationHandler_1 = _registerName1("setTerminationHandler:"); - void _objc_msgSend_963( + void _objc_msgSend_1103( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_963( + return __objc_msgSend_1103( obj, sel, value, ); } - late final __objc_msgSend_963Ptr = _lookup< + late final __objc_msgSend_1103Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< + late final __objc_msgSend_1103 = __objc_msgSend_1103Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = _registerName1( "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); - ffi.Pointer _objc_msgSend_964( + ffi.Pointer _objc_msgSend_1104( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -27070,7 +30728,7 @@ class SwiftLibrary { ffi.Pointer> error, ffi.Pointer<_ObjCBlock> terminationHandler, ) { - return __objc_msgSend_964( + return __objc_msgSend_1104( obj, sel, url, @@ -27080,7 +30738,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_964Ptr = _lookup< + late final __objc_msgSend_1104Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27089,7 +30747,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer>, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< + late final __objc_msgSend_1104 = __objc_msgSend_1104Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27106,13 +30764,13 @@ class SwiftLibrary { late final _sel_launch1 = _registerName1("launch"); late final _sel_launchedTaskWithLaunchPath_arguments_1 = _registerName1("launchedTaskWithLaunchPath:arguments:"); - ffi.Pointer _objc_msgSend_965( + ffi.Pointer _objc_msgSend_1105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer arguments, ) { - return __objc_msgSend_965( + return __objc_msgSend_1105( obj, sel, path, @@ -27120,14 +30778,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_965Ptr = _lookup< + late final __objc_msgSend_1105Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< + late final __objc_msgSend_1105 = __objc_msgSend_1105Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27137,35 +30795,35 @@ class SwiftLibrary { late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); late final _sel_initWithKind_1 = _registerName1("initWithKind:"); - instancetype _objc_msgSend_966( + instancetype _objc_msgSend_1106( ffi.Pointer obj, ffi.Pointer sel, int kind, ) { - return __objc_msgSend_966( + return __objc_msgSend_1106( obj, sel, kind, ); } - late final __objc_msgSend_966Ptr = _lookup< + late final __objc_msgSend_1106Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< + late final __objc_msgSend_1106 = __objc_msgSend_1106Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithKind_options_1 = _registerName1("initWithKind:options:"); - instancetype _objc_msgSend_967( + instancetype _objc_msgSend_1107( ffi.Pointer obj, ffi.Pointer sel, int kind, int options, ) { - return __objc_msgSend_967( + return __objc_msgSend_1107( obj, sel, kind, @@ -27173,52 +30831,80 @@ class SwiftLibrary { ); } - late final __objc_msgSend_967Ptr = _lookup< + late final __objc_msgSend_1107Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< + late final __objc_msgSend_1107 = __objc_msgSend_1107Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_document1 = _registerName1("document"); late final _sel_documentWithRootElement_1 = _registerName1("documentWithRootElement:"); - ffi.Pointer _objc_msgSend_968( + ffi.Pointer _objc_msgSend_1108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer element, ) { - return __objc_msgSend_968( + return __objc_msgSend_1108( obj, sel, element, ); } - late final __objc_msgSend_968Ptr = _lookup< + late final __objc_msgSend_1108Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< + late final __objc_msgSend_1108 = __objc_msgSend_1108Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_elementWithName_1 = _registerName1("elementWithName:"); late final _sel_elementWithName_URI_1 = _registerName1("elementWithName:URI:"); + ffi.Pointer _objc_msgSend_1109( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer URI, + ) { + return __objc_msgSend_1109( + obj, + sel, + name, + URI, + ); + } + + late final __objc_msgSend_1109Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1109 = __objc_msgSend_1109Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_elementWithName_stringValue_1 = _registerName1("elementWithName:stringValue:"); late final _sel_elementWithName_children_attributes_1 = _registerName1("elementWithName:children:attributes:"); - ffi.Pointer _objc_msgSend_969( + ffi.Pointer _objc_msgSend_1110( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer children, ffi.Pointer attributes, ) { - return __objc_msgSend_969( + return __objc_msgSend_1110( obj, sel, name, @@ -27227,7 +30913,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_969Ptr = _lookup< + late final __objc_msgSend_1110Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27235,7 +30921,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< + late final __objc_msgSend_1110 = __objc_msgSend_1110Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27257,22 +30943,21 @@ class SwiftLibrary { _registerName1("textWithStringValue:"); late final _sel_DTDNodeWithXMLString_1 = _registerName1("DTDNodeWithXMLString:"); - late final _sel_kind1 = _registerName1("kind"); - int _objc_msgSend_970( + int _objc_msgSend_1111( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_970( + return __objc_msgSend_1111( obj, sel, ); } - late final __objc_msgSend_970Ptr = _lookup< + late final __objc_msgSend_1111Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< + late final __objc_msgSend_1111 = __objc_msgSend_1111Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_objectValue1 = _registerName1("objectValue"); @@ -27280,13 +30965,13 @@ class SwiftLibrary { late final _sel_setStringValue_1 = _registerName1("setStringValue:"); late final _sel_setStringValue_resolvingEntities_1 = _registerName1("setStringValue:resolvingEntities:"); - void _objc_msgSend_971( + void _objc_msgSend_1112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, bool resolve, ) { - return __objc_msgSend_971( + return __objc_msgSend_1112( obj, sel, string, @@ -27294,11 +30979,11 @@ class SwiftLibrary { ); } - late final __objc_msgSend_971Ptr = _lookup< + late final __objc_msgSend_1112Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< + late final __objc_msgSend_1112 = __objc_msgSend_1112Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -27307,14 +30992,14 @@ class SwiftLibrary { late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); late final _sel_initWithXMLString_options_error_1 = _registerName1("initWithXMLString:options:error:"); - instancetype _objc_msgSend_972( + instancetype _objc_msgSend_1113( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_972( + return __objc_msgSend_1113( obj, sel, string, @@ -27323,7 +31008,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_972Ptr = _lookup< + late final __objc_msgSend_1113Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27331,7 +31016,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< + late final __objc_msgSend_1113 = __objc_msgSend_1113Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27339,14 +31024,14 @@ class SwiftLibrary { int, ffi.Pointer>)>(); - instancetype _objc_msgSend_973( + instancetype _objc_msgSend_1114( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_973( + return __objc_msgSend_1114( obj, sel, url, @@ -27355,7 +31040,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_973Ptr = _lookup< + late final __objc_msgSend_1114Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27363,7 +31048,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< + late final __objc_msgSend_1114 = __objc_msgSend_1114Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27373,14 +31058,14 @@ class SwiftLibrary { late final _sel_initWithData_options_error_1 = _registerName1("initWithData:options:error:"); - instancetype _objc_msgSend_974( + instancetype _objc_msgSend_1115( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_974( + return __objc_msgSend_1115( obj, sel, data, @@ -27389,7 +31074,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_974Ptr = _lookup< + late final __objc_msgSend_1115Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27397,7 +31082,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< + late final __objc_msgSend_1115 = __objc_msgSend_1115Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27407,6 +31092,26 @@ class SwiftLibrary { late final _sel_initWithRootElement_1 = _registerName1("initWithRootElement:"); + instancetype _objc_msgSend_1116( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer element, + ) { + return __objc_msgSend_1116( + obj, + sel, + element, + ); + } + + late final __objc_msgSend_1116Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1116 = __objc_msgSend_1116Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_replacementClassForClass_1 = _registerName1("replacementClassForClass:"); late final _sel_characterEncoding1 = _registerName1("characterEncoding"); @@ -27415,42 +31120,42 @@ class SwiftLibrary { late final _sel_isStandalone1 = _registerName1("isStandalone"); late final _sel_setStandalone_1 = _registerName1("setStandalone:"); late final _sel_documentContentKind1 = _registerName1("documentContentKind"); - int _objc_msgSend_975( + int _objc_msgSend_1117( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_975( + return __objc_msgSend_1117( obj, sel, ); } - late final __objc_msgSend_975Ptr = _lookup< + late final __objc_msgSend_1117Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< + late final __objc_msgSend_1117 = __objc_msgSend_1117Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDocumentContentKind_1 = _registerName1("setDocumentContentKind:"); - void _objc_msgSend_976( + void _objc_msgSend_1118( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_976( + return __objc_msgSend_1118( obj, sel, value, ); } - late final __objc_msgSend_976Ptr = _lookup< + late final __objc_msgSend_1118Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< + late final __objc_msgSend_1118 = __objc_msgSend_1118Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); @@ -27459,13 +31164,13 @@ class SwiftLibrary { late final _sel_setSystemID_1 = _registerName1("setSystemID:"); late final _sel_insertChild_atIndex_1 = _registerName1("insertChild:atIndex:"); - void _objc_msgSend_977( + void _objc_msgSend_1119( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int index, ) { - return __objc_msgSend_977( + return __objc_msgSend_1119( obj, sel, child, @@ -27473,23 +31178,23 @@ class SwiftLibrary { ); } - late final __objc_msgSend_977Ptr = _lookup< + late final __objc_msgSend_1119Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1119 = __objc_msgSend_1119Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_insertChildren_atIndex_1 = _registerName1("insertChildren:atIndex:"); - void _objc_msgSend_978( + void _objc_msgSend_1120( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer children, int index, ) { - return __objc_msgSend_978( + return __objc_msgSend_1120( obj, sel, children, @@ -27497,46 +31202,46 @@ class SwiftLibrary { ); } - late final __objc_msgSend_978Ptr = _lookup< + late final __objc_msgSend_1120Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1120 = __objc_msgSend_1120Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); late final _sel_setChildren_1 = _registerName1("setChildren:"); late final _sel_addChild_1 = _registerName1("addChild:"); - void _objc_msgSend_979( + void _objc_msgSend_1121( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_979( + return __objc_msgSend_1121( obj, sel, child, ); } - late final __objc_msgSend_979Ptr = _lookup< + late final __objc_msgSend_1121Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< + late final __objc_msgSend_1121 = __objc_msgSend_1121Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceChildAtIndex_withNode_1 = _registerName1("replaceChildAtIndex:withNode:"); - void _objc_msgSend_980( + void _objc_msgSend_1122( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer node, ) { - return __objc_msgSend_980( + return __objc_msgSend_1122( obj, sel, index, @@ -27544,52 +31249,52 @@ class SwiftLibrary { ); } - late final __objc_msgSend_980Ptr = _lookup< + late final __objc_msgSend_1122Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1122 = __objc_msgSend_1122Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); late final _sel_DTDKind1 = _registerName1("DTDKind"); - int _objc_msgSend_981( + int _objc_msgSend_1123( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_981( + return __objc_msgSend_1123( obj, sel, ); } - late final __objc_msgSend_981Ptr = _lookup< + late final __objc_msgSend_1123Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< + late final __objc_msgSend_1123 = __objc_msgSend_1123Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); - void _objc_msgSend_982( + void _objc_msgSend_1124( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_982( + return __objc_msgSend_1124( obj, sel, value, ); } - late final __objc_msgSend_982Ptr = _lookup< + late final __objc_msgSend_1124Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< + late final __objc_msgSend_1124 = __objc_msgSend_1124Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isExternal1 = _registerName1("isExternal"); @@ -27599,45 +31304,45 @@ class SwiftLibrary { late final _sel_prefixForName_1 = _registerName1("prefixForName:"); late final _sel_predefinedNamespaceForPrefix_1 = _registerName1("predefinedNamespaceForPrefix:"); - ffi.Pointer _objc_msgSend_983( + ffi.Pointer _objc_msgSend_1125( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_983( + return __objc_msgSend_1125( obj, sel, name, ); } - late final __objc_msgSend_983Ptr = _lookup< + late final __objc_msgSend_1125Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< + late final __objc_msgSend_1125 = __objc_msgSend_1125Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_entityDeclarationForName_1 = _registerName1("entityDeclarationForName:"); - ffi.Pointer _objc_msgSend_984( + ffi.Pointer _objc_msgSend_1126( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_984( + return __objc_msgSend_1126( obj, sel, name, ); } - late final __objc_msgSend_984Ptr = _lookup< + late final __objc_msgSend_1126Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< + late final __objc_msgSend_1126 = __objc_msgSend_1126Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27647,13 +31352,13 @@ class SwiftLibrary { _registerName1("elementDeclarationForName:"); late final _sel_attributeDeclarationForName_elementName_1 = _registerName1("attributeDeclarationForName:elementName:"); - ffi.Pointer _objc_msgSend_985( + ffi.Pointer _objc_msgSend_1127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer elementName, ) { - return __objc_msgSend_985( + return __objc_msgSend_1127( obj, sel, name, @@ -27661,14 +31366,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_985Ptr = _lookup< + late final __objc_msgSend_1127Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< + late final __objc_msgSend_1127 = __objc_msgSend_1127Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27678,117 +31383,117 @@ class SwiftLibrary { late final _sel_predefinedEntityDeclarationForName_1 = _registerName1("predefinedEntityDeclarationForName:"); late final _sel_DTD1 = _registerName1("DTD"); - ffi.Pointer _objc_msgSend_986( + ffi.Pointer _objc_msgSend_1128( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_986( + return __objc_msgSend_1128( obj, sel, ); } - late final __objc_msgSend_986Ptr = _lookup< + late final __objc_msgSend_1128Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< + late final __objc_msgSend_1128 = __objc_msgSend_1128Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTD_1 = _registerName1("setDTD:"); - void _objc_msgSend_987( + void _objc_msgSend_1129( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_987( + return __objc_msgSend_1129( obj, sel, value, ); } - late final __objc_msgSend_987Ptr = _lookup< + late final __objc_msgSend_1129Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< + late final __objc_msgSend_1129 = __objc_msgSend_1129Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setRootElement_1 = _registerName1("setRootElement:"); - void _objc_msgSend_988( + void _objc_msgSend_1130( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer root, ) { - return __objc_msgSend_988( + return __objc_msgSend_1130( obj, sel, root, ); } - late final __objc_msgSend_988Ptr = _lookup< + late final __objc_msgSend_1130Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + late final __objc_msgSend_1130 = __objc_msgSend_1130Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_rootElement1 = _registerName1("rootElement"); - ffi.Pointer _objc_msgSend_989( + ffi.Pointer _objc_msgSend_1131( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_989( + return __objc_msgSend_1131( obj, sel, ); } - late final __objc_msgSend_989Ptr = _lookup< + late final __objc_msgSend_1131Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< + late final __objc_msgSend_1131 = __objc_msgSend_1131Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_XMLData1 = _registerName1("XMLData"); late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); - ffi.Pointer _objc_msgSend_990( + ffi.Pointer _objc_msgSend_1132( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_990( + return __objc_msgSend_1132( obj, sel, options, ); } - late final __objc_msgSend_990Ptr = _lookup< + late final __objc_msgSend_1132Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< + late final __objc_msgSend_1132 = __objc_msgSend_1132Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_objectByApplyingXSLT_arguments_error_1 = _registerName1("objectByApplyingXSLT:arguments:error:"); - ffi.Pointer _objc_msgSend_991( + ffi.Pointer _objc_msgSend_1133( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_991( + return __objc_msgSend_1133( obj, sel, xslt, @@ -27797,7 +31502,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_991Ptr = _lookup< + late final __objc_msgSend_1133Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27805,7 +31510,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< + late final __objc_msgSend_1133 = __objc_msgSend_1133Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27815,14 +31520,14 @@ class SwiftLibrary { late final _sel_objectByApplyingXSLTString_arguments_error_1 = _registerName1("objectByApplyingXSLTString:arguments:error:"); - ffi.Pointer _objc_msgSend_992( + ffi.Pointer _objc_msgSend_1134( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_992( + return __objc_msgSend_1134( obj, sel, xslt, @@ -27831,7 +31536,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_992Ptr = _lookup< + late final __objc_msgSend_1134Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27839,7 +31544,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< + late final __objc_msgSend_1134 = __objc_msgSend_1134Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27849,14 +31554,14 @@ class SwiftLibrary { late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); - ffi.Pointer _objc_msgSend_993( + ffi.Pointer _objc_msgSend_1135( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xsltURL, ffi.Pointer argument, ffi.Pointer> error, ) { - return __objc_msgSend_993( + return __objc_msgSend_1135( obj, sel, xsltURL, @@ -27865,7 +31570,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_993Ptr = _lookup< + late final __objc_msgSend_1135Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27873,7 +31578,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< + late final __objc_msgSend_1135 = __objc_msgSend_1135Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27884,63 +31589,63 @@ class SwiftLibrary { late final _sel_validateAndReturnError_1 = _registerName1("validateAndReturnError:"); late final _sel_rootDocument1 = _registerName1("rootDocument"); - ffi.Pointer _objc_msgSend_994( + ffi.Pointer _objc_msgSend_1136( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_994( + return __objc_msgSend_1136( obj, sel, ); } - late final __objc_msgSend_994Ptr = _lookup< + late final __objc_msgSend_1136Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + late final __objc_msgSend_1136 = __objc_msgSend_1136Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_parent1 = _registerName1("parent"); - ffi.Pointer _objc_msgSend_995( + ffi.Pointer _objc_msgSend_1137( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_995( + return __objc_msgSend_1137( obj, sel, ); } - late final __objc_msgSend_995Ptr = _lookup< + late final __objc_msgSend_1137Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< + late final __objc_msgSend_1137 = __objc_msgSend_1137Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_childCount1 = _registerName1("childCount"); late final _sel_children1 = _registerName1("children"); late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); - ffi.Pointer _objc_msgSend_996( + ffi.Pointer _objc_msgSend_1138( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_996( + return __objc_msgSend_1138( obj, sel, index, ); } - late final __objc_msgSend_996Ptr = _lookup< + late final __objc_msgSend_1138Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1138 = __objc_msgSend_1138Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -27957,45 +31662,45 @@ class SwiftLibrary { late final _sel_XMLString1 = _registerName1("XMLString"); late final _sel_XMLStringWithOptions_1 = _registerName1("XMLStringWithOptions:"); - ffi.Pointer _objc_msgSend_997( + ffi.Pointer _objc_msgSend_1139( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_997( + return __objc_msgSend_1139( obj, sel, options, ); } - late final __objc_msgSend_997Ptr = _lookup< + late final __objc_msgSend_1139Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< + late final __objc_msgSend_1139 = __objc_msgSend_1139Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_canonicalXMLStringPreservingComments_1 = _registerName1("canonicalXMLStringPreservingComments:"); - ffi.Pointer _objc_msgSend_998( + ffi.Pointer _objc_msgSend_1140( ffi.Pointer obj, ffi.Pointer sel, bool comments, ) { - return __objc_msgSend_998( + return __objc_msgSend_1140( obj, sel, comments, ); } - late final __objc_msgSend_998Ptr = _lookup< + late final __objc_msgSend_1140Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + late final __objc_msgSend_1140 = __objc_msgSend_1140Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -28003,14 +31708,14 @@ class SwiftLibrary { _registerName1("nodesForXPath:error:"); late final _sel_objectsForXQuery_constants_error_1 = _registerName1("objectsForXQuery:constants:error:"); - ffi.Pointer _objc_msgSend_999( + ffi.Pointer _objc_msgSend_1141( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xquery, ffi.Pointer constants, ffi.Pointer> error, ) { - return __objc_msgSend_999( + return __objc_msgSend_1141( obj, sel, xquery, @@ -28019,7 +31724,7 @@ class SwiftLibrary { ); } - late final __objc_msgSend_999Ptr = _lookup< + late final __objc_msgSend_1141Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28027,7 +31732,7 @@ class SwiftLibrary { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + late final __objc_msgSend_1141 = __objc_msgSend_1141Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28038,6 +31743,31 @@ class SwiftLibrary { late final _sel_objectsForXQuery_error_1 = _registerName1("objectsForXQuery:error:"); late final _sel_initWithName_URI_1 = _registerName1("initWithName:URI:"); + instancetype _objc_msgSend_1142( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer URI, + ) { + return __objc_msgSend_1142( + obj, + sel, + name, + URI, + ); + } + + late final __objc_msgSend_1142Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1142 = __objc_msgSend_1142Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_initWithName_stringValue_1 = _registerName1("initWithName:stringValue:"); late final _sel_initWithXMLString_error_1 = @@ -28045,6 +31775,34 @@ class SwiftLibrary { late final _sel_elementsForName_1 = _registerName1("elementsForName:"); late final _sel_elementsForLocalName_URI_1 = _registerName1("elementsForLocalName:URI:"); + ffi.Pointer _objc_msgSend_1143( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer localName, + ffi.Pointer URI, + ) { + return __objc_msgSend_1143( + obj, + sel, + localName, + URI, + ); + } + + late final __objc_msgSend_1143Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1143 = __objc_msgSend_1143Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + late final _sel_addAttribute_1 = _registerName1("addAttribute:"); late final _sel_removeAttributeForName_1 = _registerName1("removeAttributeForName:"); @@ -28055,13 +31813,13 @@ class SwiftLibrary { late final _sel_attributeForName_1 = _registerName1("attributeForName:"); late final _sel_attributeForLocalName_URI_1 = _registerName1("attributeForLocalName:URI:"); - ffi.Pointer _objc_msgSend_1000( + ffi.Pointer _objc_msgSend_1144( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localName, ffi.Pointer URI, ) { - return __objc_msgSend_1000( + return __objc_msgSend_1144( obj, sel, localName, @@ -28069,14 +31827,14 @@ class SwiftLibrary { ); } - late final __objc_msgSend_1000Ptr = _lookup< + late final __objc_msgSend_1144Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + late final __objc_msgSend_1144 = __objc_msgSend_1144Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28139,6 +31897,14 @@ class _ObjCWrapper implements ffi.Finalizable { @override int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer get pointer => _id; + + ffi.Pointer _retainAndReturnId() { + _lib._objc_retain(_id.cast()); + return _id; + } } class NSObject extends _ObjCWrapper { @@ -28165,11 +31931,11 @@ class NSObject extends _ObjCWrapper { } static void load(SwiftLibrary _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); } static void initialize(SwiftLibrary _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } NSObject init() { @@ -28194,11 +31960,11 @@ class NSObject extends _ObjCWrapper { } void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } NSObject copy() { @@ -28230,24 +31996,25 @@ class NSObject extends _ObjCWrapper { _lib._sel_instancesRespondToSelector_1, aSelector); } - static bool conformsToProtocol_(SwiftLibrary _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + static bool conformsToProtocol_(SwiftLibrary _lib, Protocol protocol) { + return _lib._objc_msgSend_5( + _lib._class_NSObject1, _lib._sel_conformsToProtocol_1, protocol._id); } - IMP methodForSelector_(ffi.Pointer aSelector) { + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); } - static IMP instanceMethodForSelector_( - SwiftLibrary _lib, ffi.Pointer aSelector) { + static ffi.Pointer> + instanceMethodForSelector_( + SwiftLibrary _lib, ffi.Pointer aSelector) { return _lib._objc_msgSend_6(_lib._class_NSObject1, _lib._sel_instanceMethodForSelector_1, aSelector); } void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); } NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { @@ -28256,21 +32023,21 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - void forwardInvocation_(NSInvocation? anInvocation) { - return _lib._objc_msgSend_372( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation anInvocation) { + _lib._objc_msgSend_421( + _id, _lib._sel_forwardInvocation_1, anInvocation._id); } NSMethodSignature methodSignatureForSelector_( ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_373( + final _ret = _lib._objc_msgSend_422( _id, _lib._sel_methodSignatureForSelector_1, aSelector); return NSMethodSignature._(_ret, _lib, retain: true, release: true); } static NSMethodSignature instanceMethodSignatureForSelector_( SwiftLibrary _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_373(_lib._class_NSObject1, + final _ret = _lib._objc_msgSend_422(_lib._class_NSObject1, _lib._sel_instanceMethodSignatureForSelector_1, aSelector); return NSMethodSignature._(_ret, _lib, retain: true, release: true); } @@ -28316,22 +32083,22 @@ class NSObject extends _ObjCWrapper { static NSString description(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); + _lib._objc_msgSend_21(_lib._class_NSObject1, _lib._sel_description1); return NSString._(_ret, _lib, retain: true, release: true); } static NSString debugDescription(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_20( + final _ret = _lib._objc_msgSend_21( _lib._class_NSObject1, _lib._sel_debugDescription1); return NSString._(_ret, _lib, retain: true, release: true); } static int version(SwiftLibrary _lib) { - return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); + return _lib._objc_msgSend_83(_lib._class_NSObject1, _lib._sel_version1); } static void setVersion_(SwiftLibrary _lib, int aVersion) { - return _lib._objc_msgSend_374( + _lib._objc_msgSend_423( _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); } @@ -28340,20 +32107,24 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? replacementObjectForCoder_(NSCoder coder) { + final _ret = _lib._objc_msgSend_47( + _id, _lib._sel_replacementObjectForCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject awakeAfterUsingCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + NSObject? awakeAfterUsingCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_awakeAfterUsingCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } static void poseAsClass_(SwiftLibrary _lib, NSObject aClass) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); } @@ -28365,51 +32136,51 @@ class NSObject extends _ObjCWrapper { void attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, + NSError error, int recoveryOptionIndex, - NSObject delegate, + NSObject? delegate, ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo) { - return _lib._objc_msgSend_375( + _lib._objc_msgSend_424( _id, _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, + error._id, recoveryOptionIndex, - delegate._id, + delegate?._id ?? ffi.nullptr, didRecoverSelector, contextInfo); } bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_376( + NSError error, int recoveryOptionIndex) { + return _lib._objc_msgSend_425( _id, _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, + error._id, recoveryOptionIndex); } void performSelector_withObject_afterDelay_inModes_( ffi.Pointer aSelector, - NSObject anArgument, + NSObject? anArgument, double delay, - NSArray? modes) { - return _lib._objc_msgSend_377( + NSArray modes) { + _lib._objc_msgSend_426( _id, _lib._sel_performSelector_withObject_afterDelay_inModes_1, aSelector, - anArgument._id, + anArgument?._id ?? ffi.nullptr, delay, - modes?._id ?? ffi.nullptr); + modes._id); } void performSelector_withObject_afterDelay_( - ffi.Pointer aSelector, NSObject anArgument, double delay) { - return _lib._objc_msgSend_378( + ffi.Pointer aSelector, NSObject? anArgument, double delay) { + _lib._objc_msgSend_427( _id, _lib._sel_performSelector_withObject_afterDelay_1, aSelector, - anArgument._id, + anArgument?._id ?? ffi.nullptr, delay); } @@ -28417,59 +32188,53 @@ class NSObject extends _ObjCWrapper { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSObject1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSObject1, + _lib._objc_msgSend_15(_lib._class_NSObject1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - return _lib._objc_msgSend_379( - _id, - _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, - newBytes?._id ?? ffi.nullptr); + void URL_resourceDataDidBecomeAvailable_(NSURL sender, NSData newBytes) { + _lib._objc_msgSend_428(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender._id, newBytes._id); } - void URLResourceDidFinishLoading_(NSURL? sender) { - return _lib._objc_msgSend_380(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); + void URLResourceDidFinishLoading_(NSURL sender) { + _lib._objc_msgSend_429( + _id, _lib._sel_URLResourceDidFinishLoading_1, sender._id); } - void URLResourceDidCancelLoading_(NSURL? sender) { - return _lib._objc_msgSend_380(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); + void URLResourceDidCancelLoading_(NSURL sender) { + _lib._objc_msgSend_429( + _id, _lib._sel_URLResourceDidCancelLoading_1, sender._id); } - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - return _lib._objc_msgSend_381( + void URL_resourceDidFailLoadingWithReason_(NSURL sender, NSString reason) { + _lib._objc_msgSend_430( _id, _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); + sender._id, + reason._id); } bool fileManager_shouldProceedAfterError_( - NSFileManager? fm, NSDictionary? errorInfo) { - return _lib._objc_msgSend_407( - _id, - _lib._sel_fileManager_shouldProceedAfterError_1, - fm?._id ?? ffi.nullptr, - errorInfo?._id ?? ffi.nullptr); + NSFileManager fm, NSDictionary errorInfo) { + return _lib._objc_msgSend_467(_id, + _lib._sel_fileManager_shouldProceedAfterError_1, fm._id, errorInfo._id); } - void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - return _lib._objc_msgSend_408(_id, _lib._sel_fileManager_willProcessPath_1, - fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + void fileManager_willProcessPath_(NSFileManager fm, NSString path) { + _lib._objc_msgSend_468( + _id, _lib._sel_fileManager_willProcessPath_1, fm._id, path._id); } static bool getAccessInstanceVariablesDirectly(SwiftLibrary _lib) { @@ -28477,111 +32242,111 @@ class NSObject extends _ObjCWrapper { _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); } - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_valueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } bool validateValue_forKey_error_(ffi.Pointer> ioValue, - NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_220(_id, _lib._sel_validateValue_forKey_error_1, - ioValue, inKey?._id ?? ffi.nullptr, outError); + NSString inKey, ffi.Pointer> outError) { + return _lib._objc_msgSend_244(_id, _lib._sel_validateValue_forKey_error_1, + ioValue, inKey._id, outError); } - NSMutableArray mutableArrayValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_425( - _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); + NSMutableArray mutableArrayValueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_488( + _id, _lib._sel_mutableArrayValueForKey_1, key._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_441( - _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); + NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_506( + _id, _lib._sel_mutableOrderedSetValueForKey_1, key._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSMutableSet mutableSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_442( - _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); + NSMutableSet mutableSetValueForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_507(_id, _lib._sel_mutableSetValueForKey_1, key._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSObject valueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForKeyPath_(NSString keyPath) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_valueForKeyPath_1, keyPath._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_122(_id, _lib._sel_setValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); + void setValue_forKeyPath_(NSObject? value, NSString keyPath) { + _lib._objc_msgSend_135(_id, _lib._sel_setValue_forKeyPath_1, + value?._id ?? ffi.nullptr, keyPath._id); } bool validateValue_forKeyPath_error_( ffi.Pointer> ioValue, - NSString? inKeyPath, + NSString inKeyPath, ffi.Pointer> outError) { - return _lib._objc_msgSend_220( + return _lib._objc_msgSend_244( _id, _lib._sel_validateValue_forKeyPath_error_1, ioValue, - inKeyPath?._id ?? ffi.nullptr, + inKeyPath._id, outError); } - NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_425(_id, - _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + NSMutableArray mutableArrayValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_488( + _id, _lib._sel_mutableArrayValueForKeyPath_1, keyPath._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_441( - _id, - _lib._sel_mutableOrderedSetValueForKeyPath_1, - keyPath?._id ?? ffi.nullptr); + NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_506( + _id, _lib._sel_mutableOrderedSetValueForKeyPath_1, keyPath._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_442(_id, - _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + NSMutableSet mutableSetValueForKeyPath_(NSString keyPath) { + final _ret = _lib._objc_msgSend_507( + _id, _lib._sel_mutableSetValueForKeyPath_1, keyPath._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSObject valueForUndefinedKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForUndefinedKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_valueForUndefinedKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setValue_forUndefinedKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_setValue_forUndefinedKey_1, - value._id, key?._id ?? ffi.nullptr); + void setValue_forUndefinedKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_setValue_forUndefinedKey_1, + value?._id ?? ffi.nullptr, key._id); } - void setNilValueForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); + void setNilValueForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_setNilValueForKey_1, key._id); } - NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_443( - _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); + NSDictionary dictionaryWithValuesForKeys_(NSArray keys) { + final _ret = _lib._objc_msgSend_508( + _id, _lib._sel_dictionaryWithValuesForKeys_1, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - return _lib._objc_msgSend_444( - _id, - _lib._sel_setValuesForKeysWithDictionary_1, - keyedValues?._id ?? ffi.nullptr); + void setValuesForKeysWithDictionary_(NSDictionary keyedValues) { + _lib._objc_msgSend_509( + _id, _lib._sel_setValuesForKeysWithDictionary_1, keyedValues._id); } static bool useStoredAccessor(SwiftLibrary _lib) { @@ -28589,193 +32354,177 @@ class NSObject extends _ObjCWrapper { _lib._class_NSObject1, _lib._sel_useStoredAccessor1); } - NSObject storedValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? storedValueForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_storedValueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void takeStoredValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_takeStoredValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); + void takeStoredValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_takeStoredValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); } - void takeValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void takeValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_takeValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } - void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_122(_id, _lib._sel_takeValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); + void takeValue_forKeyPath_(NSObject? value, NSString keyPath) { + _lib._objc_msgSend_135(_id, _lib._sel_takeValue_forKeyPath_1, + value?._id ?? ffi.nullptr, keyPath._id); } - NSObject handleQueryWithUnboundKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? handleQueryWithUnboundKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_handleQueryWithUnboundKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, - key?._id ?? ffi.nullptr); + void handleTakeValue_forUnboundKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_handleTakeValue_forUnboundKey_1, + value?._id ?? ffi.nullptr, key._id); } - void unableToSetNilForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); + void unableToSetNilForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_unableToSetNilForKey_1, key._id); } - NSDictionary valuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_443( - _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); + NSDictionary valuesForKeys_(NSArray keys) { + final _ret = + _lib._objc_msgSend_508(_id, _lib._sel_valuesForKeys_1, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - void takeValuesFromDictionary_(NSDictionary? properties) { - return _lib._objc_msgSend_444(_id, _lib._sel_takeValuesFromDictionary_1, - properties?._id ?? ffi.nullptr); + void takeValuesFromDictionary_(NSDictionary properties) { + _lib._objc_msgSend_509( + _id, _lib._sel_takeValuesFromDictionary_1, properties._id); } void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, - NSObject object, NSDictionary? change, ffi.Pointer context) { - return _lib._objc_msgSend_445( + NSObject? object, NSDictionary? change, ffi.Pointer context) { + _lib._objc_msgSend_510( _id, _lib._sel_observeValueForKeyPath_ofObject_change_context_1, keyPath?._id ?? ffi.nullptr, - object._id, + object?._id ?? ffi.nullptr, change?._id ?? ffi.nullptr, context); } - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - void willChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); + void willChangeValueForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_willChangeValueForKey_1, key._id); } - void didChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_186( - _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); + void didChangeValueForKey_(NSString key) { + _lib._objc_msgSend_248(_id, _lib._sel_didChangeValueForKey_1, key._id); } void willChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_446( - _id, - _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + int changeKind, NSIndexSet indexes, NSString key) { + _lib._objc_msgSend_511(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, indexes._id, key._id); } void didChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_446( - _id, - _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + int changeKind, NSIndexSet indexes, NSString key) { + _lib._objc_msgSend_511(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, indexes._id, key._id); } void willChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_447( + NSString key, int mutationKind, NSSet objects) { + _lib._objc_msgSend_512( _id, _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, + key._id, mutationKind, - objects?._id ?? ffi.nullptr); + objects._id); } void didChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_447( + NSString key, int mutationKind, NSSet objects) { + _lib._objc_msgSend_512( _id, _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, + key._id, mutationKind, - objects?._id ?? ffi.nullptr); + objects._id); } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSObject1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSObject1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSObject1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSObject1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } ffi.Pointer get observationInfo { - return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + return _lib._objc_msgSend_20(_id, _lib._sel_observationInfo1); } set observationInfo(ffi.Pointer value) { - _lib._objc_msgSend_448(_id, _lib._sel_setObservationInfo_1, value); + return _lib._objc_msgSend_513(_id, _lib._sel_setObservationInfo_1, value); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSObject1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } - NSObject get classForKeyedArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get classForKeyedArchiver { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_classForKeyedArchiver1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { - final _ret = _lib._objc_msgSend_461( - _id, - _lib._sel_replacementObjectForKeyedArchiver_1, - archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? replacementObjectForKeyedArchiver_(NSKeyedArchiver archiver) { + final _ret = _lib._objc_msgSend_528( + _id, _lib._sel_replacementObjectForKeyedArchiver_1, archiver._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -28787,68 +32536,78 @@ class NSObject extends _ObjCWrapper { } void performSelectorOnMainThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_462( + ffi.Pointer aSelector, + NSObject? arg, + bool wait, + NSArray? array) { + _lib._objc_msgSend_529( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, aSelector, - arg._id, + arg?._id ?? ffi.nullptr, wait, array?._id ?? ffi.nullptr); } void performSelectorOnMainThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSObject arg, bool wait) { - return _lib._objc_msgSend_463( + ffi.Pointer aSelector, NSObject? arg, bool wait) { + _lib._objc_msgSend_530( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, aSelector, - arg._id, + arg?._id ?? ffi.nullptr, wait); } void performSelector_onThread_withObject_waitUntilDone_modes_( ffi.Pointer aSelector, - NSThread? thr, - NSObject arg, + NSThread thr, + NSObject? arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_480( + _lib._objc_msgSend_548( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, aSelector, - thr?._id ?? ffi.nullptr, - arg._id, + thr._id, + arg?._id ?? ffi.nullptr, wait, array?._id ?? ffi.nullptr); } void performSelector_onThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - return _lib._objc_msgSend_481( + ffi.Pointer aSelector, NSThread thr, NSObject? arg, bool wait) { + _lib._objc_msgSend_549( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, aSelector, - thr?._id ?? ffi.nullptr, - arg._id, + thr._id, + arg?._id ?? ffi.nullptr, wait); } void performSelectorInBackground_withObject_( - ffi.Pointer aSelector, NSObject arg) { - return _lib._objc_msgSend_82(_id, - _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); + ffi.Pointer aSelector, NSObject? arg) { + _lib._objc_msgSend_90( + _id, + _lib._sel_performSelectorInBackground_withObject_1, + aSelector, + arg?._id ?? ffi.nullptr); } - NSObject get classForArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get classForArchiver { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_classForArchiver1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForArchiver_(NSArchiver? archiver) { - final _ret = _lib._objc_msgSend_484(_id, - _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? replacementObjectForArchiver_(NSArchiver archiver) { + final _ret = _lib._objc_msgSend_552( + _id, _lib._sel_replacementObjectForArchiver_1, archiver._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSObject get classForPortCoder { @@ -28856,231 +32615,225 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { - final _ret = _lib._objc_msgSend_522(_id, - _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSClassDescription? get classDescription { - final _ret = _lib._objc_msgSend_525(_id, _lib._sel_classDescription1); + NSObject? replacementObjectForPortCoder_(NSPortCoder coder) { + final _ret = _lib._objc_msgSend_597( + _id, _lib._sel_replacementObjectForPortCoder_1, coder._id); return _ret.address == 0 ? null - : NSClassDescription._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSClassDescription get classDescription { + final _ret = _lib._objc_msgSend_600(_id, _lib._sel_classDescription1); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get attributeKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_attributeKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toOneRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toManyRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject scriptingValueForSpecifier_( - NSScriptObjectSpecifier? objectSpecifier) { - final _ret = _lib._objc_msgSend_569( - _id, - _lib._sel_scriptingValueForSpecifier_1, - objectSpecifier?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? inverseForRelationshipKey_(NSString relationshipKey) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_inverseForRelationshipKey_1, relationshipKey._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject? scriptingValueForSpecifier_( + NSScriptObjectSpecifier objectSpecifier) { + final _ret = _lib._objc_msgSend_649( + _id, _lib._sel_scriptingValueForSpecifier_1, objectSpecifier._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get scriptingProperties { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_scriptingProperties1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_scriptingProperties1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set scriptingProperties(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); } - NSObject copyScriptingValue_forKey_withProperties_( - NSObject value, NSString? key, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_570( + NSObject? copyScriptingValue_forKey_withProperties_( + NSObject value, NSString key, NSDictionary properties) { + final _ret = _lib._objc_msgSend_650( _id, _lib._sel_copyScriptingValue_forKey_withProperties_1, value._id, - key?._id ?? ffi.nullptr, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + key._id, + properties._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } - NSObject + NSObject? newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( NSObject objectClass, - NSString? key, - NSObject contentsValue, - NSDictionary? properties) { - final _ret = _lib._objc_msgSend_571( + NSString key, + NSObject? contentsValue, + NSDictionary properties) { + final _ret = _lib._objc_msgSend_651( _id, _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, objectClass._id, - key?._id ?? ffi.nullptr, - contentsValue._id, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + key._id, + contentsValue?._id ?? ffi.nullptr, + properties._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } int get classCode { - return _lib._objc_msgSend_191(_id, _lib._sel_classCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_classCode1); } NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_className1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { - final _ret = _lib._objc_msgSend_572( - _id, - _lib._sel_valueAtIndex_inPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueAtIndex_inPropertyWithKey_(int index, NSString key) { + final _ret = _lib._objc_msgSend_652( + _id, _lib._sel_valueAtIndex_inPropertyWithKey_1, index, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { - final _ret = _lib._objc_msgSend_159( - _id, - _lib._sel_valueWithName_inPropertyWithKey_1, - name?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueWithName_inPropertyWithKey_(NSString name, NSString key) { + final _ret = _lib._objc_msgSend_175( + _id, _lib._sel_valueWithName_inPropertyWithKey_1, name._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject valueWithUniqueID_inPropertyWithKey_( - NSObject uniqueID, NSString? key) { - final _ret = _lib._objc_msgSend_272( - _id, - _lib._sel_valueWithUniqueID_inPropertyWithKey_1, - uniqueID._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueWithUniqueID_inPropertyWithKey_( + NSObject uniqueID, NSString key) { + final _ret = _lib._objc_msgSend_311(_id, + _lib._sel_valueWithUniqueID_inPropertyWithKey_1, uniqueID._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void insertValue_atIndex_inPropertyWithKey_( - NSObject value, int index, NSString? key) { - return _lib._objc_msgSend_573( + NSObject value, int index, NSString key) { + _lib._objc_msgSend_653( _id, _lib._sel_insertValue_atIndex_inPropertyWithKey_1, value._id, index, - key?._id ?? ffi.nullptr); + key._id); } - void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { - return _lib._objc_msgSend_574( - _id, - _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); + void removeValueAtIndex_fromPropertyWithKey_(int index, NSString key) { + _lib._objc_msgSend_654(_id, + _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, index, key._id); } void replaceValueAtIndex_inPropertyWithKey_withValue_( - int index, NSString? key, NSObject value) { - return _lib._objc_msgSend_575( + int index, NSString key, NSObject value) { + _lib._objc_msgSend_655( _id, _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, index, - key?._id ?? ffi.nullptr, + key._id, value._id); } - void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_insertValue_inPropertyWithKey_1, - value._id, - key?._id ?? ffi.nullptr); + void insertValue_inPropertyWithKey_(NSObject value, NSString key) { + _lib._objc_msgSend_656( + _id, _lib._sel_insertValue_inPropertyWithKey_1, value._id, key._id); } - NSObject coerceValue_forKey_(NSObject value, NSString? key) { - final _ret = _lib._objc_msgSend_272(_id, _lib._sel_coerceValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? coerceValue_forKey_(NSObject? value, NSString key) { + final _ret = _lib._objc_msgSend_657(_id, _lib._sel_coerceValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier? get objectSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_objectSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_objectSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( - NSScriptObjectSpecifier? specifier) { - final _ret = _lib._objc_msgSend_576( - _id, - _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, - specifier?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? indicesOfObjectsByEvaluatingObjectSpecifier_( + NSScriptObjectSpecifier specifier) { + final _ret = _lib._objc_msgSend_658(_id, + _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, specifier._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool isEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); + bool isEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isEqualTo_1, object?._id ?? ffi.nullptr); } - bool isLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isLessThanOrEqualTo_1, object._id); + bool isLessThanOrEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isLessThanOrEqualTo_1, object?._id ?? ffi.nullptr); } - bool isLessThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); + bool isLessThan_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isLessThan_1, object?._id ?? ffi.nullptr); } - bool isGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); + bool isGreaterThanOrEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isGreaterThanOrEqualTo_1, object?._id ?? ffi.nullptr); } - bool isGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); + bool isGreaterThan_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isGreaterThan_1, object?._id ?? ffi.nullptr); } - bool isNotEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); + bool isNotEqualTo_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_isNotEqualTo_1, object?._id ?? ffi.nullptr); } bool doesContain_(NSObject object) { return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); } - bool isLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); + bool isLike_(NSString object) { + return _lib._objc_msgSend_64(_id, _lib._sel_isLike_1, object._id); } - bool isCaseInsensitiveLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); + bool isCaseInsensitiveLike_(NSString object) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isCaseInsensitiveLike_1, object._id); } bool scriptingIsEqualTo_(NSObject object) { @@ -29127,6 +32880,7 @@ final class ObjCSel extends ffi.Opaque {} final class ObjCObject extends ffi.Opaque {} typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = NSObject; final class _NSZone extends ffi.Opaque {} @@ -29154,8 +32908,6 @@ class Protocol extends _ObjCWrapper { } } -typedef IMP = ffi.Pointer>; - class NSInvocation extends NSObject { NSInvocation._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -29180,68 +32932,80 @@ class NSInvocation extends NSObject { } static NSInvocation invocationWithMethodSignature_( - SwiftLibrary _lib, NSMethodSignature? sig) { - final _ret = _lib._objc_msgSend_366(_lib._class_NSInvocation1, - _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSMethodSignature sig) { + final _ret = _lib._objc_msgSend_414(_lib._class_NSInvocation1, + _lib._sel_invocationWithMethodSignature_1, sig._id); return NSInvocation._(_ret, _lib, retain: true, release: true); } - NSMethodSignature? get methodSignature { - final _ret = _lib._objc_msgSend_367(_id, _lib._sel_methodSignature1); - return _ret.address == 0 - ? null - : NSMethodSignature._(_ret, _lib, retain: true, release: true); + NSMethodSignature get methodSignature { + final _ret = _lib._objc_msgSend_415(_id, _lib._sel_methodSignature1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } void retainArguments() { - return _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); } bool get argumentsRetained { return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); } - NSObject get target { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get target { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_target1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set target(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setTarget_1, value._id); + set target(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setTarget_1, value?._id ?? ffi.nullptr); } ffi.Pointer get selector { - return _lib._objc_msgSend_369(_id, _lib._sel_selector1); + return _lib._objc_msgSend_417(_id, _lib._sel_selector1); } set selector(ffi.Pointer value) { - _lib._objc_msgSend_370(_id, _lib._sel_setSelector_1, value); + return _lib._objc_msgSend_418(_id, _lib._sel_setSelector_1, value); } void getReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + _lib._objc_msgSend_52(_id, _lib._sel_getReturnValue_1, retLoc); } void setReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + _lib._objc_msgSend_52(_id, _lib._sel_setReturnValue_1, retLoc); } void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_371( + _lib._objc_msgSend_419( _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); } void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_371( + _lib._objc_msgSend_419( _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); } void invoke() { - return _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + _lib._objc_msgSend_1(_id, _lib._sel_invoke1); } void invokeWithTarget_(NSObject target) { - return _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + } + + void invokeUsingIMP_( + ffi.Pointer> imp) { + _lib._objc_msgSend_420(_id, _lib._sel_invokeUsingIMP_1, imp); + } + + @override + NSInvocation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInvocation._(_ret, _lib, retain: true, release: true); } static NSInvocation new1(SwiftLibrary _lib) { @@ -29250,6 +33014,13 @@ class NSInvocation extends NSObject { return NSInvocation._(_ret, _lib, retain: false, release: true); } + static NSInvocation allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInvocation1, _lib._sel_allocWithZone_1, zone); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + static NSInvocation alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); @@ -29260,18 +33031,18 @@ class NSInvocation extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInvocation1, + _lib._objc_msgSend_15(_lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -29286,33 +33057,29 @@ class NSInvocation extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInvocation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSInvocation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInvocation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSInvocation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSInvocation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -29348,11 +33115,13 @@ class NSMethodSignature extends NSObject { obj._lib._class_NSMethodSignature1); } - static NSMethodSignature signatureWithObjCTypes_( + static NSMethodSignature? signatureWithObjCTypes_( SwiftLibrary _lib, ffi.Pointer types) { final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, _lib._sel_signatureWithObjCTypes_1, types); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); } int get numberOfArguments { @@ -29379,12 +33148,25 @@ class NSMethodSignature extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); } + @override + NSMethodSignature init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + static NSMethodSignature new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); return NSMethodSignature._(_ret, _lib, retain: false, release: true); } + static NSMethodSignature allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMethodSignature1, _lib._sel_allocWithZone_1, zone); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); + } + static NSMethodSignature alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); @@ -29395,18 +33177,18 @@ class NSMethodSignature extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, + _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -29421,33 +33203,29 @@ class NSMethodSignature extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMethodSignature1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMethodSignature1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMethodSignature1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMethodSignature1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMethodSignature1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMethodSignature1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMethodSignature1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -29459,8 +33237,6 @@ class NSMethodSignature extends NSObject { } } -typedef NSUInteger = ffi.UnsignedLong; - class NSSet extends NSObject { NSSet._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -29487,13 +33263,15 @@ class NSSet extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - NSObject member_(NSObject object) { + NSObject? member_(NSObject object) { final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -29505,111 +33283,110 @@ class NSSet extends NSObject { NSSet initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allObjects1); + NSSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSSet._(_ret, _lib, retain: true, release: true); } - NSObject anyObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray get allObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? anyObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_anyObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } bool containsObject_(NSObject anObject) { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? otherSet) { - return _lib._objc_msgSend_355( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + bool intersectsSet_(NSSet otherSet) { + return _lib._objc_msgSend_403(_id, _lib._sel_intersectsSet_1, otherSet._id); } - bool isEqualToSet_(NSSet? otherSet) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + bool isEqualToSet_(NSSet otherSet) { + return _lib._objc_msgSend_403(_id, _lib._sel_isEqualToSet_1, otherSet._id); } - bool isSubsetOfSet_(NSSet? otherSet) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + bool isSubsetOfSet_(NSSet otherSet) { + return _lib._objc_msgSend_403(_id, _lib._sel_isSubsetOfSet_1, otherSet._id); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( + _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_82( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_90( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, - argument._id); + argument?._id ?? ffi.nullptr); } NSSet setByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_356( + final _ret = _lib._objc_msgSend_404( _id, _lib._sel_setByAddingObject_1, anObject._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromSet_(NSSet? other) { - final _ret = _lib._objc_msgSend_357( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromSet_(NSSet other) { + final _ret = _lib._objc_msgSend_405( + _id, _lib._sel_setByAddingObjectsFromSet_1, other._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_358(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromArray_(NSArray other) { + final _ret = _lib._objc_msgSend_406( + _id, _lib._sel_setByAddingObjectsFromArray_1, other._id); return NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock13 block) { - return _lib._objc_msgSend_359( + void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_407( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock13 block) { - return _lib._objc_msgSend_360(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_408(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - NSSet objectsPassingTest_(ObjCBlock14 predicate) { - final _ret = _lib._objc_msgSend_361( + NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_409( _id, _lib._sel_objectsPassingTest_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock14 predicate) { - final _ret = _lib._objc_msgSend_362( + NSSet objectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_410( _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -29620,113 +33397,104 @@ class NSSet extends NSObject { } static NSSet setWithObject_(SwiftLibrary _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_count_(SwiftLibrary _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_(SwiftLibrary _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithSet_(SwiftLibrary _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + static NSSet setWithSet_(SwiftLibrary _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411( + _lib._class_NSSet1, _lib._sel_setWithSet_1, set._id); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithArray_(SwiftLibrary _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + static NSSet setWithArray_(SwiftLibrary _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSSet1, _lib._sel_setWithArray_1, array._id); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_363( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + NSSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSSet._(_ret, _lib, retain: false, release: true); } - NSSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSSet._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_365(_id, - _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); + NSSet filteredSetUsingPredicate_(NSPredicate predicate) { + final _ret = _lib._objc_msgSend_413( + _id, _lib._sel_filteredSetUsingPredicate_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -29735,6 +33503,12 @@ class NSSet extends NSObject { return NSSet._(_ret, _lib, retain: false, release: true); } + static NSSet allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSSet1, _lib._sel_allocWithZone_1, zone); + return NSSet._(_ret, _lib, retain: false, release: true); + } + static NSSet alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); return NSSet._(_ret, _lib, retain: false, release: true); @@ -29744,18 +33518,18 @@ class NSSet extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._objc_msgSend_15(_lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -29770,33 +33544,29 @@ class NSSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -29831,17 +33601,37 @@ class NSEnumerator extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); } - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); + NSObject? nextObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_nextObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); return NSObject._(_ret, _lib, retain: true, release: true); } + @override + NSEnumerator init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + static NSEnumerator new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); return NSEnumerator._(_ret, _lib, retain: false, release: true); } + static NSEnumerator allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSEnumerator1, _lib._sel_allocWithZone_1, zone); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + static NSEnumerator alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); @@ -29852,18 +33642,18 @@ class NSEnumerator extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._objc_msgSend_15(_lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -29878,33 +33668,29 @@ class NSEnumerator extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSEnumerator1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSEnumerator1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSEnumerator1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSEnumerator1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSEnumerator1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -29940,20 +33726,25 @@ class NSString extends NSObject { } factory NSString(SwiftLibrary _lib, String str) { - final cstr = str.toNativeUtf8(); - final nsstr = stringWithCString_encoding_(_lib, cstr.cast(), 4 /* UTF8 */); + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); pkg_ffi.calloc.free(cstr); return nsstr; } @override - String toString() => (UTF8String).cast().toDartString(); + String toString() { + final data = + dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + return data!.bytes.cast().toDartString(length: length); + } + int get length { return _lib._objc_msgSend_10(_id, _lib._sel_length1); } int characterAtIndex_(int index) { - return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + return _lib._objc_msgSend_18(_id, _lib._sel_characterAtIndex_1, index); } @override @@ -29962,290 +33753,276 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString substringFromIndex_(int from) { final _ret = - _lib._objc_msgSend_293(_id, _lib._sel_substringFromIndex_1, from); + _lib._objc_msgSend_332(_id, _lib._sel_substringFromIndex_1, from); return NSString._(_ret, _lib, retain: true, release: true); } NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_293(_id, _lib._sel_substringToIndex_1, to); + final _ret = _lib._objc_msgSend_332(_id, _lib._sel_substringToIndex_1, to); return NSString._(_ret, _lib, retain: true, release: true); } - NSString substringWithRange_(NSRange range) { + NSString substringWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_294(_id, _lib._sel_substringWithRange_1, range); + _lib._objc_msgSend_333(_id, _lib._sel_substringWithRange_1, range); return NSString._(_ret, _lib, retain: true, release: true); } - void getCharacters_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_295( - _id, _lib._sel_getCharacters_range_1, buffer, range); + void getCharacters_range_( + ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_334(_id, _lib._sel_getCharacters_range_1, buffer, range); } - int compare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + int compare_(NSString string) { + return _lib._objc_msgSend_335(_id, _lib._sel_compare_1, string._id); } - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_297( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + int compare_options_(NSString string, int mask) { + return _lib._objc_msgSend_336( + _id, _lib._sel_compare_options_1, string._id, mask); } int compare_options_range_( - NSString? string, int mask, NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_298(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + NSString string, int mask, _NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_337(_id, _lib._sel_compare_options_range_1, + string._id, mask, rangeOfReceiverToCompare); } - int compare_options_range_locale_(NSString? string, int mask, - NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_299(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + int compare_options_range_locale_(NSString string, int mask, + _NSRange rangeOfReceiverToCompare, NSObject? locale) { + return _lib._objc_msgSend_338(_id, _lib._sel_compare_options_range_locale_1, + string._id, mask, rangeOfReceiverToCompare, locale?._id ?? ffi.nullptr); } - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + int caseInsensitiveCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_caseInsensitiveCompare_1, string._id); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + int localizedCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_localizedCompare_1, string._id); } - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + int localizedCaseInsensitiveCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_localizedCaseInsensitiveCompare_1, string._id); } - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_296( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + int localizedStandardCompare_(NSString string) { + return _lib._objc_msgSend_335( + _id, _lib._sel_localizedStandardCompare_1, string._id); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + bool isEqualToString_(NSString aString) { + return _lib._objc_msgSend_64(_id, _lib._sel_isEqualToString_1, aString._id); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + bool hasPrefix_(NSString str) { + return _lib._objc_msgSend_64(_id, _lib._sel_hasPrefix_1, str._id); } - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + bool hasSuffix_(NSString str) { + return _lib._objc_msgSend_64(_id, _lib._sel_hasSuffix_1, str._id); } - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_300( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); + NSString commonPrefixWithString_options_(NSString str, int mask) { + final _ret = _lib._objc_msgSend_339( + _id, _lib._sel_commonPrefixWithString_options_1, str._id, mask); return NSString._(_ret, _lib, retain: true, release: true); } - bool containsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + bool containsString_(NSString str) { + return _lib._objc_msgSend_64(_id, _lib._sel_containsString_1, str._id); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + bool localizedCaseInsensitiveContainsString_(NSString str) { + return _lib._objc_msgSend_64( + _id, _lib._sel_localizedCaseInsensitiveContainsString_1, str._id); } - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_59(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + bool localizedStandardContainsString_(NSString str) { + return _lib._objc_msgSend_64( + _id, _lib._sel_localizedStandardContainsString_1, str._id); } - NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_301(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + void localizedStandardRangeOfString_( + ffi.Pointer<_NSRange> stret, NSString str) { + _lib._objc_msgSend_340( + stret, _id, _lib._sel_localizedStandardRangeOfString_1, str._id); } - NSRange rangeOfString_(NSString? searchString) { - return _lib._objc_msgSend_301( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + void rangeOfString_(ffi.Pointer<_NSRange> stret, NSString searchString) { + _lib._objc_msgSend_340( + stret, _id, _lib._sel_rangeOfString_1, searchString._id); } - NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_302(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + void rangeOfString_options_( + ffi.Pointer<_NSRange> stret, NSString searchString, int mask) { + _lib._objc_msgSend_341( + stret, _id, _lib._sel_rangeOfString_options_1, searchString._id, mask); } - NSRange rangeOfString_options_range_( - NSString? searchString, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_303(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + void rangeOfString_options_range_(ffi.Pointer<_NSRange> stret, + NSString searchString, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_342(stret, _id, _lib._sel_rangeOfString_options_range_1, + searchString._id, mask, rangeOfReceiverToSearch); } - NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, - NSRange rangeOfReceiverToSearch, NSLocale? locale) { - return _lib._objc_msgSend_304( + void rangeOfString_options_range_locale_( + ffi.Pointer<_NSRange> stret, + NSString searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + NSLocale? locale) { + _lib._objc_msgSend_343( + stret, _id, _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, + searchString._id, mask, rangeOfReceiverToSearch, locale?._id ?? ffi.nullptr); } - NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { - return _lib._objc_msgSend_305(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + void rangeOfCharacterFromSet_( + ffi.Pointer<_NSRange> stret, NSCharacterSet searchSet) { + _lib._objc_msgSend_344( + stret, _id, _lib._sel_rangeOfCharacterFromSet_1, searchSet._id); } - NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { - return _lib._objc_msgSend_306( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + void rangeOfCharacterFromSet_options_( + ffi.Pointer<_NSRange> stret, NSCharacterSet searchSet, int mask) { + _lib._objc_msgSend_345(stret, _id, + _lib._sel_rangeOfCharacterFromSet_options_1, searchSet._id, mask); } - NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_307( + void rangeOfCharacterFromSet_options_range_(ffi.Pointer<_NSRange> stret, + NSCharacterSet searchSet, int mask, _NSRange rangeOfReceiverToSearch) { + _lib._objc_msgSend_346( + stret, _id, _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, + searchSet._id, mask, rangeOfReceiverToSearch); } - NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { - return _lib._objc_msgSend_308( - _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + void rangeOfComposedCharacterSequenceAtIndex_( + ffi.Pointer<_NSRange> stret, int index) { + _lib._objc_msgSend_347( + stret, _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); } - NSRange rangeOfComposedCharacterSequencesForRange_(NSRange range) { - return _lib._objc_msgSend_309( - _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + void rangeOfComposedCharacterSequencesForRange_( + ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_348(stret, _id, + _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); } - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + NSString stringByAppendingString_(NSString aString) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_stringByAppendingString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + NSString stringByAppendingFormat_(NSString format) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_stringByAppendingFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } double get doubleValue { - return _lib._objc_msgSend_149(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_165(_id, _lib._sel_doubleValue1); } double get floatValue { - return _lib._objc_msgSend_215(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_239(_id, _lib._sel_floatValue1); } int get intValue { - return _lib._objc_msgSend_213(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_237(_id, _lib._sel_intValue1); } int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_integerValue1); } int get longLongValue { - return _lib._objc_msgSend_214(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_238(_id, _lib._sel_longLongValue1); } bool get boolValue { return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); } - NSString? get uppercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_uppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get uppercaseString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_uppercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get lowercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get lowercaseString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_lowercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get capitalizedString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_capitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get capitalizedString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_capitalizedString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedUppercaseString { + NSString get localizedUppercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedUppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedUppercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedLowercaseString { + NSString get localizedLowercaseString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedLowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedLowercaseString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedCapitalizedString { + NSString get localizedCapitalizedString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedCapitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedCapitalizedString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_349( _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString lowercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_310( + final _ret = _lib._objc_msgSend_349( _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_310(_id, + final _ret = _lib._objc_msgSend_349(_id, _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { - return _lib._objc_msgSend_311( + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + _lib._objc_msgSend_350( _id, _lib._sel_getLineStart_end_contentsEnd_forRange_1, startPtr, @@ -30254,16 +34031,16 @@ class NSString extends NSObject { range); } - NSRange lineRangeForRange_(NSRange range) { - return _lib._objc_msgSend_309(_id, _lib._sel_lineRangeForRange_1, range); + void lineRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_348(stret, _id, _lib._sel_lineRangeForRange_1, range); } void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { - return _lib._objc_msgSend_311( + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + _lib._objc_msgSend_350( _id, _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, startPtr, @@ -30272,14 +34049,14 @@ class NSString extends NSObject { range); } - NSRange paragraphRangeForRange_(NSRange range) { - return _lib._objc_msgSend_309( - _id, _lib._sel_paragraphRangeForRange_1, range); + void paragraphRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { + _lib._objc_msgSend_348( + stret, _id, _lib._sel_paragraphRangeForRange_1, range); } - void enumerateSubstringsInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock10 block) { - return _lib._objc_msgSend_312( + void enumerateSubstringsInRange_options_usingBlock_(_NSRange range, int opts, + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_351( _id, _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, range, @@ -30287,8 +34064,8 @@ class NSString extends NSObject { block._id); } - void enumerateLinesUsingBlock_(ObjCBlock11 block) { - return _lib._objc_msgSend_313( + void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { + _lib._objc_msgSend_352( _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); } @@ -30304,20 +34081,24 @@ class NSString extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); } - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_314(_id, + NSData? dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData dataUsingEncoding_(int encoding) { + NSData? dataUsingEncoding_(int encoding) { final _ret = - _lib._objc_msgSend_315(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_354(_id, _lib._sel_dataUsingEncoding_1, encoding); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } bool canBeConvertedToEncoding_(int encoding) { - return _lib._objc_msgSend_89( + return _lib._objc_msgSend_97( _id, _lib._sel_canBeConvertedToEncoding_1, encoding); } @@ -30328,7 +34109,7 @@ class NSString extends NSObject { bool getCString_maxLength_encoding_( ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_316( + return _lib._objc_msgSend_355( _id, _lib._sel_getCString_maxLength_encoding_1, buffer, @@ -30339,12 +34120,12 @@ class NSString extends NSObject { bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( ffi.Pointer buffer, int maxBufferCount, - ffi.Pointer usedBufferCount, + ffi.Pointer usedBufferCount, int encoding, int options, - NSRange range, - NSRangePointer leftover) { - return _lib._objc_msgSend_317( + _NSRange range, + ffi.Pointer<_NSRange> leftover) { + return _lib._objc_msgSend_356( _id, _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, buffer, @@ -30357,24 +34138,24 @@ class NSString extends NSObject { } int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); } int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); } - static ffi.Pointer getAvailableStringEncodings( + static ffi.Pointer getAvailableStringEncodings( SwiftLibrary _lib) { - return _lib._objc_msgSend_318( + return _lib._objc_msgSend_357( _lib._class_NSString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( SwiftLibrary _lib, int encoding) { - final _ret = _lib._objc_msgSend_293(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_332(_lib._class_NSString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } @@ -30384,71 +34165,61 @@ class NSString extends NSObject { _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); } - NSString? get decomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( + NSString get decomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_decomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( + NSString get precomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_precomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get decomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( + NSString get decomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_decomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get precomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( + NSString get precomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_precomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_119(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_358( + _id, _lib._sel_componentsSeparatedByString_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_319( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet separator) { + final _ret = _lib._objc_msgSend_359( + _id, _lib._sel_componentsSeparatedByCharactersInSet_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_320(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + NSString stringByTrimmingCharactersInSet_(NSCharacterSet set) { + final _ret = _lib._objc_msgSend_360( + _id, _lib._sel_stringByTrimmingCharactersInSet_1, set._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { - final _ret = _lib._objc_msgSend_321( + int newLength, NSString padString, int padIndex) { + final _ret = _lib._objc_msgSend_361( _id, _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, newLength, - padString?._id ?? ffi.nullptr, + padString._id, padIndex); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_322( + final _ret = _lib._objc_msgSend_362( _id, _lib._sel_stringByFoldingWithOptions_locale_1, options, @@ -30457,77 +34228,77 @@ class NSString extends NSObject { } NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, + NSString target, + NSString replacement, int options, - NSRange searchRange) { - final _ret = _lib._objc_msgSend_323( + _NSRange searchRange) { + final _ret = _lib._objc_msgSend_363( _id, _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, + target._id, + replacement._id, options, searchRange); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { - final _ret = _lib._objc_msgSend_324( + NSString target, NSString replacement) { + final _ret = _lib._objc_msgSend_364( _id, _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); + target._id, + replacement._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingCharactersInRange_withString_( - NSRange range, NSString? replacement) { - final _ret = _lib._objc_msgSend_325( + _NSRange range, NSString replacement) { + final _ret = _lib._objc_msgSend_365( _id, _lib._sel_stringByReplacingCharactersInRange_withString_1, range, - replacement?._id ?? ffi.nullptr); + replacement._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByApplyingTransform_reverse_( - NSStringTransform transform, bool reverse) { - final _ret = _lib._objc_msgSend_326( - _id, _lib._sel_stringByApplyingTransform_reverse_1, transform, reverse); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringByApplyingTransform_reverse_( + NSString transform, bool reverse) { + final _ret = _lib._objc_msgSend_366(_id, + _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, + bool writeToURL_atomically_encoding_error_(NSURL url, bool useAuxiliaryFile, int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_327( + return _lib._objc_msgSend_367( _id, _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, useAuxiliaryFile, enc, error); } bool writeToFile_atomically_encoding_error_( - NSString? path, + NSString path, bool useAuxiliaryFile, int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_328( + return _lib._objc_msgSend_368( _id, _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, useAuxiliaryFile, enc, error); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } int get hash { @@ -30535,8 +34306,8 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_329( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_369( _id, _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, characters, @@ -30546,106 +34317,184 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock12 deallocator) { - final _ret = _lib._objc_msgSend_330( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_370( _id, _lib._sel_initWithCharactersNoCopy_length_deallocator_1, chars, len, - deallocator._id); + deallocator?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: false, release: true); } NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_331( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371( _id, _lib._sel_initWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_332( + NSString? initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_372( _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + NSString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + NSString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_333( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); + NSString format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_373( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_157(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); + NSString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_374(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_334( + NSString format, NSObject? locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_375( _id, _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, + format._id, + locale?._id ?? ffi.nullptr, argList); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_335(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_377( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_378( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithBytes_length_encoding_( + NSString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_379( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithData_encoding_(NSData data, int encoding) { + final _ret = _lib._objc_msgSend_380( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithBytes_length_encoding_( ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_336( + final _ret = _lib._objc_msgSend_381( _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( + NSString? initWithBytesNoCopy_length_encoding_freeWhenDone_( ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_337( + final _ret = _lib._objc_msgSend_382( _id, _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, bytes, len, encoding, freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: false, release: true); } - NSString initWithBytesNoCopy_length_encoding_deallocator_( + NSString? initWithBytesNoCopy_length_encoding_deallocator_( ffi.Pointer bytes, int len, int encoding, - ObjCBlock9 deallocator) { - final _ret = _lib._objc_msgSend_338( + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_383( _id, _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, bytes, len, encoding, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: false, release: true); } static NSString string(SwiftLibrary _lib) { @@ -30653,162 +34502,213 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + static NSString stringWithString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSString1, _lib._sel_stringWithString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCharacters_length_( - SwiftLibrary _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_331(_lib._class_NSString1, + static NSString stringWithCharacters_length_(SwiftLibrary _lib, + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithUTF8String_( + static NSString? stringWithUTF8String_( SwiftLibrary _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_332(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_372(_lib._class_NSString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithFormat_(SwiftLibrary _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + static NSString stringWithFormat_(SwiftLibrary _lib, NSString format) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSString1, _lib._sel_stringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString localizedStringWithFormat_( - SwiftLibrary _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString format) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCString_encoding_( + static NSString? stringWithValidatedFormat_validFormatSpecifiers_error_( + SwiftLibrary _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString? + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + SwiftLibrary _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? initWithCString_encoding_( ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_339(_id, + final _ret = _lib._objc_msgSend_384(_id, _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCString_encoding_( + static NSString? stringWithCString_encoding_( SwiftLibrary _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_340( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithContentsOfURL_encoding_error_( + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_341( + NSString? initWithContentsOfFile_encoding_error_( + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( _id, _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_encoding_error_(SwiftLibrary _lib, - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_340( + static NSString? stringWithContentsOfURL_encoding_error_(SwiftLibrary _lib, + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_encoding_error_(SwiftLibrary _lib, - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_341( + static NSString? stringWithContentsOfFile_encoding_error_(SwiftLibrary _lib, + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, + NSString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_342( + final _ret = _lib._objc_msgSend_387( _id, _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, + NSString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_343( + final _ret = _lib._objc_msgSend_388( _id, _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfURL_usedEncoding_error_( + static NSString? stringWithContentsOfURL_usedEncoding_error_( SwiftLibrary _lib, - NSURL? url, - ffi.Pointer enc, + NSURL url, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_342( + final _ret = _lib._objc_msgSend_387( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithContentsOfFile_usedEncoding_error_( + static NSString? stringWithContentsOfFile_usedEncoding_error_( SwiftLibrary _lib, - NSString? path, - ffi.Pointer enc, + NSString path, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_343( + final _ret = _lib._objc_msgSend_388( _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( SwiftLibrary _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_344( + return _lib._objc_msgSend_389( _lib._class_NSString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); @@ -30819,10 +34719,12 @@ class NSString extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_164( + NSDictionary? propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_390( _id, _lib._sel_propertyListFromStringsFileFormat1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } ffi.Pointer cString() { @@ -30838,17 +34740,17 @@ class NSString extends NSObject { } void getCString_(ffi.Pointer bytes) { - return _lib._objc_msgSend_251(_id, _lib._sel_getCString_1, bytes); + _lib._objc_msgSend_290(_id, _lib._sel_getCString_1, bytes); } void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - return _lib._objc_msgSend_345( + _lib._objc_msgSend_391( _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); } void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - int maxLength, NSRange aRange, NSRangePointer leftoverRange) { - return _lib._objc_msgSend_346( + int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { + _lib._objc_msgSend_392( _id, _lib._sel_getCString_maxLength_range_remainingRange_1, bytes, @@ -30857,181 +34759,183 @@ class NSString extends NSObject { leftoverRange); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - NSObject initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfFile_(SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_(SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithCStringNoCopy_length_freeWhenDone_( + NSObject? initWithCStringNoCopy_length_freeWhenDone_( ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_347( + final _ret = _lib._objc_msgSend_393( _id, _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, bytes, length, freeBuffer); - return NSObject._(_ret, _lib, retain: false, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } - NSObject initWithCString_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_339( + NSObject? initWithCString_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_384( _id, _lib._sel_initWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithCString_(ffi.Pointer bytes) { + NSObject? initWithCString_(ffi.Pointer bytes) { final _ret = - _lib._objc_msgSend_332(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_372(_id, _lib._sel_initWithCString_1, bytes); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( + static NSObject? stringWithCString_length_( SwiftLibrary _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSString1, _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( + static NSObject? stringWithCString_( SwiftLibrary _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_332( + final _ret = _lib._objc_msgSend_372( _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void getCharacters_(ffi.Pointer buffer) { - return _lib._objc_msgSend_348(_id, _lib._sel_getCharacters_1, buffer); + void getCharacters_(ffi.Pointer buffer) { + _lib._objc_msgSend_394(_id, _lib._sel_getCharacters_1, buffer); } NSString variantFittingPresentationWidth_(int width) { - final _ret = _lib._objc_msgSend_349( + final _ret = _lib._objc_msgSend_395( _id, _lib._sel_variantFittingPresentationWidth_1, width); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString pathWithComponents_(SwiftLibrary _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_350(_lib._class_NSString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + static NSString pathWithComponents_(SwiftLibrary _lib, NSArray components) { + final _ret = _lib._objc_msgSend_396( + _lib._class_NSString1, _lib._sel_pathWithComponents_1, components._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get pathComponents { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_pathComponents1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool get absolutePath { return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); } - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get lastPathComponent { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_lastPathComponent1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByDeletingLastPathComponent { - final _ret = _lib._objc_msgSend_20( + NSString get stringByDeletingLastPathComponent { + final _ret = _lib._objc_msgSend_21( _id, _lib._sel_stringByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingPathComponent_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); + NSString stringByAppendingPathComponent_(NSString str) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_stringByAppendingPathComponent_1, str._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get pathExtension { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_pathExtension1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByDeletingPathExtension { + NSString get stringByDeletingPathExtension { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAppendingPathExtension_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); + _lib._objc_msgSend_21(_id, _lib._sel_stringByDeletingPathExtension1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByAbbreviatingWithTildeInPath { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + NSString? stringByAppendingPathExtension_(NSString str) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_stringByAppendingPathExtension_1, str._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByExpandingTildeInPath { + NSString get stringByAbbreviatingWithTildeInPath { + final _ret = _lib._objc_msgSend_21( + _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get stringByExpandingTildeInPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByExpandingTildeInPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByStandardizingPath { + NSString get stringByStandardizingPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByStandardizingPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByStandardizingPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get stringByResolvingSymlinksInPath { + NSString get stringByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_stringByResolvingSymlinksInPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSArray stringsByAppendingPaths_(NSArray? paths) { - final _ret = _lib._objc_msgSend_63( - _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); + NSArray stringsByAppendingPaths_(NSArray paths) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_stringsByAppendingPaths_1, paths._id); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -31040,7 +34944,7 @@ class NSString extends NSObject { bool flag, ffi.Pointer> outputArray, NSArray? filterTypes) { - return _lib._objc_msgSend_351( + return _lib._objc_msgSend_397( _id, _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, outputName, @@ -31055,50 +34959,56 @@ class NSString extends NSObject { bool getFileSystemRepresentation_maxLength_( ffi.Pointer cname, int max) { - return _lib._objc_msgSend_218( + return _lib._objc_msgSend_242( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); } - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_320( + NSString? stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet allowedCharacters) { + final _ret = _lib._objc_msgSend_398( _id, _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, - allowedCharacters?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + allowedCharacters._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get stringByRemovingPercentEncoding { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByRemovingPercentEncoding1); + _lib._objc_msgSend_44(_id, _lib._sel_stringByRemovingPercentEncoding1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_293( + NSString? stringByAddingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_399( _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_293( + NSString? stringByReplacingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_399( _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + NSString scheme, int options, NSOrthography? orthography, ffi.Pointer> tokenRanges) { - final _ret = _lib._objc_msgSend_353( + final _ret = _lib._objc_msgSend_401( _id, _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, range, - scheme, + scheme._id, options, orthography?._id ?? ffi.nullptr, tokenRanges); @@ -31106,16 +35016,16 @@ class NSString extends NSObject { } void enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_( - NSRange range, - NSLinguisticTagScheme scheme, + _NSRange range, + NSString scheme, int options, NSOrthography? orthography, - ObjCBlock10 block) { - return _lib._objc_msgSend_354( + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_402( _id, _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, range, - scheme, + scheme._id, options, orthography?._id ?? ffi.nullptr, block._id); @@ -31126,6 +35036,12 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: false, release: true); } + static NSString allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSString1, _lib._sel_allocWithZone_1, zone); + return NSString._(_ret, _lib, retain: false, release: true); + } + static NSString alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); return NSString._(_ret, _lib, retain: false, release: true); @@ -31135,18 +35051,18 @@ class NSString extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSString1, + _lib._objc_msgSend_15(_lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -31161,33 +35077,29 @@ class NSString extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -31203,8 +35115,6 @@ extension StringToNSString on String { NSString toNSString(SwiftLibrary lib) => NSString(lib, this); } -typedef unichar = ffi.UnsignedShort; - class NSCoder extends NSObject { NSCoder._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -31230,425 +35140,423 @@ class NSCoder extends NSObject { void encodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer addr) { - return _lib._objc_msgSend_18( + _lib._objc_msgSend_19( _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); } - void encodeDataObject_(NSData? data) { - return _lib._objc_msgSend_248( - _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); + void encodeDataObject_(NSData data) { + _lib._objc_msgSend_285(_id, _lib._sel_encodeDataObject_1, data._id); } - NSData decodeDataObject() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? decodeDataObject() { + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_decodeDataObject1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void decodeValueOfObjCType_at_size_( ffi.Pointer type, ffi.Pointer data, int size) { - return _lib._objc_msgSend_249( + _lib._objc_msgSend_287( _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); } - int versionForClassName_(NSString? className) { - return _lib._objc_msgSend_250( - _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); + int versionForClassName_(NSString className) { + return _lib._objc_msgSend_288( + _id, _lib._sel_versionForClassName_1, className._id); } - void encodeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); + void encodeObject_(NSObject? object) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeObject_1, object?._id ?? ffi.nullptr); } void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } - void encodeBycopyObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeBycopyObject_1, anObject._id); + void encodeBycopyObject_(NSObject? anObject) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeBycopyObject_1, anObject?._id ?? ffi.nullptr); } - void encodeByrefObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeByrefObject_1, anObject._id); + void encodeByrefObject_(NSObject? anObject) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeByrefObject_1, anObject?._id ?? ffi.nullptr); } - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); + void encodeConditionalObject_(NSObject? object) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeConditionalObject_1, object?._id ?? ffi.nullptr); } void encodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_251( - _id, _lib._sel_encodeValuesOfObjCTypes_1, types); + _lib._objc_msgSend_290(_id, _lib._sel_encodeValuesOfObjCTypes_1, types); } void encodeArrayOfObjCType_count_at_( ffi.Pointer type, int count, ffi.Pointer array) { - return _lib._objc_msgSend_252( + _lib._objc_msgSend_291( _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); } void encodeBytes_length_(ffi.Pointer byteaddr, int length) { - return _lib._objc_msgSend_21( + _lib._objc_msgSend_22( _id, _lib._sel_encodeBytes_length_1, byteaddr, length); } - NSObject decodeObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodeObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectAndReturnError_( + NSObject? decodeTopLevelObjectAndReturnError_( ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_253( + final _ret = _lib._objc_msgSend_292( _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void decodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_251( - _id, _lib._sel_decodeValuesOfObjCTypes_1, types); + _lib._objc_msgSend_290(_id, _lib._sel_decodeValuesOfObjCTypes_1, types); } void decodeArrayOfObjCType_count_at_( ffi.Pointer itemType, int count, ffi.Pointer array) { - return _lib._objc_msgSend_252(_id, - _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); + _lib._objc_msgSend_291(_id, _lib._sel_decodeArrayOfObjCType_count_at_1, + itemType, count, array); } ffi.Pointer decodeBytesWithReturnedLength_( - ffi.Pointer lengthp) { - return _lib._objc_msgSend_254( + ffi.Pointer lengthp) { + return _lib._objc_msgSend_293( _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); } void encodePropertyList_(NSObject aPropertyList) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _id, _lib._sel_encodePropertyList_1, aPropertyList._id); } - NSObject decodePropertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodePropertyList() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodePropertyList1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void setObjectZone_(ffi.Pointer zone) { - return _lib._objc_msgSend_255(_id, _lib._sel_setObjectZone_1, zone); + void setObjectZone_(ffi.Pointer<_NSZone> zone) { + _lib._objc_msgSend_294(_id, _lib._sel_setObjectZone_1, zone); } - ffi.Pointer objectZone() { - return _lib._objc_msgSend_256(_id, _lib._sel_objectZone1); + ffi.Pointer<_NSZone> objectZone() { + return _lib._objc_msgSend_295(_id, _lib._sel_objectZone1); } int get systemVersion { - return _lib._objc_msgSend_191(_id, _lib._sel_systemVersion1); + return _lib._objc_msgSend_214(_id, _lib._sel_systemVersion1); } bool get allowsKeyedCoding { return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); } - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + void encodeObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + void encodeConditionalObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeConditionalObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_257( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeBool_forKey_(bool value, NSString key) { + _lib._objc_msgSend_296(_id, _lib._sel_encodeBool_forKey_1, value, key._id); } - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_258( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt_forKey_(int value, NSString key) { + _lib._objc_msgSend_297(_id, _lib._sel_encodeInt_forKey_1, value, key._id); } - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_259( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt32_forKey_(int value, NSString key) { + _lib._objc_msgSend_298(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); } - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_260( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt64_forKey_(int value, NSString key) { + _lib._objc_msgSend_299(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); } - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_261( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeFloat_forKey_(double value, NSString key) { + _lib._objc_msgSend_300(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); } - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_262( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeDouble_forKey_(double value, NSString key) { + _lib._objc_msgSend_301( + _id, _lib._sel_encodeDouble_forKey_1, value, key._id); } void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_263(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + ffi.Pointer bytes, int length, NSString key) { + _lib._objc_msgSend_302( + _id, _lib._sel_encodeBytes_length_forKey_1, bytes, length, key._id); } - bool containsValueForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); + bool containsValueForKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_containsValueForKey_1, key._id); } - NSObject decodeObjectForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodeObjectForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObjectForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_decodeObjectForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectForKey_error_( - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_264( - _id, - _lib._sel_decodeTopLevelObjectForKey_error_1, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeTopLevelObjectForKey_error_( + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_303( + _id, _lib._sel_decodeTopLevelObjectForKey_error_1, key._id, error); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool decodeBoolForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); + bool decodeBoolForKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_decodeBoolForKey_1, key._id); } - int decodeIntForKey_(NSString? key) { - return _lib._objc_msgSend_265( - _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); + int decodeIntForKey_(NSString key) { + return _lib._objc_msgSend_304(_id, _lib._sel_decodeIntForKey_1, key._id); } - int decodeInt32ForKey_(NSString? key) { - return _lib._objc_msgSend_266( - _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); + int decodeInt32ForKey_(NSString key) { + return _lib._objc_msgSend_305(_id, _lib._sel_decodeInt32ForKey_1, key._id); } - int decodeInt64ForKey_(NSString? key) { - return _lib._objc_msgSend_267( - _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); + int decodeInt64ForKey_(NSString key) { + return _lib._objc_msgSend_306(_id, _lib._sel_decodeInt64ForKey_1, key._id); } - double decodeFloatForKey_(NSString? key) { - return _lib._objc_msgSend_268( - _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); + double decodeFloatForKey_(NSString key) { + return _lib._objc_msgSend_307(_id, _lib._sel_decodeFloatForKey_1, key._id); } - double decodeDoubleForKey_(NSString? key) { - return _lib._objc_msgSend_269( - _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); + double decodeDoubleForKey_(NSString key) { + return _lib._objc_msgSend_308(_id, _lib._sel_decodeDoubleForKey_1, key._id); } ffi.Pointer decodeBytesForKey_returnedLength_( - NSString? key, ffi.Pointer lengthp) { - return _lib._objc_msgSend_270( - _id, - _lib._sel_decodeBytesForKey_returnedLength_1, - key?._id ?? ffi.nullptr, - lengthp); + NSString key, ffi.Pointer lengthp) { + return _lib._objc_msgSend_309( + _id, _lib._sel_decodeBytesForKey_returnedLength_1, key._id, lengthp); } - void encodeInteger_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_271( - _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInteger_forKey_(int value, NSString key) { + _lib._objc_msgSend_310( + _id, _lib._sel_encodeInteger_forKey_1, value, key._id); } - int decodeIntegerForKey_(NSString? key) { - return _lib._objc_msgSend_250( - _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); + int decodeIntegerForKey_(NSString key) { + return _lib._objc_msgSend_288( + _id, _lib._sel_decodeIntegerForKey_1, key._id); } bool get requiresSecureCoding { return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { - final _ret = _lib._objc_msgSend_272( - _id, - _lib._sel_decodeObjectOfClass_forKey_1, - aClass._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeObjectOfClass_forKey_(NSObject aClass, NSString key) { + final _ret = _lib._objc_msgSend_311( + _id, _lib._sel_decodeObjectOfClass_forKey_1, aClass._id, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_273( + NSObject? decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_312( _id, _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, aClass._id, - key?._id ?? ffi.nullptr, + key._id, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { - final _ret = _lib._objc_msgSend_274( - _id, - _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, - cls._id, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString key) { + final _ret = _lib._objc_msgSend_313( + _id, _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, cls._id, key._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( - NSObject keyCls, NSObject objectCls, NSString? key) { - final _ret = _lib._objc_msgSend_275( + NSDictionary? decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( + NSObject keyCls, NSObject objectCls, NSString key) { + final _ret = _lib._objc_msgSend_314( _id, _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, keyCls._id, objectCls._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + key._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_276( + NSObject? decodeObjectOfClasses_forKey_(NSSet? classes, NSString key) { + final _ret = _lib._objc_msgSend_315( _id, _lib._sel_decodeObjectOfClasses_forKey_1, classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_277( + NSObject? decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, + NSString key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_316( _id, _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr, + key._id, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_278( - _id, - _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? decodeArrayOfObjectsOfClasses_forKey_(NSSet classes, NSString key) { + final _ret = _lib._objc_msgSend_317(_id, + _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, classes._id, key._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( - NSSet? keyClasses, NSSet? objectClasses, NSString? key) { - final _ret = _lib._objc_msgSend_279( + NSDictionary? decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( + NSSet keyClasses, NSSet objectClasses, NSString key) { + final _ret = _lib._objc_msgSend_318( _id, _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, - keyClasses?._id ?? ffi.nullptr, - objectClasses?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + keyClasses._id, + objectClasses._id, + key._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject decodePropertyListForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodePropertyListForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodePropertyListForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_decodePropertyListForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSSet? get allowedClasses { - final _ret = _lib._objc_msgSend_280(_id, _lib._sel_allowedClasses1); + final _ret = _lib._objc_msgSend_319(_id, _lib._sel_allowedClasses1); return _ret.address == 0 ? null : NSSet._(_ret, _lib, retain: true, release: true); } - void failWithError_(NSError? error) { - return _lib._objc_msgSend_281( - _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); + void failWithError_(NSError error) { + _lib._objc_msgSend_320(_id, _lib._sel_failWithError_1, error._id); } int get decodingFailurePolicy { - return _lib._objc_msgSend_282(_id, _lib._sel_decodingFailurePolicy1); + return _lib._objc_msgSend_321(_id, _lib._sel_decodingFailurePolicy1); } NSError? get error { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); } void encodeNXObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); } - NSObject decodeNXObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? decodeNXObject() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_decodeNXObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void decodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer data) { - return _lib._objc_msgSend_18( + _lib._objc_msgSend_19( _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); } - void encodePoint_(NSPoint point) { - return _lib._objc_msgSend_284(_id, _lib._sel_encodePoint_1, point); + void encodePoint_(CGPoint point) { + _lib._objc_msgSend_323(_id, _lib._sel_encodePoint_1, point); } - NSPoint decodePoint() { - return _lib._objc_msgSend_54(_id, _lib._sel_decodePoint1); + void decodePoint(ffi.Pointer stret) { + _lib._objc_msgSend_59(stret, _id, _lib._sel_decodePoint1); } - void encodeSize_(NSSize size) { - return _lib._objc_msgSend_285(_id, _lib._sel_encodeSize_1, size); + void encodeSize_(CGSize size) { + _lib._objc_msgSend_324(_id, _lib._sel_encodeSize_1, size); } - NSSize decodeSize() { - return _lib._objc_msgSend_55(_id, _lib._sel_decodeSize1); + void decodeSize(ffi.Pointer stret) { + _lib._objc_msgSend_60(stret, _id, _lib._sel_decodeSize1); } - void encodeRect_(NSRect rect) { - return _lib._objc_msgSend_286(_id, _lib._sel_encodeRect_1, rect); + void encodeRect_(CGRect rect) { + _lib._objc_msgSend_325(_id, _lib._sel_encodeRect_1, rect); } - NSRect decodeRect() { - return _lib._objc_msgSend_56(_id, _lib._sel_decodeRect1); + void decodeRect(ffi.Pointer stret) { + _lib._objc_msgSend_61(stret, _id, _lib._sel_decodeRect1); } - void encodePoint_forKey_(NSPoint point, NSString? key) { - return _lib._objc_msgSend_287( - _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); + void encodePoint_forKey_(CGPoint point, NSString key) { + _lib._objc_msgSend_326(_id, _lib._sel_encodePoint_forKey_1, point, key._id); } - void encodeSize_forKey_(NSSize size, NSString? key) { - return _lib._objc_msgSend_288( - _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); + void encodeSize_forKey_(CGSize size, NSString key) { + _lib._objc_msgSend_327(_id, _lib._sel_encodeSize_forKey_1, size, key._id); } - void encodeRect_forKey_(NSRect rect, NSString? key) { - return _lib._objc_msgSend_289( - _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); + void encodeRect_forKey_(CGRect rect, NSString key) { + _lib._objc_msgSend_328(_id, _lib._sel_encodeRect_forKey_1, rect, key._id); } - NSPoint decodePointForKey_(NSString? key) { - return _lib._objc_msgSend_290( - _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); + void decodePointForKey_(ffi.Pointer stret, NSString key) { + _lib._objc_msgSend_329(stret, _id, _lib._sel_decodePointForKey_1, key._id); } - NSSize decodeSizeForKey_(NSString? key) { - return _lib._objc_msgSend_291( - _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); + void decodeSizeForKey_(ffi.Pointer stret, NSString key) { + _lib._objc_msgSend_330(stret, _id, _lib._sel_decodeSizeForKey_1, key._id); } - NSRect decodeRectForKey_(NSString? key) { - return _lib._objc_msgSend_292( - _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); + void decodeRectForKey_(ffi.Pointer stret, NSString key) { + _lib._objc_msgSend_331(stret, _id, _lib._sel_decodeRectForKey_1, key._id); + } + + @override + NSCoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCoder._(_ret, _lib, retain: true, release: true); } static NSCoder new1(SwiftLibrary _lib) { @@ -31656,6 +35564,12 @@ class NSCoder extends NSObject { return NSCoder._(_ret, _lib, retain: false, release: true); } + static NSCoder allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCoder1, _lib._sel_allocWithZone_1, zone); + return NSCoder._(_ret, _lib, retain: false, release: true); + } + static NSCoder alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); return NSCoder._(_ret, _lib, retain: false, release: true); @@ -31665,18 +35579,18 @@ class NSCoder extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCoder1, + _lib._objc_msgSend_15(_lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -31691,33 +35605,29 @@ class NSCoder extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -31756,67 +35666,63 @@ class NSData extends NSObject { } ffi.Pointer get bytes { - return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); + return _lib._objc_msgSend_20(_id, _lib._sel_bytes1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } void getBytes_length_(ffi.Pointer buffer, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_getBytes_length_1, buffer, length); + _lib._objc_msgSend_22(_id, _lib._sel_getBytes_length_1, buffer, length); } - void getBytes_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_22( - _id, _lib._sel_getBytes_range_1, buffer, range); + void getBytes_range_(ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_23(_id, _lib._sel_getBytes_range_1, buffer, range); } - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_23( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + bool isEqualToData_(NSData other) { + return _lib._objc_msgSend_24(_id, _lib._sel_isEqualToData_1, other._id); } - NSData subdataWithRange_(NSRange range) { + NSData subdataWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_24(_id, _lib._sel_subdataWithRange_1, range); + _lib._objc_msgSend_25(_id, _lib._sel_subdataWithRange_1, range); return NSData._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - bool writeToFile_options_error_(NSString? path, int writeOptionsMask, + bool writeToFile_options_error_(NSString path, int writeOptionsMask, ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_233(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_269(_id, _lib._sel_writeToFile_options_error_1, + path._id, writeOptionsMask, errorPtr); } - bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, + bool writeToURL_options_error_(NSURL url, int writeOptionsMask, ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_234(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_270(_id, _lib._sel_writeToURL_options_error_1, + url._id, writeOptionsMask, errorPtr); } - NSRange rangeOfData_options_range_( - NSData? dataToFind, int mask, NSRange searchRange) { - return _lib._objc_msgSend_235(_id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); + void rangeOfData_options_range_(ffi.Pointer<_NSRange> stret, + NSData dataToFind, int mask, _NSRange searchRange) { + _lib._objc_msgSend_271(stret, _id, _lib._sel_rangeOfData_options_range_1, + dataToFind._id, mask, searchRange); } - void enumerateByteRangesUsingBlock_(ObjCBlock8 block) { - return _lib._objc_msgSend_236( + void enumerateByteRangesUsingBlock_( + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_272( _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); } @@ -31827,219 +35733,258 @@ class NSData extends NSObject { static NSData dataWithBytes_length_( SwiftLibrary _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237( + final _ret = _lib._objc_msgSend_273( _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } static NSData dataWithBytesNoCopy_length_( SwiftLibrary _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_273(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } static NSData dataWithBytesNoCopy_length_freeWhenDone_( SwiftLibrary _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_238(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_274(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSData._(_ret, _lib, retain: false, release: true); } - static NSData dataWithContentsOfFile_options_error_( + static NSData? dataWithContentsOfFile_options_error_( SwiftLibrary _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_239( + final _ret = _lib._objc_msgSend_275( _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_options_error_( + static NSData? dataWithContentsOfURL_options_error_( SwiftLibrary _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_240( + final _ret = _lib._objc_msgSend_276( _lib._class_NSData1, _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfFile_(SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfFile_(SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237( + final _ret = _lib._objc_msgSend_273( _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237( + final _ret = _lib._objc_msgSend_273( _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } NSData initWithBytesNoCopy_length_freeWhenDone_( ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_238(_id, + final _ret = _lib._objc_msgSend_274(_id, _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, int length, ObjCBlock9 deallocator) { - final _ret = _lib._objc_msgSend_241( + NSData initWithBytesNoCopy_length_deallocator_(ffi.Pointer bytes, + int length, ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_278( _id, _lib._sel_initWithBytesNoCopy_length_deallocator_1, bytes, length, - deallocator._id); + deallocator?._id ?? ffi.nullptr); return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithContentsOfFile_options_error_(NSString? path, + NSData? initWithContentsOfFile_options_error_(NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_239( + final _ret = _lib._objc_msgSend_275( _id, _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, + NSData? initWithContentsOfURL_options_error_(NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_240( + final _ret = _lib._objc_msgSend_276( _id, _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithData_(SwiftLibrary _lib, NSData? data) { - final _ret = _lib._objc_msgSend_242(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSData dataWithData_(SwiftLibrary _lib, NSData data) { + final _ret = _lib._objc_msgSend_279( + _lib._class_NSData1, _lib._sel_dataWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_243( + NSData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_280( _id, _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, + base64String._id, options); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_244( + final _ret = _lib._objc_msgSend_281( _id, _lib._sel_base64EncodedStringWithOptions_1, options); return NSString._(_ret, _lib, retain: true, release: true); } - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_245( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? initWithBase64EncodedData_options_(NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_246( + final _ret = _lib._objc_msgSend_283( _id, _lib._sel_base64EncodedDataWithOptions_1, options); return NSData._(_ret, _lib, retain: true, release: true); } - NSData decompressedDataUsingAlgorithm_error_( + NSData? decompressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_247(_id, + final _ret = _lib._objc_msgSend_284(_id, _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData compressedDataUsingAlgorithm_error_( + NSData? compressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_247( + final _ret = _lib._objc_msgSend_284( _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void getBytes_(ffi.Pointer buffer) { - return _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); + _lib._objc_msgSend_52(_id, _lib._sel_getBytes_1, buffer); } - static NSObject dataWithContentsOfMappedFile_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dataWithContentsOfMappedFile_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithContentsOfMappedFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithContentsOfMappedFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithBase64Encoding_(NSString? base64String) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_initWithBase64Encoding_1, - base64String?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithBase64Encoding_(NSString base64String) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithBase64Encoding_1, base64String._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSString base64Encoding() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_base64Encoding1); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSData._(_ret, _lib, retain: true, release: true); + } + static NSData new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); return NSData._(_ret, _lib, retain: false, release: true); } + static NSData allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSData1, _lib._sel_allocWithZone_1, zone); + return NSData._(_ret, _lib, retain: false, release: true); + } + static NSData alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); return NSData._(_ret, _lib, retain: false, release: true); @@ -32049,18 +35994,18 @@ class NSData extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSData1, + _lib._objc_msgSend_15(_lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32075,33 +36020,29 @@ class NSData extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -32113,13 +36054,11 @@ class NSData extends NSObject { } } -typedef NSRange = _NSRange; - final class _NSRange extends ffi.Struct { - @NSUInteger() + @ffi.UnsignedLong() external int location; - @NSUInteger() + @ffi.UnsignedLong() external int length; } @@ -32145,92 +36084,88 @@ class NSURL extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); } - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { - final _ret = _lib._objc_msgSend_26( + NSURL? initWithScheme_host_path_( + NSString scheme, NSString? host, NSString path) { + final _ret = _lib._objc_msgSend_27( _id, _lib._sel_initWithScheme_host_path_1, - scheme?._id ?? ffi.nullptr, + scheme._id, host?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + path._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_27( + NSString path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( _id, _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, isDir, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + NSURL initFileURLWithPath_relativeToURL_(NSString path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_29( _id, _lib._sel_initFileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initFileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + NSURL initFileURLWithPath_isDirectory_(NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initFileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + NSURL initFileURLWithPath_(NSString path) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initFileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_isDirectory_relativeToURL_( - SwiftLibrary _lib, NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_31( + SwiftLibrary _lib, NSString path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_32( _lib._class_NSURL1, _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, isDir, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_relativeToURL_( - SwiftLibrary _lib, NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_32( + SwiftLibrary _lib, NSString path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_33( _lib._class_NSURL1, _lib._sel_fileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, + path._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL fileURLWithPath_isDirectory_( - SwiftLibrary _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_33( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + SwiftLibrary _lib, NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL fileURLWithPath_(SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + static NSURL fileURLWithPath_(SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_35( + _lib._class_NSURL1, _lib._sel_fileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_35( + final _ret = _lib._objc_msgSend_36( _id, _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, path, @@ -32244,7 +36179,7 @@ class NSURL extends NSObject { ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_36( + final _ret = _lib._objc_msgSend_37( _lib._class_NSURL1, _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, path, @@ -32253,184 +36188,211 @@ class NSURL extends NSObject { return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? initWithString_(NSString URLString) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + NSURL? initWithString_relativeToURL_(NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( _id, _lib._sel_initWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, + URLString._id, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_(SwiftLibrary _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSURL1, - _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? URLWithString_(SwiftLibrary _lib, NSString URLString) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, _lib._sel_URLWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURL URLWithString_relativeToURL_( - SwiftLibrary _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( + static NSURL? URLWithString_relativeToURL_( + SwiftLibrary _lib, NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_39( _lib._class_NSURL1, _lib._sel_URLWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, + URLString._id, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( + NSURL? initWithString_encodingInvalidCharacters_( + NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_40( + _id, + _lib._sel_initWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL? URLWithString_encodingInvalidCharacters_( + SwiftLibrary _lib, NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_40( + _lib._class_NSURL1, + _lib._sel_URLWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initWithDataRepresentation_relativeToURL_(NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL URLWithDataRepresentation_relativeToURL_( - SwiftLibrary _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( + SwiftLibrary _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_42( _lib._class_NSURL1, _lib._sel_URLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( + NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - SwiftLibrary _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( + SwiftLibrary _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_42( _lib._class_NSURL1, _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } - NSData? get dataRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_dataRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get dataRepresentation { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_dataRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } NSString? get absoluteString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_absoluteString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get relativeString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativeString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get relativeString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_relativeString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSURL? get baseURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_baseURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_absoluteURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get scheme { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scheme1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_resourceSpecifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_host1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSNumber? get port { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_port1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_port1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_path1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get fragment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fragment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get parameterString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_parameterString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get query { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_query1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get relativePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_relativePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -32442,7 +36404,7 @@ class NSURL extends NSObject { bool getFileSystemRepresentation_maxLength_( ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_218( + return _lib._objc_msgSend_242( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, buffer, @@ -32458,7 +36420,7 @@ class NSURL extends NSObject { } NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_standardizedURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -32466,7 +36428,7 @@ class NSURL extends NSObject { bool checkResourceIsReachableAndReturnError_( ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); } @@ -32474,13 +36436,15 @@ class NSURL extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); } - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? fileReferenceURL() { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileReferenceURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_filePathURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -32488,112 +36452,274 @@ class NSURL extends NSObject { bool getResourceValue_forKey_error_( ffi.Pointer> value, - NSURLResourceKey key, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_244( + _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); + } + + NSObject? resourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_245( + _id, _lib._sel_resourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + bool setResourceValue_forKey_error_(NSObject? value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_220( - _id, _lib._sel_getResourceValue_forKey_error_1, value, key, error); + return _lib._objc_msgSend_246( + _id, + _lib._sel_setResourceValue_forKey_error_1, + value?._id ?? ffi.nullptr, + key._id, + error); + } + + bool setResourceValues_error_( + NSObject keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_247( + _id, _lib._sel_setResourceValues_error_1, keyedValues._id, error); + } + + void removeCachedResourceValueForKey_(NSString key) { + _lib._objc_msgSend_248( + _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); + } + + void removeAllCachedResourceValues() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + } + + void setTemporaryResourceValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_setTemporaryResourceValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); + } + + NSData? + bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( + int options, + NSArray? keys, + NSURL? relativeURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_249( + _id, + _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, + options, + keys?._id ?? ffi.nullptr, + relativeURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSURL? + initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_250( + _id, + _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData._id, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL? + URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + SwiftLibrary _lib, + NSData bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_250( + _lib._class_NSURL1, + _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData._id, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSObject? resourceValuesForKeys_fromBookmarkData_( + SwiftLibrary _lib, NSArray keys, NSData bookmarkData) { + final _ret = _lib._objc_msgSend_251( + _lib._class_NSURL1, + _lib._sel_resourceValuesForKeys_fromBookmarkData_1, + keys._id, + bookmarkData._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static bool writeBookmarkData_toURL_options_error_( + SwiftLibrary _lib, + NSData bookmarkData, + NSURL bookmarkFileURL, + int options, + ffi.Pointer> error) { + return _lib._objc_msgSend_252( + _lib._class_NSURL1, + _lib._sel_writeBookmarkData_toURL_options_error_1, + bookmarkData._id, + bookmarkFileURL._id, + options, + error); + } + + static NSData? bookmarkDataWithContentsOfURL_error_(SwiftLibrary _lib, + NSURL bookmarkFileURL, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_253( + _lib._class_NSURL1, + _lib._sel_bookmarkDataWithContentsOfURL_error_1, + bookmarkFileURL._id, + error); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + static NSURL? URLByResolvingAliasFileAtURL_options_error_(SwiftLibrary _lib, + NSURL url, int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSURL1, + _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, + url._id, + options, + error); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + bool startAccessingSecurityScopedResource() { + return _lib._objc_msgSend_12( + _id, _lib._sel_startAccessingSecurityScopedResource1); + } + + void stopAccessingSecurityScopedResource() { + _lib._objc_msgSend_1(_id, _lib._sel_stopAccessingSecurityScopedResource1); } bool getPromisedItemResourceValue_forKey_error_( ffi.Pointer> value, - NSURLResourceKey key, + NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_220( + return _lib._objc_msgSend_244( _id, _lib._sel_getPromisedItemResourceValue_forKey_error_1, value, - key, + key._id, error); } - NSDictionary promisedItemResourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_221( - _id, - _lib._sel_promisedItemResourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? promisedItemResourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_255(_id, + _lib._sel_promisedItemResourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } bool checkPromisedItemIsReachableAndReturnError_( ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); } - static NSURL fileURLWithPathComponents_( - SwiftLibrary _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_222(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? fileURLWithPathComponents_( + SwiftLibrary _lib, NSArray components) { + final _ret = _lib._objc_msgSend_256(_lib._class_NSURL1, + _lib._sel_fileURLWithPathComponents_1, components._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_pathComponents1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_pathComponents1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_lastPathComponent1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_pathExtension1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathComponent_(NSString? pathComponent) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathComponent_1, - pathComponent?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? URLByAppendingPathComponent_(NSString pathComponent) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_URLByAppendingPathComponent_1, pathComponent._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathComponent_isDirectory_( - NSString? pathComponent, bool isDirectory) { - final _ret = _lib._objc_msgSend_33( + NSURL? URLByAppendingPathComponent_isDirectory_( + NSString pathComponent, bool isDirectory) { + final _ret = _lib._objc_msgSend_258( _id, _lib._sel_URLByAppendingPathComponent_isDirectory_1, - pathComponent?._id ?? ffi.nullptr, + pathComponent._id, isDirectory); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get URLByDeletingLastPathComponent { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); + _lib._objc_msgSend_45(_id, _lib._sel_URLByDeletingLastPathComponent1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLByAppendingPathExtension_(NSString? pathExtension) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathExtension_1, - pathExtension?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? URLByAppendingPathExtension_(NSString pathExtension) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_URLByAppendingPathExtension_1, pathExtension._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get URLByDeletingPathExtension { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingPathExtension1); + _lib._objc_msgSend_45(_id, _lib._sel_URLByDeletingPathExtension1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get URLByStandardizingPath { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URLByStandardizingPath1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URLByStandardizingPath1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -32601,47 +36727,58 @@ class NSURL extends NSObject { NSURL? get URLByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByResolvingSymlinksInPath1); + _lib._objc_msgSend_45(_id, _lib._sel_URLByResolvingSymlinksInPath1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_223( + NSData? resourceDataUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_259( _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void loadResourceDataNotifyingClient_usingCache_( NSObject client, bool shouldUseCache) { - return _lib._objc_msgSend_224( + _lib._objc_msgSend_260( _id, _lib._sel_loadResourceDataNotifyingClient_usingCache_1, client._id, shouldUseCache); } - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? propertyForKey_(NSString propertyKey) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_propertyForKey_1, propertyKey._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); + bool setResourceData_(NSData data) { + return _lib._objc_msgSend_24(_id, _lib._sel_setResourceData_1, data._id); } - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_225(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); + bool setProperty_forKey_(NSObject property, NSString propertyKey) { + return _lib._objc_msgSend_261( + _id, _lib._sel_setProperty_forKey_1, property._id, propertyKey._id); } - NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_232( + NSURLHandle? URLHandleUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_268( _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURLHandle._(_ret, _lib, retain: true, release: true); + } + + @override + NSURL init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURL._(_ret, _lib, retain: true, release: true); } static NSURL new1(SwiftLibrary _lib) { @@ -32649,6 +36786,12 @@ class NSURL extends NSObject { return NSURL._(_ret, _lib, retain: false, release: true); } + static NSURL allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURL1, _lib._sel_allocWithZone_1, zone); + return NSURL._(_ret, _lib, retain: false, release: true); + } + static NSURL alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); return NSURL._(_ret, _lib, retain: false, release: true); @@ -32658,18 +36801,18 @@ class NSURL extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURL1, + _lib._objc_msgSend_15(_lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32684,33 +36827,29 @@ class NSURL extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURL1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURL1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURL1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURL1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURL1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -32746,121 +36885,123 @@ class NSNumber extends NSValue { } @override - NSNumber initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithChar_(int value) { - final _ret = _lib._objc_msgSend_196(_id, _lib._sel_initWithChar_1, value); + final _ret = _lib._objc_msgSend_220(_id, _lib._sel_initWithChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedChar_(int value) { final _ret = - _lib._objc_msgSend_197(_id, _lib._sel_initWithUnsignedChar_1, value); + _lib._objc_msgSend_221(_id, _lib._sel_initWithUnsignedChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_initWithShort_1, value); + final _ret = _lib._objc_msgSend_222(_id, _lib._sel_initWithShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedShort_(int value) { final _ret = - _lib._objc_msgSend_199(_id, _lib._sel_initWithUnsignedShort_1, value); + _lib._objc_msgSend_223(_id, _lib._sel_initWithUnsignedShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_200(_id, _lib._sel_initWithInt_1, value); + final _ret = _lib._objc_msgSend_224(_id, _lib._sel_initWithInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedInt_(int value) { final _ret = - _lib._objc_msgSend_201(_id, _lib._sel_initWithUnsignedInt_1, value); + _lib._objc_msgSend_225(_id, _lib._sel_initWithUnsignedInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_202(_id, _lib._sel_initWithLong_1, value); + final _ret = _lib._objc_msgSend_226(_id, _lib._sel_initWithLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLong_(int value) { final _ret = - _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedLong_1, value); + _lib._objc_msgSend_227(_id, _lib._sel_initWithUnsignedLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLongLong_(int value) { final _ret = - _lib._objc_msgSend_204(_id, _lib._sel_initWithLongLong_1, value); + _lib._objc_msgSend_228(_id, _lib._sel_initWithLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLongLong_(int value) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_229( _id, _lib._sel_initWithUnsignedLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithFloat_1, value); + final _ret = _lib._objc_msgSend_230(_id, _lib._sel_initWithFloat_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_207(_id, _lib._sel_initWithDouble_1, value); + final _ret = _lib._objc_msgSend_231(_id, _lib._sel_initWithDouble_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_208(_id, _lib._sel_initWithBool_1, value); + final _ret = _lib._objc_msgSend_232(_id, _lib._sel_initWithBool_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithInteger_(int value) { final _ret = - _lib._objc_msgSend_202(_id, _lib._sel_initWithInteger_1, value); + _lib._objc_msgSend_226(_id, _lib._sel_initWithInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedInteger_(int value) { final _ret = - _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedInteger_1, value); + _lib._objc_msgSend_227(_id, _lib._sel_initWithUnsignedInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } int get charValue { - return _lib._objc_msgSend_209(_id, _lib._sel_charValue1); + return _lib._objc_msgSend_233(_id, _lib._sel_charValue1); } int get unsignedCharValue { - return _lib._objc_msgSend_210(_id, _lib._sel_unsignedCharValue1); + return _lib._objc_msgSend_234(_id, _lib._sel_unsignedCharValue1); } int get shortValue { - return _lib._objc_msgSend_211(_id, _lib._sel_shortValue1); + return _lib._objc_msgSend_235(_id, _lib._sel_shortValue1); } int get unsignedShortValue { - return _lib._objc_msgSend_212(_id, _lib._sel_unsignedShortValue1); + return _lib._objc_msgSend_236(_id, _lib._sel_unsignedShortValue1); } int get intValue { - return _lib._objc_msgSend_213(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_237(_id, _lib._sel_intValue1); } int get unsignedIntValue { - return _lib._objc_msgSend_191(_id, _lib._sel_unsignedIntValue1); + return _lib._objc_msgSend_214(_id, _lib._sel_unsignedIntValue1); } int get longValue { - return _lib._objc_msgSend_78(_id, _lib._sel_longValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_longValue1); } int get unsignedLongValue { @@ -32868,19 +37009,19 @@ class NSNumber extends NSValue { } int get longLongValue { - return _lib._objc_msgSend_214(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_238(_id, _lib._sel_longLongValue1); } int get unsignedLongLongValue { - return _lib._objc_msgSend_148(_id, _lib._sel_unsignedLongLongValue1); + return _lib._objc_msgSend_164(_id, _lib._sel_unsignedLongLongValue1); } double get floatValue { - return _lib._objc_msgSend_215(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_239(_id, _lib._sel_floatValue1); } double get doubleValue { - return _lib._objc_msgSend_149(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_165(_id, _lib._sel_doubleValue1); } bool get boolValue { @@ -32888,189 +37029,205 @@ class NSNumber extends NSValue { } int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_integerValue1); } int get unsignedIntegerValue { return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get stringValue { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_stringValue1); + return NSString._(_ret, _lib, retain: true, release: true); } - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_216( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + int compare_(NSNumber otherNumber) { + return _lib._objc_msgSend_240(_id, _lib._sel_compare_1, otherNumber._id); } - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_217( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + bool isEqualToNumber_(NSNumber number) { + return _lib._objc_msgSend_241(_id, _lib._sel_isEqualToNumber_1, number._id); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithChar_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_196( + final _ret = _lib._objc_msgSend_220( _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedChar_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_197( + final _ret = _lib._objc_msgSend_221( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithShort_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_198( + final _ret = _lib._objc_msgSend_222( _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedShort_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_199( + final _ret = _lib._objc_msgSend_223( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInt_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_200( + final _ret = _lib._objc_msgSend_224( _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInt_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_201( + final _ret = _lib._objc_msgSend_225( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLong_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_202( + final _ret = _lib._objc_msgSend_226( _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLong_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_203( + final _ret = _lib._objc_msgSend_227( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLongLong_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_204( + final _ret = _lib._objc_msgSend_228( _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLongLong_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_205( + final _ret = _lib._objc_msgSend_229( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithFloat_(SwiftLibrary _lib, double value) { - final _ret = _lib._objc_msgSend_206( + final _ret = _lib._objc_msgSend_230( _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithDouble_(SwiftLibrary _lib, double value) { - final _ret = _lib._objc_msgSend_207( + final _ret = _lib._objc_msgSend_231( _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithBool_(SwiftLibrary _lib, bool value) { - final _ret = _lib._objc_msgSend_208( + final _ret = _lib._objc_msgSend_232( _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInteger_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_202( + final _ret = _lib._objc_msgSend_226( _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInteger_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_203( + final _ret = _lib._objc_msgSend_227( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } + @override + NSNumber initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_46( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + static NSValue valueWithBytes_objCType_(SwiftLibrary _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43(_lib._class_NSNumber1, + final _ret = _lib._objc_msgSend_48(_lib._class_NSNumber1, _lib._sel_valueWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue value_withObjCType_(SwiftLibrary _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( + final _ret = _lib._objc_msgSend_48( _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithNonretainedObject_( - SwiftLibrary _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + SwiftLibrary _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( SwiftLibrary _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( + final _ret = _lib._objc_msgSend_50( _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRange_(SwiftLibrary _lib, NSRange range) { - final _ret = _lib._objc_msgSend_48( + static NSValue valueWithRange_(SwiftLibrary _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_53( _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithPoint_(SwiftLibrary _lib, NSPoint point) { - final _ret = _lib._objc_msgSend_50( + static NSValue valueWithPoint_(SwiftLibrary _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_55( _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithSize_(SwiftLibrary _lib, NSSize size) { - final _ret = _lib._objc_msgSend_51( + static NSValue valueWithSize_(SwiftLibrary _lib, CGSize size) { + final _ret = _lib._objc_msgSend_56( _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRect_(SwiftLibrary _lib, NSRect rect) { - final _ret = _lib._objc_msgSend_52( + static NSValue valueWithRect_(SwiftLibrary _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_57( _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithEdgeInsets_(SwiftLibrary _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( + final _ret = _lib._objc_msgSend_58( _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); return NSValue._(_ret, _lib, retain: true, release: true); } + @override + NSNumber init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + static NSNumber new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); return NSNumber._(_ret, _lib, retain: false, release: true); } + static NSNumber allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNumber1, _lib._sel_allocWithZone_1, zone); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + static NSNumber alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); return NSNumber._(_ret, _lib, retain: false, release: true); @@ -33080,18 +37237,18 @@ class NSNumber extends NSValue { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNumber1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumber1, + _lib._objc_msgSend_15(_lib._class_NSNumber1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -33106,33 +37263,29 @@ class NSNumber extends NSValue { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumber1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNumber1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNumber1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNumber1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNumber1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -33168,7 +37321,7 @@ class NSValue extends NSObject { } void getValue_size_(ffi.Pointer value, int size) { - return _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); + _lib._objc_msgSend_22(_id, _lib._sel_getValue_size_1, value, size); } ffi.Pointer get objCType { @@ -33177,111 +37330,120 @@ class NSValue extends NSObject { NSValue initWithBytes_objCType_( ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_41( + final _ret = _lib._objc_msgSend_46( _id, _lib._sel_initWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } - NSValue initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSValue._(_ret, _lib, retain: true, release: true); + NSValue? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithBytes_objCType_(SwiftLibrary _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( + final _ret = _lib._objc_msgSend_48( _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue value_withObjCType_(SwiftLibrary _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( + final _ret = _lib._objc_msgSend_48( _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithNonretainedObject_( - SwiftLibrary _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + SwiftLibrary _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSValue1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); return NSValue._(_ret, _lib, retain: true, release: true); } - NSObject get nonretainedObjectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get nonretainedObjectValue { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_nonretainedObjectValue1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( SwiftLibrary _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( + final _ret = _lib._objc_msgSend_50( _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); return NSValue._(_ret, _lib, retain: true, release: true); } ffi.Pointer get pointerValue { - return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); + return _lib._objc_msgSend_20(_id, _lib._sel_pointerValue1); } - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_46( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + bool isEqualToValue_(NSValue value) { + return _lib._objc_msgSend_51(_id, _lib._sel_isEqualToValue_1, value._id); } void getValue_(ffi.Pointer value) { - return _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + _lib._objc_msgSend_52(_id, _lib._sel_getValue_1, value); } - static NSValue valueWithRange_(SwiftLibrary _lib, NSRange range) { - final _ret = _lib._objc_msgSend_48( + static NSValue valueWithRange_(SwiftLibrary _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_53( _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); return NSValue._(_ret, _lib, retain: true, release: true); } - NSRange get rangeValue { - return _lib._objc_msgSend_49(_id, _lib._sel_rangeValue1); + void getRangeValue(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_rangeValue1); } - static NSValue valueWithPoint_(SwiftLibrary _lib, NSPoint point) { - final _ret = _lib._objc_msgSend_50( + static NSValue valueWithPoint_(SwiftLibrary _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_55( _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithSize_(SwiftLibrary _lib, NSSize size) { - final _ret = _lib._objc_msgSend_51( + static NSValue valueWithSize_(SwiftLibrary _lib, CGSize size) { + final _ret = _lib._objc_msgSend_56( _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithRect_(SwiftLibrary _lib, NSRect rect) { - final _ret = _lib._objc_msgSend_52( + static NSValue valueWithRect_(SwiftLibrary _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_57( _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithEdgeInsets_(SwiftLibrary _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( + final _ret = _lib._objc_msgSend_58( _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); return NSValue._(_ret, _lib, retain: true, release: true); } - NSPoint get pointValue { - return _lib._objc_msgSend_54(_id, _lib._sel_pointValue1); + void getPointValue(ffi.Pointer stret) { + _lib._objc_msgSend_59(stret, _id, _lib._sel_pointValue1); + } + + void getSizeValue(ffi.Pointer stret) { + _lib._objc_msgSend_60(stret, _id, _lib._sel_sizeValue1); } - NSSize get sizeValue { - return _lib._objc_msgSend_55(_id, _lib._sel_sizeValue1); + void getRectValue(ffi.Pointer stret) { + _lib._objc_msgSend_61(stret, _id, _lib._sel_rectValue1); } - NSRect get rectValue { - return _lib._objc_msgSend_56(_id, _lib._sel_rectValue1); + void getEdgeInsetsValue(ffi.Pointer stret) { + _lib._objc_msgSend_62(stret, _id, _lib._sel_edgeInsetsValue1); } - NSEdgeInsets get edgeInsetsValue { - return _lib._objc_msgSend_57(_id, _lib._sel_edgeInsetsValue1); + @override + NSValue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue new1(SwiftLibrary _lib) { @@ -33289,6 +37451,12 @@ class NSValue extends NSObject { return NSValue._(_ret, _lib, retain: false, release: true); } + static NSValue allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSValue1, _lib._sel_allocWithZone_1, zone); + return NSValue._(_ret, _lib, retain: false, release: true); + } + static NSValue alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); return NSValue._(_ret, _lib, retain: false, release: true); @@ -33298,18 +37466,18 @@ class NSValue extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSValue1, + _lib._objc_msgSend_15(_lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -33324,33 +37492,29 @@ class NSValue extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSValue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSValue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSValue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSValue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSValue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -33362,29 +37526,22 @@ class NSValue extends NSObject { } } -typedef NSPoint = CGPoint; - final class CGPoint extends ffi.Struct { - @CGFloat() + @ffi.Double() external double x; - @CGFloat() + @ffi.Double() external double y; } -typedef CGFloat = ffi.Double; -typedef NSSize = CGSize; - final class CGSize extends ffi.Struct { - @CGFloat() + @ffi.Double() external double width; - @CGFloat() + @ffi.Double() external double height; } -typedef NSRect = CGRect; - final class CGRect extends ffi.Struct { external CGPoint origin; @@ -33392,16 +37549,16 @@ final class CGRect extends ffi.Struct { } final class NSEdgeInsets extends ffi.Struct { - @CGFloat() + @ffi.Double() external double top; - @CGFloat() + @ffi.Double() external double left; - @CGFloat() + @ffi.Double() external double bottom; - @CGFloat() + @ffi.Double() external double right; } @@ -33433,7 +37590,7 @@ class NSArray extends NSObject { } NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, index); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndex_1, index); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -33445,34 +37602,34 @@ class NSArray extends NSObject { NSArray initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } NSArray arrayByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_62( + final _ret = _lib._objc_msgSend_67( _id, _lib._sel_arrayByAddingObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); + NSArray arrayByAddingObjectsFromArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_arrayByAddingObjectsFromArray_1, otherArray._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + NSString componentsJoinedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_componentsJoinedByString_1, separator._id); return NSString._(_ret, _lib, retain: true, release: true); } @@ -33480,96 +37637,100 @@ class NSArray extends NSObject { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); return NSString._(_ret, _lib, retain: true, release: true); } - NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_67(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? firstObjectCommonWithArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_72( + _id, _lib._sel_firstObjectCommonWithArray_1, otherArray._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } void getObjects_range_( - ffi.Pointer> objects, NSRange range) { - return _lib._objc_msgSend_68( - _id, _lib._sel_getObjects_range_1, objects, range); + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_73(_id, _lib._sel_getObjects_range_1, objects, range); } int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, anObject._id); + return _lib._objc_msgSend_74(_id, _lib._sel_indexOfObject_1, anObject._id); } - int indexOfObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_70( + int indexOfObject_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_75( _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); } int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_69( + return _lib._objc_msgSend_74( _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); } - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_70( + int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_75( _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); } - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_71( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + bool isEqualToArray_(NSArray otherArray) { + return _lib._objc_msgSend_76( + _id, _lib._sel_isEqualToArray_1, otherArray._id); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get firstObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_firstObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get lastObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_lastObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_reverseObjectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_sortedArrayHint1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get sortedArrayHint { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_sortedArrayHint1); + return NSData._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayUsingFunction_context_( ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context) { - final _ret = _lib._objc_msgSend_73( + final _ret = _lib._objc_msgSend_78( _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -33577,12 +37738,12 @@ class NSArray extends NSObject { NSArray sortedArrayUsingFunction_context_hint_( ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context, NSData? hint) { - final _ret = _lib._objc_msgSend_74( + final _ret = _lib._objc_msgSend_79( _id, _lib._sel_sortedArrayUsingFunction_context_hint_1, comparator, @@ -33592,98 +37753,103 @@ class NSArray extends NSObject { } NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( + final _ret = _lib._objc_msgSend_80( _id, _lib._sel_sortedArrayUsingSelector_1, comparator); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray subarrayWithRange_(NSRange range) { + NSArray subarrayWithRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_76(_id, _lib._sel_subarrayWithRange_1, range); + _lib._objc_msgSend_81(_id, _lib._sel_subarrayWithRange_1, range); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_81( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_writeToURL_error_1, url._id, error); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( + _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_82( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_90( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, - argument._id); + argument?._id ?? ffi.nullptr); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_111(_id, _lib._sel_objectsAtIndexes_1, indexes._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSObject objectAtIndexedSubscript_(int idx) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndexedSubscript_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock3 block) { - return _lib._objc_msgSend_104( + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_112( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_105(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_113(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_106( + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_114( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, + s._id, opts, block._id); } - int indexOfObjectPassingTest_(ObjCBlock4 predicate) { - return _lib._objc_msgSend_107( + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_115( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_108(_id, + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_116(_id, _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_109( + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_117( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_110( + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_118( _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_111( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_119( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, opts, @@ -33691,39 +37857,43 @@ class NSArray extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_112( + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_120( _id, _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSArray sortedArrayUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_113( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_114( - _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_122(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, NSRange r, int opts, NSComparator cmp) { - return _lib._objc_msgSend_115( + NSObject obj, + _NSRange r, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_123( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, obj._id, r, opts, - cmp); + cmp._id); } static NSArray array(SwiftLibrary _lib) { @@ -33732,205 +37902,234 @@ class NSArray extends NSObject { } static NSArray arrayWithObject_(SwiftLibrary _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_count_(SwiftLibrary _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_(SwiftLibrary _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithArray_(SwiftLibrary _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + static NSArray arrayWithArray_(SwiftLibrary _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSArray1, _lib._sel_arrayWithArray_1, array._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + NSArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); return NSArray._(_ret, _lib, retain: false, release: true); } - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_117( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_127( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_(SwiftLibrary _lib, NSURL? url, + static NSArray? arrayWithContentsOfURL_error_(SwiftLibrary _lib, NSURL url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_117( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + final _ret = _lib._objc_msgSend_127(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_usingEquivalenceTest_( + NSArray other, int options, ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_128( + _id, + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other._id, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_(NSArray other, int options) { + final _ret = _lib._objc_msgSend_129( + _id, _lib._sel_differenceFromArray_withOptions_1, other._id, options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_(NSArray other) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_differenceFromArray_1, other._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? arrayByApplyingDifference_(NSObject difference) { + final _ret = _lib._objc_msgSend_130( + _id, _lib._sel_arrayByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } void getObjects_(ffi.Pointer> objects) { - return _lib._objc_msgSend_118(_id, _lib._sel_getObjects_1, objects); + _lib._objc_msgSend_131(_id, _lib._sel_getObjects_1, objects); } - static NSArray arrayWithContentsOfFile_(SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_119(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfFile_(SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_132( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_120(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_133( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_132( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_120( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_133(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - NSArray pathsMatchingExtensions_(NSArray? filterTypes) { - final _ret = _lib._objc_msgSend_63(_id, _lib._sel_pathsMatchingExtensions_1, - filterTypes?._id ?? ffi.nullptr); + NSArray pathsMatchingExtensions_(NSArray filterTypes) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_pathsMatchingExtensions_1, filterTypes._id); return NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } void addObserver_toObjectsAtIndexes_forKeyPath_options_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, + NSObject observer, + NSIndexSet indexes, + NSString keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_123( + _lib._objc_msgSend_136( _id, _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + indexes._id, + keyPath._id, options, context); } void removeObserver_fromObjectsAtIndexes_forKeyPath_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, + NSObject observer, + NSIndexSet indexes, + NSString keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_124( + _lib._objc_msgSend_137( _id, _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + indexes._id, + keyPath._id, context); } void removeObserver_fromObjectsAtIndexes_forKeyPath_( - NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { - return _lib._objc_msgSend_125( + NSObject observer, NSIndexSet indexes, NSString keyPath) { + _lib._objc_msgSend_138( _id, _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr); + observer._id, + indexes._id, + keyPath._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_195(_id, - _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); + NSArray filteredArrayUsingPredicate_(NSPredicate predicate) { + final _ret = _lib._objc_msgSend_219( + _id, _lib._sel_filteredArrayUsingPredicate_1, predicate._id); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -33939,6 +38138,12 @@ class NSArray extends NSObject { return NSArray._(_ret, _lib, retain: false, release: true); } + static NSArray allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSArray1, _lib._sel_allocWithZone_1, zone); + return NSArray._(_ret, _lib, retain: false, release: true); + } + static NSArray alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); return NSArray._(_ret, _lib, retain: false, release: true); @@ -33948,18 +38153,18 @@ class NSArray extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArray1, + _lib._objc_msgSend_15(_lib._class_NSArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -33974,33 +38179,29 @@ class NSArray extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34012,8 +38213,6 @@ class NSArray extends NSObject { } } -typedef NSInteger = ffi.Long; - class NSError extends NSObject { NSError._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -34037,25 +38236,119 @@ class NSError extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); } - NSError initWithDomain_code_userInfo_(NSErrorDomain domain, int code) { - final _ret = _lib._objc_msgSend_77( - _id, _lib._sel_initWithDomain_code_userInfo_1, domain, code); + NSError initWithDomain_code_userInfo_( + NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_82( + _id, + _lib._sel_initWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); return NSError._(_ret, _lib, retain: true, release: true); } static NSError errorWithDomain_code_userInfo_( - SwiftLibrary _lib, NSErrorDomain domain, int code) { - final _ret = _lib._objc_msgSend_77(_lib._class_NSError1, - _lib._sel_errorWithDomain_code_userInfo_1, domain, code); + SwiftLibrary _lib, NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_82( + _lib._class_NSError1, + _lib._sel_errorWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); return NSError._(_ret, _lib, retain: true, release: true); } - NSErrorDomain get domain { - return _lib._objc_msgSend_20(_id, _lib._sel_domain1); + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } int get code { - return _lib._objc_msgSend_78(_id, _lib._sel_code1); + return _lib._objc_msgSend_83(_id, _lib._sel_code1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get localizedDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localizedDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedFailureReason { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localizedFailureReason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedRecoverySuggestion { + final _ret = + _lib._objc_msgSend_44(_id, _lib._sel_localizedRecoverySuggestion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localizedRecoveryOptions { + final _ret = + _lib._objc_msgSend_84(_id, _lib._sel_localizedRecoveryOptions1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject? get recoveryAttempter { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_recoveryAttempter1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get helpAnchor { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_helpAnchor1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray get underlyingErrors { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_underlyingErrors1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static void setUserInfoValueProviderForDomain_provider_(SwiftLibrary _lib, + NSString errorDomain, ObjCBlock_ObjCObject_NSError_NSString? provider) { + _lib._objc_msgSend_86( + _lib._class_NSError1, + _lib._sel_setUserInfoValueProviderForDomain_provider_1, + errorDomain._id, + provider?._id ?? ffi.nullptr); + } + + static ObjCBlock_ObjCObject_NSError_NSString? userInfoValueProviderForDomain_( + SwiftLibrary _lib, + NSError err, + NSString userInfoKey, + NSString errorDomain) { + final _ret = _lib._objc_msgSend_87( + _lib._class_NSError1, + _lib._sel_userInfoValueProviderForDomain_1, + err._id, + userInfoKey._id, + errorDomain._id); + return _ret.address == 0 + ? null + : ObjCBlock_ObjCObject_NSError_NSString._(_ret, _lib, + retain: true, release: true); + } + + @override + NSError init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSError._(_ret, _lib, retain: true, release: true); } static NSError new1(SwiftLibrary _lib) { @@ -34063,6 +38356,12 @@ class NSError extends NSObject { return NSError._(_ret, _lib, retain: false, release: true); } + static NSError allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSError1, _lib._sel_allocWithZone_1, zone); + return NSError._(_ret, _lib, retain: false, release: true); + } + static NSError alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); return NSError._(_ret, _lib, retain: false, release: true); @@ -34072,18 +38371,18 @@ class NSError extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSError1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSError1, + _lib._objc_msgSend_15(_lib._class_NSError1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -34098,33 +38397,29 @@ class NSError extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSError1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSError1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSError1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSError1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSError1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34136,7 +38431,190 @@ class NSError extends NSObject { } } -typedef NSErrorDomain = ffi.Pointer; +class _ObjCBlockBase implements ffi.Finalizable { + final ffi.Pointer<_ObjCBlock> _id; + final SwiftLibrary _lib; + bool _pendingRelease; + + _ObjCBlockBase._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._Block_copy(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); + } + } + + /// Releases the reference to the underlying ObjC block held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._Block_release(_id.cast()); + _lib._objc_releaseFinalizer11.detach(this); + } else { + throw StateError( + 'Released an ObjC block that was unowned or already released.'); + } + } + + @override + bool operator ==(Object other) { + return other is _ObjCBlockBase && _id == other._id; + } + + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer<_ObjCBlock> get pointer => _id; + + ffi.Pointer<_ObjCBlock> _retainAndReturnId() { + _lib._Block_copy(_id.cast()); + return _id; + } +} + +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry = Function( + ffi.Pointer, ffi.Pointer)>{}; +int _ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex; + _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer + _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { + ObjCBlock_ObjCObject_NSError_NSString._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ObjCObject_NSError_NSString.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ObjCObject_NSError_NSString.fromFunction( + SwiftLibrary lib, NSObject? Function(NSError, NSString) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline) + .cast(), + _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSError._(arg0, lib, retain: true, release: true), NSString._(arg1, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + NSObject? call(NSError arg0, NSString arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>() + (_id, arg0._id, arg1._id) + .address == + 0 + ? null + : NSObject._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>()(_id, arg0._id, arg1._id), + _lib, + retain: false, + release: true); +} + +final class _ObjCBlockDesc extends ffi.Struct { + @ffi.UnsignedLong() + external int reserved; + + @ffi.UnsignedLong() + external int size; + + external ffi.Pointer copy_helper; + + external ffi.Pointer dispose_helper; + + external ffi.Pointer signature; +} + +final class _ObjCBlock extends ffi.Struct { + external ffi.Pointer isa; + + @ffi.Int() + external int flags; + + @ffi.Int() + external int reserved; + + external ffi.Pointer invoke; + + external ffi.Pointer<_ObjCBlockDesc> descriptor; + + external ffi.Pointer target; +} class NSIndexSet extends NSObject { NSIndexSet._(ffi.Pointer id, SwiftLibrary lib, @@ -34168,38 +38646,38 @@ class NSIndexSet extends NSObject { } static NSIndexSet indexSetWithIndex_(SwiftLibrary _lib, int value) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); return NSIndexSet._(_ret, _lib, retain: true, release: true); } static NSIndexSet indexSetWithIndexesInRange_( - SwiftLibrary _lib, NSRange range) { - final _ret = _lib._objc_msgSend_83( + SwiftLibrary _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_91( _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexesInRange_(NSRange range) { + NSIndexSet initWithIndexesInRange_(_NSRange range) { final _ret = - _lib._objc_msgSend_83(_id, _lib._sel_initWithIndexesInRange_1, range); + _lib._objc_msgSend_91(_id, _lib._sel_initWithIndexesInRange_1, range); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_84( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + NSIndexSet initWithIndexSet_(NSIndexSet indexSet) { + final _ret = + _lib._objc_msgSend_92(_id, _lib._sel_initWithIndexSet_1, indexSet._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, value); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_initWithIndex_1, value); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_85( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + bool isEqualToIndexSet_(NSIndexSet indexSet) { + return _lib._objc_msgSend_93( + _id, _lib._sel_isEqualToIndexSet_1, indexSet._id); } int get count { @@ -34215,26 +38693,28 @@ class NSIndexSet extends NSObject { } int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexGreaterThanIndex_1, value); + return _lib._objc_msgSend_94(_id, _lib._sel_indexGreaterThanIndex_1, value); } int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexLessThanIndex_1, value); + return _lib._objc_msgSend_94(_id, _lib._sel_indexLessThanIndex_1, value); } int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); } int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_86( + return _lib._objc_msgSend_94( _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); } - int getIndexes_maxCount_inIndexRange_(ffi.Pointer indexBuffer, - int bufferSize, NSRangePointer range) { - return _lib._objc_msgSend_87( + int getIndexes_maxCount_inIndexRange_( + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range) { + return _lib._objc_msgSend_95( _id, _lib._sel_getIndexes_maxCount_inIndexRange_1, indexBuffer, @@ -34242,42 +38722,44 @@ class NSIndexSet extends NSObject { range); } - int countOfIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_88(_id, _lib._sel_countOfIndexesInRange_1, range); + int countOfIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_96(_id, _lib._sel_countOfIndexesInRange_1, range); } bool containsIndex_(int value) { - return _lib._objc_msgSend_89(_id, _lib._sel_containsIndex_1, value); + return _lib._objc_msgSend_97(_id, _lib._sel_containsIndex_1, value); } - bool containsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_90( + bool containsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_98( _id, _lib._sel_containsIndexesInRange_1, range); } - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_85( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + bool containsIndexes_(NSIndexSet indexSet) { + return _lib._objc_msgSend_93( + _id, _lib._sel_containsIndexes_1, indexSet._id); } - bool intersectsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_90( + bool intersectsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_98( _id, _lib._sel_intersectsIndexesInRange_1, range); } - void enumerateIndexesUsingBlock_(ObjCBlock block) { - return _lib._objc_msgSend_91( + void enumerateIndexesUsingBlock_( + ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_99( _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); } - void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock block) { - return _lib._objc_msgSend_92(_id, + void enumerateIndexesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_100(_id, _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); } void enumerateIndexesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock block) { - return _lib._objc_msgSend_93( + _NSRange range, int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_101( _id, _lib._sel_enumerateIndexesInRange_options_usingBlock_1, range, @@ -34285,19 +38767,20 @@ class NSIndexSet extends NSObject { block._id); } - int indexPassingTest_(ObjCBlock1 predicate) { - return _lib._objc_msgSend_94( + int indexPassingTest_(ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_102( _id, _lib._sel_indexPassingTest_1, predicate._id); } - int indexWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { - return _lib._objc_msgSend_95( + int indexWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_103( _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); } int indexInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock1 predicate) { - return _lib._objc_msgSend_96( + _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_104( _id, _lib._sel_indexInRange_options_passingTest_1, range, @@ -34305,21 +38788,23 @@ class NSIndexSet extends NSObject { predicate._id); } - NSIndexSet indexesPassingTest_(ObjCBlock1 predicate) { - final _ret = _lib._objc_msgSend_97( + NSIndexSet indexesPassingTest_( + ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_105( _id, _lib._sel_indexesPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { - final _ret = _lib._objc_msgSend_98( + NSIndexSet indexesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_106( _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock1 predicate) { - final _ret = _lib._objc_msgSend_99( + _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_107( _id, _lib._sel_indexesInRange_options_passingTest_1, range, @@ -34328,19 +38813,20 @@ class NSIndexSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesUsingBlock_(ObjCBlock2 block) { - return _lib._objc_msgSend_100( + void enumerateRangesUsingBlock_(ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_108( _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); } - void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_101(_id, + void enumerateRangesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_109(_id, _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); } void enumerateRangesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_102( + _NSRange range, int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_110( _id, _lib._sel_enumerateRangesInRange_options_usingBlock_1, range, @@ -34348,11 +38834,24 @@ class NSIndexSet extends NSObject { block._id); } + @override + NSIndexSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + static NSIndexSet new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); return NSIndexSet._(_ret, _lib, retain: false, release: true); } + static NSIndexSet allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexSet1, _lib._sel_allocWithZone_1, zone); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + static NSIndexSet alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); @@ -34363,18 +38862,18 @@ class NSIndexSet extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSIndexSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._objc_msgSend_15(_lib._class_NSIndexSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -34389,33 +38888,29 @@ class NSIndexSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSIndexSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSIndexSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSIndexSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -34427,145 +38922,114 @@ class NSIndexSet extends NSObject { } } -typedef NSRangePointer = ffi.Pointer; - -class _ObjCBlockBase implements ffi.Finalizable { - final ffi.Pointer<_ObjCBlock> _id; - final SwiftLibrary _lib; - bool _pendingRelease; - - _ObjCBlockBase._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._Block_copy(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); - } - } - - /// Releases the reference to the underlying ObjC block held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._Block_release(_id.cast()); - _lib._objc_releaseFinalizer11.detach(this); - } else { - throw StateError( - 'Released an ObjC block that was unowned or already released.'); - } - } - - @override - bool operator ==(Object other) { - return other is _ObjCBlockBase && _id == other._id; - } - - @override - int get hashCode => _id.hashCode; -} - -void _ObjCBlock_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock_closureRegistry = {}; -int _ObjCBlock_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_registerClosure(Function fn) { - final id = ++_ObjCBlock_closureRegistryIndex; - _ObjCBlock_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + void Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock extends _ObjCBlockBase { - ObjCBlock._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - NSUInteger arg0, ffi.Pointer arg1)>> + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock.fromFunction( - SwiftLibrary lib, void Function(int arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunction( + SwiftLibrary lib, void Function(int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) .cast(), - _ObjCBlock_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), lib); - void call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -final class _ObjCBlockDesc extends ffi.Struct { - @ffi.UnsignedLong() - external int reserved; - - @ffi.UnsignedLong() - external int size; - - external ffi.Pointer copy_helper; - - external ffi.Pointer dispose_helper; - - external ffi.Pointer signature; -} - -final class _ObjCBlock extends ffi.Struct { - external ffi.Pointer isa; - - @ffi.Int() - external int flags; - - @ffi.Int() - external int reserved; - - external ffi.Pointer invoke; - - external ffi.Pointer<_ObjCBlockDesc> descriptor; + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiUnsignedLong_bool.listener( + SwiftLibrary lib, void Function(int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.UnsignedLong, + ffi.Pointer)>? _dartFuncListenerTrampoline; - external ffi.Pointer target; + void call(int arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, int, + ffi.Pointer)>()(_id, arg0, arg1); } abstract class NSEnumerationOptions { @@ -34573,362 +39037,490 @@ abstract class NSEnumerationOptions { static const int NSEnumerationReverse = 2; } -bool _ObjCBlock1_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock1_closureRegistry = {}; -int _ObjCBlock1_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { - final id = ++_ObjCBlock1_closureRegistryIndex; - _ObjCBlock1_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry = + )>{}; +int _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + bool Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock1_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +bool _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock1 extends _ObjCBlockBase { - ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock1.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< ffi.Bool Function( - NSUInteger arg0, ffi.Pointer arg1)>> + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline, false) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock1.fromFunction( - SwiftLibrary lib, bool Function(int arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ffiUnsignedLong_bool.fromFunction( + SwiftLibrary lib, bool Function(int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline, false) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + ffi.UnsignedLong, ffi.Pointer)>( + _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline, + false) .cast(), - _ObjCBlock1_registerClosure(fn)), + _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), lib); - bool call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock2_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return block.ref.target + bool call(int arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>>() + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() .asFunction< - void Function( - NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); + bool Function(ffi.Pointer<_ObjCBlock>, int, + ffi.Pointer)>()(_id, arg0, arg1); } -final _ObjCBlock2_closureRegistry = {}; -int _ObjCBlock2_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { - final id = ++_ObjCBlock2_closureRegistryIndex; - _ObjCBlock2_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(_NSRange, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + void Function(_NSRange, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock2 extends _ObjCBlockBase { - ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSRange_bool._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock2.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSRange_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1)>> + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock2.fromFunction(SwiftLibrary lib, - void Function(NSRange arg0, ffi.Pointer arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSRange_bool.fromFunction( + SwiftLibrary lib, void Function(_NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock2_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (_NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), lib); - void call(NSRange arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSRange_bool.listener( + SwiftLibrary lib, void Function(_NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (_NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, _NSRange, ffi.Pointer)>? + _dartFuncListenerTrampoline; -void _ObjCBlock3_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target + void call(_NSRange arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock>, _NSRange, + ffi.Pointer)>()(_id, arg0, arg1); } -final _ObjCBlock3_closureRegistry = {}; -int _ObjCBlock3_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { - final id = ++_ObjCBlock3_closureRegistryIndex; - _ObjCBlock3_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock3_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock3_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock3 extends _ObjCBlockBase { - ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock3.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(ffi.Pointer arg0, - NSUInteger arg1, ffi.Pointer arg2)>> + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock3_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock3.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunction( + SwiftLibrary lib, void Function(NSObject, int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock3_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) .cast(), - _ObjCBlock3_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.listener( + SwiftLibrary lib, void Function(NSObject, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>? _dartFuncListenerTrampoline; -bool _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void call(NSObject arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); } -final _ObjCBlock4_closureRegistry = {}; -int _ObjCBlock4_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { - final id = ++_ObjCBlock4_closureRegistryIndex; - _ObjCBlock4_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + bool Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock4_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock4 extends _ObjCBlockBase { - ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock4.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( SwiftLibrary lib, - ffi - .Pointer< - ffi - .NativeFunction< + ffi.Pointer< + ffi.NativeFunction< ffi.Bool Function(ffi.Pointer arg0, - NSUInteger arg1, ffi.Pointer arg2)>> + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline, + false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock4.fromFunction( - SwiftLibrary lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunction( + SwiftLibrary lib, bool Function(NSObject, int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, false) .cast(), - _ObjCBlock4_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; -typedef NSComparator = ffi.Pointer<_ObjCBlock>; -int _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + bool call(NSObject arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); } -final _ObjCBlock5_closureRegistry = {}; -int _ObjCBlock5_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { - final id = ++_ObjCBlock5_closureRegistryIndex; - _ObjCBlock5_closureRegistry[id] = fn; +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + int Function(ffi.Pointer, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -int _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock5_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock5 extends _ObjCBlockBase { - ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject + extends _ObjCBlockBase { + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock5.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -34937,48 +39529,48 @@ class ObjCBlock5 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock5_fnPtrTrampoline, 0) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline, + 0) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock5.fromFunction( - SwiftLibrary lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunction( + SwiftLibrary lib, int Function(NSObject, NSObject) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock5_closureTrampoline, 0) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, 0) .cast(), - _ObjCBlock5_registerClosure(fn)), + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true)))), lib); - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + int call(NSObject arg0, NSObject arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); } abstract class NSComparisonResult { @@ -34998,6 +39590,111 @@ abstract class NSBinarySearchingOptions { static const int NSBinarySearchingInsertionIndex = 1024; } +abstract class NSOrderedCollectionDifferenceCalculationOptions { + static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = + 1; + static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = + 2; + static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi + .NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject.fromFunction( + SwiftLibrary lib, bool Function(NSObject, NSObject) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, + false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSObject arg0, NSObject arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} + abstract class NSKeyValueObservingOptions { static const int NSKeyValueObservingOptionNew = 1; static const int NSKeyValueObservingOptionOld = 2; @@ -35029,84 +39726,87 @@ class NSPredicate extends NSObject { } static NSPredicate predicateWithFormat_argumentArray_( - SwiftLibrary _lib, NSString? predicateFormat, NSArray? arguments) { - final _ret = _lib._objc_msgSend_129( + SwiftLibrary _lib, NSString predicateFormat, NSArray? arguments) { + final _ret = _lib._objc_msgSend_142( _lib._class_NSPredicate1, _lib._sel_predicateWithFormat_argumentArray_1, - predicateFormat?._id ?? ffi.nullptr, + predicateFormat._id, arguments?._id ?? ffi.nullptr); return NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate predicateWithFormat_( - SwiftLibrary _lib, NSString? predicateFormat) { - final _ret = _lib._objc_msgSend_130(_lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString predicateFormat) { + final _ret = _lib._objc_msgSend_143(_lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_1, predicateFormat._id); return NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate predicateWithFormat_arguments_(SwiftLibrary _lib, - NSString? predicateFormat, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_131( + NSString predicateFormat, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_144( _lib._class_NSPredicate1, _lib._sel_predicateWithFormat_arguments_1, - predicateFormat?._id ?? ffi.nullptr, + predicateFormat._id, argList); return NSPredicate._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateFromMetadataQueryString_( - SwiftLibrary _lib, NSString? queryString) { - final _ret = _lib._objc_msgSend_130( - _lib._class_NSPredicate1, - _lib._sel_predicateFromMetadataQueryString_1, - queryString?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); + static NSPredicate? predicateFromMetadataQueryString_( + SwiftLibrary _lib, NSString queryString) { + final _ret = _lib._objc_msgSend_145(_lib._class_NSPredicate1, + _lib._sel_predicateFromMetadataQueryString_1, queryString._id); + return _ret.address == 0 + ? null + : NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate predicateWithValue_(SwiftLibrary _lib, bool value) { - final _ret = _lib._objc_msgSend_132( + final _ret = _lib._objc_msgSend_146( _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); return NSPredicate._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithBlock_(SwiftLibrary _lib, ObjCBlock6 block) { - final _ret = _lib._objc_msgSend_193( + static NSPredicate predicateWithBlock_( + SwiftLibrary _lib, ObjCBlock_bool_ObjCObject_NSDictionary block) { + final _ret = _lib._objc_msgSend_216( _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); return NSPredicate._(_ret, _lib, retain: true, release: true); } - NSString? get predicateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get predicateFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_predicateFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { - final _ret = _lib._objc_msgSend_143( - _id, - _lib._sel_predicateWithSubstitutionVariables_1, - variables?._id ?? ffi.nullptr); + NSPredicate predicateWithSubstitutionVariables_(NSDictionary variables) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_predicateWithSubstitutionVariables_1, variables._id); return NSPredicate._(_ret, _lib, retain: true, release: true); } - bool evaluateWithObject_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_evaluateWithObject_1, object._id); + bool evaluateWithObject_(NSObject? object) { + return _lib._objc_msgSend_217( + _id, _lib._sel_evaluateWithObject_1, object?._id ?? ffi.nullptr); } bool evaluateWithObject_substitutionVariables_( - NSObject object, NSDictionary? bindings) { - return _lib._objc_msgSend_194( + NSObject? object, NSDictionary? bindings) { + return _lib._objc_msgSend_218( _id, _lib._sel_evaluateWithObject_substitutionVariables_1, - object._id, + object?._id ?? ffi.nullptr, bindings?._id ?? ffi.nullptr); } void allowEvaluation() { - return _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + } + + @override + NSPredicate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPredicate._(_ret, _lib, retain: true, release: true); } static NSPredicate new1(SwiftLibrary _lib) { @@ -35114,6 +39814,13 @@ class NSPredicate extends NSObject { return NSPredicate._(_ret, _lib, retain: false, release: true); } + static NSPredicate allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPredicate1, _lib._sel_allocWithZone_1, zone); + return NSPredicate._(_ret, _lib, retain: false, release: true); + } + static NSPredicate alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); @@ -35124,18 +39831,18 @@ class NSPredicate extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPredicate1, + _lib._objc_msgSend_15(_lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -35150,33 +39857,29 @@ class NSPredicate extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPredicate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPredicate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPredicate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPredicate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPredicate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -35200,37 +39903,47 @@ final class __va_list_tag extends ffi.Struct { external ffi.Pointer reg_save_area; } -bool _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock6_closureRegistry = {}; -int _ObjCBlock6_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { - final id = ++_ObjCBlock6_closureRegistryIndex; - _ObjCBlock6_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock6 extends _ObjCBlockBase { - ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock6.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -35239,48 +39952,51 @@ class ObjCBlock6 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline, + false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock6.fromFunction( - SwiftLibrary lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_NSDictionary.fromFunction( + SwiftLibrary lib, bool Function(NSObject?, NSDictionary?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_closureTrampoline, false) - .cast(), - _ObjCBlock6_registerClosure(fn)), + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSDictionary._(arg1, lib, retain: true, release: true)))), lib); - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + bool call(NSObject? arg0, NSDictionary? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } class NSDictionary extends NSObject { @@ -35310,13 +40026,15 @@ class NSDictionary extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - NSObject objectForKey_(NSObject aKey) { + NSObject? objectForKey_(NSObject aKey) { final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_keyEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_keyEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -35330,174 +40048,196 @@ class NSDictionary extends NSObject { ffi.Pointer> objects, ffi.Pointer> keys, int cnt) { - final _ret = _lib._objc_msgSend_133( + final _ret = _lib._objc_msgSend_147( _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allKeys1); + NSDictionary? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray get allKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSArray allKeysForObject_(NSObject anObject) { final _ret = - _lib._objc_msgSend_62(_id, _lib._sel_allKeysForObject_1, anObject._id); + _lib._objc_msgSend_67(_id, _lib._sel_allKeysForObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allValues { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allValues1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get allValues { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allValues1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get descriptionInStringsFileFormat { + NSString get descriptionInStringsFileFormat { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_descriptionInStringsFileFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); return NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_134(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + bool isEqualToDictionary_(NSDictionary otherDictionary) { + return _lib._objc_msgSend_148( + _id, _lib._sel_isEqualToDictionary_1, otherDictionary._id); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_135( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); + NSArray objectsForKeys_notFoundMarker_(NSArray keys, NSObject marker) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_objectsForKeys_notFoundMarker_1, keys._id, marker._id); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_81( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_writeToURL_error_1, url._id, error); } NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( + final _ret = _lib._objc_msgSend_80( _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); return NSArray._(_ret, _lib, retain: true, release: true); } void getObjects_andKeys_count_(ffi.Pointer> objects, ffi.Pointer> keys, int count) { - return _lib._objc_msgSend_136( + _lib._objc_msgSend_150( _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); } - NSObject objectForKeyedSubscript_(NSObject key) { + NSObject? objectForKeyedSubscript_(NSObject key) { final _ret = _lib._objc_msgSend_16( _id, _lib._sel_objectForKeyedSubscript_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateKeysAndObjectsUsingBlock_(ObjCBlock7 block) { - return _lib._objc_msgSend_137( + void enumerateKeysAndObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_151( _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); } void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock7 block) { - return _lib._objc_msgSend_138( + int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_152( _id, _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, opts, block._id); } - NSArray keysSortedByValueUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_113( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr); + NSArray keysSortedByValueUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_114(_id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, opts, cmptr); + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_122( + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } + NSObject keysOfEntriesPassingTest_( + ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_153( + _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject keysOfEntriesWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_154(_id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + void getObjects_andKeys_(ffi.Pointer> objects, ffi.Pointer> keys) { - return _lib._objc_msgSend_139( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); + _lib._objc_msgSend_155(_id, _lib._sel_getObjects_andKeys_1, objects, keys); } - static NSDictionary dictionaryWithContentsOfFile_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_140(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfFile_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_( - SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_141(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_( + SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_157(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_140( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_157(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_26( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_121(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_134( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } static NSDictionary dictionary(SwiftLibrary _lib) { @@ -35508,7 +40248,7 @@ class NSDictionary extends NSObject { static NSDictionary dictionaryWithObject_forKey_( SwiftLibrary _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_142(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_158(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -35518,89 +40258,78 @@ class NSDictionary extends NSObject { ffi.Pointer> objects, ffi.Pointer> keys, int cnt) { - final _ret = _lib._objc_msgSend_133(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjectsAndKeys_( SwiftLibrary _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithDictionary_( - SwiftLibrary _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_143(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_159(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjects_forKeys_( - SwiftLibrary _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_144( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_143(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + NSDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_initWithDictionary_1, otherDictionary._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_145( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_161(_id, + _lib._sel_initWithDictionary_copyItems_1, otherDictionary._id, flag); return NSDictionary._(_ret, _lib, retain: false, release: true); } - NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_144( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + NSDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_146( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? initWithContentsOfURL_error_( + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_162( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_(SwiftLibrary _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_146( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_error_(SwiftLibrary _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(SwiftLibrary _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + static NSObject sharedKeySetForKeys_(SwiftLibrary _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSDictionary1, _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -35608,7 +40337,7 @@ class NSDictionary extends NSObject { ffi.Pointer state, ffi.Pointer> buffer, int len) { - return _lib._objc_msgSend_147( + return _lib._objc_msgSend_163( _id, _lib._sel_countByEnumeratingWithState_objects_count_1, state, @@ -35617,36 +40346,44 @@ class NSDictionary extends NSObject { } int fileSize() { - return _lib._objc_msgSend_148(_id, _lib._sel_fileSize1); + return _lib._objc_msgSend_164(_id, _lib._sel_fileSize1); } - NSDate fileModificationDate() { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileModificationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? fileModificationDate() { + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_fileModificationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSString fileType() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? fileType() { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } int filePosixPermissions() { return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); } - NSString fileOwnerAccountName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? fileOwnerAccountName() { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileOwnerAccountName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString fileGroupOwnerAccountName() { + NSString? fileGroupOwnerAccountName() { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_44(_id, _lib._sel_fileGroupOwnerAccountName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } int fileSystemNumber() { - return _lib._objc_msgSend_78(_id, _lib._sel_fileSystemNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_fileSystemNumber1); } int fileSystemFileNumber() { @@ -35658,11 +40395,11 @@ class NSDictionary extends NSObject { } int fileHFSCreatorCode() { - return _lib._objc_msgSend_191(_id, _lib._sel_fileHFSCreatorCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_fileHFSCreatorCode1); } int fileHFSTypeCode() { - return _lib._objc_msgSend_191(_id, _lib._sel_fileHFSTypeCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_fileHFSTypeCode1); } bool fileIsImmutable() { @@ -35673,27 +40410,34 @@ class NSDictionary extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); } - NSDate fileCreationDate() { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fileCreationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? fileCreationDate() { + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_fileCreationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSNumber fileOwnerAccountID() { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_fileOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber? fileOwnerAccountID() { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_fileOwnerAccountID1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSNumber fileGroupOwnerAccountID() { + NSNumber? fileGroupOwnerAccountID() { final _ret = - _lib._objc_msgSend_192(_id, _lib._sel_fileGroupOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_215(_id, _lib._sel_fileGroupOwnerAccountID1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_valueForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSDictionary new1(SwiftLibrary _lib) { @@ -35702,6 +40446,13 @@ class NSDictionary extends NSObject { return NSDictionary._(_ret, _lib, retain: false, release: true); } + static NSDictionary allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDictionary1, _lib._sel_allocWithZone_1, zone); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + static NSDictionary alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); @@ -35712,18 +40463,18 @@ class NSDictionary extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDictionary1, + _lib._objc_msgSend_15(_lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -35738,33 +40489,29 @@ class NSDictionary extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -35776,46 +40523,56 @@ class NSDictionary extends NSObject { } } -void _ObjCBlock7_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock7_closureRegistry = {}; -int _ObjCBlock7_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { - final id = ++_ObjCBlock7_closureRegistryIndex; - _ObjCBlock7_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock7_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock7_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock7 extends _ObjCBlockBase { - ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock7.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -35826,54 +40583,208 @@ class ObjCBlock7 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock7_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock7.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunction(SwiftLibrary lib, + void Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.listener(SwiftLibrary lib, + void Function(NSObject, NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock7_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock7_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => + fn( + NSObject._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + arg2))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject arg0, NSObject arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2); +} + +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, + ffi.Bool Function( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - ffi.Pointer<_ObjCBlock> get pointer => _id; +bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunction(SwiftLibrary lib, + bool Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), NSObject._(arg1, lib, retain: true, release: true), arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSObject arg0, NSObject arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2); } final class NSFastEnumerationState extends ffi.Struct { @@ -35911,7 +40822,7 @@ class NSDate extends NSObject { } double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_149( + return _lib._objc_msgSend_165( _id, _lib._sel_timeIntervalSinceReferenceDate1); } @@ -35922,74 +40833,73 @@ class NSDate extends NSObject { } NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_151(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); + double timeIntervalSinceDate_(NSDate anotherDate) { + return _lib._objc_msgSend_167( + _id, _lib._sel_timeIntervalSinceDate_1, anotherDate._id); } double get timeIntervalSinceNow { - return _lib._objc_msgSend_149(_id, _lib._sel_timeIntervalSinceNow1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeIntervalSinceNow1); } double get timeIntervalSince1970 { - return _lib._objc_msgSend_149(_id, _lib._sel_timeIntervalSince19701); + return _lib._objc_msgSend_165(_id, _lib._sel_timeIntervalSince19701); } NSObject addTimeInterval_(double seconds) { final _ret = - _lib._objc_msgSend_150(_id, _lib._sel_addTimeInterval_1, seconds); + _lib._objc_msgSend_166(_id, _lib._sel_addTimeInterval_1, seconds); return NSObject._(_ret, _lib, retain: true, release: true); } NSDate dateByAddingTimeInterval_(double ti) { final _ret = - _lib._objc_msgSend_150(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + _lib._objc_msgSend_166(_id, _lib._sel_dateByAddingTimeInterval_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_152( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + NSDate earlierDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_168(_id, _lib._sel_earlierDate_1, anotherDate._id); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_152( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + NSDate laterDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_168(_id, _lib._sel_laterDate_1, anotherDate._id); return NSDate._(_ret, _lib, retain: true, release: true); } - int compare_(NSDate? other) { - return _lib._objc_msgSend_153( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + int compare_(NSDate other) { + return _lib._objc_msgSend_169(_id, _lib._sel_compare_1, other._id); } - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + bool isEqualToDate_(NSDate otherDate) { + return _lib._objc_msgSend_170( + _id, _lib._sel_isEqualToDate_1, otherDate._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } @@ -35999,104 +40909,96 @@ class NSDate extends NSObject { } static NSDate dateWithTimeIntervalSinceNow_(SwiftLibrary _lib, double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSinceReferenceDate_( SwiftLibrary _lib, double ti) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSince1970_(SwiftLibrary _lib, double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeInterval_sinceDate_( - SwiftLibrary _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_155( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + SwiftLibrary _lib, double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantFuture(SwiftLibrary _lib) { + static NSDate getDistantFuture(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_156(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_172(_lib._class_NSDate1, _lib._sel_distantFuture1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantPast(SwiftLibrary _lib) { + static NSDate getDistantPast(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_156(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_172(_lib._class_NSDate1, _lib._sel_distantPast1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getNow(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + static NSDate getNow(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_172(_lib._class_NSDate1, _lib._sel_now1); + return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_150( + final _ret = _lib._objc_msgSend_166( _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_155( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_id, + _lib._sel_initWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_locale_( - SwiftLibrary _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_157( + static NSObject? dateWithNaturalLanguageString_locale_( + SwiftLibrary _lib, NSString string, NSObject? locale) { + final _ret = _lib._objc_msgSend_173( _lib._class_NSDate1, _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + string._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dateWithNaturalLanguageString_( + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSDate1, + _lib._sel_dateWithNaturalLanguageString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_(SwiftLibrary _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + static NSObject dateWithString_(SwiftLibrary _lib, NSString aString) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSDate1, _lib._sel_dateWithString_1, aString._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSCalendarDate dateWithCalendarFormat_timeZone_( NSString? format, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_189( + final _ret = _lib._objc_msgSend_212( _id, _lib._sel_dateWithCalendarFormat_timeZone_1, format?._id ?? ffi.nullptr, @@ -36104,21 +41006,25 @@ class NSDate extends NSObject { return NSCalendarDate._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithCalendarFormat_timeZone_locale_( - NSString? format, NSTimeZone? aTimeZone, NSObject locale) { - final _ret = _lib._objc_msgSend_190( + NSString? descriptionWithCalendarFormat_timeZone_locale_( + NSString? format, NSTimeZone? aTimeZone, NSObject? locale) { + final _ret = _lib._objc_msgSend_213( _id, _lib._sel_descriptionWithCalendarFormat_timeZone_locale_1, format?._id ?? ffi.nullptr, aTimeZone?._id ?? ffi.nullptr, - locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithString_(NSString description) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, description._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSDate new1(SwiftLibrary _lib) { @@ -36126,6 +41032,12 @@ class NSDate extends NSObject { return NSDate._(_ret, _lib, retain: false, release: true); } + static NSDate allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDate1, _lib._sel_allocWithZone_1, zone); + return NSDate._(_ret, _lib, retain: false, release: true); + } + static NSDate alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); return NSDate._(_ret, _lib, retain: false, release: true); @@ -36135,18 +41047,18 @@ class NSDate extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDate1, + _lib._objc_msgSend_15(_lib._class_NSDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36161,33 +41073,29 @@ class NSDate extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -36199,8 +41107,6 @@ class NSDate extends NSObject { } } -typedef NSTimeInterval = ffi.Double; - class NSCalendarDate extends NSDate { NSCalendarDate._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -36230,25 +41136,26 @@ class NSCalendarDate extends NSDate { return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_calendarFormat_locale_(SwiftLibrary _lib, - NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_158( + static NSObject? dateWithString_calendarFormat_locale_(SwiftLibrary _lib, + NSString description, NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_174( _lib._class_NSCalendarDate1, _lib._sel_dateWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + description._id, + format._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_calendarFormat_( - SwiftLibrary _lib, NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dateWithString_calendarFormat_( + SwiftLibrary _lib, NSString description, NSString format) { + final _ret = _lib._objc_msgSend_175(_lib._class_NSCalendarDate1, + _lib._sel_dateWithString_calendarFormat_1, description._id, format._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSObject dateWithYear_month_day_hour_minute_second_timeZone_( @@ -36260,7 +41167,7 @@ class NSCalendarDate extends NSDate { int minute, int second, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_184( + final _ret = _lib._objc_msgSend_206( _lib._class_NSCalendarDate1, _lib._sel_dateWithYear_month_day_hour_minute_second_timeZone_1, year, @@ -36275,7 +41182,7 @@ class NSCalendarDate extends NSDate { NSCalendarDate dateByAddingYears_months_days_hours_minutes_seconds_( int year, int month, int day, int hour, int minute, int second) { - final _ret = _lib._objc_msgSend_185( + final _ret = _lib._objc_msgSend_207( _id, _lib._sel_dateByAddingYears_months_days_hours_minutes_seconds_1, year, @@ -36288,100 +41195,103 @@ class NSCalendarDate extends NSDate { } int dayOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfCommonEra1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfCommonEra1); } int dayOfMonth() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfMonth1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfMonth1); } int dayOfWeek() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfWeek1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfWeek1); } int dayOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_dayOfYear1); } int hourOfDay() { - return _lib._objc_msgSend_78(_id, _lib._sel_hourOfDay1); + return _lib._objc_msgSend_83(_id, _lib._sel_hourOfDay1); } int minuteOfHour() { - return _lib._objc_msgSend_78(_id, _lib._sel_minuteOfHour1); + return _lib._objc_msgSend_83(_id, _lib._sel_minuteOfHour1); } int monthOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_monthOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_monthOfYear1); } int secondOfMinute() { - return _lib._objc_msgSend_78(_id, _lib._sel_secondOfMinute1); + return _lib._objc_msgSend_83(_id, _lib._sel_secondOfMinute1); } int yearOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_yearOfCommonEra1); + return _lib._objc_msgSend_83(_id, _lib._sel_yearOfCommonEra1); } NSString calendarFormat() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarFormat1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarFormat1); return NSString._(_ret, _lib, retain: true, release: true); } NSString descriptionWithCalendarFormat_locale_( - NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_167( + NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_208( _id, _lib._sel_descriptionWithCalendarFormat_locale_1, - format?._id ?? ffi.nullptr, - locale._id); + format._id, + locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithCalendarFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_descriptionWithCalendarFormat_1, format?._id ?? ffi.nullptr); + NSString descriptionWithCalendarFormat_(NSString format) { + final _ret = _lib._objc_msgSend_69( + _id, _lib._sel_descriptionWithCalendarFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } @override - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSTimeZone timeZone() { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); + final _ret = _lib._objc_msgSend_179(_id, _lib._sel_timeZone1); return NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_calendarFormat_locale_( - NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_158( + NSObject? initWithString_calendarFormat_locale_( + NSString description, NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_174( _id, _lib._sel_initWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + description._id, + format._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithString_calendarFormat_( - NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_159( - _id, - _lib._sel_initWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithString_calendarFormat_( + NSString description, NSString format) { + final _ret = _lib._objc_msgSend_175(_id, + _lib._sel_initWithString_calendarFormat_1, description._id, format._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } @override - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithString_(NSString description) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithString_1, description._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSObject initWithYear_month_day_hour_minute_second_timeZone_( @@ -36392,7 +41302,7 @@ class NSCalendarDate extends NSDate { int minute, int second, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_184( + final _ret = _lib._objc_msgSend_206( _id, _lib._sel_initWithYear_month_day_hour_minute_second_timeZone_1, year, @@ -36406,24 +41316,24 @@ class NSCalendarDate extends NSDate { } void setCalendarFormat_(NSString? format) { - return _lib._objc_msgSend_186( + _lib._objc_msgSend_209( _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); } void setTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_187( + _lib._objc_msgSend_210( _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); } void years_months_days_hours_minutes_seconds_sinceDate_( - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, - NSCalendarDate? date) { - return _lib._objc_msgSend_188( + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, + NSCalendarDate date) { + _lib._objc_msgSend_211( _id, _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, yp, @@ -36432,23 +41342,48 @@ class NSCalendarDate extends NSDate { hp, mip, sp, - date?._id ?? ffi.nullptr); + date._id); } - static NSDate? getDistantFuture(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_156( + static NSDate getDistantFuture(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_172( _lib._class_NSCalendarDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantPast(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_156( + static NSDate getDistantPast(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_172( _lib._class_NSCalendarDate1, _lib._sel_distantPast1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSinceReferenceDate_(double ti) { + final _ret = _lib._objc_msgSend_166( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_166(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate date(SwiftLibrary _lib) { @@ -36459,63 +41394,84 @@ class NSCalendarDate extends NSDate { static NSCalendarDate dateWithTimeIntervalSinceNow_( SwiftLibrary _lib, double secs) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSCalendarDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSCalendarDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate dateWithTimeIntervalSinceReferenceDate_( SwiftLibrary _lib, double ti) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSCalendarDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSCalendarDate1, _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate dateWithTimeIntervalSince1970_( SwiftLibrary _lib, double secs) { - final _ret = _lib._objc_msgSend_150(_lib._class_NSCalendarDate1, + final _ret = _lib._objc_msgSend_166(_lib._class_NSCalendarDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } static NSCalendarDate dateWithTimeInterval_sinceDate_( - SwiftLibrary _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_155( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + SwiftLibrary _lib, double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSCalendarDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getNow(SwiftLibrary _lib) { + static NSDate getNow(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_172(_lib._class_NSCalendarDate1, _lib._sel_now1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_locale_( - SwiftLibrary _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_157( + @override + NSCalendarDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_166( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_166( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendarDate initWithTimeInterval_sinceDate_( + double secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_171(_id, + _lib._sel_initWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSObject? dateWithNaturalLanguageString_locale_( + SwiftLibrary _lib, NSString string, NSObject? locale) { + final _ret = _lib._objc_msgSend_173( _lib._class_NSCalendarDate1, _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); + string._id, + locale?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithNaturalLanguageString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dateWithNaturalLanguageString_( + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSCalendarDate1, + _lib._sel_dateWithNaturalLanguageString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject dateWithString_(SwiftLibrary _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + static NSObject dateWithString_(SwiftLibrary _lib, NSString aString) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSCalendarDate1, _lib._sel_dateWithString_1, aString._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -36525,6 +41481,13 @@ class NSCalendarDate extends NSDate { return NSCalendarDate._(_ret, _lib, retain: false, release: true); } + static NSCalendarDate allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendarDate1, _lib._sel_allocWithZone_1, zone); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + static NSCalendarDate alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); @@ -36535,18 +41498,18 @@ class NSCalendarDate extends NSDate { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCalendarDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, + _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36561,33 +41524,29 @@ class NSCalendarDate extends NSDate { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendarDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCalendarDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendarDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCalendarDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCalendarDate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCalendarDate1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -36622,119 +41581,104 @@ class NSTimeZone extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimeZone1); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } - int secondsFromGMTForDate_(NSDate? aDate) { - return _lib._objc_msgSend_160( - _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); + int secondsFromGMTForDate_(NSDate aDate) { + return _lib._objc_msgSend_176( + _id, _lib._sel_secondsFromGMTForDate_1, aDate._id); } - NSString abbreviationForDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_161( - _id, _lib._sel_abbreviationForDate_1, aDate?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? abbreviationForDate_(NSDate aDate) { + final _ret = + _lib._objc_msgSend_177(_id, _lib._sel_abbreviationForDate_1, aDate._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool isDaylightSavingTimeForDate_(NSDate? aDate) { - return _lib._objc_msgSend_154(_id, _lib._sel_isDaylightSavingTimeForDate_1, - aDate?._id ?? ffi.nullptr); + bool isDaylightSavingTimeForDate_(NSDate aDate) { + return _lib._objc_msgSend_170( + _id, _lib._sel_isDaylightSavingTimeForDate_1, aDate._id); } - double daylightSavingTimeOffsetForDate_(NSDate? aDate) { - return _lib._objc_msgSend_151(_id, - _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); + double daylightSavingTimeOffsetForDate_(NSDate aDate) { + return _lib._objc_msgSend_167( + _id, _lib._sel_daylightSavingTimeOffsetForDate_1, aDate._id); } - NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_152( - _id, - _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, - aDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? nextDaylightSavingTimeTransitionAfterDate_(NSDate aDate) { + final _ret = _lib._objc_msgSend_178( + _id, _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, aDate._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSTimeZone? getSystemTimeZone(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_162( + static NSTimeZone getSystemTimeZone(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_179( _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } static void resetSystemTimeZone(SwiftLibrary _lib) { - return _lib._objc_msgSend_1( + _lib._objc_msgSend_1( _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); } - static NSTimeZone? getDefaultTimeZone(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_162( + static NSTimeZone getDefaultTimeZone(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_179( _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - static void setDefaultTimeZone(SwiftLibrary _lib, NSTimeZone? value) { - _lib._objc_msgSend_163(_lib._class_NSTimeZone1, - _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); + static void setDefaultTimeZone(SwiftLibrary _lib, NSTimeZone value) { + return _lib._objc_msgSend_180( + _lib._class_NSTimeZone1, _lib._sel_setDefaultTimeZone_1, value._id); } - static NSTimeZone? getLocalTimeZone(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_162( + static NSTimeZone getLocalTimeZone(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_179( _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSArray? getKnownTimeZoneNames(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getKnownTimeZoneNames(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSDictionary? getAbbreviationDictionary(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_164( + static NSDictionary getAbbreviationDictionary(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_181( _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static void setAbbreviationDictionary( - SwiftLibrary _lib, NSDictionary? value) { - _lib._objc_msgSend_165(_lib._class_NSTimeZone1, - _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); + static void setAbbreviationDictionary(SwiftLibrary _lib, NSDictionary value) { + return _lib._objc_msgSend_182(_lib._class_NSTimeZone1, + _lib._sel_setAbbreviationDictionary_1, value._id); } - static NSString? getTimeZoneDataVersion(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_20( + static NSString getTimeZoneDataVersion(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_21( _lib._class_NSTimeZone1, _lib._sel_timeZoneDataVersion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } int get secondsFromGMT { - return _lib._objc_msgSend_78(_id, _lib._sel_secondsFromGMT1); + return _lib._objc_msgSend_83(_id, _lib._sel_secondsFromGMT1); } NSString? get abbreviation { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_abbreviation1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -36745,73 +41689,89 @@ class NSTimeZone extends NSObject { } double get daylightSavingTimeOffset { - return _lib._objc_msgSend_149(_id, _lib._sel_daylightSavingTimeOffset1); + return _lib._objc_msgSend_165(_id, _lib._sel_daylightSavingTimeOffset1); } NSDate? get nextDaylightSavingTimeTransition { - final _ret = _lib._objc_msgSend_156( + final _ret = _lib._objc_msgSend_183( _id, _lib._sel_nextDaylightSavingTimeTransition1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_166( - _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + bool isEqualToTimeZone_(NSTimeZone aTimeZone) { + return _lib._objc_msgSend_184( + _id, _lib._sel_isEqualToTimeZone_1, aTimeZone._id); } - NSString localizedName_locale_(int style, NSLocale? locale) { - final _ret = _lib._objc_msgSend_181(_id, _lib._sel_localizedName_locale_1, + NSString? localizedName_locale_(int style, NSLocale? locale) { + final _ret = _lib._objc_msgSend_203(_id, _lib._sel_localizedName_locale_1, style, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithName_(SwiftLibrary _lib, NSString? tzName) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + static NSTimeZone? timeZoneWithName_(SwiftLibrary _lib, NSString tzName) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSTimeZone1, _lib._sel_timeZoneWithName_1, tzName._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithName_data_( - SwiftLibrary _lib, NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_182( + static NSTimeZone? timeZoneWithName_data_( + SwiftLibrary _lib, NSString tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_204( _lib._class_NSTimeZone1, _lib._sel_timeZoneWithName_data_1, - tzName?._id ?? ffi.nullptr, + tzName._id, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSTimeZone initWithName_(NSString? tzName) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone? initWithName_(NSString tzName) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithName_1, tzName._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } - NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_initWithName_data_1, - tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone? initWithName_data_(NSString tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_204(_id, _lib._sel_initWithName_data_1, + tzName._id, aData?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); } static NSTimeZone timeZoneForSecondsFromGMT_(SwiftLibrary _lib, int seconds) { - final _ret = _lib._objc_msgSend_183(_lib._class_NSTimeZone1, + final _ret = _lib._objc_msgSend_205(_lib._class_NSTimeZone1, _lib._sel_timeZoneForSecondsFromGMT_1, seconds); return NSTimeZone._(_ret, _lib, retain: true, release: true); } - static NSTimeZone timeZoneWithAbbreviation_( - SwiftLibrary _lib, NSString? abbreviation) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithAbbreviation_1, abbreviation?._id ?? ffi.nullptr); + static NSTimeZone? timeZoneWithAbbreviation_( + SwiftLibrary _lib, NSString abbreviation) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSTimeZone1, + _lib._sel_timeZoneWithAbbreviation_1, abbreviation._id); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + @override + NSTimeZone init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSTimeZone._(_ret, _lib, retain: true, release: true); } @@ -36820,6 +41780,13 @@ class NSTimeZone extends NSObject { return NSTimeZone._(_ret, _lib, retain: false, release: true); } + static NSTimeZone allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTimeZone1, _lib._sel_allocWithZone_1, zone); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + static NSTimeZone alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); @@ -36830,18 +41797,18 @@ class NSTimeZone extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._objc_msgSend_15(_lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36856,33 +41823,29 @@ class NSTimeZone extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimeZone1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTimeZone1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTimeZone1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTimeZone1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTimeZone1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -36926,255 +41889,247 @@ class NSLocale extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); } - NSObject objectForKey_(NSLocaleKey key) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_objectForKey_1, key); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString displayNameForKey_value_(NSLocaleKey key, NSObject value) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_displayNameForKey_value_1, key, value._id); - return NSString._(_ret, _lib, retain: true, release: true); + NSObject? objectForKey_(NSString key) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_objectForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSLocale initWithLocaleIdentifier_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); + NSString? displayNameForKey_value_(NSString key, NSObject value) { + final _ret = _lib._objc_msgSend_185( + _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSLocale initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSLocale initWithLocaleIdentifier_(NSString string) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_initWithLocaleIdentifier_1, string._id); return NSLocale._(_ret, _lib, retain: true, release: true); } - NSString? get localeIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); + NSLocale? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSLocale._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + NSString get localeIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localeIdentifier1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString localizedStringForLocaleIdentifier_(NSString localeIdentifier) { + final _ret = _lib._objc_msgSend_69(_id, + _lib._sel_localizedStringForLocaleIdentifier_1, localeIdentifier._id); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForLanguageCode_(NSString? languageCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLanguageCode_1, - languageCode?._id ?? ffi.nullptr); + NSString get languageCode { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_languageCode1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get countryCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_countryCode1); + NSString? localizedStringForLanguageCode_(NSString languageCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForLanguageCode_1, languageCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCountryCode_(NSString? countryCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCountryCode_1, - countryCode?._id ?? ffi.nullptr); + NSString get languageIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_languageIdentifier1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get scriptCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptCode1); + NSString? get countryCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_countryCode1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForScriptCode_(NSString? scriptCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForScriptCode_1, - scriptCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get variantCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_variantCode1); + NSString? localizedStringForCountryCode_(NSString countryCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForCountryCode_1, countryCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForVariantCode_(NSString? variantCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForVariantCode_1, - variantCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get regionCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_regionCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get exemplarCharacterSet { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_exemplarCharacterSet1); + NSString? get scriptCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scriptCode1); return _ret.address == 0 ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + NSString? localizedStringForScriptCode_(NSString scriptCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForScriptCode_1, scriptCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCalendarIdentifier_1, - calendarIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get variantCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_variantCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get collationIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collationIdentifier1); + NSString? localizedStringForVariantCode_(NSString variantCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForVariantCode_1, variantCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCollationIdentifier_( - NSString? collationIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollationIdentifier_1, - collationIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSCharacterSet get exemplarCharacterSet { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_exemplarCharacterSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool get usesMetricSystem { - return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); + NSString? localizedStringForCalendarIdentifier_(NSString calendarIdentifier) { + final _ret = _lib._objc_msgSend_186( + _id, + _lib._sel_localizedStringForCalendarIdentifier_1, + calendarIdentifier._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); + NSString? get collationIdentifier { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_collationIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); + NSString? localizedStringForCollationIdentifier_( + NSString collationIdentifier) { + final _ret = _lib._objc_msgSend_186( + _id, + _lib._sel_localizedStringForCollationIdentifier_1, + collationIdentifier._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get usesMetricSystem { + return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); } - NSString localizedStringForCurrencyCode_(NSString? currencyCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCurrencyCode_1, - currencyCode?._id ?? ffi.nullptr); + NSString get decimalSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_decimalSeparator1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get collatorIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collatorIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get groupingSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_groupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollatorIdentifier_1, - collatorIdentifier?._id ?? ffi.nullptr); + NSString get currencySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencySymbol1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get quotationBeginDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationBeginDelimiter1); + NSString? get currencyCode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currencyCode1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get quotationEndDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationEndDelimiter1); + NSString? localizedStringForCurrencyCode_(NSString currencyCode) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_localizedStringForCurrencyCode_1, currencyCode._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get alternateQuotationBeginDelimiter { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationBeginDelimiter1); + NSString get collatorIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_collatorIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? localizedStringForCollatorIdentifier_(NSString collatorIdentifier) { + final _ret = _lib._objc_msgSend_186( + _id, + _lib._sel_localizedStringForCollatorIdentifier_1, + collatorIdentifier._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get alternateQuotationEndDelimiter { + NSString get quotationBeginDelimiter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationBeginDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get quotationEndDelimiter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationEndDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get alternateQuotationBeginDelimiter { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_alternateQuotationBeginDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get alternateQuotationEndDelimiter { + final _ret = + _lib._objc_msgSend_21(_id, _lib._sel_alternateQuotationEndDelimiter1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSLocale? getAutoupdatingCurrentLocale(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_176( + static NSLocale getAutoupdatingCurrentLocale(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_197( _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSLocale? getCurrentLocale(SwiftLibrary _lib) { + static NSLocale getCurrentLocale(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_176(_lib._class_NSLocale1, _lib._sel_currentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_197(_lib._class_NSLocale1, _lib._sel_currentLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSLocale? getSystemLocale(SwiftLibrary _lib) { + static NSLocale getSystemLocale(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_176(_lib._class_NSLocale1, _lib._sel_systemLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_197(_lib._class_NSLocale1, _lib._sel_systemLocale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } static NSLocale localeWithLocaleIdentifier_( - SwiftLibrary _lib, NSString? ident) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSLocale1, - _lib._sel_localeWithLocaleIdentifier_1, ident?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString ident) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSLocale1, + _lib._sel_localeWithLocaleIdentifier_1, ident._id); return NSLocale._(_ret, _lib, retain: true, release: true); } @@ -37184,113 +42139,97 @@ class NSLocale extends NSObject { return NSLocale._(_ret, _lib, retain: true, release: true); } - static NSArray? getAvailableLocaleIdentifiers(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getAvailableLocaleIdentifiers(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOLanguageCodes(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getISOLanguageCodes(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCountryCodes(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getISOCountryCodes(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getISOCurrencyCodes(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getISOCurrencyCodes(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getCommonISOCurrencyCodes(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getCommonISOCurrencyCodes(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getPreferredLanguages(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getPreferredLanguages(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_preferredLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } static NSDictionary componentsFromLocaleIdentifier_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_140(_lib._class_NSLocale1, - _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_198(_lib._class_NSLocale1, + _lib._sel_componentsFromLocaleIdentifier_1, string._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSString localeIdentifierFromComponents_( - SwiftLibrary _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_177(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_199(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromComponents_1, dict._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString canonicalLocaleIdentifierFromString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLocaleIdentifierFromString_1, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSLocale1, + _lib._sel_canonicalLocaleIdentifierFromString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString canonicalLanguageIdentifierFromString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLanguageIdentifierFromString_1, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSLocale1, + _lib._sel_canonicalLanguageIdentifierFromString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString localeIdentifierFromWindowsLocaleCode_( + static NSString? localeIdentifierFromWindowsLocaleCode_( SwiftLibrary _lib, int lcid) { - final _ret = _lib._objc_msgSend_178(_lib._class_NSLocale1, + final _ret = _lib._objc_msgSend_200(_lib._class_NSLocale1, _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int windowsLocaleCodeFromLocaleIdentifier_( - SwiftLibrary _lib, NSString? localeIdentifier) { - return _lib._objc_msgSend_179( + SwiftLibrary _lib, NSString localeIdentifier) { + return _lib._objc_msgSend_201( _lib._class_NSLocale1, _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + localeIdentifier._id); } static int characterDirectionForLanguage_( - SwiftLibrary _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_180( - _lib._class_NSLocale1, - _lib._sel_characterDirectionForLanguage_1, - isoLangCode?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString isoLangCode) { + return _lib._objc_msgSend_202(_lib._class_NSLocale1, + _lib._sel_characterDirectionForLanguage_1, isoLangCode._id); } static int lineDirectionForLanguage_( - SwiftLibrary _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_180(_lib._class_NSLocale1, - _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString isoLangCode) { + return _lib._objc_msgSend_202(_lib._class_NSLocale1, + _lib._sel_lineDirectionForLanguage_1, isoLangCode._id); } static NSLocale new1(SwiftLibrary _lib) { @@ -37298,6 +42237,12 @@ class NSLocale extends NSObject { return NSLocale._(_ret, _lib, retain: false, release: true); } + static NSLocale allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSLocale1, _lib._sel_allocWithZone_1, zone); + return NSLocale._(_ret, _lib, retain: false, release: true); + } + static NSLocale alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); return NSLocale._(_ret, _lib, retain: false, release: true); @@ -37307,18 +42252,18 @@ class NSLocale extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSLocale1, + _lib._objc_msgSend_15(_lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37333,33 +42278,29 @@ class NSLocale extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSLocale1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSLocale1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSLocale1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSLocale1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSLocale1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -37371,8 +42312,6 @@ class NSLocale extends NSObject { } } -typedef NSLocaleKey = ffi.Pointer; - class NSCharacterSet extends NSObject { NSCharacterSet._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -37396,244 +42335,201 @@ class NSCharacterSet extends NSObject { obj._lib._class_NSCharacterSet1); } - static NSCharacterSet? getControlCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getControlCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getWhitespaceCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getWhitespaceCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( - SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168(_lib._class_NSCharacterSet1, + static NSCharacterSet getWhitespaceAndNewlineCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187(_lib._class_NSCharacterSet1, _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecimalDigitCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getDecimalDigitCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLetterCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getLetterCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getLowercaseLetterCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getLowercaseLetterCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getUppercaseLetterCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getUppercaseLetterCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNonBaseCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getNonBaseCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getAlphanumericCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getAlphanumericCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getDecomposableCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getDecomposableCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getIllegalCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getIllegalCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getPunctuationCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getPunctuationCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getCapitalizedLetterCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getCapitalizedLetterCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getSymbolCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getSymbolCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getNewlineCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getNewlineCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } static NSCharacterSet characterSetWithRange_( - SwiftLibrary _lib, NSRange aRange) { - final _ret = _lib._objc_msgSend_169( + SwiftLibrary _lib, _NSRange aRange) { + final _ret = _lib._objc_msgSend_188( _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet characterSetWithCharactersInString_( - SwiftLibrary _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_170( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString aString) { + final _ret = _lib._objc_msgSend_189(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, aString._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet characterSetWithBitmapRepresentation_( - SwiftLibrary _lib, NSData? data) { - final _ret = _lib._objc_msgSend_171( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSData data) { + final _ret = _lib._objc_msgSend_190(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, data._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithContentsOfFile_( - SwiftLibrary _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_170(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet? characterSetWithContentsOfFile_( + SwiftLibrary _lib, NSString fName) { + final _ret = _lib._objc_msgSend_191(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName._id); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSCharacterSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSCharacterSet initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_192(_id, _lib._sel_initWithCoder_1, coder._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_172( + return _lib._objc_msgSend_193( _id, _lib._sel_characterIsMember_1, aCharacter); } - NSData? get bitmapRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_bitmapRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get bitmapRepresentation { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_bitmapRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get invertedSet { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_invertedSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + NSCharacterSet get invertedSet { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_invertedSet1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_173( + return _lib._objc_msgSend_194( _id, _lib._sel_longCharacterIsMember_1, theLongChar); } - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_174( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + bool isSupersetOfSet_(NSCharacterSet theOtherSet) { + return _lib._objc_msgSend_195( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet._id); } bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_175(_id, _lib._sel_hasMemberInPlane_1, thePlane); + return _lib._objc_msgSend_196(_id, _lib._sel_hasMemberInPlane_1, thePlane); } - static NSCharacterSet? getURLUserAllowedCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLUserAllowedCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLPasswordAllowedCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLPasswordAllowedCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLHostAllowedCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLHostAllowedCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLPathAllowedCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLPathAllowedCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLQueryAllowedCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLQueryAllowedCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet? getURLFragmentAllowedCharacterSet(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_168( + static NSCharacterSet getURLFragmentAllowedCharacterSet(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_187( _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSCharacterSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet new1(SwiftLibrary _lib) { @@ -37642,6 +42538,13 @@ class NSCharacterSet extends NSObject { return NSCharacterSet._(_ret, _lib, retain: false, release: true); } + static NSCharacterSet allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCharacterSet1, _lib._sel_allocWithZone_1, zone); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + static NSCharacterSet alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); @@ -37652,18 +42555,18 @@ class NSCharacterSet extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, + _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37678,33 +42581,29 @@ class NSCharacterSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCharacterSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCharacterSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCharacterSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCharacterSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCharacterSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -37716,9 +42615,6 @@ class NSCharacterSet extends NSObject { } } -typedef UTF32Char = UInt32; -typedef UInt32 = ffi.UnsignedInt; - abstract class NSLocaleLanguageDirection { static const int NSLocaleLanguageDirectionUnknown = 0; static const int NSLocaleLanguageDirectionLeftToRight = 1; @@ -37727,9 +42623,22 @@ abstract class NSLocaleLanguageDirection { static const int NSLocaleLanguageDirectionBottomToTop = 4; } -typedef OSType = FourCharCode; -typedef FourCharCode = UInt32; -typedef NSURLResourceKey = ffi.Pointer; +abstract class NSURLBookmarkCreationOptions { + static const int NSURLBookmarkCreationPreferFileIDResolution = 256; + static const int NSURLBookmarkCreationMinimalBookmark = 512; + static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; + static const int NSURLBookmarkCreationWithSecurityScope = 2048; + static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = + 536870912; +} + +abstract class NSURLBookmarkResolutionOptions { + static const int NSURLBookmarkResolutionWithoutUI = 256; + static const int NSURLBookmarkResolutionWithoutMounting = 512; + static const int NSURLBookmarkResolutionWithSecurityScope = 1024; + static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; +} class NSURLHandle extends NSObject { NSURLHandle._(ffi.Pointer id, SwiftLibrary lib, @@ -37756,123 +42665,124 @@ class NSURLHandle extends NSObject { static void registerURLHandleClass_( SwiftLibrary _lib, NSObject anURLHandleSubclass) { - return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._objc_msgSend_15(_lib._class_NSURLHandle1, _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); } - static NSObject URLHandleClassForURL_(SwiftLibrary _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSURLHandle1, - _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); + static NSObject URLHandleClassForURL_(SwiftLibrary _lib, NSURL anURL) { + final _ret = _lib._objc_msgSend_262( + _lib._class_NSURLHandle1, _lib._sel_URLHandleClassForURL_1, anURL._id); return NSObject._(_ret, _lib, retain: true, release: true); } int status() { - return _lib._objc_msgSend_227(_id, _lib._sel_status1); + return _lib._objc_msgSend_263(_id, _lib._sel_status1); } NSString failureReason() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_failureReason1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_failureReason1); return NSString._(_ret, _lib, retain: true, release: true); } - void addClient_(NSObject? client) { - return _lib._objc_msgSend_15( - _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + void addClient_(NSObject client) { + _lib._objc_msgSend_15(_id, _lib._sel_addClient_1, client._id); } - void removeClient_(NSObject? client) { - return _lib._objc_msgSend_15( - _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + void removeClient_(NSObject client) { + _lib._objc_msgSend_15(_id, _lib._sel_removeClient_1, client._id); } void loadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); } void cancelLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); } NSData resourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_resourceData1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_resourceData1); return NSData._(_ret, _lib, retain: true, release: true); } NSData availableResourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableResourceData1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_availableResourceData1); return NSData._(_ret, _lib, retain: true, release: true); } int expectedResourceDataSize() { - return _lib._objc_msgSend_214(_id, _lib._sel_expectedResourceDataSize1); + return _lib._objc_msgSend_238(_id, _lib._sel_expectedResourceDataSize1); } void flushCachedData() { - return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); + _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); } - void backgroundLoadDidFailWithReason_(NSString? reason) { - return _lib._objc_msgSend_186( - _id, - _lib._sel_backgroundLoadDidFailWithReason_1, - reason?._id ?? ffi.nullptr); + void backgroundLoadDidFailWithReason_(NSString reason) { + _lib._objc_msgSend_248( + _id, _lib._sel_backgroundLoadDidFailWithReason_1, reason._id); } - void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - return _lib._objc_msgSend_228(_id, _lib._sel_didLoadBytes_loadComplete_1, - newBytes?._id ?? ffi.nullptr, yorn); + void didLoadBytes_loadComplete_(NSData newBytes, bool yorn) { + _lib._objc_msgSend_264( + _id, _lib._sel_didLoadBytes_loadComplete_1, newBytes._id, yorn); } - static bool canInitWithURL_(SwiftLibrary _lib, NSURL? anURL) { - return _lib._objc_msgSend_229(_lib._class_NSURLHandle1, - _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + static bool canInitWithURL_(SwiftLibrary _lib, NSURL anURL) { + return _lib._objc_msgSend_265( + _lib._class_NSURLHandle1, _lib._sel_canInitWithURL_1, anURL._id); } - static NSURLHandle cachedHandleForURL_(SwiftLibrary _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_230(_lib._class_NSURLHandle1, - _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); + static NSURLHandle cachedHandleForURL_(SwiftLibrary _lib, NSURL anURL) { + final _ret = _lib._objc_msgSend_266( + _lib._class_NSURLHandle1, _lib._sel_cachedHandleForURL_1, anURL._id); return NSURLHandle._(_ret, _lib, retain: true, release: true); } - NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { - final _ret = _lib._objc_msgSend_231(_id, _lib._sel_initWithURL_cached_1, - anURL?._id ?? ffi.nullptr, willCache); + NSObject initWithURL_cached_(NSURL anURL, bool willCache) { + final _ret = _lib._objc_msgSend_267( + _id, _lib._sel_initWithURL_cached_1, anURL._id, willCache); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + NSObject propertyForKey_(NSString propertyKey) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_propertyForKey_1, propertyKey._id); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + NSObject propertyForKeyIfAvailable_(NSString propertyKey) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_propertyForKeyIfAvailable_1, propertyKey._id); return NSObject._(_ret, _lib, retain: true, release: true); } - bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { - return _lib._objc_msgSend_225(_id, _lib._sel_writeProperty_forKey_1, - propertyValue._id, propertyKey?._id ?? ffi.nullptr); + bool writeProperty_forKey_(NSObject propertyValue, NSString propertyKey) { + return _lib._objc_msgSend_261(_id, _lib._sel_writeProperty_forKey_1, + propertyValue._id, propertyKey._id); } - bool writeData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + bool writeData_(NSData data) { + return _lib._objc_msgSend_24(_id, _lib._sel_writeData_1, data._id); } NSData loadInForeground() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_loadInForeground1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_loadInForeground1); return NSData._(_ret, _lib, retain: true, release: true); } void beginLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); } void endLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + } + + @override + NSURLHandle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLHandle._(_ret, _lib, retain: true, release: true); } static NSURLHandle new1(SwiftLibrary _lib) { @@ -37880,6 +42790,13 @@ class NSURLHandle extends NSObject { return NSURLHandle._(_ret, _lib, retain: false, release: true); } + static NSURLHandle allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLHandle1, _lib._sel_allocWithZone_1, zone); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + static NSURLHandle alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); @@ -37890,18 +42807,18 @@ class NSURLHandle extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._objc_msgSend_15(_lib._class_NSURLHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37916,33 +42833,29 @@ class NSURLHandle extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -37970,6 +42883,8 @@ abstract class NSDataWritingOptions { static const int NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = 1073741824; + static const int NSDataWritingFileProtectionCompleteWhenUserInactive = + 1342177280; static const int NSDataWritingFileProtectionMask = 4026531840; static const int NSAtomicWrite = 1; } @@ -37979,94 +42894,138 @@ abstract class NSDataSearchOptions { static const int NSDataSearchAnchored = 2; } -void _ObjCBlock8_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock8_closureRegistry = {}; -int _ObjCBlock8_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { - final id = ++_ObjCBlock8_closureRegistryIndex; - _ObjCBlock8_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock8_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock8_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock8 extends _ObjCBlockBase { - ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock8.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock8_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock8.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunction(SwiftLibrary lib, + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock8_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock8_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), lib); - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.listener(SwiftLibrary lib, + void Function(ffi.Pointer, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>()(_id, arg0, arg1, arg2); } abstract class NSDataReadingOptions { @@ -38078,77 +43037,115 @@ abstract class NSDataReadingOptions { static const int NSUncachedRead = 2; } -void _ObjCBlock9_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} - -final _ObjCBlock9_closureRegistry = {}; -int _ObjCBlock9_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { - final id = ++_ObjCBlock9_closureRegistryIndex; - _ObjCBlock9_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction, int)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock9_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock9_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock9 extends _ObjCBlockBase { - ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock9.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer arg0, NSUInteger arg1)>> + ffi.Pointer arg0, ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock9_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock9.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0, int arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunction( + SwiftLibrary lib, void Function(ffi.Pointer, int) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock9_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock9_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), lib); - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.listener( + SwiftLibrary lib, void Function(ffi.Pointer, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.UnsignedLong)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(ffi.Pointer arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } abstract class NSDataBase64DecodingOptions { @@ -38169,8 +43166,6 @@ abstract class NSDataCompressionAlgorithm { static const int NSDataCompressionAlgorithmZlib = 3; } -typedef NSZone = _NSZone; - abstract class NSDecodingFailurePolicy { static const int NSDecodingFailurePolicyRaiseException = 0; static const int NSDecodingFailurePolicySetErrorAndReturn = 1; @@ -38201,142 +43196,201 @@ abstract class NSStringEnumerationOptions { static const int NSStringEnumerationLocalized = 1024; } -void _ObjCBlock10_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - NSRange arg2, ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); -} - -final _ObjCBlock10_closureRegistry = {}; -int _ObjCBlock10_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { - final id = ++_ObjCBlock10_closureRegistryIndex; - _ObjCBlock10_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry = , _NSRange, _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, _NSRange, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock10_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return _ObjCBlock10_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} - -class ObjCBlock10 extends _ObjCBlockBase { - ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) => + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2, arg3); + +class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock10.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - NSRange arg2, ffi.Pointer arg3)>> + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock10_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock10.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunction(SwiftLibrary lib, + void Function(NSString?, _NSRange, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + fn(arg0.address == 0 ? null : NSString._(arg0, lib, retain: true, release: true), arg1, arg2, arg3))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.listener(SwiftLibrary lib, + void Function(NSString?, _NSRange, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock10_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock10_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + fn(arg0.address == 0 ? null : NSString._(arg0, lib, retain: true, release: true), arg1, arg2, arg3))), lib); - void call(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSString? arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + _NSRange, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2, arg3); +} + +void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock11_closureRegistry = {}; -int _ObjCBlock11_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { - final id = ++_ObjCBlock11_closureRegistryIndex; - _ObjCBlock11_closureRegistry[id] = fn; + ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSString_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock11_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock11 extends _ObjCBlockBase { - ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock11.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -38345,133 +43399,213 @@ class ObjCBlock11 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock11_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock11.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSString_bool.fromFunction( + SwiftLibrary lib, void Function(NSString, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock11_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) .cast(), - _ObjCBlock11_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString._(arg0, lib, retain: true, release: true), + arg1))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSString_bool.listener( + SwiftLibrary lib, void Function(NSString, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSString._(arg0, lib, retain: true, release: true), + arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSString arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -typedef NSStringEncoding = NSUInteger; - abstract class NSStringEncodingConversionOptions { static const int NSStringEncodingConversionAllowLossy = 1; static const int NSStringEncodingConversionExternalRepresentation = 2; } -typedef NSStringTransform = ffi.Pointer; -void _ObjCBlock12_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} - -final _ObjCBlock12_closureRegistry = {}; -int _ObjCBlock12_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { - final id = ++_ObjCBlock12_closureRegistryIndex; - _ObjCBlock12_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction, int)>()( + arg0, arg1); +final _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock12_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock12 extends _ObjCBlockBase { - ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1) => + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock12.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, NSUInteger arg1)>> + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock12_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock12.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0, int arg1) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunction( + SwiftLibrary lib, void Function(ffi.Pointer, int) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock12_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock12_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => + fn(arg0, arg1))), lib); - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.listener( + SwiftLibrary lib, void Function(ffi.Pointer, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.UnsignedLong)>.listener( + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( + (ffi.Pointer arg0, int arg1) => + fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.UnsignedLong)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(ffi.Pointer arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } -typedef NSLinguisticTagScheme = ffi.Pointer; - abstract class NSLinguisticTaggerOptions { static const int NSLinguisticTaggerOmitWords = 1; static const int NSLinguisticTaggerOmitPunctuation = 2; @@ -38503,85 +43637,82 @@ class NSOrthography extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); } - NSString? get dominantScript { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantScript1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get dominantScript { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dominantScript1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get languageMap { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_languageMap1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get languageMap { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_languageMap1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } NSOrthography initWithDominantScript_languageMap_( - NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_352( - _id, - _lib._sel_initWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - - NSOrthography initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSString script, NSDictionary map) { + final _ret = _lib._objc_msgSend_400(_id, + _lib._sel_initWithDominantScript_languageMap_1, script._id, map._id); return NSOrthography._(_ret, _lib, retain: true, release: true); } - NSArray languagesForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_languagesForScript_1, script?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString dominantLanguageForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get dominantLanguage { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantLanguage1); + NSOrthography? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSOrthography._(_ret, _lib, retain: true, release: true); } - NSArray? get allScripts { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allScripts1); + NSArray? languagesForScript_(NSString script) { + final _ret = + _lib._objc_msgSend_132(_id, _lib._sel_languagesForScript_1, script._id); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allLanguages { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allLanguages1); + NSString? dominantLanguageForScript_(NSString script) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_dominantLanguageForScript_1, script._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get dominantLanguage { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dominantLanguage1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray get allScripts { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allScripts1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray get allLanguages { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allLanguages1); + return NSArray._(_ret, _lib, retain: true, release: true); } static NSOrthography defaultOrthographyForLanguage_( - SwiftLibrary _lib, NSString? language) { - final _ret = _lib._objc_msgSend_30( - _lib._class_NSOrthography1, - _lib._sel_defaultOrthographyForLanguage_1, - language?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString language) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSOrthography1, + _lib._sel_defaultOrthographyForLanguage_1, language._id); return NSOrthography._(_ret, _lib, retain: true, release: true); } static NSOrthography orthographyWithDominantScript_languageMap_( - SwiftLibrary _lib, NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_352( + SwiftLibrary _lib, NSString script, NSDictionary map) { + final _ret = _lib._objc_msgSend_400( _lib._class_NSOrthography1, _lib._sel_orthographyWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); + script._id, + map._id); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + @override + NSOrthography init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSOrthography._(_ret, _lib, retain: true, release: true); } @@ -38591,6 +43722,13 @@ class NSOrthography extends NSObject { return NSOrthography._(_ret, _lib, retain: false, release: true); } + static NSOrthography allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrthography1, _lib._sel_allocWithZone_1, zone); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + static NSOrthography alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); @@ -38601,18 +43739,18 @@ class NSOrthography extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrthography1, + _lib._objc_msgSend_15(_lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -38627,33 +43765,29 @@ class NSOrthography extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrthography1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOrthography1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOrthography1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOrthography1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOrthography1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -38665,37 +43799,47 @@ class NSOrthography extends NSObject { } } -void _ObjCBlock13_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock13_closureRegistry = {}; -int _ObjCBlock13_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { - final id = ++_ObjCBlock13_closureRegistryIndex; - _ObjCBlock13_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock13_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock13_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock13 extends _ObjCBlockBase { - ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock13.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -38704,81 +43848,121 @@ class ObjCBlock13 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock13_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock13.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_bool.fromFunction( + SwiftLibrary lib, void Function(NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock13_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) .cast(), - _ObjCBlock13_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSObject._(arg0, lib, retain: true, release: true), + arg1))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_bool.listener( + SwiftLibrary lib, void Function(NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), + arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -bool _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target + void call(NSObject arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>>() .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } -final _ObjCBlock14_closureRegistry = {}; -int _ObjCBlock14_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { - final id = ++_ObjCBlock14_closureRegistryIndex; - _ObjCBlock14_closureRegistry[id] = fn; +bool _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_ObjCObject_bool_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_ObjCObject_bool_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); -class ObjCBlock14 extends _ObjCBlockBase { - ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_bool._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock14.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -38787,48 +43971,48 @@ class ObjCBlock14 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock14.fromFunction( - SwiftLibrary lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_ObjCObject_bool.fromFunction( + SwiftLibrary lib, bool Function(NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_bool_closureTrampoline, false) .cast(), - _ObjCBlock14_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_bool_registerClosure( + (ffi.Pointer arg0, + ffi.Pointer arg1) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1))), lib); - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + bool call(NSObject arg0, ffi.Pointer arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1); } class NSFileManager extends NSObject { @@ -38854,62 +44038,64 @@ class NSFileManager extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileManager1); } - static NSFileManager? getDefaultManager(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_382( + static NSFileManager getDefaultManager(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_431( _lib._class_NSFileManager1, _lib._sel_defaultManager1); - return _ret.address == 0 - ? null - : NSFileManager._(_ret, _lib, retain: true, release: true); + return NSFileManager._(_ret, _lib, retain: true, release: true); } - NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options_( + NSArray? mountedVolumeURLsIncludingResourceValuesForKeys_options_( NSArray? propertyKeys, int options) { - final _ret = _lib._objc_msgSend_383( + final _ret = _lib._objc_msgSend_432( _id, _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, propertyKeys?._id ?? ffi.nullptr, options); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } void unmountVolumeAtURL_options_completionHandler_( - NSURL? url, int mask, ObjCBlock15 completionHandler) { - return _lib._objc_msgSend_384( + NSURL url, int mask, ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_433( _id, _lib._sel_unmountVolumeAtURL_options_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, mask, completionHandler._id); } - NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( - NSURL? url, + NSArray? contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( + NSURL url, NSArray? keys, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_385( + final _ret = _lib._objc_msgSend_434( _id, _lib._sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1, - url?._id ?? ffi.nullptr, + url._id, keys?._id ?? ffi.nullptr, mask, error); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { - final _ret = _lib._objc_msgSend_386( + final _ret = _lib._objc_msgSend_435( _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); return NSArray._(_ret, _lib, retain: true, release: true); } - NSURL URLForDirectory_inDomain_appropriateForURL_create_error_( + NSURL? URLForDirectory_inDomain_appropriateForURL_create_error_( int directory, int domain, NSURL? url, bool shouldCreate, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_387( + final _ret = _lib._objc_msgSend_436( _id, _lib._sel_URLForDirectory_inDomain_appropriateForURL_create_error_1, directory, @@ -38917,20 +44103,22 @@ class NSFileManager extends NSObject { url?._id ?? ffi.nullptr, shouldCreate, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( ffi.Pointer outRelationship, - NSURL? directoryURL, - NSURL? otherURL, + NSURL directoryURL, + NSURL otherURL, ffi.Pointer> error) { - return _lib._objc_msgSend_388( + return _lib._objc_msgSend_437( _id, _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, outRelationship, - directoryURL?._id ?? ffi.nullptr, - otherURL?._id ?? ffi.nullptr, + directoryURL._id, + otherURL._id, error); } @@ -38938,358 +44126,527 @@ class NSFileManager extends NSObject { ffi.Pointer outRelationship, int directory, int domainMask, - NSURL? url, + NSURL url, ffi.Pointer> error) { - return _lib._objc_msgSend_389( + return _lib._objc_msgSend_438( _id, _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, outRelationship, directory, domainMask, - url?._id ?? ffi.nullptr, + url._id, error); } bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( - NSURL? url, + NSURL url, bool createIntermediates, NSDictionary? attributes, ffi.Pointer> error) { - return _lib._objc_msgSend_390( + return _lib._objc_msgSend_439( _id, _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, - url?._id ?? ffi.nullptr, + url._id, createIntermediates, attributes?._id ?? ffi.nullptr, error); } bool createSymbolicLinkAtURL_withDestinationURL_error_( - NSURL? url, NSURL? destURL, ffi.Pointer> error) { - return _lib._objc_msgSend_391( + NSURL url, NSURL destURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440( _id, _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, - url?._id ?? ffi.nullptr, - destURL?._id ?? ffi.nullptr, + url._id, + destURL._id, error); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - bool setAttributes_ofItemAtPath_error_(NSDictionary? attributes, - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_392( + bool setAttributes_ofItemAtPath_error_(NSDictionary attributes, NSString path, + ffi.Pointer> error) { + return _lib._objc_msgSend_441( _id, _lib._sel_setAttributes_ofItemAtPath_error_1, - attributes?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr, + attributes._id, + path._id, error); } bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( - NSString? path, + NSString path, bool createIntermediates, NSDictionary? attributes, ffi.Pointer> error) { - return _lib._objc_msgSend_393( + return _lib._objc_msgSend_442( _id, _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, - path?._id ?? ffi.nullptr, + path._id, createIntermediates, attributes?._id ?? ffi.nullptr, error); } - NSArray contentsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394( - _id, - _lib._sel_contentsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? contentsOfDirectoryAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_contentsOfDirectoryAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray subpathsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394( - _id, - _lib._sel_subpathsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? subpathsOfDirectoryAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_subpathsOfDirectoryAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_395( - _id, - _lib._sel_attributesOfItemAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? attributesOfItemAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_444( + _id, _lib._sel_attributesOfItemAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesOfFileSystemForPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_395( - _id, - _lib._sel_attributesOfFileSystemForPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? attributesOfFileSystemForPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_444( + _id, _lib._sel_attributesOfFileSystemForPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, - NSString? destPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396( + bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString path, + NSString destPath, ffi.Pointer> error) { + return _lib._objc_msgSend_445( _id, _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, - path?._id ?? ffi.nullptr, - destPath?._id ?? ffi.nullptr, + path._id, + destPath._id, error); } - NSString destinationOfSymbolicLinkAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_397( - _id, - _lib._sel_destinationOfSymbolicLinkAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? destinationOfSymbolicLinkAtPath_error_( + NSString path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_446(_id, + _lib._sel_destinationOfSymbolicLinkAtPath_error_1, path._id, error); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + bool copyItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396(_id, _lib._sel_copyItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + return _lib._objc_msgSend_445(_id, _lib._sel_copyItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + bool moveItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396(_id, _lib._sel_moveItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + return _lib._objc_msgSend_445(_id, _lib._sel_moveItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } - bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + bool linkItemAtPath_toPath_error_(NSString srcPath, NSString dstPath, ffi.Pointer> error) { - return _lib._objc_msgSend_396(_id, _lib._sel_linkItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + return _lib._objc_msgSend_445(_id, _lib._sel_linkItemAtPath_toPath_error_1, + srcPath._id, dstPath._id, error); } bool removeItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_398(_id, _lib._sel_removeItemAtPath_error_1, - path?._id ?? ffi.nullptr, error); + NSString path, ffi.Pointer> error) { + return _lib._objc_msgSend_447( + _id, _lib._sel_removeItemAtPath_error_1, path._id, error); } - bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_391(_id, _lib._sel_copyItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + bool copyItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440(_id, _lib._sel_copyItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_391(_id, _lib._sel_moveItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + bool moveItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440(_id, _lib._sel_moveItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } - bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_391(_id, _lib._sel_linkItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + bool linkItemAtURL_toURL_error_( + NSURL srcURL, NSURL dstURL, ffi.Pointer> error) { + return _lib._objc_msgSend_440(_id, _lib._sel_linkItemAtURL_toURL_error_1, + srcURL._id, dstURL._id, error); } bool removeItemAtURL_error_( - NSURL? URL, ffi.Pointer> error) { - return _lib._objc_msgSend_81( - _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); + NSURL URL, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_removeItemAtURL_error_1, URL._id, error); } bool trashItemAtURL_resultingItemURL_error_( - NSURL? url, + NSURL url, ffi.Pointer> outResultingURL, ffi.Pointer> error) { - return _lib._objc_msgSend_399( + return _lib._objc_msgSend_448( _id, _lib._sel_trashItemAtURL_resultingItemURL_error_1, - url?._id ?? ffi.nullptr, + url._id, outResultingURL, error); } - NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { - final _ret = _lib._objc_msgSend_400( - _id, - _lib._sel_fileAttributesAtPath_traverseLink_1, - path?._id ?? ffi.nullptr, - yorn); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? fileAttributesAtPath_traverseLink_(NSString path, bool yorn) { + final _ret = _lib._objc_msgSend_449( + _id, _lib._sel_fileAttributesAtPath_traverseLink_1, path._id, yorn); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { - return _lib._objc_msgSend_401(_id, _lib._sel_changeFileAttributes_atPath_1, - attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + bool changeFileAttributes_atPath_(NSDictionary attributes, NSString path) { + return _lib._objc_msgSend_450( + _id, _lib._sel_changeFileAttributes_atPath_1, attributes._id, path._id); } - NSArray directoryContentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? directoryContentsAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_132( + _id, _lib._sel_directoryContentsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary fileSystemAttributesAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_140( - _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? fileSystemAttributesAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_fileSystemAttributesAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? pathContentOfSymbolicLinkAtPath_(NSString path) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_pathContentOfSymbolicLinkAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } bool createSymbolicLinkAtPath_pathContent_( - NSString? path, NSString? otherpath) { - return _lib._objc_msgSend_402( + NSString path, NSString otherpath) { + return _lib._objc_msgSend_451( _id, _lib._sel_createSymbolicLinkAtPath_pathContent_1, - path?._id ?? ffi.nullptr, - otherpath?._id ?? ffi.nullptr); + path._id, + otherpath._id); } bool createDirectoryAtPath_attributes_( - NSString? path, NSDictionary? attributes) { - return _lib._objc_msgSend_403( - _id, - _lib._sel_createDirectoryAtPath_attributes_1, - path?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); + NSString path, NSDictionary attributes) { + return _lib._objc_msgSend_452(_id, + _lib._sel_createDirectoryAtPath_attributes_1, path._id, attributes._id); } bool linkPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_404(_id, _lib._sel_linkPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + NSString src, NSString dest, NSObject? handler) { + return _lib._objc_msgSend_453(_id, _lib._sel_linkPath_toPath_handler_1, + src._id, dest._id, handler?._id ?? ffi.nullptr); } bool copyPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_404(_id, _lib._sel_copyPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + NSString src, NSString dest, NSObject? handler) { + return _lib._objc_msgSend_453(_id, _lib._sel_copyPath_toPath_handler_1, + src._id, dest._id, handler?._id ?? ffi.nullptr); } bool movePath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_404(_id, _lib._sel_movePath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + NSString src, NSString dest, NSObject? handler) { + return _lib._objc_msgSend_453(_id, _lib._sel_movePath_toPath_handler_1, + src._id, dest._id, handler?._id ?? ffi.nullptr); } - bool removeFileAtPath_handler_(NSString? path, NSObject handler) { - return _lib._objc_msgSend_405(_id, _lib._sel_removeFileAtPath_handler_1, - path?._id ?? ffi.nullptr, handler._id); + bool removeFileAtPath_handler_(NSString path, NSObject? handler) { + return _lib._objc_msgSend_454(_id, _lib._sel_removeFileAtPath_handler_1, + path._id, handler?._id ?? ffi.nullptr); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currentDirectoryPath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currentDirectoryPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool changeCurrentDirectoryPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); + bool changeCurrentDirectoryPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_changeCurrentDirectoryPath_1, path._id); } - bool fileExistsAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); + bool fileExistsAtPath_(NSString path) { + return _lib._objc_msgSend_64(_id, _lib._sel_fileExistsAtPath_1, path._id); } bool fileExistsAtPath_isDirectory_( - NSString? path, ffi.Pointer isDirectory) { - return _lib._objc_msgSend_406(_id, _lib._sel_fileExistsAtPath_isDirectory_1, - path?._id ?? ffi.nullptr, isDirectory); + NSString path, ffi.Pointer isDirectory) { + return _lib._objc_msgSend_455( + _id, _lib._sel_fileExistsAtPath_isDirectory_1, path._id, isDirectory); } - bool isReadableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isReadableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isReadableFileAtPath_1, path._id); } - bool isWritableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isWritableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isWritableFileAtPath_1, path._id); } - bool isExecutableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isExecutableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isExecutableFileAtPath_1, path._id); } - bool isDeletableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); + bool isDeletableFileAtPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isDeletableFileAtPath_1, path._id); } - bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { - return _lib._objc_msgSend_402(_id, _lib._sel_contentsEqualAtPath_andPath_1, - path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); + bool contentsEqualAtPath_andPath_(NSString path1, NSString path2) { + return _lib._objc_msgSend_451( + _id, _lib._sel_contentsEqualAtPath_andPath_1, path1._id, path2._id); } - NSString displayNameAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); + NSString displayNameAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_69(_id, _lib._sel_displayNameAtPath_1, path._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray componentsToDisplayForPath_(NSString? path) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? componentsToDisplayForPath_(NSString path) { + final _ret = _lib._objc_msgSend_132( + _id, _lib._sel_componentsToDisplayForPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSURL? get homeDirectoryForCurrentUser { + NSObject? enumeratorAtPath_(NSString path) { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_homeDirectoryForCurrentUser1); + _lib._objc_msgSend_38(_id, _lib._sel_enumeratorAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( + NSURL url, + NSArray? keys, + int mask, + ObjCBlock_bool_NSURL_NSError? handler) { + final _ret = _lib._objc_msgSend_456( + _id, + _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, + url._id, + keys?._id ?? ffi.nullptr, + mask, + handler?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? subpathsAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_132(_id, _lib._sel_subpathsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSData? contentsAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_457(_id, _lib._sel_contentsAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + bool createFileAtPath_contents_attributes_( + NSString path, NSData? data, NSDictionary? attr) { + return _lib._objc_msgSend_458( + _id, + _lib._sel_createFileAtPath_contents_attributes_1, + path._id, + data?._id ?? ffi.nullptr, + attr?._id ?? ffi.nullptr); + } + + ffi.Pointer fileSystemRepresentationWithPath_(NSString path) { + return _lib._objc_msgSend_459( + _id, _lib._sel_fileSystemRepresentationWithPath_1, path._id); + } + + NSString stringWithFileSystemRepresentation_length_( + ffi.Pointer str, int len) { + final _ret = _lib._objc_msgSend_460( + _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool + replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_( + NSURL originalItemURL, + NSURL newItemURL, + NSString? backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_461( + _id, + _lib._sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1, + originalItemURL._id, + newItemURL._id, + backupItemName?._id ?? ffi.nullptr, + options, + resultingURL, + error); + } + + bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL url, + NSURL destinationURL, ffi.Pointer> error) { + return _lib._objc_msgSend_462( + _id, + _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, + flag, + url._id, + destinationURL._id, + error); + } + + bool isUbiquitousItemAtURL_(NSURL url) { + return _lib._objc_msgSend_265( + _id, _lib._sel_isUbiquitousItemAtURL_1, url._id); + } + + bool startDownloadingUbiquitousItemAtURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89(_id, + _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, url._id, error); + } + + bool evictUbiquitousItemAtURL_error_( + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_89( + _id, _lib._sel_evictUbiquitousItemAtURL_error_1, url._id, error); + } + + NSURL? URLForUbiquityContainerIdentifier_(NSString? containerIdentifier) { + final _ret = _lib._objc_msgSend_463( + _id, + _lib._sel_URLForUbiquityContainerIdentifier_1, + containerIdentifier?._id ?? ffi.nullptr); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL? get temporaryDirectory { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_temporaryDirectory1); + NSURL? URLForPublishingUbiquitousItemAtURL_expirationDate_error_( + NSURL url, + ffi.Pointer> outDate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_464( + _id, + _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, + url._id, + outDate, + error); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL homeDirectoryForUser_(NSString? userName) { - final _ret = _lib._objc_msgSend_34( - _id, _lib._sel_homeDirectoryForUser_1, userName?._id ?? ffi.nullptr); + NSObject? get ubiquityIdentityToken { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_ubiquityIdentityToken1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void getFileProviderServicesForItemAtURL_completionHandler_( + NSURL url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { + _lib._objc_msgSend_465( + _id, + _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, + url._id, + completionHandler._id); + } + + NSURL? containerURLForSecurityApplicationGroupIdentifier_( + NSString groupIdentifier) { + final _ret = _lib._objc_msgSend_257( + _id, + _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, + groupIdentifier._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL get homeDirectoryForCurrentUser { + final _ret = + _lib._objc_msgSend_466(_id, _lib._sel_homeDirectoryForCurrentUser1); return NSURL._(_ret, _lib, retain: true, release: true); } + NSURL get temporaryDirectory { + final _ret = _lib._objc_msgSend_466(_id, _lib._sel_temporaryDirectory1); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? homeDirectoryForUser_(NSString userName) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_homeDirectoryForUser_1, userName._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + @override + NSFileManager init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileManager._(_ret, _lib, retain: true, release: true); + } + static NSFileManager new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); return NSFileManager._(_ret, _lib, retain: false, release: true); } + static NSFileManager allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileManager1, _lib._sel_allocWithZone_1, zone); + return NSFileManager._(_ret, _lib, retain: false, release: true); + } + static NSFileManager alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); @@ -39300,18 +44657,18 @@ class NSFileManager extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileManager1, + _lib._objc_msgSend_15(_lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -39326,33 +44683,29 @@ class NSFileManager extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileManager1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFileManager1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileManager1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFileManager1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFileManager1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -39374,72 +44727,113 @@ abstract class NSFileManagerUnmountOptions { static const int NSFileManagerUnmountWithoutUI = 2; } -void _ObjCBlock15_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock15_closureRegistry = {}; -int _ObjCBlock15_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { - final id = ++_ObjCBlock15_closureRegistryIndex; - _ObjCBlock15_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSError_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock15_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock15 extends _ObjCBlockBase { - ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSError._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock15.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock15_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock15.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSError.fromFunction( + SwiftLibrary lib, void Function(NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock15_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) .cast(), - _ObjCBlock15_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSError.listener( + SwiftLibrary lib, void Function(NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSError? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } abstract class NSDirectoryEnumerationOptions { @@ -39494,6 +44888,229 @@ abstract class NSURLRelationship { static const int NSURLRelationshipOther = 2; } +bool _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_bool_NSURL_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_bool_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_NSURL_NSError_registerClosure( + bool Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_bool_NSURL_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock_bool_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_bool_NSURL_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_bool_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_NSURL_NSError.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_bool_NSURL_NSError.fromFunction( + SwiftLibrary lib, bool Function(NSURL, NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_NSURL_NSError_closureTrampoline, false) + .cast(), + _ObjCBlock_bool_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, + ffi.Pointer arg1) => + fn(NSURL._(arg0, lib, retain: true, release: true), NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + bool call(NSURL arg0, NSError arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); +} + +abstract class NSFileManagerItemReplacementOptions { + static const int NSFileManagerItemReplacementUsingNewMetadataOnly = 1; + static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( + SwiftLibrary lib, void Function(NSDictionary?, NSError?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSDictionary._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary_NSError.listener( + SwiftLibrary lib, void Function(NSDictionary?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSDictionary? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); +} + class NSMutableArray extends NSArray { NSMutableArray._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -39518,24 +45135,24 @@ class NSMutableArray extends NSArray { } void addObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); } void insertObject_atIndex_(NSObject anObject, int index) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); } void removeLastObject() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); } void removeObjectAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeObjectAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeObjectAtIndex_1, index); } void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - return _lib._objc_msgSend_411( + _lib._objc_msgSend_471( _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } @@ -39547,180 +45164,196 @@ class NSMutableArray extends NSArray { NSMutableArray initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableArray._(_ret, _lib, retain: true, release: true); } @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSMutableArray? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - void addObjectsFromArray_(NSArray? otherArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray otherArray) { + _lib._objc_msgSend_472( + _id, _lib._sel_addObjectsFromArray_1, otherArray._id); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_413( + _lib._objc_msgSend_473( _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void removeObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_414( + void removeObject_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_474( _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } void removeObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); } - void removeObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_414( + void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_474( _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } void removeObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - return _lib._objc_msgSend_415( + ffi.Pointer indices, int cnt) { + _lib._objc_msgSend_475( _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } - void removeObjectsInArray_(NSArray? otherArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray otherArray) { + _lib._objc_msgSend_472( + _id, _lib._sel_removeObjectsInArray_1, otherArray._id); } - void removeObjectsInRange_(NSRange range) { - return _lib._objc_msgSend_416(_id, _lib._sel_removeObjectsInRange_1, range); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_removeObjectsInRange_1, range); } void replaceObjectsInRange_withObjectsFromArray_range_( - NSRange range, NSArray? otherArray, NSRange otherRange) { - return _lib._objc_msgSend_417( + _NSRange range, NSArray otherArray, _NSRange otherRange) { + _lib._objc_msgSend_477( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, range, - otherArray?._id ?? ffi.nullptr, + otherArray._id, otherRange); } void replaceObjectsInRange_withObjectsFromArray_( - NSRange range, NSArray? otherArray) { - return _lib._objc_msgSend_418( + _NSRange range, NSArray otherArray) { + _lib._objc_msgSend_478( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, range, - otherArray?._id ?? ffi.nullptr); + otherArray._id); } - void setArray_(NSArray? otherArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + void setArray_(NSArray otherArray) { + _lib._objc_msgSend_472(_id, _lib._sel_setArray_1, otherArray._id); } void sortUsingFunction_context_( ffi.Pointer< ffi.NativeFunction< - NSInteger Function(ffi.Pointer, + ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>> compare, ffi.Pointer context) { - return _lib._objc_msgSend_419( + _lib._objc_msgSend_479( _id, _lib._sel_sortUsingFunction_context_1, compare, context); } void sortUsingSelector_(ffi.Pointer comparator) { - return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_420(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_480( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_421( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_481( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_422( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_482(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - void sortUsingComparator_(NSComparator cmptr) { - return _lib._objc_msgSend_423(_id, _lib._sel_sortUsingComparator_1, cmptr); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_483(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { - return _lib._objc_msgSend_424( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_484( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } static NSMutableArray arrayWithCapacity_(SwiftLibrary _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_425(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfFile_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_485(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_426(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_486(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_425( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSMutableArray? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_485( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_426( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSMutableArray? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_486(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - void applyDifference_() { - return _lib._objc_msgSend_1(_id, _lib._sel_applyDifference_1); + void applyDifference_(NSObject difference) { + _lib._objc_msgSend_15(_id, _lib._sel_applyDifference_1, difference._id); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_412(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + void sortUsingDescriptors_(NSArray sortDescriptors) { + _lib._objc_msgSend_472( + _id, _lib._sel_sortUsingDescriptors_1, sortDescriptors._id); } - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_427( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + void filterUsingPredicate_(NSPredicate predicate) { + _lib._objc_msgSend_487( + _id, _lib._sel_filterUsingPredicate_1, predicate._id); + } + + @override + NSMutableArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray array(SwiftLibrary _lib) { @@ -39730,39 +45363,59 @@ class NSMutableArray extends NSArray { } static NSMutableArray arrayWithObject_(SwiftLibrary _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_count_(SwiftLibrary _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSMutableArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_( SwiftLibrary _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableArray1, _lib._sel_arrayWithObjects_1, firstObj._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithArray_(SwiftLibrary _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + static NSMutableArray arrayWithArray_(SwiftLibrary _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSMutableArray1, _lib._sel_arrayWithArray_1, array._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_(SwiftLibrary _lib, NSURL? url, + @override + NSMutableArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + + static NSArray? arrayWithContentsOfURL_error_(SwiftLibrary _lib, NSURL url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_117( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + final _ret = _lib._objc_msgSend_127(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray new1(SwiftLibrary _lib) { @@ -39771,6 +45424,13 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: false, release: true); } + static NSMutableArray allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableArray1, _lib._sel_allocWithZone_1, zone); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + static NSMutableArray alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); @@ -39781,18 +45441,18 @@ class NSMutableArray extends NSArray { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._objc_msgSend_15(_lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -39807,33 +45467,29 @@ class NSMutableArray extends NSArray { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -39870,24 +45526,26 @@ class NSMutableOrderedSet extends NSOrderedSet { } void insertObject_atIndex_(NSObject object, int idx) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_insertObject_atIndex_1, object._id, idx); } void removeObjectAtIndex_(int idx) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeObjectAtIndex_1, idx); + _lib._objc_msgSend_470(_id, _lib._sel_removeObjectAtIndex_1, idx); } void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - return _lib._objc_msgSend_411( + _lib._objc_msgSend_471( _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); } @override - NSMutableOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } @override @@ -39898,53 +45556,50 @@ class NSMutableOrderedSet extends NSOrderedSet { NSMutableOrderedSet initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } void addObjects_count_( ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_435( - _id, _lib._sel_addObjects_count_1, objects, count); + _lib._objc_msgSend_500(_id, _lib._sel_addObjects_count_1, objects, count); } - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_412( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray array) { + _lib._objc_msgSend_472(_id, _lib._sel_addObjectsFromArray_1, array._id); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_413( + _lib._objc_msgSend_473( _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - return _lib._objc_msgSend_436(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, - indexes?._id ?? ffi.nullptr, idx); + void moveObjectsAtIndexes_toIndex_(NSIndexSet indexes, int idx) { + _lib._objc_msgSend_501( + _id, _lib._sel_moveObjectsAtIndexes_toIndex_1, indexes._id, idx); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_420(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_480( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } void setObject_atIndex_(NSObject obj, int idx) { - return _lib._objc_msgSend_409( - _id, _lib._sel_setObject_atIndex_1, obj._id, idx); + _lib._objc_msgSend_469(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_409( + _lib._objc_msgSend_469( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } void replaceObjectsInRange_withObjects_count_( - NSRange range, ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_437( + _NSRange range, ffi.Pointer> objects, int count) { + _lib._objc_msgSend_502( _id, _lib._sel_replaceObjectsInRange_withObjects_count_1, range, @@ -39953,100 +45608,99 @@ class NSMutableOrderedSet extends NSOrderedSet { } void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_422( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_482(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } - void removeObjectsInRange_(NSRange range) { - return _lib._objc_msgSend_416(_id, _lib._sel_removeObjectsInRange_1, range); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_removeObjectsInRange_1, range); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_421( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_481( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - void removeObjectsInArray_(NSArray? array) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray array) { + _lib._objc_msgSend_472(_id, _lib._sel_removeObjectsInArray_1, array._id); } - void intersectOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_438( - _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); + void intersectOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_503(_id, _lib._sel_intersectOrderedSet_1, other._id); } - void minusOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_438( - _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); + void minusOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_503(_id, _lib._sel_minusOrderedSet_1, other._id); } - void unionOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_438( - _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); + void unionOrderedSet_(NSOrderedSet other) { + _lib._objc_msgSend_503(_id, _lib._sel_unionOrderedSet_1, other._id); } - void intersectSet_(NSSet? other) { - return _lib._objc_msgSend_439( - _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); + void intersectSet_(NSSet other) { + _lib._objc_msgSend_504(_id, _lib._sel_intersectSet_1, other._id); } - void minusSet_(NSSet? other) { - return _lib._objc_msgSend_439( - _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); + void minusSet_(NSSet other) { + _lib._objc_msgSend_504(_id, _lib._sel_minusSet_1, other._id); } - void unionSet_(NSSet? other) { - return _lib._objc_msgSend_439( - _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); + void unionSet_(NSSet other) { + _lib._objc_msgSend_504(_id, _lib._sel_unionSet_1, other._id); } - void sortUsingComparator_(NSComparator cmptr) { - return _lib._objc_msgSend_423(_id, _lib._sel_sortUsingComparator_1, cmptr); + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_483(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { - return _lib._objc_msgSend_424( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_484( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } - void sortRange_options_usingComparator_( - NSRange range, int opts, NSComparator cmptr) { - return _lib._objc_msgSend_440( - _id, _lib._sel_sortRange_options_usingComparator_1, range, opts, cmptr); + void sortRange_options_usingComparator_(_NSRange range, int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_505(_id, _lib._sel_sortRange_options_usingComparator_1, + range, opts, cmptr._id); } static NSMutableOrderedSet orderedSetWithCapacity_( SwiftLibrary _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_65(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithCapacity_1, numItems); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - void applyDifference_() { - return _lib._objc_msgSend_1(_id, _lib._sel_applyDifference_1); + void applyDifference_(NSObject difference) { + _lib._objc_msgSend_15(_id, _lib._sel_applyDifference_1, difference._id); + } + + void sortUsingDescriptors_(NSArray sortDescriptors) { + _lib._objc_msgSend_472( + _id, _lib._sel_sortUsingDescriptors_1, sortDescriptors._id); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_412(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + void filterUsingPredicate_(NSPredicate p) { + _lib._objc_msgSend_487(_id, _lib._sel_filterUsingPredicate_1, p._id); } - void filterUsingPredicate_(NSPredicate? p) { - return _lib._objc_msgSend_427( - _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); + @override + NSMutableOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSet(SwiftLibrary _lib) { @@ -40057,71 +45711,143 @@ class NSMutableOrderedSet extends NSOrderedSet { static NSMutableOrderedSet orderedSetWithObject_( SwiftLibrary _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithObject_1, object._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithObjects_count_(SwiftLibrary _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithObjects_count_1, objects, cnt); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithObjects_( SwiftLibrary _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithObjects_1, firstObj._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithOrderedSet_( - SwiftLibrary _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_430(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSOrderedSet set) { + final _ret = _lib._objc_msgSend_492(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - SwiftLibrary _lib, NSOrderedSet? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_431( + SwiftLibrary _lib, NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493( _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, + set._id, range, flag); return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } static NSMutableOrderedSet orderedSetWithArray_( - SwiftLibrary _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_1, array._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - SwiftLibrary _lib, NSArray? array, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_432( + SwiftLibrary _lib, NSArray array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, + array._id, range, flag); return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSMutableOrderedSet orderedSetWithSet_(SwiftLibrary _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + static NSMutableOrderedSet orderedSetWithSet_(SwiftLibrary _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_1, set._id); return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } static NSMutableOrderedSet orderedSetWithSet_copyItems_( - SwiftLibrary _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + SwiftLibrary _lib, NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet set) { + final _ret = + _lib._objc_msgSend_492(_id, _lib._sel_initWithOrderedSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithOrderedSet_copyItems_( + NSOrderedSet set, bool flag) { + final _ret = _lib._objc_msgSend_495( + _id, _lib._sel_initWithOrderedSet_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493(_id, + _lib._sel_initWithOrderedSet_range_copyItems_1, set._id, range, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, set._id, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithArray_range_copyItems_( + NSArray set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( + _id, _lib._sel_initWithArray_range_copyItems_1, set._id, range, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableOrderedSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } @@ -40131,6 +45857,13 @@ class NSMutableOrderedSet extends NSOrderedSet { return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } + static NSMutableOrderedSet allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + static NSMutableOrderedSet alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); @@ -40141,18 +45874,18 @@ class NSMutableOrderedSet extends NSOrderedSet { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40167,33 +45900,29 @@ class NSMutableOrderedSet extends NSOrderedSet { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -40233,12 +45962,12 @@ class NSOrderedSet extends NSObject { } NSObject objectAtIndex_(int idx) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndex_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } int indexOfObject_(NSObject object) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); + return _lib._objc_msgSend_74(_id, _lib._sel_indexOfObject_1, object._id); } @override @@ -40249,154 +45978,156 @@ class NSOrderedSet extends NSObject { NSOrderedSet initWithObjects_count_( ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( + final _ret = _lib._objc_msgSend_66( _id, _lib._sel_initWithObjects_count_1, objects, cnt); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSOrderedSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); } void getObjects_range_( - ffi.Pointer> objects, NSRange range) { - return _lib._objc_msgSend_68( - _id, _lib._sel_getObjects_range_1, objects, range); + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_73(_id, _lib._sel_getObjects_range_1, objects, range); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_111(_id, _lib._sel_objectsAtIndexes_1, indexes._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get firstObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_firstObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get lastObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_lastObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool isEqualToOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_428( - _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); + bool isEqualToOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_489( + _id, _lib._sel_isEqualToOrderedSet_1, other._id); } bool containsObject_(NSObject object) { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); } - bool intersectsOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_428( - _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); + bool intersectsOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_489( + _id, _lib._sel_intersectsOrderedSet_1, other._id); } - bool intersectsSet_(NSSet? set) { - return _lib._objc_msgSend_355( - _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); + bool intersectsSet_(NSSet set) { + return _lib._objc_msgSend_403(_id, _lib._sel_intersectsSet_1, set._id); } - bool isSubsetOfOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_428( - _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); + bool isSubsetOfOrderedSet_(NSOrderedSet other) { + return _lib._objc_msgSend_489( + _id, _lib._sel_isSubsetOfOrderedSet_1, other._id); } - bool isSubsetOfSet_(NSSet? set) { - return _lib._objc_msgSend_355( - _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); + bool isSubsetOfSet_(NSSet set) { + return _lib._objc_msgSend_403(_id, _lib._sel_isSubsetOfSet_1, set._id); } NSObject objectAtIndexedSubscript_(int idx) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + _lib._objc_msgSend_65(_id, _lib._sel_objectAtIndexedSubscript_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_reverseObjectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSOrderedSet? get reversedOrderedSet { - final _ret = _lib._objc_msgSend_429(_id, _lib._sel_reversedOrderedSet1); - return _ret.address == 0 - ? null - : NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSOrderedSet get reversedOrderedSet { + final _ret = _lib._objc_msgSend_490(_id, _lib._sel_reversedOrderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSArray? get array { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_array1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get array { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSSet? get set1 { - final _ret = _lib._objc_msgSend_280(_id, _lib._sel_set1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); + NSSet get set1 { + final _ret = _lib._objc_msgSend_491(_id, _lib._sel_set1); + return NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock3 block) { - return _lib._objc_msgSend_104( + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_112( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_105(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_113(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_106( + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_114( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, + s._id, opts, block._id); } - int indexOfObjectPassingTest_(ObjCBlock4 predicate) { - return _lib._objc_msgSend_107( + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_115( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_108(_id, + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_116(_id, _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_109( + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_117( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_110( + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_118( _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_111( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_119( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, opts, @@ -40404,57 +46135,62 @@ class NSOrderedSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { - final _ret = _lib._objc_msgSend_112( + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_120( _id, _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, NSRange range, int opts, NSComparator cmp) { - return _lib._objc_msgSend_115( + NSObject object, + _NSRange range, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_123( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, object._id, range, opts, - cmp); + cmp._id); } - NSArray sortedArrayUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_113( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_121( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayWithOptions_usingComparator_( - int opts, NSComparator cmptr) { - final _ret = _lib._objc_msgSend_114( - _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_122(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_70( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_(NSObject? locale, int level) { + final _ret = _lib._objc_msgSend_71( + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale?._id ?? ffi.nullptr, + level); return NSString._(_ret, _lib, retain: true, release: true); } @@ -40466,199 +46202,213 @@ class NSOrderedSet extends NSObject { static NSOrderedSet orderedSetWithObject_( SwiftLibrary _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSOrderedSet1, _lib._sel_orderedSetWithObject_1, object._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithObjects_count_(SwiftLibrary _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSOrderedSet1, _lib._sel_orderedSetWithObjects_count_1, objects, cnt); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithObjects_( SwiftLibrary _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSOrderedSet1, _lib._sel_orderedSetWithObjects_1, firstObj._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithOrderedSet_( - SwiftLibrary _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_430(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSOrderedSet set) { + final _ret = _lib._objc_msgSend_492(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - SwiftLibrary _lib, NSOrderedSet? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_431( + SwiftLibrary _lib, NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493( _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, + set._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet orderedSetWithArray_(SwiftLibrary _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + static NSOrderedSet orderedSetWithArray_(SwiftLibrary _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithArray_1, array._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithArray_range_copyItems_( - SwiftLibrary _lib, NSArray? array, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_432( + SwiftLibrary _lib, NSArray array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, + array._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet orderedSetWithSet_(SwiftLibrary _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + static NSOrderedSet orderedSetWithSet_(SwiftLibrary _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411( + _lib._class_NSOrderedSet1, _lib._sel_orderedSetWithSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } static NSOrderedSet orderedSetWithSet_copyItems_( - SwiftLibrary _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + SwiftLibrary _lib, NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } NSOrderedSet initWithObject_(NSObject object) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObject_1, object._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } NSOrderedSet initWithObjects_(NSObject firstObj) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_430( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + NSOrderedSet initWithOrderedSet_(NSOrderedSet set) { + final _ret = + _lib._objc_msgSend_492(_id, _lib._sel_initWithOrderedSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_433( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); + NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet set, bool flag) { + final _ret = _lib._objc_msgSend_495( + _id, _lib._sel_initWithOrderedSet_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_431( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); + NSOrderedSet set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_493(_id, + _lib._sel_initWithOrderedSet_range_copyItems_1, set._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSOrderedSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { + final _ret = _lib._objc_msgSend_126( + _id, _lib._sel_initWithArray_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } NSOrderedSet initWithArray_range_copyItems_( - NSArray? set, NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_432( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); + NSArray set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_494( + _id, _lib._sel_initWithArray_range_copyItems_1, set._id, range, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - NSOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_363( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + NSOrderedSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_364( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + NSOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( + NSOrderedSet other, + int options, + ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_496( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, + other._id, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_withOptions_( + NSOrderedSet other, int options) { + final _ret = _lib._objc_msgSend_497(_id, + _lib._sel_differenceFromOrderedSet_withOptions_1, other._id, options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_(NSOrderedSet other) { + final _ret = _lib._objc_msgSend_492( + _id, _lib._sel_differenceFromOrderedSet_1, other._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet? orderedSetByApplyingDifference_(NSObject difference) { + final _ret = _lib._objc_msgSend_498( + _id, _lib._sel_orderedSetByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSObject valueForKey_(NSString key) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_valueForKey_1, key._id); return NSObject._(_ret, _lib, retain: true, release: true); } @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); } @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_126( + void addObserver_forKeyPath_options_context_(NSObject observer, + NSString keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_139( _id, _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, + observer._id, + keyPath._id, options, context); } @override void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); + NSObject observer, NSString keyPath, ffi.Pointer context) { + _lib._objc_msgSend_140(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer._id, keyPath._id, context); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_128(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_(NSObject observer, NSString keyPath) { + _lib._objc_msgSend_141( + _id, _lib._sel_removeObserver_forKeyPath_1, observer._id, keyPath._id); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSArray sortedArrayUsingDescriptors_(NSArray sortDescriptors) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedArrayUsingDescriptors_1, sortDescriptors._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { - final _ret = _lib._objc_msgSend_434(_id, - _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); + NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate p) { + final _ret = _lib._objc_msgSend_499( + _id, _lib._sel_filteredOrderedSetUsingPredicate_1, p._id); return NSOrderedSet._(_ret, _lib, retain: true, release: true); } @@ -40668,6 +46418,13 @@ class NSOrderedSet extends NSObject { return NSOrderedSet._(_ret, _lib, retain: false, release: true); } + static NSOrderedSet allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + static NSOrderedSet alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); @@ -40678,18 +46435,18 @@ class NSOrderedSet extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40704,33 +46461,29 @@ class NSOrderedSet extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -40766,18 +46519,20 @@ class NSMutableSet extends NSSet { } void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } @override - NSMutableSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSMutableSet? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableSet._(_ret, _lib, retain: true, release: true); } @override @@ -40788,48 +46543,51 @@ class NSMutableSet extends NSSet { NSMutableSet initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_412( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray array) { + _lib._objc_msgSend_472(_id, _lib._sel_addObjectsFromArray_1, array._id); } - void intersectSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); + void intersectSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_intersectSet_1, otherSet._id); } - void minusSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); + void minusSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_minusSet_1, otherSet._id); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void unionSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); + void unionSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_unionSet_1, otherSet._id); } - void setSet_(NSSet? otherSet) { - return _lib._objc_msgSend_439( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); + void setSet_(NSSet otherSet) { + _lib._objc_msgSend_504(_id, _lib._sel_setSet_1, otherSet._id); } static NSMutableSet setWithCapacity_(SwiftLibrary _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_427( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + void filterUsingPredicate_(NSPredicate predicate) { + _lib._objc_msgSend_487( + _id, _lib._sel_filterUsingPredicate_1, predicate._id); + } + + @override + NSMutableSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet set1(SwiftLibrary _lib) { @@ -40839,33 +46597,60 @@ class NSMutableSet extends NSSet { } static NSMutableSet setWithObject_(SwiftLibrary _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithObjects_count_(SwiftLibrary _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, + final _ret = _lib._objc_msgSend_66(_lib._class_NSMutableSet1, _lib._sel_setWithObjects_count_1, objects, cnt); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithObjects_(SwiftLibrary _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( + final _ret = _lib._objc_msgSend_124( _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet setWithSet_(SwiftLibrary _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_363(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + static NSMutableSet setWithSet_(SwiftLibrary _lib, NSSet set) { + final _ret = _lib._objc_msgSend_411( + _lib._class_NSMutableSet1, _lib._sel_setWithSet_1, set._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet setWithArray_(SwiftLibrary _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + static NSMutableSet setWithArray_(SwiftLibrary _lib, NSArray array) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSMutableSet1, _lib._sel_setWithArray_1, array._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet initWithSet_(NSSet set) { + final _ret = _lib._objc_msgSend_411(_id, _lib._sel_initWithSet_1, set._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet initWithSet_copyItems_(NSSet set, bool flag) { + final _ret = _lib._objc_msgSend_412( + _id, _lib._sel_initWithSet_copyItems_1, set._id, flag); + return NSMutableSet._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableSet initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_125(_id, _lib._sel_initWithArray_1, array._id); return NSMutableSet._(_ret, _lib, retain: true, release: true); } @@ -40875,6 +46660,13 @@ class NSMutableSet extends NSSet { return NSMutableSet._(_ret, _lib, retain: false, release: true); } + static NSMutableSet allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableSet._(_ret, _lib, retain: false, release: true); + } + static NSMutableSet alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); @@ -40885,18 +46677,18 @@ class NSMutableSet extends NSSet { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._objc_msgSend_15(_lib._class_NSMutableSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40911,33 +46703,29 @@ class NSMutableSet extends NSSet { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -40988,154 +46776,146 @@ class NSKeyedArchiver extends NSCoder { } NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { - final _ret = _lib._objc_msgSend_449( + final _ret = _lib._objc_msgSend_514( _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - static NSData archivedDataWithRootObject_requiringSecureCoding_error_( + static NSData? archivedDataWithRootObject_requiringSecureCoding_error_( SwiftLibrary _lib, NSObject object, bool requiresSecureCoding, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_450( + final _ret = _lib._objc_msgSend_515( _lib._class_NSKeyedArchiver1, _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, object._id, requiresSecureCoding, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } + @override NSKeyedArchiver init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { - final _ret = _lib._objc_msgSend_455(_id, - _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); + NSKeyedArchiver initForWritingWithMutableData_(NSMutableData data) { + final _ret = _lib._objc_msgSend_521( + _id, _lib._sel_initForWritingWithMutableData_1, data._id); return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } static NSData archivedDataWithRootObject_( SwiftLibrary _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_456(_lib._class_NSKeyedArchiver1, + final _ret = _lib._objc_msgSend_522(_lib._class_NSKeyedArchiver1, _lib._sel_archivedDataWithRootObject_1, rootObject._id); return NSData._(_ret, _lib, retain: true, release: true); } static bool archiveRootObject_toFile_( - SwiftLibrary _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_225( - _lib._class_NSKeyedArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSObject rootObject, NSString path) { + return _lib._objc_msgSend_261(_lib._class_NSKeyedArchiver1, + _lib._sel_archiveRootObject_toFile_1, rootObject._id, path._id); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } int get outputFormat { - return _lib._objc_msgSend_457(_id, _lib._sel_outputFormat1); + return _lib._objc_msgSend_523(_id, _lib._sel_outputFormat1); } set outputFormat(int value) { - _lib._objc_msgSend_458(_id, _lib._sel_setOutputFormat_1, value); + return _lib._objc_msgSend_524(_id, _lib._sel_setOutputFormat_1, value); } - NSData? get encodedData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get encodedData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_encodedData1); + return NSData._(_ret, _lib, retain: true, release: true); } void finishEncoding() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); } static void setClassName_forClass_( SwiftLibrary _lib, NSString? codedName, NSObject cls) { - return _lib._objc_msgSend_459( + _lib._objc_msgSend_525( _lib._class_NSKeyedArchiver1, _lib._sel_setClassName_forClass_1, codedName?._id ?? ffi.nullptr, cls._id); } - static NSString classNameForClass_(SwiftLibrary _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_65( + static NSString? classNameForClass_(SwiftLibrary _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_526( _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } @override - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + void encodeObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } @override - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_122( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + void encodeConditionalObject_forKey_(NSObject? object, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_encodeConditionalObject_forKey_1, + object?._id ?? ffi.nullptr, key._id); } @override - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_257( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeBool_forKey_(bool value, NSString key) { + _lib._objc_msgSend_296(_id, _lib._sel_encodeBool_forKey_1, value, key._id); } @override - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_258( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt_forKey_(int value, NSString key) { + _lib._objc_msgSend_297(_id, _lib._sel_encodeInt_forKey_1, value, key._id); } @override - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_259( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt32_forKey_(int value, NSString key) { + _lib._objc_msgSend_298(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); } @override - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_260( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeInt64_forKey_(int value, NSString key) { + _lib._objc_msgSend_299(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); } @override - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_261( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeFloat_forKey_(double value, NSString key) { + _lib._objc_msgSend_300(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); } @override - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_262( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void encodeDouble_forKey_(double value, NSString key) { + _lib._objc_msgSend_301( + _id, _lib._sel_encodeDouble_forKey_1, value, key._id); } @override void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_263(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + ffi.Pointer bytes, int length, NSString key) { + _lib._objc_msgSend_302( + _id, _lib._sel_encodeBytes_length_forKey_1, bytes, length, key._id); } @override @@ -41144,7 +46924,8 @@ class NSKeyedArchiver extends NSCoder { } set requiresSecureCoding(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setRequiresSecureCoding_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setRequiresSecureCoding_1, value); } static NSKeyedArchiver new1(SwiftLibrary _lib) { @@ -41153,6 +46934,13 @@ class NSKeyedArchiver extends NSCoder { return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } + static NSKeyedArchiver allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSKeyedArchiver1, _lib._sel_allocWithZone_1, zone); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + } + static NSKeyedArchiver alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); @@ -41163,18 +46951,18 @@ class NSKeyedArchiver extends NSCoder { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41189,33 +46977,29 @@ class NSKeyedArchiver extends NSCoder { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSKeyedArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSKeyedArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSKeyedArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSKeyedArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSKeyedArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSKeyedArchiver1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSKeyedArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -41251,7 +47035,7 @@ class NSMutableData extends NSData { } ffi.Pointer get mutableBytes { - return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); + return _lib._objc_msgSend_20(_id, _lib._sel_mutableBytes1); } @override @@ -41260,42 +47044,38 @@ class NSMutableData extends NSData { } set length(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setLength_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setLength_1, value); } void appendBytes_length_(ffi.Pointer bytes, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_appendBytes_length_1, bytes, length); + _lib._objc_msgSend_22(_id, _lib._sel_appendBytes_length_1, bytes, length); } - void appendData_(NSData? other) { - return _lib._objc_msgSend_248( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + void appendData_(NSData other) { + _lib._objc_msgSend_285(_id, _lib._sel_appendData_1, other._id); } void increaseLengthBy_(int extraLength) { - return _lib._objc_msgSend_410( - _id, _lib._sel_increaseLengthBy_1, extraLength); + _lib._objc_msgSend_470(_id, _lib._sel_increaseLengthBy_1, extraLength); } void replaceBytesInRange_withBytes_( - NSRange range, ffi.Pointer bytes) { - return _lib._objc_msgSend_452( + _NSRange range, ffi.Pointer bytes) { + _lib._objc_msgSend_517( _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } - void resetBytesInRange_(NSRange range) { - return _lib._objc_msgSend_416(_id, _lib._sel_resetBytesInRange_1, range); + void resetBytesInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_resetBytesInRange_1, range); } - void setData_(NSData? data) { - return _lib._objc_msgSend_248( - _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + void setData_(NSData data) { + _lib._objc_msgSend_285(_id, _lib._sel_setData_1, data._id); } - void replaceBytesInRange_withBytes_length_(NSRange range, + void replaceBytesInRange_withBytes_length_(_NSRange range, ffi.Pointer replacementBytes, int replacementLength) { - return _lib._objc_msgSend_453( + _lib._objc_msgSend_518( _id, _lib._sel_replaceBytesInRange_withBytes_length_1, range, @@ -41303,38 +47083,47 @@ class NSMutableData extends NSData { replacementLength); } - static NSMutableData dataWithCapacity_(SwiftLibrary _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_60( + static NSMutableData? dataWithCapacity_(SwiftLibrary _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_519( _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithLength_(SwiftLibrary _lib, int length) { - final _ret = _lib._objc_msgSend_60( + static NSMutableData? dataWithLength_(SwiftLibrary _lib, int length) { + final _ret = _lib._objc_msgSend_519( _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableData initWithCapacity_(int capacity) { + NSMutableData? initWithCapacity_(int capacity) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_519(_id, _lib._sel_initWithCapacity_1, capacity); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSMutableData? initWithLength_(int length) { + final _ret = + _lib._objc_msgSend_519(_id, _lib._sel_initWithLength_1, length); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } bool decompressUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_454( + return _lib._objc_msgSend_520( _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); } bool compressUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_454( + return _lib._objc_msgSend_520( _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); } @@ -41346,77 +47135,226 @@ class NSMutableData extends NSData { static NSMutableData dataWithBytes_length_( SwiftLibrary _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_273(_lib._class_NSMutableData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: true, release: true); } static NSMutableData dataWithBytesNoCopy_length_( SwiftLibrary _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_273(_lib._class_NSMutableData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: false, release: true); } static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( SwiftLibrary _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_238(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_274(_lib._class_NSMutableData1, _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableData dataWithContentsOfFile_options_error_( + static NSMutableData? dataWithContentsOfFile_options_error_( SwiftLibrary _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_239( + final _ret = _lib._objc_msgSend_275( _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_options_error_( + static NSMutableData? dataWithContentsOfURL_options_error_( SwiftLibrary _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_240( + final _ret = _lib._objc_msgSend_276( _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + static NSMutableData? dataWithContentsOfFile_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData? dataWithContentsOfURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_273( + _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + @override + NSMutableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_273( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_274(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, + int length, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_278( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData? initWithContentsOfFile_options_error_(NSString path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_275( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithContentsOfURL_options_error_(NSURL url, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_276( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithData_(SwiftLibrary _lib, NSData? data) { - final _ret = _lib._objc_msgSend_242(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSMutableData dataWithData_(SwiftLibrary _lib, NSData data) { + final _ret = _lib._objc_msgSend_279( + _lib._class_NSMutableData1, _lib._sel_dataWithData_1, data._id); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_280( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String._id, + options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? initWithBase64EncodedData_options_( + NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData? compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject? dataWithContentsOfMappedFile_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } static NSMutableData new1(SwiftLibrary _lib) { @@ -41425,6 +47363,13 @@ class NSMutableData extends NSData { return NSMutableData._(_ret, _lib, retain: false, release: true); } + static NSMutableData allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableData1, _lib._sel_allocWithZone_1, zone); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + static NSMutableData alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); @@ -41435,18 +47380,18 @@ class NSMutableData extends NSData { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableData1, + _lib._objc_msgSend_15(_lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41461,33 +47406,29 @@ class NSMutableData extends NSData { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -41528,27 +47469,26 @@ class NSThread extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); } - static NSThread? getCurrentThread(SwiftLibrary _lib) { + static NSThread getCurrentThread(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_464(_lib._class_NSThread1, _lib._sel_currentThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_531(_lib._class_NSThread1, _lib._sel_currentThread1); + return NSThread._(_ret, _lib, retain: true, release: true); } - static void detachNewThreadWithBlock_(SwiftLibrary _lib, ObjCBlock16 block) { - return _lib._objc_msgSend_465( + static void detachNewThreadWithBlock_( + SwiftLibrary _lib, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_532( _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); } static void detachNewThreadSelector_toTarget_withObject_(SwiftLibrary _lib, - ffi.Pointer selector, NSObject target, NSObject argument) { - return _lib._objc_msgSend_466( + ffi.Pointer selector, NSObject target, NSObject? argument) { + _lib._objc_msgSend_533( _lib._class_NSThread1, _lib._sel_detachNewThreadSelector_toTarget_withObject_1, selector, target._id, - argument._id); + argument?._id ?? ffi.nullptr); } static bool isMultiThreaded(SwiftLibrary _lib) { @@ -41556,68 +47496,63 @@ class NSThread extends NSObject { _lib._class_NSThread1, _lib._sel_isMultiThreaded1); } - NSMutableDictionary? get threadDictionary { - final _ret = _lib._objc_msgSend_471(_id, _lib._sel_threadDictionary1); - return _ret.address == 0 - ? null - : NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary get threadDictionary { + final _ret = _lib._objc_msgSend_539(_id, _lib._sel_threadDictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static void sleepUntilDate_(SwiftLibrary _lib, NSDate? date) { - return _lib._objc_msgSend_472(_lib._class_NSThread1, - _lib._sel_sleepUntilDate_1, date?._id ?? ffi.nullptr); + static void sleepUntilDate_(SwiftLibrary _lib, NSDate date) { + _lib._objc_msgSend_540( + _lib._class_NSThread1, _lib._sel_sleepUntilDate_1, date._id); } static void sleepForTimeInterval_(SwiftLibrary _lib, double ti) { - return _lib._objc_msgSend_473( + _lib._objc_msgSend_541( _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); } static void exit(SwiftLibrary _lib) { - return _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); + _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); } double get threadPriority { - return _lib._objc_msgSend_149(_id, _lib._sel_threadPriority1); + return _lib._objc_msgSend_165(_id, _lib._sel_threadPriority1); } set threadPriority(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setThreadPriority_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setThreadPriority_1, value); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } - static NSArray? getCallStackReturnAddresses(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getCallStackReturnAddresses(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getCallStackSymbols(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + static NSArray getCallStackSymbols(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_85( _lib._class_NSThread1, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } int get stackSize { @@ -41625,19 +47560,17 @@ class NSThread extends NSObject { } set stackSize(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setStackSize_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setStackSize_1, value); } bool get isMainThread { return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); } - static NSThread? getMainThread(SwiftLibrary _lib) { + static NSThread getMainThread(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_464(_lib._class_NSThread1, _lib._sel_mainThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_531(_lib._class_NSThread1, _lib._sel_mainThread1); + return NSThread._(_ret, _lib, retain: true, release: true); } @override @@ -41647,19 +47580,19 @@ class NSThread extends NSObject { } NSThread initWithTarget_selector_object_( - NSObject target, ffi.Pointer selector, NSObject argument) { - final _ret = _lib._objc_msgSend_478( + NSObject target, ffi.Pointer selector, NSObject? argument) { + final _ret = _lib._objc_msgSend_546( _id, _lib._sel_initWithTarget_selector_object_1, target._id, selector, - argument._id); + argument?._id ?? ffi.nullptr); return NSThread._(_ret, _lib, retain: true, release: true); } - NSThread initWithBlock_(ObjCBlock16 block) { + NSThread initWithBlock_(ObjCBlock_ffiVoid block) { final _ret = - _lib._objc_msgSend_479(_id, _lib._sel_initWithBlock_1, block._id); + _lib._objc_msgSend_547(_id, _lib._sel_initWithBlock_1, block._id); return NSThread._(_ret, _lib, retain: true, release: true); } @@ -41676,15 +47609,15 @@ class NSThread extends NSObject { } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + _lib._objc_msgSend_1(_id, _lib._sel_start1); } void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); + _lib._objc_msgSend_1(_id, _lib._sel_main1); } static NSThread new1(SwiftLibrary _lib) { @@ -41692,6 +47625,12 @@ class NSThread extends NSObject { return NSThread._(_ret, _lib, retain: false, release: true); } + static NSThread allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSThread1, _lib._sel_allocWithZone_1, zone); + return NSThread._(_ret, _lib, retain: false, release: true); + } + static NSThread alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); return NSThread._(_ret, _lib, retain: false, release: true); @@ -41701,18 +47640,18 @@ class NSThread extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSThread1, + _lib._objc_msgSend_15(_lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41727,33 +47666,29 @@ class NSThread extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSThread1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSThread1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSThread1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSThread1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSThread1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -41765,59 +47700,94 @@ class NSThread extends NSObject { } } -void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock16_closureRegistry = {}; -int _ObjCBlock16_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { - final id = ++_ObjCBlock16_closureRegistryIndex; - _ObjCBlock16_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + block.ref.target + .cast>() + .asFunction()(); +final _ObjCBlock_ffiVoid_closureRegistry = {}; +int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(void Function() fn) { + final id = ++_ObjCBlock_ffiVoid_closureRegistryIndex; + _ObjCBlock_ffiVoid_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return _ObjCBlock16_closureRegistry[block.ref.target.address]!(); -} +void _ObjCBlock_ffiVoid_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + _ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address]!(); -class ObjCBlock16 extends _ObjCBlockBase { - ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock16.fromFunctionPointer(SwiftLibrary lib, + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid.fromFunctionPointer(SwiftLibrary lib, ffi.Pointer> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock16_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock16.fromFunction(SwiftLibrary lib, void Function() fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid.fromFunction(SwiftLibrary lib, void Function() fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock16_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_closureTrampoline) .cast(), - _ObjCBlock16_registerClosure(fn)), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), lib); - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid.listener(SwiftLibrary lib, void Function() fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>)>.listener( + _ObjCBlock_ffiVoid_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), + lib); + static ffi.NativeCallable)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call() => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>>() + .asFunction)>()( + _id, + ); } class NSMutableDictionary extends NSDictionary { @@ -41845,11 +47815,11 @@ class NSMutableDictionary extends NSDictionary { } void removeObjectForKey_(NSObject aKey) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); + _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); } void setObject_forKey_(NSObject anObject, NSObject aKey) { - return _lib._objc_msgSend_467( + _lib._objc_msgSend_534( _id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id); } @@ -41861,84 +47831,102 @@ class NSMutableDictionary extends NSDictionary { NSMutableDictionary initWithCapacity_(int numItems) { final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_65(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_444(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + void addEntriesFromDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_509( + _id, _lib._sel_addEntriesFromDictionary_1, otherDictionary._id); } void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void removeObjectsForKeys_(NSArray? keyArray) { - return _lib._objc_msgSend_412( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + void removeObjectsForKeys_(NSArray keyArray) { + _lib._objc_msgSend_472(_id, _lib._sel_removeObjectsForKeys_1, keyArray._id); } - void setDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_444( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + void setDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_509(_id, _lib._sel_setDictionary_1, otherDictionary._id); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject key) { - return _lib._objc_msgSend_467( - _id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key._id); + void setObject_forKeyedSubscript_(NSObject? obj, NSObject key) { + _lib._objc_msgSend_535(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj?._id ?? ffi.nullptr, key._id); } static NSMutableDictionary dictionaryWithCapacity_( SwiftLibrary _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_65(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithCapacity_1, numItems); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_468(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary? dictionaryWithContentsOfFile_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_536(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_469(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary? dictionaryWithContentsOfURL_( + SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_537(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_468( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_536( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_469( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_537(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithSharedKeySet_( SwiftLibrary _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_470(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_538(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject? value, NSString key) { + _lib._objc_msgSend_135( + _id, _lib._sel_setValue_forKey_1, value?._id ?? ffi.nullptr, key._id); + } + + @override + NSMutableDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_147( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionary(SwiftLibrary _lib) { @@ -41949,7 +47937,7 @@ class NSMutableDictionary extends NSDictionary { static NSMutableDictionary dictionaryWithObject_forKey_( SwiftLibrary _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_142(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_158(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @@ -41959,48 +47947,73 @@ class NSMutableDictionary extends NSDictionary { ffi.Pointer> objects, ffi.Pointer> keys, int cnt) { - final _ret = _lib._objc_msgSend_133(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_147(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjectsAndKeys_( SwiftLibrary _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithDictionary_( - SwiftLibrary _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_143(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_159(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjects_forKeys_( - SwiftLibrary _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_144( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_(SwiftLibrary _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_146( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + @override + NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(SwiftLibrary _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + @override + NSMutableDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_159( + _id, _lib._sel_initWithDictionary_1, otherDictionary._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithDictionary_copyItems_( + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_161(_id, + _lib._sel_initWithDictionary_copyItems_1, otherDictionary._id, flag); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_160( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary? dictionaryWithContentsOfURL_error_(SwiftLibrary _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSObject sharedKeySetForKeys_(SwiftLibrary _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_125(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -42010,6 +48023,13 @@ class NSMutableDictionary extends NSDictionary { return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } + static NSMutableDictionary allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + static NSMutableDictionary alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableDictionary1, _lib._sel_alloc1); @@ -42020,18 +48040,18 @@ class NSMutableDictionary extends NSDictionary { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42046,33 +48066,29 @@ class NSMutableDictionary extends NSDictionary { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42115,74 +48131,78 @@ class NSArchiver extends NSCoder { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); } - NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { - final _ret = _lib._objc_msgSend_455(_id, - _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); + NSArchiver initForWritingWithMutableData_(NSMutableData mdata) { + final _ret = _lib._objc_msgSend_521( + _id, _lib._sel_initForWritingWithMutableData_1, mdata._id); return NSArchiver._(_ret, _lib, retain: true, release: true); } - NSMutableData? get archiverData { - final _ret = _lib._objc_msgSend_482(_id, _lib._sel_archiverData1); - return _ret.address == 0 - ? null - : NSMutableData._(_ret, _lib, retain: true, release: true); + NSMutableData get archiverData { + final _ret = _lib._objc_msgSend_550(_id, _lib._sel_archiverData1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } @override void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } @override - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); + void encodeConditionalObject_(NSObject? object) { + _lib._objc_msgSend_289( + _id, _lib._sel_encodeConditionalObject_1, object?._id ?? ffi.nullptr); } static NSData archivedDataWithRootObject_( SwiftLibrary _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_456(_lib._class_NSArchiver1, + final _ret = _lib._objc_msgSend_522(_lib._class_NSArchiver1, _lib._sel_archivedDataWithRootObject_1, rootObject._id); return NSData._(_ret, _lib, retain: true, release: true); } static bool archiveRootObject_toFile_( - SwiftLibrary _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_225( - _lib._class_NSArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSObject rootObject, NSString path) { + return _lib._objc_msgSend_261(_lib._class_NSArchiver1, + _lib._sel_archiveRootObject_toFile_1, rootObject._id, path._id); } void encodeClassName_intoClassName_( - NSString? trueName, NSString? inArchiveName) { - return _lib._objc_msgSend_483( - _id, - _lib._sel_encodeClassName_intoClassName_1, - trueName?._id ?? ffi.nullptr, - inArchiveName?._id ?? ffi.nullptr); + NSString trueName, NSString inArchiveName) { + _lib._objc_msgSend_551(_id, _lib._sel_encodeClassName_intoClassName_1, + trueName._id, inArchiveName._id); } - NSString classNameEncodedForTrueClassName_(NSString? trueName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_classNameEncodedForTrueClassName_1, - trueName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? classNameEncodedForTrueClassName_(NSString trueName) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_classNameEncodedForTrueClassName_1, trueName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } void replaceObject_withObject_(NSObject object, NSObject newObject) { - return _lib._objc_msgSend_467( + _lib._objc_msgSend_534( _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); } + @override + NSArchiver init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSArchiver._(_ret, _lib, retain: true, release: true); + } + static NSArchiver new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); return NSArchiver._(_ret, _lib, retain: false, release: true); } + static NSArchiver allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSArchiver1, _lib._sel_allocWithZone_1, zone); + return NSArchiver._(_ret, _lib, retain: false, release: true); + } + static NSArchiver alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); @@ -42193,18 +48213,18 @@ class NSArchiver extends NSCoder { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArchiver1, + _lib._objc_msgSend_15(_lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42219,33 +48239,29 @@ class NSArchiver extends NSCoder { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42288,24 +48304,27 @@ class NSPortCoder extends NSCoder { return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); } - void encodePortObject_(NSPort? aport) { - return _lib._objc_msgSend_520( - _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); + void encodePortObject_(NSPort aport) { + _lib._objc_msgSend_593(_id, _lib._sel_encodePortObject_1, aport._id); } - NSPort decodePortObject() { - final _ret = _lib._objc_msgSend_485(_id, _lib._sel_decodePortObject1); - return NSPort._(_ret, _lib, retain: true, release: true); + NSPort? decodePortObject() { + final _ret = _lib._objc_msgSend_594(_id, _lib._sel_decodePortObject1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - NSConnection connection() { - final _ret = _lib._objc_msgSend_504(_id, _lib._sel_connection1); - return NSConnection._(_ret, _lib, retain: true, release: true); + NSConnection? connection() { + final _ret = _lib._objc_msgSend_595(_id, _lib._sel_connection1); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } static NSObject portCoderWithReceivePort_sendPort_components_( SwiftLibrary _lib, NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_521( + final _ret = _lib._objc_msgSend_596( _lib._class_NSPortCoder1, _lib._sel_portCoderWithReceivePort_sendPort_components_1, rcvPort?._id ?? ffi.nullptr, @@ -42316,7 +48335,7 @@ class NSPortCoder extends NSCoder { NSObject initWithReceivePort_sendPort_components_( NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_521( + final _ret = _lib._objc_msgSend_596( _id, _lib._sel_initWithReceivePort_sendPort_components_1, rcvPort?._id ?? ffi.nullptr, @@ -42326,7 +48345,13 @@ class NSPortCoder extends NSCoder { } void dispatch() { - return _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + } + + @override + NSPortCoder init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPortCoder._(_ret, _lib, retain: true, release: true); } static NSPortCoder new1(SwiftLibrary _lib) { @@ -42334,6 +48359,13 @@ class NSPortCoder extends NSCoder { return NSPortCoder._(_ret, _lib, retain: false, release: true); } + static NSPortCoder allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPortCoder1, _lib._sel_allocWithZone_1, zone); + return NSPortCoder._(_ret, _lib, retain: false, release: true); + } + static NSPortCoder alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); @@ -42344,18 +48376,18 @@ class NSPortCoder extends NSCoder { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + _lib._objc_msgSend_15(_lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42370,33 +48402,29 @@ class NSPortCoder extends NSCoder { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPortCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPortCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPortCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42431,12 +48459,12 @@ class NSPort extends NSObject { } static NSPort port(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_485(_lib._class_NSPort1, _lib._sel_port1); + final _ret = _lib._objc_msgSend_553(_lib._class_NSPort1, _lib._sel_port1); return NSPort._(_ret, _lib, retain: true, release: true); } void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } bool get valid { @@ -42444,23 +48472,25 @@ class NSPort extends NSObject { } void setDelegate_(NSObject? anObject) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_289( _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); } - NSObject delegate() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? delegate() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, runLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_removeFromRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_removeFromRunLoop_forMode_1, runLoop._id, mode._id); } int get reservedSpaceLength { @@ -42468,29 +48498,29 @@ class NSPort extends NSObject { } bool sendBeforeDate_components_from_reserved_( - NSDate? limitDate, + NSDate limitDate, NSMutableArray? components, NSPort? receivePort, int headerSpaceReserved) { - return _lib._objc_msgSend_502( + return _lib._objc_msgSend_570( _id, _lib._sel_sendBeforeDate_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, + limitDate._id, components?._id ?? ffi.nullptr, receivePort?._id ?? ffi.nullptr, headerSpaceReserved); } bool sendBeforeDate_msgid_components_from_reserved_( - NSDate? limitDate, + NSDate limitDate, int msgID, NSMutableArray? components, NSPort? receivePort, int headerSpaceReserved) { - return _lib._objc_msgSend_503( + return _lib._objc_msgSend_571( _id, _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, + limitDate._id, msgID, components?._id ?? ffi.nullptr, receivePort?._id ?? ffi.nullptr, @@ -42498,23 +48528,25 @@ class NSPort extends NSObject { } void addConnection_toRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_519( - _id, - _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode); + NSConnection conn, NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_592(_id, _lib._sel_addConnection_toRunLoop_forMode_1, + conn._id, runLoop._id, mode._id); } void removeConnection_fromRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_519( + NSConnection conn, NSRunLoop runLoop, NSString mode) { + _lib._objc_msgSend_592( _id, _lib._sel_removeConnection_fromRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode); + conn._id, + runLoop._id, + mode._id); + } + + @override + NSPort init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPort._(_ret, _lib, retain: true, release: true); } static NSPort new1(SwiftLibrary _lib) { @@ -42522,6 +48554,12 @@ class NSPort extends NSObject { return NSPort._(_ret, _lib, retain: false, release: true); } + static NSPort allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPort1, _lib._sel_allocWithZone_1, zone); + return NSPort._(_ret, _lib, retain: false, release: true); + } + static NSPort alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); return NSPort._(_ret, _lib, retain: false, release: true); @@ -42531,18 +48569,18 @@ class NSPort extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._objc_msgSend_15(_lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42557,33 +48595,29 @@ class NSPort extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPort1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPort1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPort1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPort1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPort1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42618,122 +48652,132 @@ class NSRunLoop extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); } - static NSRunLoop? getCurrentRunLoop(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_486( + static NSRunLoop getCurrentRunLoop(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_554( _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - static NSRunLoop? getMainRunLoop(SwiftLibrary _lib) { + static NSRunLoop getMainRunLoop(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_486(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_554(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - NSRunLoopMode get currentMode { - return _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); + NSString? get currentMode { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_currentMode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - CFRunLoopRef getCFRunLoop() { - return _lib._objc_msgSend_487(_id, _lib._sel_getCFRunLoop1); + ffi.Pointer<__CFRunLoop> getCFRunLoop() { + return _lib._objc_msgSend_555(_id, _lib._sel_getCFRunLoop1); } - void addTimer_forMode_(NSTimer? timer, NSRunLoopMode mode) { - return _lib._objc_msgSend_494( - _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode); + void addTimer_forMode_(NSTimer timer, NSString mode) { + _lib._objc_msgSend_562( + _id, _lib._sel_addTimer_forMode_1, timer._id, mode._id); } - void addPort_forMode_(NSPort? aPort, NSRunLoopMode mode) { - return _lib._objc_msgSend_495( - _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode); + void addPort_forMode_(NSPort aPort, NSString mode) { + _lib._objc_msgSend_563( + _id, _lib._sel_addPort_forMode_1, aPort._id, mode._id); } - void removePort_forMode_(NSPort? aPort, NSRunLoopMode mode) { - return _lib._objc_msgSend_495( - _id, _lib._sel_removePort_forMode_1, aPort?._id ?? ffi.nullptr, mode); + void removePort_forMode_(NSPort aPort, NSString mode) { + _lib._objc_msgSend_563( + _id, _lib._sel_removePort_forMode_1, aPort._id, mode._id); } - NSDate limitDateForMode_(NSRunLoopMode mode) { + NSDate? limitDateForMode_(NSString mode) { final _ret = - _lib._objc_msgSend_496(_id, _lib._sel_limitDateForMode_1, mode); - return NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_564(_id, _lib._sel_limitDateForMode_1, mode._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void acceptInputForMode_beforeDate_(NSRunLoopMode mode, NSDate? limitDate) { - return _lib._objc_msgSend_497( - _id, - _lib._sel_acceptInputForMode_beforeDate_1, - mode, - limitDate?._id ?? ffi.nullptr); + void acceptInputForMode_beforeDate_(NSString mode, NSDate limitDate) { + _lib._objc_msgSend_565(_id, _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, limitDate._id); } void run() { - return _lib._objc_msgSend_1(_id, _lib._sel_run1); + _lib._objc_msgSend_1(_id, _lib._sel_run1); } - void runUntilDate_(NSDate? limitDate) { - return _lib._objc_msgSend_472( - _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + void runUntilDate_(NSDate limitDate) { + _lib._objc_msgSend_540(_id, _lib._sel_runUntilDate_1, limitDate._id); } - bool runMode_beforeDate_(NSRunLoopMode mode, NSDate? limitDate) { - return _lib._objc_msgSend_498(_id, _lib._sel_runMode_beforeDate_1, mode, - limitDate?._id ?? ffi.nullptr); + bool runMode_beforeDate_(NSString mode, NSDate limitDate) { + return _lib._objc_msgSend_566( + _id, _lib._sel_runMode_beforeDate_1, mode._id, limitDate._id); } void configureAsServer() { - return _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); } - void performInModes_block_(NSArray? modes, ObjCBlock16 block) { - return _lib._objc_msgSend_499(_id, _lib._sel_performInModes_block_1, - modes?._id ?? ffi.nullptr, block._id); + void performInModes_block_(NSArray modes, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_567( + _id, _lib._sel_performInModes_block_1, modes._id, block._id); } - void performBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_465(_id, _lib._sel_performBlock_1, block._id); + void performBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_532(_id, _lib._sel_performBlock_1, block._id); } void performSelector_target_argument_order_modes_( ffi.Pointer aSelector, NSObject target, - NSObject arg, + NSObject? arg, int order, - NSArray? modes) { - return _lib._objc_msgSend_500( + NSArray modes) { + _lib._objc_msgSend_568( _id, _lib._sel_performSelector_target_argument_order_modes_1, aSelector, target._id, - arg._id, + arg?._id ?? ffi.nullptr, order, - modes?._id ?? ffi.nullptr); + modes._id); } void cancelPerformSelector_target_argument_( - ffi.Pointer aSelector, NSObject target, NSObject arg) { - return _lib._objc_msgSend_466( + ffi.Pointer aSelector, NSObject target, NSObject? arg) { + _lib._objc_msgSend_533( _id, _lib._sel_cancelPerformSelector_target_argument_1, aSelector, target._id, - arg._id); + arg?._id ?? ffi.nullptr); } void cancelPerformSelectorsWithTarget_(NSObject target) { - return _lib._objc_msgSend_15( + _lib._objc_msgSend_15( _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); } + @override + NSRunLoop init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRunLoop._(_ret, _lib, retain: true, release: true); + } + static NSRunLoop new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); return NSRunLoop._(_ret, _lib, retain: false, release: true); } + static NSRunLoop allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSRunLoop1, _lib._sel_allocWithZone_1, zone); + return NSRunLoop._(_ret, _lib, retain: false, release: true); + } + static NSRunLoop alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); return NSRunLoop._(_ret, _lib, retain: false, release: true); @@ -42743,18 +48787,18 @@ class NSRunLoop extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + _lib._objc_msgSend_15(_lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42769,33 +48813,29 @@ class NSRunLoop extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRunLoop1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSRunLoop1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRunLoop1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSRunLoop1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSRunLoop1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -42807,9 +48847,6 @@ class NSRunLoop extends NSObject { } } -typedef NSRunLoopMode = ffi.Pointer; -typedef CFRunLoopRef = ffi.Pointer<__CFRunLoop>; - final class __CFRunLoop extends ffi.Opaque {} class NSTimer extends NSObject { @@ -42836,23 +48873,23 @@ class NSTimer extends NSObject { } static NSTimer timerWithTimeInterval_invocation_repeats_( - SwiftLibrary _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_488( + SwiftLibrary _lib, double ti, NSInvocation invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_556( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_invocation_repeats_1, ti, - invocation?._id ?? ffi.nullptr, + invocation._id, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( - SwiftLibrary _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_488( + SwiftLibrary _lib, double ti, NSInvocation invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_556( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, ti, - invocation?._id ?? ffi.nullptr, + invocation._id, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } @@ -42862,15 +48899,15 @@ class NSTimer extends NSObject { double ti, NSObject aTarget, ffi.Pointer aSelector, - NSObject userInfo, + NSObject? userInfo, bool yesOrNo) { - final _ret = _lib._objc_msgSend_489( + final _ret = _lib._objc_msgSend_557( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, ti, aTarget._id, aSelector, - userInfo._id, + userInfo?._id ?? ffi.nullptr, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } @@ -42881,22 +48918,22 @@ class NSTimer extends NSObject { double ti, NSObject aTarget, ffi.Pointer aSelector, - NSObject userInfo, + NSObject? userInfo, bool yesOrNo) { - final _ret = _lib._objc_msgSend_489( + final _ret = _lib._objc_msgSend_557( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, ti, aTarget._id, aSelector, - userInfo._id, + userInfo?._id ?? ffi.nullptr, yesOrNo); return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSTimer timerWithTimeInterval_repeats_block_( - SwiftLibrary _lib, double interval, bool repeats, ObjCBlock17 block) { - final _ret = _lib._objc_msgSend_490( + static NSTimer timerWithTimeInterval_repeats_block_(SwiftLibrary _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_558( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_repeats_block_1, interval, @@ -42906,8 +48943,11 @@ class NSTimer extends NSObject { } static NSTimer scheduledTimerWithTimeInterval_repeats_block_( - SwiftLibrary _lib, double interval, bool repeats, ObjCBlock17 block) { - final _ret = _lib._objc_msgSend_490( + SwiftLibrary _lib, + double interval, + bool repeats, + ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_558( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, interval, @@ -42916,12 +48956,12 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: true, release: true); } - NSTimer initWithFireDate_interval_repeats_block_( - NSDate? date, double interval, bool repeats, ObjCBlock17 block) { - final _ret = _lib._objc_msgSend_491( + NSTimer initWithFireDate_interval_repeats_block_(NSDate date, double interval, + bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_559( _id, _lib._sel_initWithFireDate_interval_repeats_block_1, - date?._id ?? ffi.nullptr, + date._id, interval, repeats, block._id); @@ -42929,63 +48969,68 @@ class NSTimer extends NSObject { } NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( - NSDate? date, + NSDate date, double ti, NSObject t, ffi.Pointer s, - NSObject ui, + NSObject? ui, bool rep) { - final _ret = _lib._objc_msgSend_492( + final _ret = _lib._objc_msgSend_560( _id, _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, - date?._id ?? ffi.nullptr, + date._id, ti, t._id, s, - ui._id, + ui?._id ?? ffi.nullptr, rep); return NSTimer._(_ret, _lib, retain: true, release: true); } void fire() { - return _lib._objc_msgSend_1(_id, _lib._sel_fire1); + _lib._objc_msgSend_1(_id, _lib._sel_fire1); } - NSDate? get fireDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_fireDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + NSDate get fireDate { + final _ret = _lib._objc_msgSend_172(_id, _lib._sel_fireDate1); + return NSDate._(_ret, _lib, retain: true, release: true); } - set fireDate(NSDate? value) { - _lib._objc_msgSend_493( - _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); + set fireDate(NSDate value) { + return _lib._objc_msgSend_561(_id, _lib._sel_setFireDate_1, value._id); } double get timeInterval { - return _lib._objc_msgSend_149(_id, _lib._sel_timeInterval1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeInterval1); } double get tolerance { - return _lib._objc_msgSend_149(_id, _lib._sel_tolerance1); + return _lib._objc_msgSend_165(_id, _lib._sel_tolerance1); } set tolerance(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setTolerance_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setTolerance_1, value); } void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } bool get valid { return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSObject get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get userInfo { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSTimer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTimer._(_ret, _lib, retain: true, release: true); } static NSTimer new1(SwiftLibrary _lib) { @@ -42993,6 +49038,12 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: false, release: true); } + static NSTimer allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTimer1, _lib._sel_allocWithZone_1, zone); + return NSTimer._(_ret, _lib, retain: false, release: true); + } + static NSTimer alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); return NSTimer._(_ret, _lib, retain: false, release: true); @@ -43002,18 +49053,18 @@ class NSTimer extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._objc_msgSend_15(_lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43028,33 +49079,29 @@ class NSTimer extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTimer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTimer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTimer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTimer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43066,72 +49113,111 @@ class NSTimer extends NSObject { } } -void _ObjCBlock17_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock17_closureRegistry = {}; -int _ObjCBlock17_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { - final id = ++_ObjCBlock17_closureRegistryIndex; - _ObjCBlock17_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock17_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock17 extends _ObjCBlockBase { - ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock17.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock17_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock17.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTimer.fromFunction( + SwiftLibrary lib, void Function(NSTimer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock17_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) .cast(), - _ObjCBlock17_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTimer_registerClosure( + (ffi.Pointer arg0) => + fn(NSTimer._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTimer.listener( + SwiftLibrary lib, void Function(NSTimer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTimer_registerClosure( + (ffi.Pointer arg0) => + fn(NSTimer._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSTimer arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSConnection extends NSObject { @@ -43157,132 +49243,142 @@ class NSConnection extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); } - NSDictionary? get statistics { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_statistics1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get statistics { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_statistics1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSArray allConnections(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSConnection1, _lib._sel_allConnections1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSConnection defaultConnection(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_504( + final _ret = _lib._objc_msgSend_572( _lib._class_NSConnection1, _lib._sel_defaultConnection1); return NSConnection._(_ret, _lib, retain: true, release: true); } - static NSConnection connectionWithRegisteredName_host_( - SwiftLibrary _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_159( + static NSConnection? connectionWithRegisteredName_host_( + SwiftLibrary _lib, NSString name, NSString? hostName) { + final _ret = _lib._objc_msgSend_573( _lib._class_NSConnection1, _lib._sel_connectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSConnection connectionWithRegisteredName_host_usingNameServer_( + static NSConnection? connectionWithRegisteredName_host_usingNameServer_( SwiftLibrary _lib, - NSString? name, + NSString name, NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_509( + NSPortNameServer server) { + final _ret = _lib._objc_msgSend_578( _lib._class_NSConnection1, _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + server._id); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( - SwiftLibrary _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_512( + static NSDistantObject? rootProxyForConnectionWithRegisteredName_host_( + SwiftLibrary _lib, NSString name, NSString? hostName) { + final _ret = _lib._objc_msgSend_583( _lib._class_NSConnection1, _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSDistantObject + static NSDistantObject? rootProxyForConnectionWithRegisteredName_host_usingNameServer_( SwiftLibrary _lib, - NSString? name, + NSString name, NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_513( + NSPortNameServer server) { + final _ret = _lib._objc_msgSend_584( _lib._class_NSConnection1, _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, + name._id, hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + server._id); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( + static NSConnection? serviceConnectionWithName_rootObject_usingNameServer_( SwiftLibrary _lib, - NSString? name, + NSString name, NSObject root, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_514( + NSPortNameServer server) { + final _ret = _lib._objc_msgSend_585( _lib._class_NSConnection1, _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, - name?._id ?? ffi.nullptr, + name._id, root._id, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + server._id); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSConnection serviceConnectionWithName_rootObject_( - SwiftLibrary _lib, NSString? name, NSObject root) { - final _ret = _lib._objc_msgSend_157( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_1, - name?._id ?? ffi.nullptr, - root._id); - return NSConnection._(_ret, _lib, retain: true, release: true); + static NSConnection? serviceConnectionWithName_rootObject_( + SwiftLibrary _lib, NSString name, NSObject root) { + final _ret = _lib._objc_msgSend_586(_lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_1, name._id, root._id); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } double get requestTimeout { - return _lib._objc_msgSend_149(_id, _lib._sel_requestTimeout1); + return _lib._objc_msgSend_165(_id, _lib._sel_requestTimeout1); } set requestTimeout(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setRequestTimeout_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setRequestTimeout_1, value); } double get replyTimeout { - return _lib._objc_msgSend_149(_id, _lib._sel_replyTimeout1); + return _lib._objc_msgSend_165(_id, _lib._sel_replyTimeout1); } set replyTimeout(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setReplyTimeout_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setReplyTimeout_1, value); } - NSObject get rootObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get rootObject { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_rootObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set rootObject(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setRootObject_1, value._id); + set rootObject(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setRootObject_1, value?._id ?? ffi.nullptr); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -43292,7 +49388,7 @@ class NSConnection extends NSObject { } set independentConversationQueueing(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setIndependentConversationQueueing_1, value); } @@ -43300,123 +49396,119 @@ class NSConnection extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - NSDistantObject? get rootProxy { - final _ret = _lib._objc_msgSend_515(_id, _lib._sel_rootProxy1); - return _ret.address == 0 - ? null - : NSDistantObject._(_ret, _lib, retain: true, release: true); + NSDistantObject get rootProxy { + final _ret = _lib._objc_msgSend_587(_id, _lib._sel_rootProxy1); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - void addRequestMode_(NSString? rmode) { - return _lib._objc_msgSend_186( - _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); + void addRequestMode_(NSString rmode) { + _lib._objc_msgSend_248(_id, _lib._sel_addRequestMode_1, rmode._id); } - void removeRequestMode_(NSString? rmode) { - return _lib._objc_msgSend_186( - _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); + void removeRequestMode_(NSString rmode) { + _lib._objc_msgSend_248(_id, _lib._sel_removeRequestMode_1, rmode._id); } - NSArray? get requestModes { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_requestModes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get requestModes { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_requestModes1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool registerName_(NSString? name) { - return _lib._objc_msgSend_59( + return _lib._objc_msgSend_588( _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); } - bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { - return _lib._objc_msgSend_516(_id, _lib._sel_registerName_withNameServer_1, - name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); + bool registerName_withNameServer_(NSString? name, NSPortNameServer server) { + return _lib._objc_msgSend_589(_id, _lib._sel_registerName_withNameServer_1, + name?._id ?? ffi.nullptr, server._id); } - static NSConnection connectionWithReceivePort_sendPort_( + static NSConnection? connectionWithReceivePort_sendPort_( SwiftLibrary _lib, NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_517( + final _ret = _lib._objc_msgSend_590( _lib._class_NSConnection1, _lib._sel_connectionWithReceivePort_sendPort_1, receivePort?._id ?? ffi.nullptr, sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSObject currentConversation(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_2( + static NSObject? currentConversation(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_17( _lib._class_NSConnection1, _lib._sel_currentConversation1); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSConnection initWithReceivePort_sendPort_( + NSConnection? initWithReceivePort_sendPort_( NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_517( + final _ret = _lib._objc_msgSend_590( _id, _lib._sel_initWithReceivePort_sendPort_1, receivePort?._id ?? ffi.nullptr, sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - NSPort? get sendPort { - final _ret = _lib._objc_msgSend_485(_id, _lib._sel_sendPort1); return _ret.address == 0 ? null - : NSPort._(_ret, _lib, retain: true, release: true); + : NSConnection._(_ret, _lib, retain: true, release: true); } - NSPort? get receivePort { - final _ret = _lib._objc_msgSend_485(_id, _lib._sel_receivePort1); - return _ret.address == 0 - ? null - : NSPort._(_ret, _lib, retain: true, release: true); + NSPort get sendPort { + final _ret = _lib._objc_msgSend_553(_id, _lib._sel_sendPort1); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + NSPort get receivePort { + final _ret = _lib._objc_msgSend_553(_id, _lib._sel_receivePort1); + return NSPort._(_ret, _lib, retain: true, release: true); } void enableMultipleThreads() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); + _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); } bool get multipleThreadsEnabled { return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); } - void addRunLoop_(NSRunLoop? runloop) { - return _lib._objc_msgSend_518( - _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); + void addRunLoop_(NSRunLoop runloop) { + _lib._objc_msgSend_591(_id, _lib._sel_addRunLoop_1, runloop._id); } - void removeRunLoop_(NSRunLoop? runloop) { - return _lib._objc_msgSend_518( - _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); + void removeRunLoop_(NSRunLoop runloop) { + _lib._objc_msgSend_591(_id, _lib._sel_removeRunLoop_1, runloop._id); } void runInNewThread() { - return _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); + _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); } - NSArray? get remoteObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_remoteObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get remoteObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_remoteObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get localObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_localObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get localObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_localObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void dispatchWithComponents_(NSArray? components) { - return _lib._objc_msgSend_412(_id, _lib._sel_dispatchWithComponents_1, - components?._id ?? ffi.nullptr); + void dispatchWithComponents_(NSArray components) { + _lib._objc_msgSend_472( + _id, _lib._sel_dispatchWithComponents_1, components._id); + } + + @override + NSConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSConnection._(_ret, _lib, retain: true, release: true); } static NSConnection new1(SwiftLibrary _lib) { @@ -43425,6 +49517,13 @@ class NSConnection extends NSObject { return NSConnection._(_ret, _lib, retain: false, release: true); } + static NSConnection allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSConnection1, _lib._sel_allocWithZone_1, zone); + return NSConnection._(_ret, _lib, retain: false, release: true); + } + static NSConnection alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); @@ -43435,18 +49534,18 @@ class NSConnection extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSConnection1, + _lib._objc_msgSend_15(_lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43461,33 +49560,29 @@ class NSConnection extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43524,31 +49619,39 @@ class NSPortNameServer extends NSObject { } static NSPortNameServer systemDefaultPortNameServer(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_505( + final _ret = _lib._objc_msgSend_574( _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); return NSPortNameServer._(_ret, _lib, retain: true, release: true); } - NSPort portForName_(NSString? name) { - final _ret = _lib._objc_msgSend_506( - _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + NSPort? portForName_(NSString name) { + final _ret = _lib._objc_msgSend_575(_id, _lib._sel_portForName_1, name._id); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - NSPort portForName_host_(NSString? name, NSString? host) { - final _ret = _lib._objc_msgSend_507(_id, _lib._sel_portForName_host_1, - name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + NSPort? portForName_host_(NSString name, NSString? host) { + final _ret = _lib._objc_msgSend_576( + _id, _lib._sel_portForName_host_1, name._id, host?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); + } + + bool registerPort_name_(NSPort port, NSString name) { + return _lib._objc_msgSend_577( + _id, _lib._sel_registerPort_name_1, port._id, name._id); } - bool registerPort_name_(NSPort? port, NSString? name) { - return _lib._objc_msgSend_508(_id, _lib._sel_registerPort_name_1, - port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); + bool removePortForName_(NSString name) { + return _lib._objc_msgSend_64(_id, _lib._sel_removePortForName_1, name._id); } - bool removePortForName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); + @override + NSPortNameServer init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); } static NSPortNameServer new1(SwiftLibrary _lib) { @@ -43557,6 +49660,13 @@ class NSPortNameServer extends NSObject { return NSPortNameServer._(_ret, _lib, retain: false, release: true); } + static NSPortNameServer allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPortNameServer1, _lib._sel_allocWithZone_1, zone); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); + } + static NSPortNameServer alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); @@ -43567,18 +49677,18 @@ class NSPortNameServer extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, + _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43593,33 +49703,29 @@ class NSPortNameServer extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortNameServer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPortNameServer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortNameServer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPortNameServer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPortNameServer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSPortNameServer1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSPortNameServer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43655,62 +49761,54 @@ class NSDistantObject extends NSProxy { obj._lib._class_NSDistantObject1); } - static NSObject proxyWithTarget_connection_( - SwiftLibrary _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? proxyWithTarget_connection_( + SwiftLibrary _lib, NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_580(_lib._class_NSDistantObject1, + _lib._sel_proxyWithTarget_connection_1, target._id, connection._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithTarget_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _id, - _lib._sel_initWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + NSDistantObject? initWithTarget_connection_( + NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_580( + _id, _lib._sel_initWithTarget_connection_1, target._id, connection._id); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } static NSObject proxyWithLocal_connection_( - SwiftLibrary _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_581(_lib._class_NSDistantObject1, + _lib._sel_proxyWithLocal_connection_1, target._id, connection._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSDistantObject initWithLocal_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_510( - _id, - _lib._sel_initWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); + NSObject target, NSConnection connection) { + final _ret = _lib._objc_msgSend_581( + _id, _lib._sel_initWithLocal_connection_1, target._id, connection._id); return NSDistantObject._(_ret, _lib, retain: true, release: true); } - NSDistantObject initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + NSDistantObject? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); } void setProtocolForProxy_(Protocol? proto) { - return _lib._objc_msgSend_511( + _lib._objc_msgSend_582( _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); } - NSConnection? get connectionForProxy { - final _ret = _lib._objc_msgSend_504(_id, _lib._sel_connectionForProxy1); - return _ret.address == 0 - ? null - : NSConnection._(_ret, _lib, retain: true, release: true); + NSConnection get connectionForProxy { + final _ret = _lib._objc_msgSend_572(_id, _lib._sel_connectionForProxy1); + return NSConnection._(_ret, _lib, retain: true, release: true); } static NSObject alloc(SwiftLibrary _lib) { @@ -43754,7 +49852,7 @@ class NSProxy extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: false, release: true); } - static NSObject allocWithZone_(SwiftLibrary _lib, ffi.Pointer zone) { + static NSObject allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); return NSObject._(_ret, _lib, retain: false, release: true); @@ -43765,37 +49863,34 @@ class NSProxy extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - void forwardInvocation_(NSInvocation? invocation) { - return _lib._objc_msgSend_372( - _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation invocation) { + _lib._objc_msgSend_421(_id, _lib._sel_forwardInvocation_1, invocation._id); } - NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { - final _ret = _lib._objc_msgSend_373( + NSMethodSignature? methodSignatureForSelector_(ffi.Pointer sel) { + final _ret = _lib._objc_msgSend_579( _id, _lib._sel_methodSignatureForSelector_1, sel); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); } void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get debugDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get debugDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } static bool respondsToSelector_( @@ -43838,57 +49933,59 @@ class NSClassDescription extends NSObject { } static void registerClassDescription_forClass_( - SwiftLibrary _lib, NSClassDescription? description, NSObject aClass) { - return _lib._objc_msgSend_523( + SwiftLibrary _lib, NSClassDescription description, NSObject aClass) { + _lib._objc_msgSend_598( _lib._class_NSClassDescription1, _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, + description._id, aClass._id); } static void invalidateClassDescriptionCache(SwiftLibrary _lib) { - return _lib._objc_msgSend_1(_lib._class_NSClassDescription1, + _lib._objc_msgSend_1(_lib._class_NSClassDescription1, _lib._sel_invalidateClassDescriptionCache1); } - static NSClassDescription classDescriptionForClass_( + static NSClassDescription? classDescriptionForClass_( SwiftLibrary _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_524(_lib._class_NSClassDescription1, + final _ret = _lib._objc_msgSend_599(_lib._class_NSClassDescription1, _lib._sel_classDescriptionForClass_1, aClass._id); - return NSClassDescription._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSClassDescription._(_ret, _lib, retain: true, release: true); } @override - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get attributeKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_attributeKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } @override - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toOneRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_toManyRelationshipKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } @override - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_toManyRelationshipKeys1); + NSString? inverseForRelationshipKey_(NSString relationshipKey) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_inverseForRelationshipKey_1, relationshipKey._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } @override - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } static NSClassDescription new1(SwiftLibrary _lib) { @@ -43897,6 +49994,13 @@ class NSClassDescription extends NSObject { return NSClassDescription._(_ret, _lib, retain: false, release: true); } + static NSClassDescription allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSClassDescription._(_ret, _lib, retain: false, release: true); + } + static NSClassDescription alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); @@ -43907,18 +50011,18 @@ class NSClassDescription extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43933,33 +50037,29 @@ class NSClassDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSClassDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSClassDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSClassDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSClassDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSClassDescription1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -43996,66 +50096,68 @@ class NSScriptObjectSpecifier extends NSObject { obj._lib._class_NSScriptObjectSpecifier1); } - static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( - SwiftLibrary _lib, NSAppleEventDescriptor? descriptor) { - final _ret = _lib._objc_msgSend_548( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_objectSpecifierWithDescriptor_1, - descriptor?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + static NSScriptObjectSpecifier? objectSpecifierWithDescriptor_( + SwiftLibrary _lib, NSAppleEventDescriptor descriptor) { + final _ret = _lib._objc_msgSend_624(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_objectSpecifierWithDescriptor_1, descriptor._id); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier initWithContainerSpecifier_key_( - NSScriptObjectSpecifier? container, NSString? property) { - final _ret = _lib._objc_msgSend_549( + NSScriptObjectSpecifier container, NSString property) { + final _ret = _lib._objc_msgSend_625( _id, _lib._sel_initWithContainerSpecifier_key_1, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); + container._id, + property._id); return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier initWithContainerClassDescription_containerSpecifier_key_( - NSScriptClassDescription? classDesc, + NSScriptClassDescription classDesc, NSScriptObjectSpecifier? container, - NSString? property) { - final _ret = _lib._objc_msgSend_566( + NSString property) { + final _ret = _lib._objc_msgSend_645( _id, _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, - classDesc?._id ?? ffi.nullptr, + classDesc._id, container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); + property._id); return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSScriptObjectSpecifier? get childSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_childSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_childSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } set childSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_557( + return _lib._objc_msgSend_633( _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); } NSScriptObjectSpecifier? get containerSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_containerSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_containerSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } set containerSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_557( + return _lib._objc_msgSend_633( _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); } @@ -44064,7 +50166,7 @@ class NSScriptObjectSpecifier extends NSObject { } set containerIsObjectBeingTested(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setContainerIsObjectBeingTested_1, value); } @@ -44074,91 +50176,107 @@ class NSScriptObjectSpecifier extends NSObject { } set containerIsRangeContainerObject(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setContainerIsRangeContainerObject_1, value); } - NSString? get key { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get key { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_key1); + return NSString._(_ret, _lib, retain: true, release: true); } - set key(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); + set key(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setKey_1, value._id); } NSScriptClassDescription? get containerClassDescription { final _ret = - _lib._objc_msgSend_552(_id, _lib._sel_containerClassDescription1); + _lib._objc_msgSend_628(_id, _lib._sel_containerClassDescription1); return _ret.address == 0 ? null : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } set containerClassDescription(NSScriptClassDescription? value) { - _lib._objc_msgSend_567(_id, _lib._sel_setContainerClassDescription_1, + return _lib._objc_msgSend_647(_id, _lib._sel_setContainerClassDescription_1, value?._id ?? ffi.nullptr); } NSScriptClassDescription? get keyClassDescription { - final _ret = _lib._objc_msgSend_552(_id, _lib._sel_keyClassDescription1); + final _ret = _lib._objc_msgSend_628(_id, _lib._sel_keyClassDescription1); return _ret.address == 0 ? null : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( - NSObject container, ffi.Pointer count) { - return _lib._objc_msgSend_568( + ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( + NSObject container, ffi.Pointer count) { + return _lib._objc_msgSend_648( _id, _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, container._id, count); } - NSObject objectsByEvaluatingWithContainers_(NSObject containers) { + NSObject? objectsByEvaluatingWithContainers_(NSObject containers) { final _ret = _lib._objc_msgSend_16( _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get objectsByEvaluatingSpecifier { + NSObject? get objectsByEvaluatingSpecifier { final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_17(_id, _lib._sel_objectsByEvaluatingSpecifier1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get evaluationErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_evaluationErrorNumber1); } set evaluationErrorNumber(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setEvaluationErrorNumber_1, value); + return _lib._objc_msgSend_635( + _id, _lib._sel_setEvaluationErrorNumber_1, value); } NSScriptObjectSpecifier? get evaluationErrorSpecifier { final _ret = - _lib._objc_msgSend_556(_id, _lib._sel_evaluationErrorSpecifier1); + _lib._objc_msgSend_632(_id, _lib._sel_evaluationErrorSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor? get descriptor { - final _ret = _lib._objc_msgSend_526(_id, _lib._sel_descriptor1); + final _ret = _lib._objc_msgSend_636(_id, _lib._sel_descriptor1); return _ret.address == 0 ? null : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } + @override + NSScriptObjectSpecifier init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + static NSScriptObjectSpecifier new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } + static NSScriptObjectSpecifier allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_allocWithZone_1, zone); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + } + static NSScriptObjectSpecifier alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); @@ -44169,18 +50287,18 @@ class NSScriptObjectSpecifier extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, + _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44195,33 +50313,29 @@ class NSScriptObjectSpecifier extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptObjectSpecifier1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptObjectSpecifier1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptObjectSpecifier1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -44259,88 +50373,92 @@ class NSAppleEventDescriptor extends NSObject { } static NSAppleEventDescriptor nullDescriptor(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_601( _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( + static NSAppleEventDescriptor? descriptorWithDescriptorType_bytes_length_( SwiftLibrary _lib, int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_527( + final _ret = _lib._objc_msgSend_602( _lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithDescriptorType_bytes_length_1, descriptorType, bytes, byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_data_( + static NSAppleEventDescriptor? descriptorWithDescriptorType_data_( SwiftLibrary _lib, int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_528( + final _ret = _lib._objc_msgSend_603( _lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithDescriptorType_data_1, descriptorType, data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithBoolean_( SwiftLibrary _lib, int boolean) { - final _ret = _lib._objc_msgSend_529(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_604(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithBoolean_1, boolean); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithEnumCode_( SwiftLibrary _lib, int enumerator) { - final _ret = _lib._objc_msgSend_530(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_605(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithEnumCode_1, enumerator); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithInt32_( SwiftLibrary _lib, int signedInt) { - final _ret = _lib._objc_msgSend_531(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_606(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithInt32_1, signedInt); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithDouble_( SwiftLibrary _lib, double doubleValue) { - final _ret = _lib._objc_msgSend_532(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_607(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithDouble_1, doubleValue); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithTypeCode_( SwiftLibrary _lib, int typeCode) { - final _ret = _lib._objc_msgSend_530(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_605(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithTypeCode_1, typeCode); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_533(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_608(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithString_1, string._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithDate_( - SwiftLibrary _lib, NSDate? date) { - final _ret = _lib._objc_msgSend_534(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSDate date) { + final _ret = _lib._objc_msgSend_609(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDate_1, date._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithFileURL_( - SwiftLibrary _lib, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_535(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSURL fileURL) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithFileURL_1, fileURL._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @@ -44352,7 +50470,7 @@ class NSAppleEventDescriptor extends NSObject { NSAppleEventDescriptor? targetDescriptor, int returnID, int transactionID) { - final _ret = _lib._objc_msgSend_536( + final _ret = _lib._objc_msgSend_611( _lib._class_NSAppleEventDescriptor1, _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, eventClass, @@ -44364,73 +50482,73 @@ class NSAppleEventDescriptor extends NSObject { } static NSAppleEventDescriptor listDescriptor(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_601( _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor recordDescriptor(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_601( _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor currentProcessDescriptor(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_526(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_601(_lib._class_NSAppleEventDescriptor1, _lib._sel_currentProcessDescriptor1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithProcessIdentifier_( SwiftLibrary _lib, int processIdentifier) { - final _ret = _lib._objc_msgSend_531(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_606(_lib._class_NSAppleEventDescriptor1, _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithBundleIdentifier_( - SwiftLibrary _lib, NSString? bundleIdentifier) { - final _ret = _lib._objc_msgSend_533( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBundleIdentifier_1, - bundleIdentifier?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString bundleIdentifier) { + final _ret = _lib._objc_msgSend_608(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBundleIdentifier_1, bundleIdentifier._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } static NSAppleEventDescriptor descriptorWithApplicationURL_( - SwiftLibrary _lib, NSURL? applicationURL) { - final _ret = _lib._objc_msgSend_535( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithApplicationURL_1, - applicationURL?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSURL applicationURL) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithApplicationURL_1, applicationURL._id); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { final _ret = - _lib._objc_msgSend_537(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); + _lib._objc_msgSend_612(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - NSAppleEventDescriptor initWithDescriptorType_bytes_length_( + NSAppleEventDescriptor? initWithDescriptorType_bytes_length_( int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_538( + final _ret = _lib._objc_msgSend_613( _id, _lib._sel_initWithDescriptorType_bytes_length_1, descriptorType, bytes, byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor initWithDescriptorType_data_( + NSAppleEventDescriptor? initWithDescriptorType_data_( int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_539( + final _ret = _lib._objc_msgSend_614( _id, _lib._sel_initWithDescriptorType_data_1, descriptorType, data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor @@ -44440,7 +50558,7 @@ class NSAppleEventDescriptor extends NSObject { NSAppleEventDescriptor? targetDescriptor, int returnID, int transactionID) { - final _ret = _lib._objc_msgSend_540( + final _ret = _lib._objc_msgSend_615( _id, _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, eventClass, @@ -44462,121 +50580,119 @@ class NSAppleEventDescriptor extends NSObject { } ffi.Pointer get aeDesc { - return _lib._objc_msgSend_541(_id, _lib._sel_aeDesc1); + return _lib._objc_msgSend_616(_id, _lib._sel_aeDesc1); } int get descriptorType { - return _lib._objc_msgSend_191(_id, _lib._sel_descriptorType1); + return _lib._objc_msgSend_214(_id, _lib._sel_descriptorType1); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } int get booleanValue { - return _lib._objc_msgSend_210(_id, _lib._sel_booleanValue1); + return _lib._objc_msgSend_234(_id, _lib._sel_booleanValue1); } int get enumCodeValue { - return _lib._objc_msgSend_191(_id, _lib._sel_enumCodeValue1); + return _lib._objc_msgSend_214(_id, _lib._sel_enumCodeValue1); } int get int32Value { - return _lib._objc_msgSend_213(_id, _lib._sel_int32Value1); + return _lib._objc_msgSend_237(_id, _lib._sel_int32Value1); } double get doubleValue { - return _lib._objc_msgSend_149(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_165(_id, _lib._sel_doubleValue1); } int get typeCodeValue { - return _lib._objc_msgSend_191(_id, _lib._sel_typeCodeValue1); + return _lib._objc_msgSend_214(_id, _lib._sel_typeCodeValue1); } NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_stringValue1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDate? get dateValue { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_dateValue1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_dateValue1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } NSURL? get fileURLValue { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileURLValue1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } int get eventClass { - return _lib._objc_msgSend_191(_id, _lib._sel_eventClass1); + return _lib._objc_msgSend_214(_id, _lib._sel_eventClass1); } int get eventID { - return _lib._objc_msgSend_191(_id, _lib._sel_eventID1); + return _lib._objc_msgSend_214(_id, _lib._sel_eventID1); } int get returnID { - return _lib._objc_msgSend_211(_id, _lib._sel_returnID1); + return _lib._objc_msgSend_235(_id, _lib._sel_returnID1); } int get transactionID { - return _lib._objc_msgSend_213(_id, _lib._sel_transactionID1); + return _lib._objc_msgSend_237(_id, _lib._sel_transactionID1); } void setParamDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_542( - _id, - _lib._sel_setParamDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, - keyword); + NSAppleEventDescriptor descriptor, int keyword) { + _lib._objc_msgSend_617(_id, _lib._sel_setParamDescriptor_forKeyword_1, + descriptor._id, keyword); } - NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_530( + NSAppleEventDescriptor? paramDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_618( _id, _lib._sel_paramDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void removeParamDescriptorWithKeyword_(int keyword) { - return _lib._objc_msgSend_543( + _lib._objc_msgSend_619( _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); } void setAttributeDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_542( - _id, - _lib._sel_setAttributeDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, - keyword); + NSAppleEventDescriptor descriptor, int keyword) { + _lib._objc_msgSend_617(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, + descriptor._id, keyword); } - NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_530( + NSAppleEventDescriptor? attributeDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_618( _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, + NSAppleEventDescriptor? sendEventWithOptions_timeout_error_(int sendOptions, double timeoutInSeconds, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_544( + final _ret = _lib._objc_msgSend_620( _id, _lib._sel_sendEventWithOptions_timeout_error_1, sendOptions, timeoutInSeconds, error); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } bool get isRecordDescriptor { @@ -44584,51 +50700,61 @@ class NSAppleEventDescriptor extends NSObject { } int get numberOfItems { - return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); + return _lib._objc_msgSend_83(_id, _lib._sel_numberOfItems1); } - void insertDescriptor_atIndex_( - NSAppleEventDescriptor? descriptor, int index) { - return _lib._objc_msgSend_545(_id, _lib._sel_insertDescriptor_atIndex_1, - descriptor?._id ?? ffi.nullptr, index); + void insertDescriptor_atIndex_(NSAppleEventDescriptor descriptor, int index) { + _lib._objc_msgSend_621( + _id, _lib._sel_insertDescriptor_atIndex_1, descriptor._id, index); } - NSAppleEventDescriptor descriptorAtIndex_(int index) { + NSAppleEventDescriptor? descriptorAtIndex_(int index) { final _ret = - _lib._objc_msgSend_546(_id, _lib._sel_descriptorAtIndex_1, index); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_622(_id, _lib._sel_descriptorAtIndex_1, index); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void removeDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_374( - _id, _lib._sel_removeDescriptorAtIndex_1, index); + _lib._objc_msgSend_423(_id, _lib._sel_removeDescriptorAtIndex_1, index); } void setDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_542(_id, _lib._sel_setDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); + NSAppleEventDescriptor descriptor, int keyword) { + _lib._objc_msgSend_617( + _id, _lib._sel_setDescriptor_forKeyword_1, descriptor._id, keyword); } - NSAppleEventDescriptor descriptorForKeyword_(int keyword) { + NSAppleEventDescriptor? descriptorForKeyword_(int keyword) { final _ret = - _lib._objc_msgSend_530(_id, _lib._sel_descriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_618(_id, _lib._sel_descriptorForKeyword_1, keyword); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void removeDescriptorWithKeyword_(int keyword) { - return _lib._objc_msgSend_543( + _lib._objc_msgSend_619( _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); } int keywordForDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_547( + return _lib._objc_msgSend_623( _id, _lib._sel_keywordForDescriptorAtIndex_1, index); } - NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { - final _ret = _lib._objc_msgSend_530( + NSAppleEventDescriptor? coerceToDescriptorType_(int descriptorType) { + final _ret = _lib._objc_msgSend_618( _id, _lib._sel_coerceToDescriptorType_1, descriptorType); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + @override + NSAppleEventDescriptor init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @@ -44638,6 +50764,13 @@ class NSAppleEventDescriptor extends NSObject { return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } + static NSAppleEventDescriptor allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAppleEventDescriptor1, _lib._sel_allocWithZone_1, zone); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + } + static NSAppleEventDescriptor alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); @@ -44648,18 +50781,18 @@ class NSAppleEventDescriptor extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, + _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44674,33 +50807,29 @@ class NSAppleEventDescriptor extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSAppleEventDescriptor1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSAppleEventDescriptor1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSAppleEventDescriptor1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSAppleEventDescriptor1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -44712,34 +50841,16 @@ class NSAppleEventDescriptor extends NSObject { } } -typedef DescType = ResType; -typedef ResType = FourCharCode; -typedef Boolean = ffi.UnsignedChar; -typedef SInt32 = ffi.Int; -typedef AEEventClass = FourCharCode; -typedef AEEventID = FourCharCode; -typedef AEReturnID = SInt16; -typedef SInt16 = ffi.Short; -typedef AETransactionID = SInt32; -typedef pid_t = __darwin_pid_t; -typedef __darwin_pid_t = __int32_t; -typedef __int32_t = ffi.Int; - @ffi.Packed(2) final class AEDesc extends ffi.Struct { - @DescType() + @ffi.UnsignedInt() external int descriptorType; - external AEDataStorage dataHandle; + external ffi.Pointer> dataHandle; } -typedef AEDataStorage = ffi.Pointer; -typedef AEDataStorageType = ffi.Pointer; - final class OpaqueAEDataStorageType extends ffi.Opaque {} -typedef AEKeyword = FourCharCode; - abstract class NSAppleEventSendOptions { static const int NSAppleEventSendNoReply = 1; static const int NSAppleEventSendQueueReply = 2; @@ -44779,159 +50890,175 @@ class NSScriptClassDescription extends NSClassDescription { obj._lib._class_NSScriptClassDescription1); } - static NSScriptClassDescription classDescriptionForClass_( + static NSScriptClassDescription? classDescriptionForClass_( SwiftLibrary _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_550(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_626(_lib._class_NSScriptClassDescription1, _lib._sel_classDescriptionForClass_1, aClass._id); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription initWithSuiteName_className_dictionary_( - NSString? suiteName, - NSString? className, - NSDictionary? classDeclaration) { - final _ret = _lib._objc_msgSend_551( + NSScriptClassDescription? initWithSuiteName_className_dictionary_( + NSString suiteName, NSString className, NSDictionary? classDeclaration) { + final _ret = _lib._objc_msgSend_627( _id, _lib._sel_initWithSuiteName_className_dictionary_1, - suiteName?._id ?? ffi.nullptr, - className?._id ?? ffi.nullptr, + suiteName._id, + className._id, classDeclaration?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suiteName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_className1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get implementationClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_implementationClassName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSScriptClassDescription? get superclassDescription { - final _ret = _lib._objc_msgSend_552(_id, _lib._sel_superclassDescription1); + final _ret = _lib._objc_msgSend_628(_id, _lib._sel_superclassDescription1); return _ret.address == 0 ? null : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } int get appleEventCode { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventCode1); } bool matchesAppleEventCode_(int appleEventCode) { - return _lib._objc_msgSend_173( + return _lib._objc_msgSend_194( _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); } - bool supportsCommand_(NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_562(_id, _lib._sel_supportsCommand_1, - commandDescription?._id ?? ffi.nullptr); + bool supportsCommand_(NSScriptCommandDescription commandDescription) { + return _lib._objc_msgSend_641( + _id, _lib._sel_supportsCommand_1, commandDescription._id); } ffi.Pointer selectorForCommand_( - NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_563(_id, _lib._sel_selectorForCommand_1, - commandDescription?._id ?? ffi.nullptr); + NSScriptCommandDescription commandDescription) { + return _lib._objc_msgSend_642( + _id, _lib._sel_selectorForCommand_1, commandDescription._id); } - NSString typeForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? typeForKey_(NSString key) { + final _ret = _lib._objc_msgSend_186(_id, _lib._sel_typeForKey_1, key._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription classDescriptionForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_564( - _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + NSScriptClassDescription? classDescriptionForKey_(NSString key) { + final _ret = _lib._objc_msgSend_643( + _id, _lib._sel_classDescriptionForKey_1, key._id); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - int appleEventCodeForKey_(NSString? key) { - return _lib._objc_msgSend_553( - _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); + int appleEventCodeForKey_(NSString key) { + return _lib._objc_msgSend_629( + _id, _lib._sel_appleEventCodeForKey_1, key._id); } - NSString keyWithAppleEventCode_(int appleEventCode) { - final _ret = _lib._objc_msgSend_565( + NSString? keyWithAppleEventCode_(int appleEventCode) { + final _ret = _lib._objc_msgSend_644( _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get defaultSubcontainerAttributeKey { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); + _lib._objc_msgSend_44(_id, _lib._sel_defaultSubcontainerAttributeKey1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { - return _lib._objc_msgSend_59( + bool isLocationRequiredToCreateForKey_(NSString toManyRelationshipKey) { + return _lib._objc_msgSend_64( _id, _lib._sel_isLocationRequiredToCreateForKey_1, - toManyRelationshipKey?._id ?? ffi.nullptr); + toManyRelationshipKey._id); } - bool hasPropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); + bool hasPropertyForKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_hasPropertyForKey_1, key._id); } - bool hasOrderedToManyRelationshipForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasOrderedToManyRelationshipForKey_1, - key?._id ?? ffi.nullptr); + bool hasOrderedToManyRelationshipForKey_(NSString key) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasOrderedToManyRelationshipForKey_1, key._id); } - bool hasReadablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); + bool hasReadablePropertyForKey_(NSString key) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasReadablePropertyForKey_1, key._id); } - bool hasWritablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); + bool hasWritablePropertyForKey_(NSString key) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasWritablePropertyForKey_1, key._id); } - bool isReadOnlyKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); + bool isReadOnlyKey_(NSString key) { + return _lib._objc_msgSend_64(_id, _lib._sel_isReadOnlyKey_1, key._id); } static void registerClassDescription_forClass_( - SwiftLibrary _lib, NSClassDescription? description, NSObject aClass) { - return _lib._objc_msgSend_523( + SwiftLibrary _lib, NSClassDescription description, NSObject aClass) { + _lib._objc_msgSend_598( _lib._class_NSScriptClassDescription1, _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, + description._id, aClass._id); } static void invalidateClassDescriptionCache(SwiftLibrary _lib) { - return _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, + _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, _lib._sel_invalidateClassDescriptionCache1); } + @override + NSScriptClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + static NSScriptClassDescription new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptClassDescription1, _lib._sel_new1); return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } + static NSScriptClassDescription allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + } + static NSScriptClassDescription alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); @@ -44942,18 +51069,18 @@ class NSScriptClassDescription extends NSClassDescription { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44968,33 +51095,29 @@ class NSScriptClassDescription extends NSClassDescription { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptClassDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptClassDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptClassDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptClassDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45037,99 +51160,93 @@ class NSScriptCommandDescription extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( - NSString? suiteName, - NSString? commandName, + NSScriptCommandDescription? initWithSuiteName_commandName_dictionary_( + NSString suiteName, + NSString commandName, NSDictionary? commandDeclaration) { - final _ret = _lib._objc_msgSend_551( + final _ret = _lib._objc_msgSend_627( _id, _lib._sel_initWithSuiteName_commandName_dictionary_1, - suiteName?._id ?? ffi.nullptr, - commandName?._id ?? ffi.nullptr, + suiteName._id, + commandName._id, commandDeclaration?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); - } - - NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); - } - - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); } - NSString? get commandName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); + NSScriptCommandDescription? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); + } + + NSString get suiteName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_suiteName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get commandName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_commandName1); + return NSString._(_ret, _lib, retain: true, release: true); } int get appleEventClassCode { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventClassCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventClassCode1); } int get appleEventCode { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventCode1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventCode1); } - NSString? get commandClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get commandClassName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_commandClassName1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get returnType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_returnType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get appleEventCodeForReturnType { - return _lib._objc_msgSend_191(_id, _lib._sel_appleEventCodeForReturnType1); + return _lib._objc_msgSend_214(_id, _lib._sel_appleEventCodeForReturnType1); } - NSArray? get argumentNames { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_argumentNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get argumentNames { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_argumentNames1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString typeForArgumentWithName_(NSString? argumentName) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? typeForArgumentWithName_(NSString argumentName) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_typeForArgumentWithName_1, argumentName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int appleEventCodeForArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_553( - _id, - _lib._sel_appleEventCodeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + int appleEventCodeForArgumentWithName_(NSString argumentName) { + return _lib._objc_msgSend_629( + _id, _lib._sel_appleEventCodeForArgumentWithName_1, argumentName._id); } - bool isOptionalArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + bool isOptionalArgumentWithName_(NSString argumentName) { + return _lib._objc_msgSend_64( + _id, _lib._sel_isOptionalArgumentWithName_1, argumentName._id); } NSScriptCommand createCommandInstance() { - final _ret = _lib._objc_msgSend_560(_id, _lib._sel_createCommandInstance1); + final _ret = _lib._objc_msgSend_639(_id, _lib._sel_createCommandInstance1); return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer zone) { - final _ret = _lib._objc_msgSend_561( + NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_640( _id, _lib._sel_createCommandInstanceWithZone_1, zone); return NSScriptCommand._(_ret, _lib, retain: true, release: true); } @@ -45141,6 +51258,14 @@ class NSScriptCommandDescription extends NSObject { retain: false, release: true); } + static NSScriptCommandDescription allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSScriptCommandDescription1, + _lib._sel_allocWithZone_1, zone); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); + } + static NSScriptCommandDescription alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); @@ -45152,18 +51277,18 @@ class NSScriptCommandDescription extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, + _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45178,33 +51303,29 @@ class NSScriptCommandDescription extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommandDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptCommandDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommandDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptCommandDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptCommandDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptCommandDescription1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptCommandDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45241,65 +51362,71 @@ class NSScriptCommand extends NSObject { } NSScriptCommand initWithCommandDescription_( - NSScriptCommandDescription? commandDef) { - final _ret = _lib._objc_msgSend_554(_id, - _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommand initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + NSScriptCommandDescription commandDef) { + final _ret = _lib._objc_msgSend_630( + _id, _lib._sel_initWithCommandDescription_1, commandDef._id); return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription? get commandDescription { - final _ret = _lib._objc_msgSend_555(_id, _lib._sel_commandDescription1); + NSScriptCommand? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); return _ret.address == 0 ? null - : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); + : NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSObject get directParameter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSScriptCommandDescription get commandDescription { + final _ret = _lib._objc_msgSend_631(_id, _lib._sel_commandDescription1); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); + } + + NSObject? get directParameter { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_directParameter1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set directParameter(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setDirectParameter_1, value._id); + set directParameter(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setDirectParameter_1, value?._id ?? ffi.nullptr); } NSScriptObjectSpecifier? get receiversSpecifier { - final _ret = _lib._objc_msgSend_556(_id, _lib._sel_receiversSpecifier1); + final _ret = _lib._objc_msgSend_632(_id, _lib._sel_receiversSpecifier1); return _ret.address == 0 ? null : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } set receiversSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_557( + return _lib._objc_msgSend_633( _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); } - NSObject get evaluatedReceivers { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get evaluatedReceivers { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_evaluatedReceivers1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get arguments { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_arguments1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_arguments1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set arguments(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } NSDictionary? get evaluatedArguments { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_evaluatedArguments1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_evaluatedArguments1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -45309,27 +51436,31 @@ class NSScriptCommand extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); } - NSObject performDefaultImplementation() { + NSObject? performDefaultImplementation() { final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_17(_id, _lib._sel_performDefaultImplementation1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject executeCommand() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? executeCommand() { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_executeCommand1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get scriptErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_scriptErrorNumber1); } set scriptErrorNumber(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setScriptErrorNumber_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setScriptErrorNumber_1, value); } NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_636( _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); return _ret.address == 0 ? null @@ -45337,14 +51468,14 @@ class NSScriptCommand extends NSObject { } set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { - _lib._objc_msgSend_559( + return _lib._objc_msgSend_637( _id, _lib._sel_setScriptErrorOffendingObjectDescriptor_1, value?._id ?? ffi.nullptr); } NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { - final _ret = _lib._objc_msgSend_526( + final _ret = _lib._objc_msgSend_636( _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); return _ret.address == 0 ? null @@ -45352,44 +51483,52 @@ class NSScriptCommand extends NSObject { } set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { - _lib._objc_msgSend_559( + return _lib._objc_msgSend_637( _id, _lib._sel_setScriptErrorExpectedTypeDescriptor_1, value?._id ?? ffi.nullptr); } NSString? get scriptErrorString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_scriptErrorString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set scriptErrorString(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); } - static NSScriptCommand currentCommand(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_560( + static NSScriptCommand? currentCommand(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_638( _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSScriptCommand._(_ret, _lib, retain: true, release: true); } NSAppleEventDescriptor? get appleEvent { - final _ret = _lib._objc_msgSend_526(_id, _lib._sel_appleEvent1); + final _ret = _lib._objc_msgSend_636(_id, _lib._sel_appleEvent1); return _ret.address == 0 ? null : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } void suspendExecution() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); } - void resumeExecutionWithResult_(NSObject result) { - return _lib._objc_msgSend_15( - _id, _lib._sel_resumeExecutionWithResult_1, result._id); + void resumeExecutionWithResult_(NSObject? result) { + _lib._objc_msgSend_289( + _id, _lib._sel_resumeExecutionWithResult_1, result?._id ?? ffi.nullptr); + } + + @override + NSScriptCommand init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } static NSScriptCommand new1(SwiftLibrary _lib) { @@ -45398,6 +51537,13 @@ class NSScriptCommand extends NSObject { return NSScriptCommand._(_ret, _lib, retain: false, release: true); } + static NSScriptCommand allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptCommand1, _lib._sel_allocWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + static NSScriptCommand alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); @@ -45408,18 +51554,18 @@ class NSScriptCommand extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45434,33 +51580,29 @@ class NSScriptCommand extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommand1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScriptCommand1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommand1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScriptCommand1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScriptCommand1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSScriptCommand1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSScriptCommand1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45502,141 +51644,144 @@ class NSItemProvider extends NSObject { } void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, int visibility, ObjCBlock18 loadHandler) { - return _lib._objc_msgSend_588( + NSString typeIdentifier, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { + _lib._objc_msgSend_673( _id, _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, visibility, loadHandler._id); } void registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, + NSString typeIdentifier, int fileOptions, int visibility, - ObjCBlock20 loadHandler) { - return _lib._objc_msgSend_589( + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { + _lib._objc_msgSend_674( _id, _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, fileOptions, visibility, loadHandler._id); } - NSArray? get registeredTypeIdentifiers { + NSArray get registeredTypeIdentifiers { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_registeredTypeIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_registeredTypeIdentifiers1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_590( + final _ret = _lib._objc_msgSend_675( _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); return NSArray._(_ret, _lib, retain: true, release: true); } - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); + bool hasItemConformingToTypeIdentifier_(NSString typeIdentifier) { + return _lib._objc_msgSend_64( + _id, _lib._sel_hasItemConformingToTypeIdentifier_1, typeIdentifier._id); } bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_591( + NSString typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_676( _id, _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, fileOptions); } NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock19 completionHandler) { - final _ret = _lib._objc_msgSend_592( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSData_NSError completionHandler) { + final _ret = _lib._objc_msgSend_677( _id, _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock22 completionHandler) { - final _ret = _lib._objc_msgSend_593( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { + final _ret = _lib._objc_msgSend_678( _id, _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock21 completionHandler) { - final _ret = _lib._objc_msgSend_594( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { + final _ret = _lib._objc_msgSend_679( _id, _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSString? get suggestedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suggestedName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set suggestedName(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); } - NSItemProvider initWithObject_(NSObject? object) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); + NSItemProvider initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_124(_id, _lib._sel_initWithObject_1, object._id); return NSItemProvider._(_ret, _lib, retain: true, release: true); } - void registerObject_visibility_(NSObject? object, int visibility) { - return _lib._objc_msgSend_595(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + void registerObject_visibility_(NSObject object, int visibility) { + _lib._objc_msgSend_680( + _id, _lib._sel_registerObject_visibility_1, object._id, visibility); } void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, int visibility, ObjCBlock23 loadHandler) { - return _lib._objc_msgSend_596( + NSObject aClass, + int visibility, + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { + _lib._objc_msgSend_681( _id, _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, + aClass._id, visibility, loadHandler._id); } - bool canLoadObjectOfClass_(NSObject? aClass) { + bool canLoadObjectOfClass_(NSObject aClass) { return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + _id, _lib._sel_canLoadObjectOfClass_1, aClass._id); } NSProgress loadObjectOfClass_completionHandler_( - NSObject? aClass, ObjCBlock24 completionHandler) { - final _ret = _lib._objc_msgSend_597( + NSObject aClass, ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + final _ret = _lib._objc_msgSend_682( _id, _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, + aClass._id, completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } NSItemProvider initWithItem_typeIdentifier_( NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_683( _id, _lib._sel_initWithItem_typeIdentifier_1, item?._id ?? ffi.nullptr, @@ -45644,48 +51789,61 @@ class NSItemProvider extends NSObject { return NSItemProvider._(_ret, _lib, retain: true, release: true); } - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + NSItemProvider? initWithContentsOfURL_(NSURL fileURL) { + final _ret = _lib._objc_msgSend_277( + _id, _lib._sel_initWithContentsOfURL_1, fileURL._id); + return _ret.address == 0 + ? null + : NSItemProvider._(_ret, _lib, retain: true, release: true); } void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, NSItemProviderLoadHandler loadHandler) { - return _lib._objc_msgSend_598( + NSString typeIdentifier, + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + loadHandler) { + _lib._objc_msgSend_684( _id, _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler); + typeIdentifier._id, + loadHandler._id); } void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, + NSString typeIdentifier, NSDictionary? options, - NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_599( + ObjCBlock_ffiVoid_ObjCObject_NSError1? completionHandler) { + _lib._objc_msgSend_685( _id, _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, options?._id ?? ffi.nullptr, - completionHandler); + completionHandler?._id ?? ffi.nullptr); } - NSItemProviderLoadHandler get previewImageHandler { - return _lib._objc_msgSend_600(_id, _lib._sel_previewImageHandler1); + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary? + get previewImageHandler { + final _ret = _lib._objc_msgSend_686(_id, _lib._sel_previewImageHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + _ret, _lib, + retain: true, release: true); } - set previewImageHandler(NSItemProviderLoadHandler value) { - _lib._objc_msgSend_601(_id, _lib._sel_setPreviewImageHandler_1, value); + set previewImageHandler( + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary? + value) { + return _lib._objc_msgSend_687( + _id, _lib._sel_setPreviewImageHandler_1, value?._id ?? ffi.nullptr); } - void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, - NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_602( + void loadPreviewImageWithOptions_completionHandler_(NSDictionary options, + ObjCBlock_ffiVoid_ObjCObject_NSError1 completionHandler) { + _lib._objc_msgSend_688( _id, _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler); + options._id, + completionHandler._id); } static NSItemProvider new1(SwiftLibrary _lib) { @@ -45694,6 +51852,13 @@ class NSItemProvider extends NSObject { return NSItemProvider._(_ret, _lib, retain: false, release: true); } + static NSItemProvider allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSItemProvider1, _lib._sel_allocWithZone_1, zone); + return NSItemProvider._(_ret, _lib, retain: false, release: true); + } + static NSItemProvider alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); @@ -45704,18 +51869,18 @@ class NSItemProvider extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSItemProvider1, + _lib._objc_msgSend_15(_lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45730,33 +51895,29 @@ class NSItemProvider extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSItemProvider1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSItemProvider1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSItemProvider1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSItemProvider1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSItemProvider1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -45775,36 +51936,45 @@ abstract class NSItemProviderRepresentationVisibility { static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; } -ffi.Pointer _ObjCBlock18_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock18_closureRegistry = {}; -int _ObjCBlock18_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { - final id = ++_ObjCBlock18_closureRegistryIndex; - _ObjCBlock18_closureRegistry[id] = fn; +ffi.Pointer< + ObjCObject> _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = ++_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock18_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock18 extends _ObjCBlockBase { - ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSDataNSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock18.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -45813,40 +51983,57 @@ class ObjCBlock18 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock18_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock18.fromFunction(SwiftLibrary lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction(SwiftLibrary lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSData_NSError) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock18_closureTrampoline) + ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) .cast(), - _ObjCBlock18_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure((ffi + .Pointer<_ObjCBlock> + arg0) => + fn(ObjCBlock_ffiVoid_NSData_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + NSProgress? call(ObjCBlock_ffiVoid_NSData_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } class NSProgress extends NSObject { @@ -45872,22 +52059,24 @@ class NSProgress extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); } - static NSProgress currentProgress(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_577( + static NSProgress? currentProgress(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_659( _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress progressWithTotalUnitCount_( SwiftLibrary _lib, int unitCount) { - final _ret = _lib._objc_msgSend_578(_lib._class_NSProgress1, + final _ret = _lib._objc_msgSend_660(_lib._class_NSProgress1, _lib._sel_progressWithTotalUnitCount_1, unitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress discreteProgressWithTotalUnitCount_( SwiftLibrary _lib, int unitCount) { - final _ret = _lib._objc_msgSend_578(_lib._class_NSProgress1, + final _ret = _lib._objc_msgSend_660(_lib._class_NSProgress1, _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } @@ -45895,33 +52084,35 @@ class NSProgress extends NSObject { static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( SwiftLibrary _lib, int unitCount, - NSProgress? parent, + NSProgress parent, int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_579( + final _ret = _lib._objc_msgSend_661( _lib._class_NSProgress1, _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, unitCount, - parent?._id ?? ffi.nullptr, + parent._id, portionOfParentTotalUnitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } - NSProgress initWithParent_userInfo_(NSProgress? parentProgressOrNil) { - final _ret = _lib._objc_msgSend_580( + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_662( _id, _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr); + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); return NSProgress._(_ret, _lib, retain: true, release: true); } void becomeCurrentWithPendingUnitCount_(int unitCount) { - return _lib._objc_msgSend_581( + _lib._objc_msgSend_663( _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); } void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock16 work) { - return _lib._objc_msgSend_582( + int unitCount, ObjCBlock_ffiVoid work) { + _lib._objc_msgSend_664( _id, _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, unitCount, @@ -45929,56 +52120,50 @@ class NSProgress extends NSObject { } void resignCurrent() { - return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); } - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - return _lib._objc_msgSend_583( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); + void addChild_withPendingUnitCount_(NSProgress child, int inUnitCount) { + _lib._objc_msgSend_665( + _id, _lib._sel_addChild_withPendingUnitCount_1, child._id, inUnitCount); } int get totalUnitCount { - return _lib._objc_msgSend_584(_id, _lib._sel_totalUnitCount1); + return _lib._objc_msgSend_666(_id, _lib._sel_totalUnitCount1); } set totalUnitCount(int value) { - _lib._objc_msgSend_585(_id, _lib._sel_setTotalUnitCount_1, value); + return _lib._objc_msgSend_667(_id, _lib._sel_setTotalUnitCount_1, value); } int get completedUnitCount { - return _lib._objc_msgSend_584(_id, _lib._sel_completedUnitCount1); + return _lib._objc_msgSend_666(_id, _lib._sel_completedUnitCount1); } set completedUnitCount(int value) { - _lib._objc_msgSend_585(_id, _lib._sel_setCompletedUnitCount_1, value); + return _lib._objc_msgSend_667( + _id, _lib._sel_setCompletedUnitCount_1, value); } - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get localizedDescription { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_localizedDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - set localizedDescription(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + set localizedDescription(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setLocalizedDescription_1, value._id); } - NSString? get localizedAdditionalDescription { + NSString get localizedAdditionalDescription { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_localizedAdditionalDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); + set localizedAdditionalDescription(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setLocalizedAdditionalDescription_1, value._id); } bool get cancellable { @@ -45986,7 +52171,7 @@ class NSProgress extends NSObject { } set cancellable(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setCancellable_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setCancellable_1, value); } bool get pausable { @@ -45994,7 +52179,7 @@ class NSProgress extends NSObject { } set pausable(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setPausable_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setPausable_1, value); } bool get cancelled { @@ -46005,37 +52190,45 @@ class NSProgress extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); } - ObjCBlock16 get cancellationHandler { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_cancellationHandler1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get cancellationHandler { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_cancellationHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set cancellationHandler(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setCancellationHandler_1, value._id); + set cancellationHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setCancellationHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock16 get pausingHandler { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_pausingHandler1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get pausingHandler { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_pausingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set pausingHandler(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setPausingHandler_1, value._id); + set pausingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setPausingHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock16 get resumingHandler { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_resumingHandler1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get resumingHandler { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_resumingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set resumingHandler(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setResumingHandler_1, value._id); + set resumingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setResumingHandler_1, value?._id ?? ffi.nullptr); } - void setUserInfoObject_forKey_( - NSObject objectOrNil, NSProgressUserInfoKey key) { - return _lib._objc_msgSend_122( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key); + void setUserInfoObject_forKey_(NSObject? objectOrNil, NSString key) { + _lib._objc_msgSend_135(_id, _lib._sel_setUserInfoObject_forKey_1, + objectOrNil?._id ?? ffi.nullptr, key._id); } bool get indeterminate { @@ -46043,7 +52236,7 @@ class NSProgress extends NSObject { } double get fractionCompleted { - return _lib._objc_msgSend_149(_id, _lib._sel_fractionCompleted1); + return _lib._objc_msgSend_165(_id, _lib._sel_fractionCompleted1); } bool get finished { @@ -46051,15 +52244,139 @@ class NSProgress extends NSObject { } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } void pause() { - return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + _lib._objc_msgSend_1(_id, _lib._sel_pause1); } void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + _lib._objc_msgSend_1(_id, _lib._sel_resume1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get kind { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_kind1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set kind(NSString? value) { + return _lib._objc_msgSend_545( + _id, _lib._sel_setKind_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set estimatedTimeRemaining(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_throughput1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set throughput(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + } + + NSString? get fileOperationKind { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_fileOperationKind1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set fileOperationKind(NSString? value) { + return _lib._objc_msgSend_545( + _id, _lib._sel_setFileOperationKind_1, value?._id ?? ffi.nullptr); + } + + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set fileURL(NSURL? value) { + return _lib._objc_msgSend_671( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_fileTotalCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileTotalCount(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileCompletedCount(NSNumber? value) { + return _lib._objc_msgSend_670( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + } + + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void unpublish() { + _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + } + + static NSObject addSubscriberForFileURL_withPublishingHandler_( + SwiftLibrary _lib, + NSURL url, + ObjCBlock_ffiVoid_NSProgress publishingHandler) { + final _ret = _lib._objc_msgSend_672( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url._id, + publishingHandler._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void removeSubscriber_(SwiftLibrary _lib, NSObject subscriber) { + _lib._objc_msgSend_15( + _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + } + + bool get old { + return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + } + + @override + NSProgress init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress new1(SwiftLibrary _lib) { @@ -46067,6 +52384,13 @@ class NSProgress extends NSObject { return NSProgress._(_ret, _lib, retain: false, release: true); } + static NSProgress allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProgress1, _lib._sel_allocWithZone_1, zone); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + static NSProgress alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); @@ -46077,18 +52401,18 @@ class NSProgress extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._objc_msgSend_15(_lib._class_NSProgress1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46103,33 +52427,29 @@ class NSProgress extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSProgress1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSProgress1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSProgress1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSProgress1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSProgress1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -46141,38 +52461,143 @@ class NSProgress extends NSObject { } } -typedef NSProgressUserInfoKey = ffi.Pointer; -void _ObjCBlock19_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer)>()(arg0); +final _ObjCBlock_ffiVoid_NSProgress_closureRegistry = + Function(ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -final _ObjCBlock19_closureRegistry = {}; -int _ObjCBlock19_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { - final id = ++_ObjCBlock19_closureRegistryIndex; - _ObjCBlock19_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[block.ref.target.address]!( + arg0); + +class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSProgress._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSProgress.fromFunction( + SwiftLibrary lib, ObjCBlock_ffiVoid? Function(NSProgress) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSProgress_registerClosure( + (ffi.Pointer arg0) => + fn(NSProgress._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + ObjCBlock_ffiVoid? call(NSProgress arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>() + (_id, arg0._id) + .address == + 0 + ? null + : ObjCBlock_ffiVoid._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -void _ObjCBlock19_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0, arg1); +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class ObjCBlock19 extends _ObjCBlockBase { - ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock19.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -46181,84 +52606,132 @@ class ObjCBlock19 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock19.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSError.fromFunction( + SwiftLibrary lib, void Function(NSData?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_NSError.listener( + SwiftLibrary lib, void Function(NSData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock19_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, + retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSData? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } abstract class NSItemProviderFileOptions { static const int NSItemProviderFileOptionOpenInPlace = 1; } -ffi.Pointer _ObjCBlock20_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock20_closureRegistry = {}; -int _ObjCBlock20_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { - final id = ++_ObjCBlock20_closureRegistryIndex; - _ObjCBlock20_closureRegistry[id] = fn; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock20_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock20 extends _ObjCBlockBase { - ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock20.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -46267,74 +52740,102 @@ class ObjCBlock20 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock20_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock20.fromFunction(SwiftLibrary lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunction(SwiftLibrary lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSURL_bool_NSError) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock20_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) .cast(), - _ObjCBlock20_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_NSURL_bool_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock21_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + NSProgress? call(ObjCBlock_ffiVoid_NSURL_bool_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -final _ObjCBlock21_closureRegistry = {}; -int _ObjCBlock21_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { - final id = ++_ObjCBlock21_closureRegistryIndex; - _ObjCBlock21_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock21_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock21 extends _ObjCBlockBase { - ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock21.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -46343,87 +52844,131 @@ class ObjCBlock21 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock21_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock21.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunction( + SwiftLibrary lib, void Function(NSURL?, bool, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock21_closureTrampoline) - .cast(), - _ObjCBlock21_registerClosure(fn)), + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Bool, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_bool_NSError.listener( + SwiftLibrary lib, void Function(NSURL?, bool, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Bool, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; -void _ObjCBlock22_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void call(NSURL? arg0, bool arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + bool, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2?._id ?? ffi.nullptr); } -final _ObjCBlock22_closureRegistry = {}; -int _ObjCBlock22_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { - final id = ++_ObjCBlock22_closureRegistryIndex; - _ObjCBlock22_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock22_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock22 extends _ObjCBlockBase { - ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock22.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -46432,80 +52977,126 @@ class ObjCBlock22 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock22_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock22.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSError.fromFunction( + SwiftLibrary lib, void Function(NSURL?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock22_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) .cast(), - _ObjCBlock22_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_NSError.listener( + SwiftLibrary lib, void Function(NSURL?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -ffi.Pointer _ObjCBlock23_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); + void call(NSURL? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } -final _ObjCBlock23_closureRegistry = {}; -int _ObjCBlock23_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { - final id = ++_ObjCBlock23_closureRegistryIndex; - _ObjCBlock23_closureRegistry[id] = fn; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock>)>()(arg0); +final _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry = + Function(ffi.Pointer<_ObjCBlock>)>{}; +int _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>) fn) { + final id = + ++_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock23_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) => + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock23 extends _ObjCBlockBase { - ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock23.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -46514,73 +53105,100 @@ class ObjCBlock23 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock23_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock23.fromFunction(SwiftLibrary lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunction(SwiftLibrary lib, + NSProgress? Function(ObjCBlock_ffiVoid_ObjCObject_NSError) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock23_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) .cast(), - _ObjCBlock23_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0) => + fn(ObjCBlock_ffiVoid_ObjCObject_NSError._(arg0, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; -void _ObjCBlock24_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + NSProgress? call(ObjCBlock_ffiVoid_ObjCObject_NSError arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>() + (_id, arg0._id) + .address == + 0 + ? null + : NSProgress._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } -final _ObjCBlock24_closureRegistry = {}; -int _ObjCBlock24_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { - final id = ++_ObjCBlock24_closureRegistryIndex; - _ObjCBlock24_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock24_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock24_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock24 extends _ObjCBlockBase { - ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock24.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -46589,154 +53207,363 @@ class ObjCBlock24 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock24_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock24.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunction(SwiftLibrary lib, void Function(NSObject?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock24_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) .cast(), - _ObjCBlock24_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSError.listener( + SwiftLibrary lib, void Function(NSObject?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -typedef NSItemProviderLoadHandler = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock25_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void call(NSObject? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } -final _ObjCBlock25_closureRegistry = {}; -int _ObjCBlock25_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { - final id = ++_ObjCBlock25_closureRegistryIndex; - _ObjCBlock25_closureRegistry[id] = fn; +void + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry = + , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock25_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock25_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock25 extends _ObjCBlockBase { - ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock25.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - NSItemProviderCompletionHandler arg0, + ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock25_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock25.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( SwiftLibrary lib, - void Function(NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, ffi.Pointer arg2) + void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock25_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + ObjCBlock_ffiVoid_ObjCObject_NSError1._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + NSDictionary._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.listener( + SwiftLibrary lib, + void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock25_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( + (ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + ObjCBlock_ffiVoid_ObjCObject_NSError1._(arg0, lib, retain: true, release: true), + NSObject._(arg1, lib, retain: true, release: true), + NSDictionary._(arg2, lib, retain: true, release: true)))), lib); - void call(NSItemProviderCompletionHandler arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(ObjCBlock_ffiVoid_ObjCObject_NSError1 arg0, NSObject arg1, + NSDictionary arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>()( + _id, arg0._id, arg1._id, arg2._id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSError1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; + void Function(ffi.Pointer, + ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -typedef NSItemProviderCompletionHandler = ffi.Pointer<_ObjCBlock>; +void _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_ObjCObject_NSError1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError1._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError1.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSError1.fromFunction(SwiftLibrary lib, void Function(NSObject?, NSError) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSError1.listener( + SwiftLibrary lib, void Function(NSObject?, NSError) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi + .NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSError1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSError1_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSObject._(arg0, lib, retain: true, release: true), + NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject? arg0, NSError arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1._id); +} class NSMutableString extends NSString { NSMutableString._(ffi.Pointer id, SwiftLibrary lib, @@ -46762,56 +53589,49 @@ class NSMutableString extends NSString { obj._lib._class_NSMutableString1); } - void replaceCharactersInRange_withString_(NSRange range, NSString? aString) { - return _lib._objc_msgSend_603( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); + void replaceCharactersInRange_withString_(_NSRange range, NSString aString) { + _lib._objc_msgSend_689(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, aString._id); } - void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_604(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + void insertString_atIndex_(NSString aString, int loc) { + _lib._objc_msgSend_690( + _id, _lib._sel_insertString_atIndex_1, aString._id, loc); } - void deleteCharactersInRange_(NSRange range) { - return _lib._objc_msgSend_416( - _id, _lib._sel_deleteCharactersInRange_1, range); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_deleteCharactersInRange_1, range); } - void appendString_(NSString? aString) { - return _lib._objc_msgSend_186( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + void appendString_(NSString aString) { + _lib._objc_msgSend_248(_id, _lib._sel_appendString_1, aString._id); } - void appendFormat_(NSString? format) { - return _lib._objc_msgSend_186( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + void appendFormat_(NSString format) { + _lib._objc_msgSend_248(_id, _lib._sel_appendFormat_1, format._id); } - void setString_(NSString? aString) { - return _lib._objc_msgSend_186( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + void setString_(NSString aString) { + _lib._objc_msgSend_248(_id, _lib._sel_setString_1, aString._id); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, NSRange searchRange) { - return _lib._objc_msgSend_605( + int replaceOccurrencesOfString_withString_options_range_(NSString target, + NSString replacement, int options, _NSRange searchRange) { + return _lib._objc_msgSend_691( _id, _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, + target._id, + replacement._id, options, searchRange); } - bool applyTransform_reverse_range_updatedRange_(NSStringTransform transform, - bool reverse, NSRange range, NSRangePointer resultingRange) { - return _lib._objc_msgSend_606( + bool applyTransform_reverse_range_updatedRange_(NSString transform, + bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + return _lib._objc_msgSend_692( _id, _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform, + transform._id, reverse, range, resultingRange); @@ -46819,25 +53639,40 @@ class NSMutableString extends NSString { NSMutableString initWithCapacity_(int capacity) { final _ret = - _lib._objc_msgSend_607(_id, _lib._sel_initWithCapacity_1, capacity); + _lib._objc_msgSend_693(_id, _lib._sel_initWithCapacity_1, capacity); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithCapacity_(SwiftLibrary _lib, int capacity) { - final _ret = _lib._objc_msgSend_607( + final _ret = _lib._objc_msgSend_693( _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static ffi.Pointer getAvailableStringEncodings( + @override + NSMutableString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static ffi.Pointer getAvailableStringEncodings( SwiftLibrary _lib) { - return _lib._objc_msgSend_318( + return _lib._objc_msgSend_357( _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( SwiftLibrary _lib, int encoding) { - final _ret = _lib._objc_msgSend_293(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_332(_lib._class_NSMutableString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } @@ -46847,155 +53682,484 @@ class NSMutableString extends NSString { _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); } + @override + NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_369( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_370( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_372( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, aString._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithFormat_1, format._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_arguments_( + NSString format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_373( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_374(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_locale_arguments_( + NSString format, NSObject? locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_375( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format._id, + locale?._id ?? ffi.nullptr, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_377( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? + initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_378( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_379( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithData_encoding_(NSData data, int encoding) { + final _ret = _lib._objc_msgSend_380( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_381( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_382( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString? initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong? deallocator) { + final _ret = _lib._objc_msgSend_383( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: false, release: true); + } + static NSMutableString string(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + static NSMutableString stringWithString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSMutableString1, _lib._sel_stringWithString_1, string._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCharacters_length_( - SwiftLibrary _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_331(_lib._class_NSMutableString1, + static NSMutableString stringWithCharacters_length_(SwiftLibrary _lib, + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSMutableString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithUTF8String_( + static NSMutableString? stringWithUTF8String_( SwiftLibrary _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_332(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_372(_lib._class_NSMutableString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithFormat_( - SwiftLibrary _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + static NSMutableString stringWithFormat_(SwiftLibrary _lib, NSString format) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSMutableString1, _lib._sel_stringWithFormat_1, format._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString localizedStringWithFormat_( - SwiftLibrary _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString format) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, format._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCString_encoding_( + static NSMutableString? + stringWithValidatedFormat_validFormatSpecifiers_error_( + SwiftLibrary _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSMutableString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + SwiftLibrary _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_376( + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_384(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? stringWithCString_encoding_( SwiftLibrary _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfURL_encoding_error_( + NSURL url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_385(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfFile_encoding_error_( + NSString path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_386( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfURL_encoding_error_( + static NSMutableString? stringWithContentsOfURL_encoding_error_( SwiftLibrary _lib, - NSURL? url, + NSURL url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_340( + final _ret = _lib._objc_msgSend_385( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfFile_encoding_error_( + static NSMutableString? stringWithContentsOfFile_encoding_error_( SwiftLibrary _lib, - NSString? path, + NSString path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_341( + final _ret = _lib._objc_msgSend_386( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_387( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_388( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + static NSMutableString? stringWithContentsOfURL_usedEncoding_error_( SwiftLibrary _lib, - NSURL? url, - ffi.Pointer enc, + NSURL url, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_342( + final _ret = _lib._objc_msgSend_387( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( + static NSMutableString? stringWithContentsOfFile_usedEncoding_error_( SwiftLibrary _lib, - NSString? path, - ffi.Pointer enc, + NSString path, + ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_343( + final _ret = _lib._objc_msgSend_388( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } static int stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( SwiftLibrary _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_344( + return _lib._objc_msgSend_389( _lib._class_NSMutableString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); } - static NSObject stringWithContentsOfFile_(SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_(SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( + static NSObject? stringWithCString_length_( SwiftLibrary _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_339(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableString1, _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( + static NSObject? stringWithCString_( SwiftLibrary _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_332( + final _ret = _lib._objc_msgSend_372( _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString pathWithComponents_(SwiftLibrary _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_350(_lib._class_NSMutableString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + static NSString pathWithComponents_(SwiftLibrary _lib, NSArray components) { + final _ret = _lib._objc_msgSend_396(_lib._class_NSMutableString1, + _lib._sel_pathWithComponents_1, components._id); return NSString._(_ret, _lib, retain: true, release: true); } @@ -47005,6 +54169,13 @@ class NSMutableString extends NSString { return NSMutableString._(_ret, _lib, retain: false, release: true); } + static NSMutableString allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableString1, _lib._sel_allocWithZone_1, zone); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + static NSMutableString alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); @@ -47015,18 +54186,18 @@ class NSMutableString extends NSString { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._objc_msgSend_15(_lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47041,33 +54212,29 @@ class NSMutableString extends NSString { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -47102,53 +54269,61 @@ class NSNotification extends NSObject { obj._lib._class_NSNotification1); } - NSNotificationName get name { - return _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get object { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_object1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } NSNotification initWithName_object_userInfo_( - NSNotificationName name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_608( + NSString name, NSObject? object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_694( _id, _lib._sel_initWithName_object_userInfo_1, - name, - object._id, + name._id, + object?._id ?? ffi.nullptr, userInfo?._id ?? ffi.nullptr); return NSNotification._(_ret, _lib, retain: true, release: true); } - NSNotification initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + NSNotification? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNotification._(_ret, _lib, retain: true, release: true); } static NSNotification notificationWithName_object_( - SwiftLibrary _lib, NSNotificationName aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_157(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName, anObject._id); + SwiftLibrary _lib, NSString aName, NSObject? anObject) { + final _ret = _lib._objc_msgSend_374( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, + aName._id, + anObject?._id ?? ffi.nullptr); return NSNotification._(_ret, _lib, retain: true, release: true); } static NSNotification notificationWithName_object_userInfo_(SwiftLibrary _lib, - NSNotificationName aName, NSObject anObject, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_608( + NSString aName, NSObject? anObject, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_694( _lib._class_NSNotification1, _lib._sel_notificationWithName_object_userInfo_1, - aName, - anObject._id, + aName._id, + anObject?._id ?? ffi.nullptr, aUserInfo?._id ?? ffi.nullptr); return NSNotification._(_ret, _lib, retain: true, release: true); } @@ -47165,6 +54340,13 @@ class NSNotification extends NSObject { return NSNotification._(_ret, _lib, retain: false, release: true); } + static NSNotification allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNotification1, _lib._sel_allocWithZone_1, zone); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + static NSNotification alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); @@ -47175,18 +54357,18 @@ class NSNotification extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNotification1, + _lib._objc_msgSend_15(_lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47201,33 +54383,29 @@ class NSNotification extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNotification1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNotification1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNotification1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNotification1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNotification1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -47239,8 +54417,6 @@ class NSNotification extends NSObject { } } -typedef NSNotificationName = ffi.Pointer; - class NSBundle extends NSObject { NSBundle._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -47264,65 +54440,67 @@ class NSBundle extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); } - static NSBundle? getMainBundle(SwiftLibrary _lib) { + static NSBundle getMainBundle(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_609(_lib._class_NSBundle1, _lib._sel_mainBundle1); + _lib._objc_msgSend_695(_lib._class_NSBundle1, _lib._sel_mainBundle1); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle? bundleWithPath_(SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSBundle1, _lib._sel_bundleWithPath_1, path._id); return _ret.address == 0 ? null : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithPath_(SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, - _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - NSBundle initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSBundle? initWithPath_(NSString path) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + static NSBundle? bundleWithURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSBundle1, _lib._sel_bundleWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - NSBundle initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSBundle? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_277(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle bundleForClass_(SwiftLibrary _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_610( + final _ret = _lib._objc_msgSend_696( _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); return NSBundle._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithIdentifier_( - SwiftLibrary _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_611(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + static NSBundle? bundleWithIdentifier_( + SwiftLibrary _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_697(_lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, identifier._id); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); } - static NSArray? getAllBundles(SwiftLibrary _lib) { + static NSArray getAllBundles(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_80(_lib._class_NSBundle1, _lib._sel_allBundles1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_lib._class_NSBundle1, _lib._sel_allBundles1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray? getAllFrameworks(SwiftLibrary _lib) { + static NSArray getAllFrameworks(SwiftLibrary _lib) { final _ret = - _lib._objc_msgSend_80(_lib._class_NSBundle1, _lib._sel_allFrameworks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + return NSArray._(_ret, _lib, retain: true, release: true); } bool load() { @@ -47338,257 +54516,273 @@ class NSBundle extends NSObject { } bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_preflightAndReturnError_1, error); } bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219(_id, _lib._sel_loadAndReturnError_1, error); + return _lib._objc_msgSend_243(_id, _lib._sel_loadAndReturnError_1, error); } - NSURL? get bundleURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSURL get bundleURL { + final _ret = _lib._objc_msgSend_466(_id, _lib._sel_bundleURL1); + return NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get resourceURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_resourceURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_executableURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? URLForAuxiliaryExecutable_(NSString executableName) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_URLForAuxiliaryExecutable_1, executableName._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get privateFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_privateFrameworksURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get sharedFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_sharedFrameworksURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get sharedSupportURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_sharedSupportURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get builtInPlugInsURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_builtInPlugInsURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSURL? get appStoreReceiptURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_appStoreReceiptURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSString? get bundlePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get bundlePath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_bundlePath1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get resourcePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_resourcePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get executablePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_executablePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString pathForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? pathForAuxiliaryExecutable_(NSString executableName) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_pathForAuxiliaryExecutable_1, executableName._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSString? get privateFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_privateFrameworksPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get sharedFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sharedFrameworksPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get sharedSupportPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sharedSupportPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get builtInPlugInsPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_builtInPlugInsPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( + static NSURL? URLForResource_withExtension_subdirectory_inBundleWithURL_( SwiftLibrary _lib, NSString? name, NSString? ext, NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_612( + NSURL bundleURL) { + final _ret = _lib._objc_msgSend_698( _lib._class_NSBundle1, _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + bundleURL._id); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - SwiftLibrary _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_613( + static NSArray? URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( + SwiftLibrary _lib, NSString? ext, NSString? subpath, NSURL bundleURL) { + final _ret = _lib._objc_msgSend_699( _lib._class_NSBundle1, _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bundleURL._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_614( + NSURL? URLForResource_withExtension_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_700( _id, _lib._sel_URLForResource_withExtension_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_( + NSURL? URLForResource_withExtension_subdirectory_( NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_615( + final _ret = _lib._objc_msgSend_701( _id, _lib._sel_URLForResource_withExtension_subdirectory_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, + NSURL? URLForResource_withExtension_subdirectory_localization_(NSString? name, NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_616( + final _ret = _lib._objc_msgSend_702( _id, _lib._sel_URLForResource_withExtension_subdirectory_localization_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, localizationName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - NSArray URLsForResourcesWithExtension_subdirectory_( + NSArray? URLsForResourcesWithExtension_subdirectory_( NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_617( + final _ret = _lib._objc_msgSend_703( _id, _lib._sel_URLsForResourcesWithExtension_subdirectory_1, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray URLsForResourcesWithExtension_subdirectory_localization_( + NSArray? URLsForResourcesWithExtension_subdirectory_localization_( NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_618( + final _ret = _lib._objc_msgSend_704( _id, _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSString pathForResource_ofType_inDirectory_( - SwiftLibrary _lib, NSString? name, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_619( + static NSString? pathForResource_ofType_inDirectory_( + SwiftLibrary _lib, NSString? name, NSString? ext, NSString bundlePath) { + final _ret = _lib._objc_msgSend_705( _lib._class_NSBundle1, _lib._sel_pathForResource_ofType_inDirectory_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + bundlePath._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static NSArray pathsForResourcesOfType_inDirectory_( - SwiftLibrary _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_617( + SwiftLibrary _lib, NSString? ext, NSString bundlePath) { + final _ret = _lib._objc_msgSend_706( _lib._class_NSBundle1, _lib._sel_pathsForResourcesOfType_inDirectory_1, ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); + bundlePath._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_324(_id, _lib._sel_pathForResource_ofType_1, + NSString? pathForResource_ofType_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_707(_id, _lib._sel_pathForResource_ofType_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, + NSString? pathForResource_ofType_inDirectory_forLocalization_(NSString? name, NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_620( + final _ret = _lib._objc_msgSend_708( _id, _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr, subpath?._id ?? ffi.nullptr, localizationName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSArray pathsForResourcesOfType_inDirectory_forLocalization_( NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_618( + final _ret = _lib._objc_msgSend_709( _id, _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, ext?._id ?? ffi.nullptr, @@ -47598,36 +54792,36 @@ class NSBundle extends NSObject { } NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_619( + NSString key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_710( _id, _lib._sel_localizedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, + key._id, value?._id ?? ffi.nullptr, tableName?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_641( + NSString key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_736( _id, _lib._sel_localizedAttributedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, + key._id, value?._id ?? ffi.nullptr, tableName?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSString? get bundleIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_bundleIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get infoDictionary { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_infoDictionary1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_infoDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -47635,89 +54829,92 @@ class NSBundle extends NSObject { NSDictionary? get localizedInfoDictionary { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_localizedInfoDictionary1); + _lib._objc_msgSend_390(_id, _lib._sel_localizedInfoDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject objectForInfoDictionaryKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject classNamed_(NSString? className) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get principalClass { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? objectForInfoDictionaryKey_(NSString key) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_objectForInfoDictionaryKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get preferredLocalizations { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_preferredLocalizations1); + NSObject? classNamed_(NSString className) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_classNamed_1, className._id); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get localizations { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_localizations1); + NSObject? get principalClass { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_principalClass1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray get preferredLocalizations { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_preferredLocalizations1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray get localizations { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_localizations1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_developmentLocalization1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } static NSArray preferredLocalizationsFromArray_( - SwiftLibrary _lib, NSArray? localizationsArray) { - final _ret = _lib._objc_msgSend_63( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSArray localizationsArray) { + final _ret = _lib._objc_msgSend_68(_lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, localizationsArray._id); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray preferredLocalizationsFromArray_forPreferences_( SwiftLibrary _lib, - NSArray? localizationsArray, + NSArray localizationsArray, NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_642( + final _ret = _lib._objc_msgSend_737( _lib._class_NSBundle1, _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, + localizationsArray._id, preferencesArray?._id ?? ffi.nullptr); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_executableArchitectures1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_executableArchitectures1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setPreservationPriority_forTags_(double priority, NSSet? tags) { - return _lib._objc_msgSend_643( - _id, - _lib._sel_setPreservationPriority_forTags_1, - priority, - tags?._id ?? ffi.nullptr); + void setPreservationPriority_forTags_(double priority, NSSet tags) { + _lib._objc_msgSend_738( + _id, _lib._sel_setPreservationPriority_forTags_1, priority, tags._id); + } + + double preservationPriorityForTag_(NSString tag) { + return _lib._objc_msgSend_308( + _id, _lib._sel_preservationPriorityForTag_1, tag._id); } - double preservationPriorityForTag_(NSString? tag) { - return _lib._objc_msgSend_269( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + @override + NSBundle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle new1(SwiftLibrary _lib) { @@ -47725,6 +54922,12 @@ class NSBundle extends NSObject { return NSBundle._(_ret, _lib, retain: false, release: true); } + static NSBundle allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSBundle1, _lib._sel_allocWithZone_1, zone); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + static NSBundle alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); return NSBundle._(_ret, _lib, retain: false, release: true); @@ -47734,18 +54937,18 @@ class NSBundle extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSBundle1, + _lib._objc_msgSend_15(_lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47760,33 +54963,29 @@ class NSBundle extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSBundle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSBundle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSBundle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSBundle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSBundle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -47822,16 +55021,14 @@ class NSAttributedString extends NSObject { obj._lib._class_NSAttributedString1); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get string { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); } NSDictionary attributesAtIndex_effectiveRange_( - int location, NSRangePointer range) { - final _ret = _lib._objc_msgSend_621( + int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_711( _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -47840,26 +55037,28 @@ class NSAttributedString extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - NSObject attribute_atIndex_effectiveRange_( - NSAttributedStringKey attrName, int location, NSRangePointer range) { - final _ret = _lib._objc_msgSend_622( + NSObject? attribute_atIndex_effectiveRange_( + NSString attrName, int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_712( _id, _lib._sel_attribute_atIndex_effectiveRange_1, - attrName, + attrName._id, location, range); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedSubstringFromRange_(NSRange range) { - final _ret = _lib._objc_msgSend_623( + NSAttributedString attributedSubstringFromRange_(_NSRange range) { + final _ret = _lib._objc_msgSend_713( _id, _lib._sel_attributedSubstringFromRange_1, range); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( - int location, NSRangePointer range, NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_624( + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_714( _id, _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, location, @@ -47868,51 +55067,50 @@ class NSAttributedString extends NSObject { return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSObject attribute_atIndex_longestEffectiveRange_inRange_( - NSAttributedStringKey attrName, - int location, - NSRangePointer range, - NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_625( + NSObject? attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_715( _id, _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, - attrName, + attrName._id, location, range, rangeLimit); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_626( - _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + bool isEqualToAttributedString_(NSAttributedString other) { + return _lib._objc_msgSend_716( + _id, _lib._sel_isEqualToAttributedString_1, other._id); } - NSAttributedString initWithString_(NSString? str) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); + NSAttributedString initWithString_(NSString str) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, str._id); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_352( + NSString str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_717( _id, _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, + str._id, attrs?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_627( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + NSAttributedString initWithAttributedString_(NSAttributedString attrStr) { + final _ret = _lib._objc_msgSend_718( + _id, _lib._sel_initWithAttributedString_1, attrStr._id); return NSAttributedString._(_ret, _lib, retain: true, release: true); } - void enumerateAttributesInRange_options_usingBlock_( - NSRange enumerationRange, int opts, ObjCBlock26 block) { - return _lib._objc_msgSend_628( + void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, + int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { + _lib._objc_msgSend_719( _id, _lib._sel_enumerateAttributesInRange_options_usingBlock_1, enumerationRange, @@ -47921,84 +55119,91 @@ class NSAttributedString extends NSObject { } void enumerateAttribute_inRange_options_usingBlock_( - NSAttributedStringKey attrName, - NSRange enumerationRange, + NSString attrName, + _NSRange enumerationRange, int opts, - ObjCBlock27 block) { - return _lib._objc_msgSend_629( + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { + _lib._objc_msgSend_720( _id, _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, - attrName, + attrName._id, enumerationRange, opts, block._id); } - NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_634( + NSAttributedString? + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_725( _id, _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, + markdownFile._id, options?._id ?? ffi.nullptr, baseURL?._id ?? ffi.nullptr, error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, + NSAttributedString? initWithMarkdown_options_baseURL_error_( + NSData markdown, NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_635( + final _ret = _lib._objc_msgSend_726( _id, _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, + markdown._id, options?._id ?? ffi.nullptr, baseURL?._id ?? ffi.nullptr, error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, + NSAttributedString? initWithMarkdownString_options_baseURL_error_( + NSString markdownString, NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_636( + final _ret = _lib._objc_msgSend_727( _id, _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, + markdownString._id, options?._id ?? ffi.nullptr, baseURL?._id ?? ffi.nullptr, error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_637( + NSAttributedString format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_728( _id, _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, + format._id, options, locale?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, + NSAttributedString format, int options, NSLocale? locale, ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_638( + final _ret = _lib._objc_msgSend_729( _id, _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, + format._id, options, locale?._id ?? ffi.nullptr, arguments); @@ -48006,36 +55211,101 @@ class NSAttributedString extends NSObject { } static NSAttributedString localizedAttributedStringWithFormat_( - SwiftLibrary _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_627( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSAttributedString format) { + final _ret = _lib._objc_msgSend_718(_lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, format._id); return NSAttributedString._(_ret, _lib, retain: true, release: true); } static NSAttributedString localizedAttributedStringWithFormat_options_( - SwiftLibrary _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_639( + SwiftLibrary _lib, NSAttributedString format, int options) { + final _ret = _lib._objc_msgSend_730( _lib._class_NSAttributedString1, _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, + format._id, options); return NSAttributedString._(_ret, _lib, retain: true, release: true); } + NSAttributedString initWithFormat_options_locale_context_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context) { + final _ret = _lib._objc_msgSend_731( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_732( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_context_( + SwiftLibrary _lib, NSAttributedString format, NSDictionary context) { + final _ret = _lib._objc_msgSend_733( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format._id, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString + localizedAttributedStringWithFormat_options_context_(SwiftLibrary _lib, + NSAttributedString format, int options, NSDictionary context) { + final _ret = _lib._objc_msgSend_734( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format._id, + options, + context._id); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_640( + final _ret = _lib._objc_msgSend_735( _id, _lib._sel_attributedStringByInflectingString1); return NSAttributedString._(_ret, _lib, retain: true, release: true); } + @override + NSAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + static NSAttributedString new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); return NSAttributedString._(_ret, _lib, retain: false, release: true); } + static NSAttributedString allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedString1, _lib._sel_allocWithZone_1, zone); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + static NSAttributedString alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); @@ -48046,18 +55316,18 @@ class NSAttributedString extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48072,33 +55342,29 @@ class NSAttributedString extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSAttributedString1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -48110,192 +55376,285 @@ class NSAttributedString extends NSObject { } } -typedef NSAttributedStringKey = ffi.Pointer; - abstract class NSAttributedStringEnumerationOptions { static const int NSAttributedStringEnumerationReverse = 2; static const int NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; } -void _ObjCBlock26_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock26_closureRegistry = {}; -int _ObjCBlock26_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { - final id = ++_ObjCBlock26_closureRegistryIndex; - _ObjCBlock26_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock26_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock26_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock26 extends _ObjCBlockBase { - ObjCBlock26._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock26.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock26_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock26.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction(SwiftLibrary lib, + void Function(NSDictionary, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(NSDictionary._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.listener(SwiftLibrary lib, + void Function(NSDictionary, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock26_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock26_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(NSDictionary._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSDictionary arg0, _NSRange arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>()(_id, arg0._id, arg1, arg2); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock27_closureRegistry = {}; -int _ObjCBlock27_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { - final id = ++_ObjCBlock27_closureRegistryIndex; - _ObjCBlock27_closureRegistry[id] = fn; + void Function(ffi.Pointer, _NSRange, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = , _NSRange, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + void Function(ffi.Pointer, _NSRange, ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock27_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock27 extends _ObjCBlockBase { - ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock27.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSRange arg1, + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock27_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock27.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, NSRange arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction(SwiftLibrary lib, + void Function(NSObject?, _NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock27_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock27_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.listener(SwiftLibrary lib, + void Function(NSObject?, _NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure( + (ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSObject? arg0, _NSRange arg1, ffi.Pointer arg2) => _id + .ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + _NSRange, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } class NSAttributedStringMarkdownParsingOptions extends NSObject { @@ -48337,37 +55696,48 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } set allowsExtendedAttributes(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsExtendedAttributes_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAllowsExtendedAttributes_1, value); } int get interpretedSyntax { - return _lib._objc_msgSend_630(_id, _lib._sel_interpretedSyntax1); + return _lib._objc_msgSend_721(_id, _lib._sel_interpretedSyntax1); } set interpretedSyntax(int value) { - _lib._objc_msgSend_631(_id, _lib._sel_setInterpretedSyntax_1, value); + return _lib._objc_msgSend_722(_id, _lib._sel_setInterpretedSyntax_1, value); } int get failurePolicy { - return _lib._objc_msgSend_632(_id, _lib._sel_failurePolicy1); + return _lib._objc_msgSend_723(_id, _lib._sel_failurePolicy1); } set failurePolicy(int value) { - _lib._objc_msgSend_633(_id, _lib._sel_setFailurePolicy_1, value); + return _lib._objc_msgSend_724(_id, _lib._sel_setFailurePolicy_1, value); } NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_languageCode1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set languageCode(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); } + bool get appliesSourcePositionAttributes { + return _lib._objc_msgSend_12( + _id, _lib._sel_appliesSourcePositionAttributes1); + } + + set appliesSourcePositionAttributes(bool value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + } + static NSAttributedStringMarkdownParsingOptions new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); @@ -48375,6 +55745,16 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { retain: false, release: true); } + static NSAttributedStringMarkdownParsingOptions allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_allocWithZone_1, + zone); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + static NSAttributedStringMarkdownParsingOptions alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAttributedStringMarkdownParsingOptions1, @@ -48387,21 +55767,19 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, - aTarget._id); + _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SwiftLibrary _lib) { @@ -48417,33 +55795,33 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -48504,107 +55882,265 @@ class NSMutableAttributedString extends NSAttributedString { obj._lib._class_NSMutableAttributedString1); } - void replaceCharactersInRange_withString_(NSRange range, NSString? str) { - return _lib._objc_msgSend_603( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - str?._id ?? ffi.nullptr); + void replaceCharactersInRange_withString_(_NSRange range, NSString str) { + _lib._objc_msgSend_689( + _id, _lib._sel_replaceCharactersInRange_withString_1, range, str._id); } - void setAttributes_range_(NSDictionary? attrs, NSRange range) { - return _lib._objc_msgSend_644( + void setAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_739( _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); } - NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_645(_id, _lib._sel_mutableString1); - return _ret.address == 0 - ? null - : NSMutableString._(_ret, _lib, retain: true, release: true); + NSMutableString get mutableString { + final _ret = _lib._objc_msgSend_740(_id, _lib._sel_mutableString1); + return NSMutableString._(_ret, _lib, retain: true, release: true); } void addAttribute_value_range_( - NSAttributedStringKey name, NSObject value, NSRange range) { - return _lib._objc_msgSend_646( - _id, _lib._sel_addAttribute_value_range_1, name, value._id, range); + NSString name, NSObject value, _NSRange range) { + _lib._objc_msgSend_741( + _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); } - void addAttributes_range_(NSDictionary? attrs, NSRange range) { - return _lib._objc_msgSend_644( - _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + void addAttributes_range_(NSDictionary attrs, _NSRange range) { + _lib._objc_msgSend_742( + _id, _lib._sel_addAttributes_range_1, attrs._id, range); } - void removeAttribute_range_(NSAttributedStringKey name, NSRange range) { - return _lib._objc_msgSend_647( - _id, _lib._sel_removeAttribute_range_1, name, range); + void removeAttribute_range_(NSString name, _NSRange range) { + _lib._objc_msgSend_743( + _id, _lib._sel_removeAttribute_range_1, name._id, range); } void replaceCharactersInRange_withAttributedString_( - NSRange range, NSAttributedString? attrString) { - return _lib._objc_msgSend_648( + _NSRange range, NSAttributedString attrString) { + _lib._objc_msgSend_744( _id, _lib._sel_replaceCharactersInRange_withAttributedString_1, range, - attrString?._id ?? ffi.nullptr); + attrString._id); } - void insertAttributedString_atIndex_( - NSAttributedString? attrString, int loc) { - return _lib._objc_msgSend_649( - _id, - _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, - loc); + void insertAttributedString_atIndex_(NSAttributedString attrString, int loc) { + _lib._objc_msgSend_745( + _id, _lib._sel_insertAttributedString_atIndex_1, attrString._id, loc); } - void appendAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_650(_id, _lib._sel_appendAttributedString_1, - attrString?._id ?? ffi.nullptr); + void appendAttributedString_(NSAttributedString attrString) { + _lib._objc_msgSend_746( + _id, _lib._sel_appendAttributedString_1, attrString._id); } - void deleteCharactersInRange_(NSRange range) { - return _lib._objc_msgSend_416( - _id, _lib._sel_deleteCharactersInRange_1, range); + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_476(_id, _lib._sel_deleteCharactersInRange_1, range); } - void setAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_650( - _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + void setAttributedString_(NSAttributedString attrString) { + _lib._objc_msgSend_746( + _id, _lib._sel_setAttributedString_1, attrString._id); } void beginEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); } void endEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); } - void appendLocalizedFormat_(NSAttributedString? format) { - return _lib._objc_msgSend_650( - _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + void appendLocalizedFormat_(NSAttributedString format) { + _lib._objc_msgSend_746(_id, _lib._sel_appendLocalizedFormat_1, format._id); + } + + @override + NSMutableAttributedString initWithString_(NSString str) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, str._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithString_attributes_( + NSString str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_717( + _id, + _lib._sel_initWithString_attributes_1, + str._id, + attrs?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithAttributedString_( + NSAttributedString attrStr) { + final _ret = _lib._objc_msgSend_718( + _id, _lib._sel_initWithAttributedString_1, attrStr._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_725( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? initWithMarkdown_options_baseURL_error_( + NSData markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_726( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString? initWithMarkdownString_options_baseURL_error_( + NSString markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_727( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString._id, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_( + NSAttributedString format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_728( + _id, + _lib._sel_initWithFormat_options_locale_1, + format._id, + options, + locale?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_729( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } static NSMutableAttributedString localizedAttributedStringWithFormat_( - SwiftLibrary _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_627( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSAttributedString format) { + final _ret = _lib._objc_msgSend_718(_lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, format._id); return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } static NSMutableAttributedString localizedAttributedStringWithFormat_options_( - SwiftLibrary _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_639( + SwiftLibrary _lib, NSAttributedString format, int options) { + final _ret = _lib._objc_msgSend_730( _lib._class_NSMutableAttributedString1, _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, + format._id, options); return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); } + @override + NSMutableAttributedString initWithFormat_options_locale_context_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context) { + final _ret = _lib._objc_msgSend_731( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString format, + int options, + NSLocale? locale, + NSDictionary context, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_732( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format._id, + options, + locale?._id ?? ffi.nullptr, + context._id, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_context_( + SwiftLibrary _lib, NSAttributedString format, NSDictionary context) { + final _ret = _lib._objc_msgSend_733( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format._id, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString + localizedAttributedStringWithFormat_options_context_(SwiftLibrary _lib, + NSAttributedString format, int options, NSDictionary context) { + final _ret = _lib._objc_msgSend_734( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format._id, + options, + context._id); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + static NSMutableAttributedString new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableAttributedString1, _lib._sel_new1); @@ -48612,6 +56148,14 @@ class NSMutableAttributedString extends NSAttributedString { retain: false, release: true); } + static NSMutableAttributedString allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMutableAttributedString1, + _lib._sel_allocWithZone_1, zone); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + static NSMutableAttributedString alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); @@ -48623,18 +56167,18 @@ class NSMutableAttributedString extends NSAttributedString { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48649,33 +56193,29 @@ class NSMutableAttributedString extends NSAttributedString { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableAttributedString1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableAttributedString1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -48712,116 +56252,112 @@ class NSDateFormatter extends NSFormatter { } int get formattingContext { - return _lib._objc_msgSend_655(_id, _lib._sel_formattingContext1); + return _lib._objc_msgSend_752(_id, _lib._sel_formattingContext1); } set formattingContext(int value) { - _lib._objc_msgSend_656(_id, _lib._sel_setFormattingContext_1, value); + return _lib._objc_msgSend_753(_id, _lib._sel_setFormattingContext_1, value); } bool getObjectValue_forString_range_error_( ffi.Pointer> obj, - NSString? string, - ffi.Pointer rangep, + NSString string, + ffi.Pointer<_NSRange> rangep, ffi.Pointer> error) { - return _lib._objc_msgSend_657( + return _lib._objc_msgSend_754( _id, _lib._sel_getObjectValue_forString_range_error_1, obj, - string?._id ?? ffi.nullptr, + string._id, rangep, error); } - NSString stringFromDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); + NSString stringFromDate_(NSDate date) { + final _ret = + _lib._objc_msgSend_755(_id, _lib._sel_stringFromDate_1, date._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSDate dateFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_496( - _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? dateFromString_(NSString string) { + final _ret = + _lib._objc_msgSend_564(_id, _lib._sel_dateFromString_1, string._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } static NSString localizedStringFromDate_dateStyle_timeStyle_( - SwiftLibrary _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_658( + SwiftLibrary _lib, NSDate date, int dstyle, int tstyle) { + final _ret = _lib._objc_msgSend_756( _lib._class_NSDateFormatter1, _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, - date?._id ?? ffi.nullptr, + date._id, dstyle, tstyle); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString dateFormatFromTemplate_options_locale_( - SwiftLibrary _lib, NSString? tmplate, int opts, NSLocale? locale) { - final _ret = _lib._objc_msgSend_659( + static NSString? dateFormatFromTemplate_options_locale_( + SwiftLibrary _lib, NSString tmplate, int opts, NSLocale? locale) { + final _ret = _lib._objc_msgSend_757( _lib._class_NSDateFormatter1, _lib._sel_dateFormatFromTemplate_options_locale_1, - tmplate?._id ?? ffi.nullptr, + tmplate._id, opts, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } static int getDefaultFormatterBehavior(SwiftLibrary _lib) { - return _lib._objc_msgSend_660( + return _lib._objc_msgSend_758( _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); } static void setDefaultFormatterBehavior(SwiftLibrary _lib, int value) { - _lib._objc_msgSend_661(_lib._class_NSDateFormatter1, + return _lib._objc_msgSend_759(_lib._class_NSDateFormatter1, _lib._sel_setDefaultFormatterBehavior_1, value); } - void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - return _lib._objc_msgSend_186( - _id, - _lib._sel_setLocalizedDateFormatFromTemplate_1, - dateFormatTemplate?._id ?? ffi.nullptr); + void setLocalizedDateFormatFromTemplate_(NSString dateFormatTemplate) { + _lib._objc_msgSend_248(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, + dateFormatTemplate._id); } - NSString? get dateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get dateFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_dateFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - set dateFormat(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + set dateFormat(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setDateFormat_1, value._id); } int get dateStyle { - return _lib._objc_msgSend_662(_id, _lib._sel_dateStyle1); + return _lib._objc_msgSend_760(_id, _lib._sel_dateStyle1); } set dateStyle(int value) { - _lib._objc_msgSend_663(_id, _lib._sel_setDateStyle_1, value); + return _lib._objc_msgSend_761(_id, _lib._sel_setDateStyle_1, value); } int get timeStyle { - return _lib._objc_msgSend_662(_id, _lib._sel_timeStyle1); + return _lib._objc_msgSend_760(_id, _lib._sel_timeStyle1); } set timeStyle(int value) { - _lib._objc_msgSend_663(_id, _lib._sel_setTimeStyle_1, value); + return _lib._objc_msgSend_761(_id, _lib._sel_setTimeStyle_1, value); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_176(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + NSLocale get locale { + final _ret = _lib._objc_msgSend_197(_id, _lib._sel_locale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - set locale(NSLocale? value) { - _lib._objc_msgSend_664( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + set locale(NSLocale value) { + return _lib._objc_msgSend_762(_id, _lib._sel_setLocale_1, value._id); } bool get generatesCalendarDates { @@ -48829,39 +56365,34 @@ class NSDateFormatter extends NSFormatter { } set generatesCalendarDates(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setGeneratesCalendarDates_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setGeneratesCalendarDates_1, value); } int get formatterBehavior { - return _lib._objc_msgSend_660(_id, _lib._sel_formatterBehavior1); + return _lib._objc_msgSend_758(_id, _lib._sel_formatterBehavior1); } set formatterBehavior(int value) { - _lib._objc_msgSend_661(_id, _lib._sel_setFormatterBehavior_1, value); + return _lib._objc_msgSend_759(_id, _lib._sel_setFormatterBehavior_1, value); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone get timeZone { + final _ret = _lib._objc_msgSend_179(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_163( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + set timeZone(NSTimeZone value) { + return _lib._objc_msgSend_180(_id, _lib._sel_setTimeZone_1, value._id); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_665(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + NSCalendar get calendar { + final _ret = _lib._objc_msgSend_763(_id, _lib._sel_calendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - set calendar(NSCalendar? value) { - _lib._objc_msgSend_671( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + set calendar(NSCalendar value) { + return _lib._objc_msgSend_799(_id, _lib._sel_setCalendar_1, value._id); } bool get lenient { @@ -48869,291 +56400,245 @@ class NSDateFormatter extends NSFormatter { } set lenient(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLenient_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLenient_1, value); } NSDate? get twoDigitStartDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_twoDigitStartDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_twoDigitStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set twoDigitStartDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); } NSDate? get defaultDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_defaultDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_defaultDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set defaultDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get eraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_eraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set eraSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + set eraSymbols(NSArray value) { + return _lib._objc_msgSend_801(_id, _lib._sel_setEraSymbols_1, value._id); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get monthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_monthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set monthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + set monthSymbols(NSArray value) { + return _lib._objc_msgSend_801(_id, _lib._sel_setMonthSymbols_1, value._id); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + set shortMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortMonthSymbols_1, value._id); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get weekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_weekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set weekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set weekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setWeekdaySymbols_1, value._id); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set shortWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortWeekdaySymbols_1, value._id); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get AMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_AMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set AMSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + set AMSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setAMSymbol_1, value._id); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get PMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_PMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set PMSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + set PMSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPMSymbol_1, value._id); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get longEraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_longEraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set longEraSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + set longEraSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setLongEraSymbols_1, value._id); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + set veryShortMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortMonthSymbols_1, value._id); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_standaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + set standaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setStandaloneMonthSymbols_1, value._id); } - NSArray? get shortStandaloneMonthSymbols { + NSArray get shortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + set shortStandaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortStandaloneMonthSymbols_1, value._id); } - NSArray? get veryShortStandaloneMonthSymbols { + NSArray get veryShortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + set veryShortStandaloneMonthSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, value._id); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + set veryShortWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortWeekdaySymbols_1, value._id); } - NSArray? get standaloneWeekdaySymbols { + NSArray get standaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set standaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setStandaloneWeekdaySymbols_1, value._id); } - NSArray? get shortStandaloneWeekdaySymbols { + NSArray get shortStandaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set shortStandaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortStandaloneWeekdaySymbols_1, value._id); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_80( + NSArray get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_85( _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, - _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + set veryShortStandaloneWeekdaySymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, value._id); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get quarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_quarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set quarterSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + set quarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setQuarterSymbols_1, value._id); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_696( - _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + set shortQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortQuarterSymbols_1, value._id); } - NSArray? get standaloneQuarterSymbols { + NSArray get standaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + set standaloneQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setStandaloneQuarterSymbols_1, value._id); } - NSArray? get shortStandaloneQuarterSymbols { + NSArray get shortStandaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set shortStandaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_696(_id, _lib._sel_setShortStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + set shortStandaloneQuarterSymbols(NSArray value) { + return _lib._objc_msgSend_801( + _id, _lib._sel_setShortStandaloneQuarterSymbols_1, value._id); } NSDate? get gregorianStartDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_gregorianStartDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_gregorianStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set gregorianStartDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); } @@ -49162,17 +56647,14 @@ class NSDateFormatter extends NSFormatter { } set doesRelativeDateFormatting(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setDoesRelativeDateFormatting_1, value); } NSObject initWithDateFormat_allowNaturalLanguage_( - NSString? format, bool flag) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initWithDateFormat_allowNaturalLanguage_1, - format?._id ?? ffi.nullptr, - flag); + NSString format, bool flag) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_initWithDateFormat_allowNaturalLanguage_1, format._id, flag); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -49180,12 +56662,25 @@ class NSDateFormatter extends NSFormatter { return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); } + @override + NSDateFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateFormatter._(_ret, _lib, retain: true, release: true); + } + static NSDateFormatter new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); return NSDateFormatter._(_ret, _lib, retain: false, release: true); } + static NSDateFormatter allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateFormatter1, _lib._sel_allocWithZone_1, zone); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + static NSDateFormatter alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); @@ -49196,18 +56691,18 @@ class NSDateFormatter extends NSFormatter { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDateFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49222,33 +56717,29 @@ class NSDateFormatter extends NSFormatter { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDateFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDateFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDateFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDateFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSDateFormatter1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSDateFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -49283,48 +56774,54 @@ class NSFormatter extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); } - NSString stringForObjectValue_(NSObject obj) { - final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringForObjectValue_(NSObject? obj) { + final _ret = _lib._objc_msgSend_747( + _id, _lib._sel_stringForObjectValue_1, obj?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( + NSAttributedString? attributedStringForObjectValue_withDefaultAttributes_( NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_651( + final _ret = _lib._objc_msgSend_748( _id, _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, obj._id, attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - NSString editingStringForObjectValue_(NSObject obj) { - final _ret = _lib._objc_msgSend_65( + NSString? editingStringForObjectValue_(NSObject obj) { + final _ret = _lib._objc_msgSend_526( _id, _lib._sel_editingStringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } bool getObjectValue_forString_errorDescription_( ffi.Pointer> obj, - NSString? string, + NSString string, ffi.Pointer> error) { - return _lib._objc_msgSend_652( + return _lib._objc_msgSend_749( _id, _lib._sel_getObjectValue_forString_errorDescription_1, obj, - string?._id ?? ffi.nullptr, + string._id, error); } bool isPartialStringValid_newEditingString_errorDescription_( - NSString? partialString, + NSString partialString, ffi.Pointer> newString, ffi.Pointer> error) { - return _lib._objc_msgSend_653( + return _lib._objc_msgSend_750( _id, _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, - partialString?._id ?? ffi.nullptr, + partialString._id, newString, error); } @@ -49332,25 +56829,38 @@ class NSFormatter extends NSObject { bool isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( ffi.Pointer> partialStringPtr, - NSRangePointer proposedSelRangePtr, - NSString? origString, - NSRange origSelRange, + ffi.Pointer<_NSRange> proposedSelRangePtr, + NSString origString, + _NSRange origSelRange, ffi.Pointer> error) { - return _lib._objc_msgSend_654( + return _lib._objc_msgSend_751( _id, _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, partialStringPtr, proposedSelRangePtr, - origString?._id ?? ffi.nullptr, + origString._id, origSelRange, error); } + @override + NSFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFormatter._(_ret, _lib, retain: true, release: true); + } + static NSFormatter new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); return NSFormatter._(_ret, _lib, retain: false, release: true); } + static NSFormatter allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFormatter1, _lib._sel_allocWithZone_1, zone); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + static NSFormatter alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); @@ -49361,18 +56871,18 @@ class NSFormatter extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._objc_msgSend_15(_lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49387,33 +56897,29 @@ class NSFormatter extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -49471,67 +56977,65 @@ class NSCalendar extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); } - static NSCalendar? getCurrentCalendar(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_665( + static NSCalendar getCurrentCalendar(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_763( _lib._class_NSCalendar1, _lib._sel_currentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + return NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSCalendar? getAutoupdatingCurrentCalendar(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_665( + static NSCalendar getAutoupdatingCurrentCalendar(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_763( _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } + + static NSCalendar? calendarWithIdentifier_( + SwiftLibrary _lib, NSString calendarIdentifierConstant) { + final _ret = _lib._objc_msgSend_764(_lib._class_NSCalendar1, + _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); return _ret.address == 0 ? null : NSCalendar._(_ret, _lib, retain: true, release: true); } - static NSCalendar calendarWithIdentifier_( - SwiftLibrary _lib, NSCalendarIdentifier calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_666(_lib._class_NSCalendar1, - _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - @override NSCalendar init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSCalendar._(_ret, _lib, retain: true, release: true); } - NSObject initWithCalendarIdentifier_(NSCalendarIdentifier ident) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithCalendarIdentifier_1, ident); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithCalendarIdentifier_(NSString ident) { + final _ret = _lib._objc_msgSend_38( + _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSCalendarIdentifier get calendarIdentifier { - return _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); } NSLocale? get locale { - final _ret = _lib._objc_msgSend_176(_id, _lib._sel_locale1); + final _ret = _lib._objc_msgSend_765(_id, _lib._sel_locale1); return _ret.address == 0 ? null : NSLocale._(_ret, _lib, retain: true, release: true); } set locale(NSLocale? value) { - _lib._objc_msgSend_664( + return _lib._objc_msgSend_766( _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + NSTimeZone get timeZone { + final _ret = _lib._objc_msgSend_179(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); } - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_163( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + set timeZone(NSTimeZone value) { + return _lib._objc_msgSend_180(_id, _lib._sel_setTimeZone_1, value._id); } int get firstWeekday { @@ -49539,7 +57043,7 @@ class NSCalendar extends NSObject { } set firstWeekday(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setFirstWeekday_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setFirstWeekday_1, value); } int get minimumDaysInFirstWeek { @@ -49547,281 +57051,243 @@ class NSCalendar extends NSObject { } set minimumDaysInFirstWeek(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get eraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_eraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get longEraSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_longEraSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get monthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_monthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_standaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneMonthSymbols { + NSArray get shortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneMonthSymbols { + NSArray get veryShortStandaloneMonthSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get weekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_weekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_veryShortWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneWeekdaySymbols { + NSArray get standaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneWeekdaySymbols { + NSArray get shortStandaloneWeekdaySymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_80( + NSArray get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_85( _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get quarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_quarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_shortQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneQuarterSymbols { + NSArray get standaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_standaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneQuarterSymbols { + NSArray get shortStandaloneQuarterSymbols { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get AMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_AMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get PMSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_PMSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSRange minimumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_667(_id, _lib._sel_minimumRangeOfUnit_1, unit); + void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_767(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); } - NSRange maximumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_667(_id, _lib._sel_maximumRangeOfUnit_1, unit); + void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_767(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); } - NSRange rangeOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_668(_id, _lib._sel_rangeOfUnit_inUnit_forDate_1, - smaller, larger, date?._id ?? ffi.nullptr); + void rangeOfUnit_inUnit_forDate_( + ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate date) { + _lib._objc_msgSend_768(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + smaller, larger, date._id); } - int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_669( - _id, - _lib._sel_ordinalityOfUnit_inUnit_forDate_1, - smaller, - larger, - date?._id ?? ffi.nullptr); + int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate date) { + return _lib._objc_msgSend_769(_id, + _lib._sel_ordinalityOfUnit_inUnit_forDate_1, smaller, larger, date._id); } bool rangeOfUnit_startDate_interval_forDate_( int unit, ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_670( + ffi.Pointer tip, + NSDate date) { + return _lib._objc_msgSend_770( _id, _lib._sel_rangeOfUnit_startDate_interval_forDate_1, unit, datep, tip, - date?._id ?? ffi.nullptr); + date._id); } - NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_675( - _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + NSDate? dateFromComponents_(NSDateComponents comps) { + final _ret = + _lib._objc_msgSend_778(_id, _lib._sel_dateFromComponents_1, comps._id); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { - final _ret = _lib._objc_msgSend_676(_id, _lib._sel_components_fromDate_1, - unitFlags, date?._id ?? ffi.nullptr); + NSDateComponents components_fromDate_(int unitFlags, NSDate date) { + final _ret = _lib._objc_msgSend_779( + _id, _lib._sel_components_fromDate_1, unitFlags, date._id); return NSDateComponents._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingComponents_toDate_options_( - NSDateComponents? comps, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_677( + NSDate? dateByAddingComponents_toDate_options_( + NSDateComponents comps, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_780( _id, _lib._sel_dateByAddingComponents_toDate_options_1, - comps?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr, + comps._id, + date._id, opts); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } NSDateComponents components_fromDate_toDate_options_( - int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_678( + int unitFlags, NSDate startingDate, NSDate resultDate, int opts) { + final _ret = _lib._objc_msgSend_781( _id, _lib._sel_components_fromDate_toDate_options_1, unitFlags, - startingDate?._id ?? ffi.nullptr, - resultDate?._id ?? ffi.nullptr, + startingDate._id, + resultDate._id, opts); return NSDateComponents._(_ret, _lib, retain: true, release: true); } void getEra_year_month_day_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_679( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + NSDate date) { + _lib._objc_msgSend_782( _id, _lib._sel_getEra_year_month_day_fromDate_1, eraValuePointer, yearValuePointer, monthValuePointer, dayValuePointer, - date?._id ?? ffi.nullptr); + date._id); } void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer weekValuePointer, - ffi.Pointer weekdayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_679( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer weekValuePointer, + ffi.Pointer weekdayValuePointer, + NSDate date) { + _lib._objc_msgSend_782( _id, _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, eraValuePointer, yearValuePointer, weekValuePointer, weekdayValuePointer, - date?._id ?? ffi.nullptr); + date._id); } void getHour_minute_second_nanosecond_fromDate_( - ffi.Pointer hourValuePointer, - ffi.Pointer minuteValuePointer, - ffi.Pointer secondValuePointer, - ffi.Pointer nanosecondValuePointer, - NSDate? date) { - return _lib._objc_msgSend_679( + ffi.Pointer hourValuePointer, + ffi.Pointer minuteValuePointer, + ffi.Pointer secondValuePointer, + ffi.Pointer nanosecondValuePointer, + NSDate date) { + _lib._objc_msgSend_782( _id, _lib._sel_getHour_minute_second_nanosecond_fromDate_1, hourValuePointer, minuteValuePointer, secondValuePointer, nanosecondValuePointer, - date?._id ?? ffi.nullptr); + date._id); } - int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_680( - _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + int component_fromDate_(int unit, NSDate date) { + return _lib._objc_msgSend_783( + _id, _lib._sel_component_fromDate_1, unit, date._id); } - NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( + NSDate? dateWithEra_year_month_day_hour_minute_second_nanosecond_( int eraValue, int yearValue, int monthValue, @@ -49830,7 +57296,7 @@ class NSCalendar extends NSObject { int minuteValue, int secondValue, int nanosecondValue) { - final _ret = _lib._objc_msgSend_681( + final _ret = _lib._objc_msgSend_784( _id, _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, eraValue, @@ -49841,10 +57307,12 @@ class NSCalendar extends NSObject { minuteValue, secondValue, nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate + NSDate? dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( int eraValue, int yearValue, @@ -49854,7 +57322,7 @@ class NSCalendar extends NSObject { int minuteValue, int secondValue, int nanosecondValue) { - final _ret = _lib._objc_msgSend_681( + final _ret = _lib._objc_msgSend_784( _id, _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, eraValue, @@ -49865,198 +57333,208 @@ class NSCalendar extends NSObject { minuteValue, secondValue, nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate startOfDayForDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_152( - _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); + NSDate startOfDayForDate_(NSDate date) { + final _ret = + _lib._objc_msgSend_168(_id, _lib._sel_startOfDayForDate_1, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } NSDateComponents componentsInTimeZone_fromDate_( - NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_682( - _id, - _lib._sel_componentsInTimeZone_fromDate_1, - timezone?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr); + NSTimeZone timezone, NSDate date) { + final _ret = _lib._objc_msgSend_785( + _id, _lib._sel_componentsInTimeZone_fromDate_1, timezone._id, date._id); return NSDateComponents._(_ret, _lib, retain: true, release: true); } int compareDate_toDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_683( + NSDate date1, NSDate date2, int unit) { + return _lib._objc_msgSend_786( _id, _lib._sel_compareDate_toDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, + date1._id, + date2._id, unit); } bool isDate_equalToDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_684( + NSDate date1, NSDate date2, int unit) { + return _lib._objc_msgSend_787( _id, _lib._sel_isDate_equalToDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, + date1._id, + date2._id, unit); } - bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_685(_id, _lib._sel_isDate_inSameDayAsDate_1, - date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); + bool isDate_inSameDayAsDate_(NSDate date1, NSDate date2) { + return _lib._objc_msgSend_788( + _id, _lib._sel_isDate_inSameDayAsDate_1, date1._id, date2._id); } - bool isDateInToday_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); + bool isDateInToday_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInToday_1, date._id); } - bool isDateInYesterday_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + bool isDateInYesterday_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInYesterday_1, date._id); } - bool isDateInTomorrow_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + bool isDateInTomorrow_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInTomorrow_1, date._id); } - bool isDateInWeekend_(NSDate? date) { - return _lib._objc_msgSend_154( - _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + bool isDateInWeekend_(NSDate date) { + return _lib._objc_msgSend_170(_id, _lib._sel_isDateInWeekend_1, date._id); } bool rangeOfWeekendStartDate_interval_containingDate_( ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_686( + ffi.Pointer tip, + NSDate date) { + return _lib._objc_msgSend_789( _id, _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, datep, tip, - date?._id ?? ffi.nullptr); + date._id); } bool nextWeekendStartDate_interval_options_afterDate_( ffi.Pointer> datep, - ffi.Pointer tip, + ffi.Pointer tip, int options, - NSDate? date) { - return _lib._objc_msgSend_687( + NSDate date) { + return _lib._objc_msgSend_790( _id, _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, datep, tip, options, - date?._id ?? ffi.nullptr); + date._id); } NSDateComponents components_fromDateComponents_toDateComponents_options_( int unitFlags, - NSDateComponents? startingDateComp, - NSDateComponents? resultDateComp, + NSDateComponents startingDateComp, + NSDateComponents resultDateComp, int options) { - final _ret = _lib._objc_msgSend_688( + final _ret = _lib._objc_msgSend_791( _id, _lib._sel_components_fromDateComponents_toDateComponents_options_1, unitFlags, - startingDateComp?._id ?? ffi.nullptr, - resultDateComp?._id ?? ffi.nullptr, + startingDateComp._id, + resultDateComp._id, options); return NSDateComponents._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingUnit_value_toDate_options_( - int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_689( + NSDate? dateByAddingUnit_value_toDate_options_( + int unit, int value, NSDate date, int options) { + final _ret = _lib._objc_msgSend_792( _id, _lib._sel_dateByAddingUnit_value_toDate_options_1, unit, value, - date?._id ?? ffi.nullptr, + date._id, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, NSDateComponents? comps, int opts, ObjCBlock28 block) { - return _lib._objc_msgSend_690( + NSDate start, + NSDateComponents comps, + int opts, + ObjCBlock_ffiVoid_NSDate_bool_bool block) { + _lib._objc_msgSend_793( _id, _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, - start?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, + start._id, + comps._id, opts, block._id); } - NSDate nextDateAfterDate_matchingComponents_options_( - NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_691( + NSDate? nextDateAfterDate_matchingComponents_options_( + NSDate date, NSDateComponents comps, int options) { + final _ret = _lib._objc_msgSend_794( _id, _lib._sel_nextDateAfterDate_matchingComponents_options_1, - date?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, + date._id, + comps._id, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingUnit_value_options_( - NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_692( + NSDate? nextDateAfterDate_matchingUnit_value_options_( + NSDate date, int unit, int value, int options) { + final _ret = _lib._objc_msgSend_795( _id, _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, - date?._id ?? ffi.nullptr, + date._id, unit, value, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, + NSDate? nextDateAfterDate_matchingHour_minute_second_options_(NSDate date, int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_693( + final _ret = _lib._objc_msgSend_796( _id, _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, - date?._id ?? ffi.nullptr, + date._id, hourValue, minuteValue, secondValue, options); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate dateBySettingUnit_value_ofDate_options_( - int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_689( + NSDate? dateBySettingUnit_value_ofDate_options_( + int unit, int v, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_792( _id, _lib._sel_dateBySettingUnit_value_ofDate_options_1, unit, v, - date?._id ?? ffi.nullptr, + date._id, opts); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSDate dateBySettingHour_minute_second_ofDate_options_( - int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_694( + NSDate? dateBySettingHour_minute_second_ofDate_options_( + int h, int m, int s, NSDate date, int opts) { + final _ret = _lib._objc_msgSend_797( _id, _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, h, m, s, - date?._id ?? ffi.nullptr, + date._id, opts); - return NSDate._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_695(_id, _lib._sel_date_matchesComponents_1, - date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + bool date_matchesComponents_(NSDate date, NSDateComponents components) { + return _lib._objc_msgSend_798( + _id, _lib._sel_date_matchesComponents_1, date._id, components._id); } static NSCalendar new1(SwiftLibrary _lib) { @@ -50064,6 +57542,13 @@ class NSCalendar extends NSObject { return NSCalendar._(_ret, _lib, retain: false, release: true); } + static NSCalendar allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendar1, _lib._sel_allocWithZone_1, zone); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + static NSCalendar alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); @@ -50074,18 +57559,18 @@ class NSCalendar extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._objc_msgSend_15(_lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -50100,33 +57585,29 @@ class NSCalendar extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendar1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCalendar1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendar1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCalendar1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCalendar1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -50138,8 +57619,6 @@ class NSCalendar extends NSObject { } } -typedef NSCalendarIdentifier = ffi.Pointer; - abstract class NSCalendarUnit { static const int NSCalendarUnitEra = 2; static const int NSCalendarUnitYear = 4; @@ -50200,139 +57679,139 @@ class NSDateComponents extends NSObject { } NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_665(_id, _lib._sel_calendar1); + final _ret = _lib._objc_msgSend_771(_id, _lib._sel_calendar1); return _ret.address == 0 ? null : NSCalendar._(_ret, _lib, retain: true, release: true); } set calendar(NSCalendar? value) { - _lib._objc_msgSend_671( + return _lib._objc_msgSend_772( _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); + final _ret = _lib._objc_msgSend_773(_id, _lib._sel_timeZone1); return _ret.address == 0 ? null : NSTimeZone._(_ret, _lib, retain: true, release: true); } set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_163( + return _lib._objc_msgSend_774( _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } int get era { - return _lib._objc_msgSend_78(_id, _lib._sel_era1); + return _lib._objc_msgSend_83(_id, _lib._sel_era1); } set era(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setEra_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setEra_1, value); } int get year { - return _lib._objc_msgSend_78(_id, _lib._sel_year1); + return _lib._objc_msgSend_83(_id, _lib._sel_year1); } set year(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setYear_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setYear_1, value); } int get month { - return _lib._objc_msgSend_78(_id, _lib._sel_month1); + return _lib._objc_msgSend_83(_id, _lib._sel_month1); } set month(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setMonth_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setMonth_1, value); } int get day { - return _lib._objc_msgSend_78(_id, _lib._sel_day1); + return _lib._objc_msgSend_83(_id, _lib._sel_day1); } set day(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setDay_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setDay_1, value); } int get hour { - return _lib._objc_msgSend_78(_id, _lib._sel_hour1); + return _lib._objc_msgSend_83(_id, _lib._sel_hour1); } set hour(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setHour_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setHour_1, value); } int get minute { - return _lib._objc_msgSend_78(_id, _lib._sel_minute1); + return _lib._objc_msgSend_83(_id, _lib._sel_minute1); } set minute(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setMinute_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setMinute_1, value); } int get second { - return _lib._objc_msgSend_78(_id, _lib._sel_second1); + return _lib._objc_msgSend_83(_id, _lib._sel_second1); } set second(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setSecond_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setSecond_1, value); } int get nanosecond { - return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); + return _lib._objc_msgSend_83(_id, _lib._sel_nanosecond1); } set nanosecond(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setNanosecond_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setNanosecond_1, value); } int get weekday { - return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekday1); } set weekday(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekday_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekday_1, value); } int get weekdayOrdinal { - return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekdayOrdinal1); } set weekdayOrdinal(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekdayOrdinal_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekdayOrdinal_1, value); } int get quarter { - return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); + return _lib._objc_msgSend_83(_id, _lib._sel_quarter1); } set quarter(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setQuarter_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setQuarter_1, value); } int get weekOfMonth { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekOfMonth1); } set weekOfMonth(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekOfMonth_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekOfMonth_1, value); } int get weekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_weekOfYear1); } set weekOfYear(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setWeekOfYear_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setWeekOfYear_1, value); } int get yearForWeekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + return _lib._objc_msgSend_83(_id, _lib._sel_yearForWeekOfYear1); } set yearForWeekOfYear(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setYearForWeekOfYear_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setYearForWeekOfYear_1, value); } bool get leapMonth { @@ -50340,40 +57819,45 @@ class NSDateComponents extends NSObject { } set leapMonth(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLeapMonth_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLeapMonth_1, value); } NSDate? get date { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_date1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_date1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } int week() { - return _lib._objc_msgSend_78(_id, _lib._sel_week1); + return _lib._objc_msgSend_83(_id, _lib._sel_week1); } void setWeek_(int v) { - return _lib._objc_msgSend_374(_id, _lib._sel_setWeek_1, v); + _lib._objc_msgSend_423(_id, _lib._sel_setWeek_1, v); } void setValue_forComponent_(int value, int unit) { - return _lib._objc_msgSend_672( - _id, _lib._sel_setValue_forComponent_1, value, unit); + _lib._objc_msgSend_775(_id, _lib._sel_setValue_forComponent_1, value, unit); } int valueForComponent_(int unit) { - return _lib._objc_msgSend_673(_id, _lib._sel_valueForComponent_1, unit); + return _lib._objc_msgSend_776(_id, _lib._sel_valueForComponent_1, unit); } bool get validDate { return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); } - bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_674( - _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + bool isValidDateInCalendar_(NSCalendar calendar) { + return _lib._objc_msgSend_777( + _id, _lib._sel_isValidDateInCalendar_1, calendar._id); + } + + @override + NSDateComponents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateComponents._(_ret, _lib, retain: true, release: true); } static NSDateComponents new1(SwiftLibrary _lib) { @@ -50382,6 +57866,13 @@ class NSDateComponents extends NSObject { return NSDateComponents._(_ret, _lib, retain: false, release: true); } + static NSDateComponents allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateComponents1, _lib._sel_allocWithZone_1, zone); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + static NSDateComponents alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); @@ -50392,18 +57883,18 @@ class NSDateComponents extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._objc_msgSend_15(_lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -50418,33 +57909,29 @@ class NSDateComponents extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateComponents1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDateComponents1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDateComponents1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDateComponents1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDateComponents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSDateComponents1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSDateComponents1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -50467,38 +57954,49 @@ abstract class NSCalendarOptions { static const int NSCalendarMatchLast = 8192; } -void _ObjCBlock28_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock28_closureRegistry = {}; -int _ObjCBlock28_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { - final id = ++_ObjCBlock28_closureRegistryIndex; - _ObjCBlock28_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock28_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock28_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock28 extends _ObjCBlockBase { - ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDate_bool_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock28.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -50507,53 +58005,87 @@ class ObjCBlock28 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock28_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock28.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( + SwiftLibrary lib, void Function(NSDate?, bool, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock28_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) .cast(), - _ObjCBlock28_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSDate._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDate_bool_bool.listener( + SwiftLibrary lib, void Function(NSDate?, bool, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSDate._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSDate? arg0, bool arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, bool, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } class NSNumberFormatter extends NSFormatter { @@ -50581,77 +58113,75 @@ class NSNumberFormatter extends NSFormatter { } int get formattingContext { - return _lib._objc_msgSend_655(_id, _lib._sel_formattingContext1); + return _lib._objc_msgSend_752(_id, _lib._sel_formattingContext1); } set formattingContext(int value) { - _lib._objc_msgSend_656(_id, _lib._sel_setFormattingContext_1, value); + return _lib._objc_msgSend_753(_id, _lib._sel_setFormattingContext_1, value); } bool getObjectValue_forString_range_error_( ffi.Pointer> obj, - NSString? string, - ffi.Pointer rangep, + NSString string, + ffi.Pointer<_NSRange> rangep, ffi.Pointer> error) { - return _lib._objc_msgSend_657( + return _lib._objc_msgSend_754( _id, _lib._sel_getObjectValue_forString_range_error_1, obj, - string?._id ?? ffi.nullptr, + string._id, rangep, error); } - NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_697( - _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringFromNumber_(NSNumber number) { + final _ret = + _lib._objc_msgSend_802(_id, _lib._sel_stringFromNumber_1, number._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSNumber numberFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_698( - _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber? numberFromString_(NSString string) { + final _ret = + _lib._objc_msgSend_803(_id, _lib._sel_numberFromString_1, string._id); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } static NSString localizedStringFromNumber_numberStyle_( - SwiftLibrary _lib, NSNumber? num, int nstyle) { - final _ret = _lib._objc_msgSend_699( - _lib._class_NSNumberFormatter1, - _lib._sel_localizedStringFromNumber_numberStyle_1, - num?._id ?? ffi.nullptr, - nstyle); + SwiftLibrary _lib, NSNumber num, int nstyle) { + final _ret = _lib._objc_msgSend_804(_lib._class_NSNumberFormatter1, + _lib._sel_localizedStringFromNumber_numberStyle_1, num._id, nstyle); return NSString._(_ret, _lib, retain: true, release: true); } static int defaultFormatterBehavior(SwiftLibrary _lib) { - return _lib._objc_msgSend_700( + return _lib._objc_msgSend_805( _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); } static void setDefaultFormatterBehavior_(SwiftLibrary _lib, int behavior) { - return _lib._objc_msgSend_701(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_806(_lib._class_NSNumberFormatter1, _lib._sel_setDefaultFormatterBehavior_1, behavior); } int get numberStyle { - return _lib._objc_msgSend_702(_id, _lib._sel_numberStyle1); + return _lib._objc_msgSend_807(_id, _lib._sel_numberStyle1); } set numberStyle(int value) { - _lib._objc_msgSend_703(_id, _lib._sel_setNumberStyle_1, value); + return _lib._objc_msgSend_808(_id, _lib._sel_setNumberStyle_1, value); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_176(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + NSLocale get locale { + final _ret = _lib._objc_msgSend_197(_id, _lib._sel_locale1); + return NSLocale._(_ret, _lib, retain: true, release: true); } - set locale(NSLocale? value) { - _lib._objc_msgSend_664( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + set locale(NSLocale value) { + return _lib._objc_msgSend_762(_id, _lib._sel_setLocale_1, value._id); } bool get generatesDecimalNumbers { @@ -50659,64 +58189,65 @@ class NSNumberFormatter extends NSFormatter { } set generatesDecimalNumbers(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setGeneratesDecimalNumbers_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setGeneratesDecimalNumbers_1, value); } int get formatterBehavior { - return _lib._objc_msgSend_700(_id, _lib._sel_formatterBehavior1); + return _lib._objc_msgSend_805(_id, _lib._sel_formatterBehavior1); } set formatterBehavior(int value) { - _lib._objc_msgSend_704(_id, _lib._sel_setFormatterBehavior_1, value); + return _lib._objc_msgSend_809(_id, _lib._sel_setFormatterBehavior_1, value); } - NSString? get negativeFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativeFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativeFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativeFormat(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); + set negativeFormat(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativeFormat_1, value._id); } NSDictionary? get textAttributesForNegativeValues { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForNegativeValues1); + _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForNegativeValues1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForNegativeValues(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setTextAttributesForNegativeValues_1, + return _lib._objc_msgSend_634( + _id, + _lib._sel_setTextAttributesForNegativeValues_1, value?._id ?? ffi.nullptr); } - NSString? get positiveFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positiveFormat { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positiveFormat1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positiveFormat(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); + set positiveFormat(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositiveFormat_1, value._id); } NSDictionary? get textAttributesForPositiveValues { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForPositiveValues1); + _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForPositiveValues1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForPositiveValues(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setTextAttributesForPositiveValues_1, + return _lib._objc_msgSend_634( + _id, + _lib._sel_setTextAttributesForPositiveValues_1, value?._id ?? ffi.nullptr); } @@ -50725,19 +58256,17 @@ class NSNumberFormatter extends NSFormatter { } set allowsFloats(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsFloats_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setAllowsFloats_1, value); } - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get decimalSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_decimalSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set decimalSeparator(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); + set decimalSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setDecimalSeparator_1, value._id); } bool get alwaysShowsDecimalSeparator { @@ -50745,21 +58274,19 @@ class NSNumberFormatter extends NSFormatter { } set alwaysShowsDecimalSeparator(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); } - NSString? get currencyDecimalSeparator { + NSString get currencyDecimalSeparator { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_currencyDecimalSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencyDecimalSeparator(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setCurrencyDecimalSeparator_1, - value?._id ?? ffi.nullptr); + set currencyDecimalSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrencyDecimalSeparator_1, value._id); } bool get usesGroupingSeparator { @@ -50767,108 +58294,100 @@ class NSNumberFormatter extends NSFormatter { } set usesGroupingSeparator(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setUsesGroupingSeparator_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setUsesGroupingSeparator_1, value); } - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get groupingSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_groupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set groupingSeparator(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); + set groupingSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setGroupingSeparator_1, value._id); } NSString? get zeroSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_zeroSymbol1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set zeroSymbol(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); } NSDictionary? get textAttributesForZero { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForZero1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForZero1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForZero(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); } - NSString? get nilSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get nilSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_nilSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set nilSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + set nilSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setNilSymbol_1, value._id); } NSDictionary? get textAttributesForNil { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForNil1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForNil1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForNil(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); } - NSString? get notANumberSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get notANumberSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_notANumberSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set notANumberSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + set notANumberSymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNotANumberSymbol_1, value._id); } NSDictionary? get textAttributesForNotANumber { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_textAttributesForNotANumber1); + _lib._objc_msgSend_390(_id, _lib._sel_textAttributesForNotANumber1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set textAttributesForNotANumber(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setTextAttributesForNotANumber_1, - value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_634(_id, + _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); } - NSString? get positiveInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positiveInfinitySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positiveInfinitySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positiveInfinitySymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + set positiveInfinitySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositiveInfinitySymbol_1, value._id); } NSDictionary? get textAttributesForPositiveInfinity { - final _ret = _lib._objc_msgSend_164( + final _ret = _lib._objc_msgSend_390( _id, _lib._sel_textAttributesForPositiveInfinity1); return _ret.address == 0 ? null @@ -50876,26 +58395,24 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForPositiveInfinity(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForPositiveInfinity_1, value?._id ?? ffi.nullptr); } - NSString? get negativeInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativeInfinitySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativeInfinitySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativeInfinitySymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + set negativeInfinitySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativeInfinitySymbol_1, value._id); } NSDictionary? get textAttributesForNegativeInfinity { - final _ret = _lib._objc_msgSend_164( + final _ret = _lib._objc_msgSend_390( _id, _lib._sel_textAttributesForNegativeInfinity1); return _ret.address == 0 ? null @@ -50903,155 +58420,126 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForNegativeInfinity(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setTextAttributesForNegativeInfinity_1, value?._id ?? ffi.nullptr); } - NSString? get positivePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positivePrefix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positivePrefix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positivePrefix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + set positivePrefix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositivePrefix_1, value._id); } - NSString? get positiveSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get positiveSuffix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_positiveSuffix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set positiveSuffix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + set positiveSuffix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPositiveSuffix_1, value._id); } - NSString? get negativePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativePrefix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativePrefix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativePrefix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + set negativePrefix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativePrefix_1, value._id); } - NSString? get negativeSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get negativeSuffix { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_negativeSuffix1); + return NSString._(_ret, _lib, retain: true, release: true); } - set negativeSuffix(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + set negativeSuffix(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setNegativeSuffix_1, value._id); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currencyCode { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencyCode1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencyCode(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); + set currencyCode(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setCurrencyCode_1, value._id); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currencySymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currencySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencySymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + set currencySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrencySymbol_1, value._id); } - NSString? get internationalCurrencySymbol { + NSString get internationalCurrencySymbol { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_internationalCurrencySymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set internationalCurrencySymbol(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setInternationalCurrencySymbol_1, - value?._id ?? ffi.nullptr); + set internationalCurrencySymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setInternationalCurrencySymbol_1, value._id); } - NSString? get percentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get percentSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_percentSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set percentSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + set percentSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPercentSymbol_1, value._id); } - NSString? get perMillSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get perMillSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_perMillSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set perMillSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); + set perMillSymbol(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPerMillSymbol_1, value._id); } - NSString? get minusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get minusSign { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_minusSign1); + return NSString._(_ret, _lib, retain: true, release: true); } - set minusSign(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); + set minusSign(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setMinusSign_1, value._id); } - NSString? get plusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get plusSign { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_plusSign1); + return NSString._(_ret, _lib, retain: true, release: true); } - set plusSign(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + set plusSign(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setPlusSign_1, value._id); } - NSString? get exponentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get exponentSymbol { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_exponentSymbol1); + return NSString._(_ret, _lib, retain: true, release: true); } - set exponentSymbol(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); + set exponentSymbol(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setExponentSymbol_1, value._id); } int get groupingSize { @@ -51059,7 +58547,7 @@ class NSNumberFormatter extends NSFormatter { } set groupingSize(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setGroupingSize_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setGroupingSize_1, value); } int get secondaryGroupingSize { @@ -51067,18 +58555,19 @@ class NSNumberFormatter extends NSFormatter { } set secondaryGroupingSize(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setSecondaryGroupingSize_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setSecondaryGroupingSize_1, value); } NSNumber? get multiplier { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_multiplier1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_multiplier1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set multiplier(NSNumber? value) { - _lib._objc_msgSend_705( + return _lib._objc_msgSend_670( _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); } @@ -51087,47 +58576,43 @@ class NSNumberFormatter extends NSFormatter { } set formatWidth(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setFormatWidth_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setFormatWidth_1, value); } - NSString? get paddingCharacter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get paddingCharacter { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_paddingCharacter1); + return NSString._(_ret, _lib, retain: true, release: true); } - set paddingCharacter(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); + set paddingCharacter(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setPaddingCharacter_1, value._id); } int get paddingPosition { - return _lib._objc_msgSend_706(_id, _lib._sel_paddingPosition1); + return _lib._objc_msgSend_810(_id, _lib._sel_paddingPosition1); } set paddingPosition(int value) { - _lib._objc_msgSend_707(_id, _lib._sel_setPaddingPosition_1, value); + return _lib._objc_msgSend_811(_id, _lib._sel_setPaddingPosition_1, value); } int get roundingMode { - return _lib._objc_msgSend_708(_id, _lib._sel_roundingMode1); + return _lib._objc_msgSend_812(_id, _lib._sel_roundingMode1); } set roundingMode(int value) { - _lib._objc_msgSend_709(_id, _lib._sel_setRoundingMode_1, value); + return _lib._objc_msgSend_813(_id, _lib._sel_setRoundingMode_1, value); } - NSNumber? get roundingIncrement { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_roundingIncrement1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + NSNumber get roundingIncrement { + final _ret = _lib._objc_msgSend_814(_id, _lib._sel_roundingIncrement1); + return NSNumber._(_ret, _lib, retain: true, release: true); } - set roundingIncrement(NSNumber? value) { - _lib._objc_msgSend_705( - _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); + set roundingIncrement(NSNumber value) { + return _lib._objc_msgSend_815( + _id, _lib._sel_setRoundingIncrement_1, value._id); } int get minimumIntegerDigits { @@ -51135,7 +58620,8 @@ class NSNumberFormatter extends NSFormatter { } set minimumIntegerDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumIntegerDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumIntegerDigits_1, value); } int get maximumIntegerDigits { @@ -51143,7 +58629,8 @@ class NSNumberFormatter extends NSFormatter { } set maximumIntegerDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMaximumIntegerDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMaximumIntegerDigits_1, value); } int get minimumFractionDigits { @@ -51151,7 +58638,8 @@ class NSNumberFormatter extends NSFormatter { } set minimumFractionDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumFractionDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumFractionDigits_1, value); } int get maximumFractionDigits { @@ -51159,44 +58647,43 @@ class NSNumberFormatter extends NSFormatter { } set maximumFractionDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMaximumFractionDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMaximumFractionDigits_1, value); } NSNumber? get minimum { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_minimum1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_minimum1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set minimum(NSNumber? value) { - _lib._objc_msgSend_705( + return _lib._objc_msgSend_670( _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); } NSNumber? get maximum { - final _ret = _lib._objc_msgSend_192(_id, _lib._sel_maximum1); + final _ret = _lib._objc_msgSend_215(_id, _lib._sel_maximum1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set maximum(NSNumber? value) { - _lib._objc_msgSend_705( + return _lib._objc_msgSend_670( _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); } - NSString? get currencyGroupingSeparator { + NSString get currencyGroupingSeparator { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_currencyGroupingSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currencyGroupingSeparator(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setCurrencyGroupingSeparator_1, - value?._id ?? ffi.nullptr); + set currencyGroupingSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrencyGroupingSeparator_1, value._id); } bool get lenient { @@ -51204,7 +58691,7 @@ class NSNumberFormatter extends NSFormatter { } set lenient(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLenient_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLenient_1, value); } bool get usesSignificantDigits { @@ -51212,7 +58699,8 @@ class NSNumberFormatter extends NSFormatter { } set usesSignificantDigits(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setUsesSignificantDigits_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setUsesSignificantDigits_1, value); } int get minimumSignificantDigits { @@ -51220,7 +58708,8 @@ class NSNumberFormatter extends NSFormatter { } set minimumSignificantDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMinimumSignificantDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMinimumSignificantDigits_1, value); } int get maximumSignificantDigits { @@ -51228,7 +58717,8 @@ class NSNumberFormatter extends NSFormatter { } set maximumSignificantDigits(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMaximumSignificantDigits_1, value); + return _lib._objc_msgSend_516( + _id, _lib._sel_setMaximumSignificantDigits_1, value); } bool get partialStringValidationEnabled { @@ -51237,7 +58727,7 @@ class NSNumberFormatter extends NSFormatter { } set partialStringValidationEnabled(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setPartialStringValidationEnabled_1, value); } @@ -51246,19 +58736,18 @@ class NSNumberFormatter extends NSFormatter { } set hasThousandSeparators(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHasThousandSeparators_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHasThousandSeparators_1, value); } - NSString? get thousandSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get thousandSeparator { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_thousandSeparator1); + return NSString._(_ret, _lib, retain: true, release: true); } - set thousandSeparator(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); + set thousandSeparator(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setThousandSeparator_1, value._id); } bool get localizesFormat { @@ -51266,69 +58755,64 @@ class NSNumberFormatter extends NSFormatter { } set localizesFormat(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setLocalizesFormat_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setLocalizesFormat_1, value); } - NSString? get format { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get format { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_format1); + return NSString._(_ret, _lib, retain: true, release: true); } - set format(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + set format(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setFormat_1, value._id); } - NSAttributedString? get attributedStringForZero { + NSAttributedString get attributedStringForZero { final _ret = - _lib._objc_msgSend_640(_id, _lib._sel_attributedStringForZero1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_735(_id, _lib._sel_attributedStringForZero1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - set attributedStringForZero(NSAttributedString? value) { - _lib._objc_msgSend_710( - _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + set attributedStringForZero(NSAttributedString value) { + return _lib._objc_msgSend_816( + _id, _lib._sel_setAttributedStringForZero_1, value._id); } - NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_640(_id, _lib._sel_attributedStringForNil1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + NSAttributedString get attributedStringForNil { + final _ret = _lib._objc_msgSend_735(_id, _lib._sel_attributedStringForNil1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - set attributedStringForNil(NSAttributedString? value) { - _lib._objc_msgSend_710( - _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); + set attributedStringForNil(NSAttributedString value) { + return _lib._objc_msgSend_816( + _id, _lib._sel_setAttributedStringForNil_1, value._id); } - NSAttributedString? get attributedStringForNotANumber { + NSAttributedString get attributedStringForNotANumber { final _ret = - _lib._objc_msgSend_640(_id, _lib._sel_attributedStringForNotANumber1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_735(_id, _lib._sel_attributedStringForNotANumber1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); } - set attributedStringForNotANumber(NSAttributedString? value) { - _lib._objc_msgSend_710(_id, _lib._sel_setAttributedStringForNotANumber_1, - value?._id ?? ffi.nullptr); + set attributedStringForNotANumber(NSAttributedString value) { + return _lib._objc_msgSend_816( + _id, _lib._sel_setAttributedStringForNotANumber_1, value._id); } - NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_711(_id, _lib._sel_roundingBehavior1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + NSDecimalNumberHandler get roundingBehavior { + final _ret = _lib._objc_msgSend_817(_id, _lib._sel_roundingBehavior1); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + + set roundingBehavior(NSDecimalNumberHandler value) { + return _lib._objc_msgSend_819( + _id, _lib._sel_setRoundingBehavior_1, value._id); } - set roundingBehavior(NSDecimalNumberHandler? value) { - _lib._objc_msgSend_713( - _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + @override + NSNumberFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumberFormatter._(_ret, _lib, retain: true, release: true); } static NSNumberFormatter new1(SwiftLibrary _lib) { @@ -51337,6 +58821,13 @@ class NSNumberFormatter extends NSFormatter { return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } + static NSNumberFormatter allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNumberFormatter1, _lib._sel_allocWithZone_1, zone); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + } + static NSNumberFormatter alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); @@ -51347,18 +58838,18 @@ class NSNumberFormatter extends NSFormatter { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -51373,33 +58864,29 @@ class NSNumberFormatter extends NSFormatter { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumberFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNumberFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNumberFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNumberFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNumberFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSNumberFormatter1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSNumberFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -51472,13 +58959,11 @@ class NSDecimalNumberHandler extends NSObject { obj._lib._class_NSDecimalNumberHandler1); } - static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( + static NSDecimalNumberHandler getDefaultDecimalNumberHandler( SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_711(_lib._class_NSDecimalNumberHandler1, + final _ret = _lib._objc_msgSend_817(_lib._class_NSDecimalNumberHandler1, _lib._sel_defaultDecimalNumberHandler1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } NSDecimalNumberHandler @@ -51489,7 +58974,7 @@ class NSDecimalNumberHandler extends NSObject { bool overflow, bool underflow, bool divideByZero) { - final _ret = _lib._objc_msgSend_712( + final _ret = _lib._objc_msgSend_818( _id, _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, roundingMode, @@ -51510,7 +58995,7 @@ class NSDecimalNumberHandler extends NSObject { bool overflow, bool underflow, bool divideByZero) { - final _ret = _lib._objc_msgSend_712( + final _ret = _lib._objc_msgSend_818( _lib._class_NSDecimalNumberHandler1, _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, roundingMode, @@ -51522,12 +59007,25 @@ class NSDecimalNumberHandler extends NSObject { return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } + @override + NSDecimalNumberHandler init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + static NSDecimalNumberHandler new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } + static NSDecimalNumberHandler allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDecimalNumberHandler1, _lib._sel_allocWithZone_1, zone); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + } + static NSDecimalNumberHandler alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); @@ -51538,18 +59036,18 @@ class NSDecimalNumberHandler extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -51564,33 +59062,29 @@ class NSDecimalNumberHandler extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSDecimalNumberHandler1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSDecimalNumberHandler1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSDecimalNumberHandler1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSDecimalNumberHandler1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSDecimalNumberHandler1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -51632,11 +59126,9 @@ class NSScanner extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get string { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); } int get scanLocation { @@ -51644,18 +59136,18 @@ class NSScanner extends NSObject { } set scanLocation(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setScanLocation_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setScanLocation_1, value); } NSCharacterSet? get charactersToBeSkipped { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_charactersToBeSkipped1); + final _ret = _lib._objc_msgSend_820(_id, _lib._sel_charactersToBeSkipped1); return _ret.address == 0 ? null : NSCharacterSet._(_ret, _lib, retain: true, release: true); } set charactersToBeSkipped(NSCharacterSet? value) { - _lib._objc_msgSend_714( + return _lib._objc_msgSend_821( _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); } @@ -51664,114 +59156,117 @@ class NSScanner extends NSObject { } set caseSensitive(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setCaseSensitive_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setCaseSensitive_1, value); } - NSObject get locale { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get locale { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set locale(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setLocale_1, value._id); + set locale(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } - NSScanner initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + NSScanner initWithString_(NSString string) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, string._id); return NSScanner._(_ret, _lib, retain: true, release: true); } bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_715(_id, _lib._sel_scanInt_1, result); + return _lib._objc_msgSend_822(_id, _lib._sel_scanInt_1, result); } - bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_716(_id, _lib._sel_scanInteger_1, result); + bool scanInteger_(ffi.Pointer result) { + return _lib._objc_msgSend_823(_id, _lib._sel_scanInteger_1, result); } bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_717(_id, _lib._sel_scanLongLong_1, result); + return _lib._objc_msgSend_824(_id, _lib._sel_scanLongLong_1, result); } bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_718( + return _lib._objc_msgSend_825( _id, _lib._sel_scanUnsignedLongLong_1, result); } bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_719(_id, _lib._sel_scanFloat_1, result); + return _lib._objc_msgSend_826(_id, _lib._sel_scanFloat_1, result); } bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_720(_id, _lib._sel_scanDouble_1, result); + return _lib._objc_msgSend_827(_id, _lib._sel_scanDouble_1, result); } bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_721(_id, _lib._sel_scanHexInt_1, result); + return _lib._objc_msgSend_828(_id, _lib._sel_scanHexInt_1, result); } bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_718(_id, _lib._sel_scanHexLongLong_1, result); + return _lib._objc_msgSend_825(_id, _lib._sel_scanHexLongLong_1, result); } bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_719(_id, _lib._sel_scanHexFloat_1, result); + return _lib._objc_msgSend_826(_id, _lib._sel_scanHexFloat_1, result); } bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_720(_id, _lib._sel_scanHexDouble_1, result); + return _lib._objc_msgSend_827(_id, _lib._sel_scanHexDouble_1, result); } bool scanString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_722(_id, _lib._sel_scanString_intoString_1, - string?._id ?? ffi.nullptr, result); + NSString string, ffi.Pointer> result) { + return _lib._objc_msgSend_829( + _id, _lib._sel_scanString_intoString_1, string._id, result); } bool scanCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_723( - _id, - _lib._sel_scanCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + NSCharacterSet set, ffi.Pointer> result) { + return _lib._objc_msgSend_830( + _id, _lib._sel_scanCharactersFromSet_intoString_1, set._id, result); } bool scanUpToString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_722(_id, _lib._sel_scanUpToString_intoString_1, - string?._id ?? ffi.nullptr, result); + NSString string, ffi.Pointer> result) { + return _lib._objc_msgSend_829( + _id, _lib._sel_scanUpToString_intoString_1, string._id, result); } bool scanUpToCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_723( - _id, - _lib._sel_scanUpToCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + NSCharacterSet set, ffi.Pointer> result) { + return _lib._objc_msgSend_830( + _id, _lib._sel_scanUpToCharactersFromSet_intoString_1, set._id, result); } bool get atEnd { return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); } - static NSScanner scannerWithString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); + static NSScanner scannerWithString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSScanner1, _lib._sel_scannerWithString_1, string._id); return NSScanner._(_ret, _lib, retain: true, release: true); } static NSObject localizedScannerWithString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSScanner1, + _lib._sel_localizedScannerWithString_1, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_724(_id, _lib._sel_scanDecimal_1, dcm); + return _lib._objc_msgSend_831(_id, _lib._sel_scanDecimal_1, dcm); + } + + @override + NSScanner init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScanner._(_ret, _lib, retain: true, release: true); } static NSScanner new1(SwiftLibrary _lib) { @@ -51779,6 +59274,13 @@ class NSScanner extends NSObject { return NSScanner._(_ret, _lib, retain: false, release: true); } + static NSScanner allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScanner1, _lib._sel_allocWithZone_1, zone); + return NSScanner._(_ret, _lib, retain: false, release: true); + } + static NSScanner alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); return NSScanner._(_ret, _lib, retain: false, release: true); @@ -51788,18 +59290,18 @@ class NSScanner extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._objc_msgSend_15(_lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -51814,33 +59316,29 @@ class NSScanner extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScanner1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSScanner1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScanner1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSScanner1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSScanner1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -51878,78 +59376,76 @@ class NSException extends NSObject { } static NSException exceptionWithName_reason_userInfo_(SwiftLibrary _lib, - NSExceptionName name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_725( + NSString name, NSString? reason, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_832( _lib._class_NSException1, _lib._sel_exceptionWithName_reason_userInfo_1, - name, + name._id, reason?._id ?? ffi.nullptr, userInfo?._id ?? ffi.nullptr); return NSException._(_ret, _lib, retain: true, release: true); } NSException initWithName_reason_userInfo_( - NSExceptionName aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_551( + NSString aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_833( _id, _lib._sel_initWithName_reason_userInfo_1, - aName, + aName._id, aReason?._id ?? ffi.nullptr, aUserInfo?._id ?? ffi.nullptr); return NSException._(_ret, _lib, retain: true, release: true); } - NSExceptionName get name { - return _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get reason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_reason1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackReturnAddresses { + NSArray get callStackReturnAddresses { final _ret = - _lib._objc_msgSend_80(_id, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_85(_id, _lib._sel_callStackReturnAddresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get callStackSymbols { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_callStackSymbols1); + return NSArray._(_ret, _lib, retain: true, release: true); } void raise() { - return _lib._objc_msgSend_1(_id, _lib._sel_raise1); + _lib._objc_msgSend_1(_id, _lib._sel_raise1); } - static void raise_format_( - SwiftLibrary _lib, NSExceptionName name, NSString? format) { - return _lib._objc_msgSend_483(_lib._class_NSException1, - _lib._sel_raise_format_1, name, format?._id ?? ffi.nullptr); + static void raise_format_(SwiftLibrary _lib, NSString name, NSString format) { + _lib._objc_msgSend_551(_lib._class_NSException1, _lib._sel_raise_format_1, + name._id, format._id); } - static void raise_format_arguments_(SwiftLibrary _lib, NSExceptionName name, - NSString? format, ffi.Pointer<__va_list_tag> argList) { - return _lib._objc_msgSend_726( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name, - format?._id ?? ffi.nullptr, - argList); + static void raise_format_arguments_(SwiftLibrary _lib, NSString name, + NSString format, ffi.Pointer<__va_list_tag> argList) { + _lib._objc_msgSend_834(_lib._class_NSException1, + _lib._sel_raise_format_arguments_1, name._id, format._id, argList); + } + + @override + NSException init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSException._(_ret, _lib, retain: true, release: true); } static NSException new1(SwiftLibrary _lib) { @@ -51957,6 +59453,13 @@ class NSException extends NSObject { return NSException._(_ret, _lib, retain: false, release: true); } + static NSException allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSException1, _lib._sel_allocWithZone_1, zone); + return NSException._(_ret, _lib, retain: false, release: true); + } + static NSException alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); @@ -51967,18 +59470,18 @@ class NSException extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._objc_msgSend_15(_lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -51993,33 +59496,29 @@ class NSException extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSException1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSException1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSException1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSException1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSException1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -52031,8 +59530,6 @@ class NSException extends NSObject { } } -typedef NSExceptionName = ffi.Pointer; - class NSFileHandle extends NSObject { NSFileHandle._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -52056,276 +59553,282 @@ class NSFileHandle extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); } - NSData? get availableData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get availableData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_availableData1); + return NSData._(_ret, _lib, retain: true, release: true); } NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_727( + final _ret = _lib._objc_msgSend_835( _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSFileHandle initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + NSFileHandle? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSData readDataToEndOfFileAndReturnError_( + NSData? readDataToEndOfFileAndReturnError_( ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_728( + final _ret = _lib._objc_msgSend_836( _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSData readDataUpToLength_error_( + NSData? readDataUpToLength_error_( int length, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_729( + final _ret = _lib._objc_msgSend_837( _id, _lib._sel_readDataUpToLength_error_1, length, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } bool writeData_error_( - NSData? data, ffi.Pointer> error) { - return _lib._objc_msgSend_730( - _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); + NSData data, ffi.Pointer> error) { + return _lib._objc_msgSend_838( + _id, _lib._sel_writeData_error_1, data._id, error); } bool getOffset_error_(ffi.Pointer offsetInFile, ffi.Pointer> error) { - return _lib._objc_msgSend_731( + return _lib._objc_msgSend_839( _id, _lib._sel_getOffset_error_1, offsetInFile, error); } bool seekToEndReturningOffset_error_( ffi.Pointer offsetInFile, ffi.Pointer> error) { - return _lib._objc_msgSend_731( + return _lib._objc_msgSend_839( _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); } bool seekToOffset_error_( int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_732( + return _lib._objc_msgSend_840( _id, _lib._sel_seekToOffset_error_1, offset, error); } bool truncateAtOffset_error_( int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_732( + return _lib._objc_msgSend_840( _id, _lib._sel_truncateAtOffset_error_1, offset, error); } bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_synchronizeAndReturnError_1, error); } bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219(_id, _lib._sel_closeAndReturnError_1, error); + return _lib._objc_msgSend_243(_id, _lib._sel_closeAndReturnError_1, error); } - static NSFileHandle? getFileHandleWithStandardInput(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithStandardInput(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardOutput(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithStandardOutput(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardError(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithStandardError(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithNullDevice(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_733( + static NSFileHandle getFileHandleWithNullDevice(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_841( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? fileHandleForReadingAtPath_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingAtPath_1, path._id); return _ret.address == 0 ? null : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingAtPath_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForWritingAtPath_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForWritingAtPath_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForUpdatingAtPath_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForUpdatingAtPath_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingFromURL_error_(SwiftLibrary _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingFromURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForReadingFromURL_error_(SwiftLibrary _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_842(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingFromURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForWritingToURL_error_(SwiftLibrary _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingToURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForWritingToURL_error_(SwiftLibrary _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_842(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingToURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForUpdatingURL_error_(SwiftLibrary _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + static NSFileHandle? fileHandleForUpdatingURL_error_(SwiftLibrary _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_842(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); } void readInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( - _id, - _lib._sel_readInBackgroundAndNotifyForModes_1, + _lib._objc_msgSend_843(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void readInBackgroundAndNotify() { - return _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); } void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void readToEndOfFileInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); } void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void acceptConnectionInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); } void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void waitForDataInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitForDataInBackgroundAndNotify1); + _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); } - ObjCBlock29 get readabilityHandler { - final _ret = _lib._objc_msgSend_735(_id, _lib._sel_readabilityHandler1); - return ObjCBlock29._(_ret, _lib); + ObjCBlock_ffiVoid_NSFileHandle? get readabilityHandler { + final _ret = _lib._objc_msgSend_844(_id, _lib._sel_readabilityHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib, + retain: true, release: true); } - set readabilityHandler(ObjCBlock29 value) { - _lib._objc_msgSend_736(_id, _lib._sel_setReadabilityHandler_1, value._id); + set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle? value) { + return _lib._objc_msgSend_845( + _id, _lib._sel_setReadabilityHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock29 get writeabilityHandler { - final _ret = _lib._objc_msgSend_735(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock29._(_ret, _lib); + ObjCBlock_ffiVoid_NSFileHandle? get writeabilityHandler { + final _ret = _lib._objc_msgSend_844(_id, _lib._sel_writeabilityHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib, + retain: true, release: true); } - set writeabilityHandler(ObjCBlock29 value) { - _lib._objc_msgSend_736(_id, _lib._sel_setWriteabilityHandler_1, value._id); + set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle? value) { + return _lib._objc_msgSend_845( + _id, _lib._sel_setWriteabilityHandler_1, value?._id ?? ffi.nullptr); } NSFileHandle initWithFileDescriptor_(int fd) { final _ret = - _lib._objc_msgSend_737(_id, _lib._sel_initWithFileDescriptor_1, fd); + _lib._objc_msgSend_846(_id, _lib._sel_initWithFileDescriptor_1, fd); return NSFileHandle._(_ret, _lib, retain: true, release: true); } int get fileDescriptor { - return _lib._objc_msgSend_213(_id, _lib._sel_fileDescriptor1); + return _lib._objc_msgSend_237(_id, _lib._sel_fileDescriptor1); } NSData readDataToEndOfFile() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_readDataToEndOfFile1); return NSData._(_ret, _lib, retain: true, release: true); } NSData readDataOfLength_(int length) { final _ret = - _lib._objc_msgSend_315(_id, _lib._sel_readDataOfLength_1, length); + _lib._objc_msgSend_847(_id, _lib._sel_readDataOfLength_1, length); return NSData._(_ret, _lib, retain: true, release: true); } - void writeData_(NSData? data) { - return _lib._objc_msgSend_248( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + void writeData_(NSData data) { + _lib._objc_msgSend_285(_id, _lib._sel_writeData_1, data._id); } int get offsetInFile { - return _lib._objc_msgSend_148(_id, _lib._sel_offsetInFile1); + return _lib._objc_msgSend_164(_id, _lib._sel_offsetInFile1); } int seekToEndOfFile() { - return _lib._objc_msgSend_148(_id, _lib._sel_seekToEndOfFile1); + return _lib._objc_msgSend_164(_id, _lib._sel_seekToEndOfFile1); } void seekToFileOffset_(int offset) { - return _lib._objc_msgSend_738(_id, _lib._sel_seekToFileOffset_1, offset); + _lib._objc_msgSend_848(_id, _lib._sel_seekToFileOffset_1, offset); } void truncateFileAtOffset_(int offset) { - return _lib._objc_msgSend_738( - _id, _lib._sel_truncateFileAtOffset_1, offset); + _lib._objc_msgSend_848(_id, _lib._sel_truncateFileAtOffset_1, offset); } void synchronizeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); } void closeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + } + + @override + NSFileHandle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } static NSFileHandle new1(SwiftLibrary _lib) { @@ -52334,6 +59837,13 @@ class NSFileHandle extends NSObject { return NSFileHandle._(_ret, _lib, retain: false, release: true); } + static NSFileHandle allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileHandle1, _lib._sel_allocWithZone_1, zone); + return NSFileHandle._(_ret, _lib, retain: false, release: true); + } + static NSFileHandle alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); @@ -52344,18 +59854,18 @@ class NSFileHandle extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + _lib._objc_msgSend_15(_lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -52370,33 +59880,29 @@ class NSFileHandle extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFileHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFileHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFileHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -52408,72 +59914,114 @@ class NSFileHandle extends NSObject { } } -void _ObjCBlock29_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock29_closureRegistry = {}; -int _ObjCBlock29_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { - final id = ++_ObjCBlock29_closureRegistryIndex; - _ObjCBlock29_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock29_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock29_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock29 extends _ObjCBlockBase { - ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock29.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi .NativeFunction arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock29_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock29.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSFileHandle.fromFunction( + SwiftLibrary lib, void Function(NSFileHandle) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock29_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) .cast(), - _ObjCBlock29_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure((ffi + .Pointer + arg0) => + fn(NSFileHandle._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSFileHandle.listener( + SwiftLibrary lib, void Function(NSFileHandle) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + (ffi.Pointer arg0) => fn(NSFileHandle._( + arg0, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSFileHandle arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSHTTPCookieStorage extends NSObject { @@ -52500,89 +60048,88 @@ class NSHTTPCookieStorage extends NSObject { obj._lib._class_NSHTTPCookieStorage1); } - static NSHTTPCookieStorage? getSharedHTTPCookieStorage(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_739( + static NSHTTPCookieStorage getSharedHTTPCookieStorage(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_849( _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - SwiftLibrary _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_740( + SwiftLibrary _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_850( _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); + identifier._id); return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } NSArray? get cookies { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_cookies1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_cookies1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_743( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + void setCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_854(_id, _lib._sel_setCookie_1, cookie._id); } - void deleteCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_743( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + void deleteCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_854(_id, _lib._sel_deleteCookie_1, cookie._id); } - void removeCookiesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_472( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + void removeCookiesSinceDate_(NSDate date) { + _lib._objc_msgSend_540(_id, _lib._sel_removeCookiesSinceDate_1, date._id); } - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_120( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? cookiesForURL_(NSURL URL) { + final _ret = + _lib._objc_msgSend_133(_id, _lib._sel_cookiesForURL_1, URL._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - return _lib._objc_msgSend_744( + NSArray cookies, NSURL? URL, NSURL? mainDocumentURL) { + _lib._objc_msgSend_855( _id, _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, + cookies._id, URL?._id ?? ffi.nullptr, mainDocumentURL?._id ?? ffi.nullptr); } int get cookieAcceptPolicy { - return _lib._objc_msgSend_745(_id, _lib._sel_cookieAcceptPolicy1); + return _lib._objc_msgSend_856(_id, _lib._sel_cookieAcceptPolicy1); } set cookieAcceptPolicy(int value) { - _lib._objc_msgSend_746(_id, _lib._sel_setCookieAcceptPolicy_1, value); + return _lib._objc_msgSend_857( + _id, _lib._sel_setCookieAcceptPolicy_1, value); } - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); + NSArray sortedCookiesUsingDescriptors_(NSArray sortOrder) { + final _ret = _lib._objc_msgSend_68( + _id, _lib._sel_sortedCookiesUsingDescriptors_1, sortOrder._id); return NSArray._(_ret, _lib, retain: true, release: true); } - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - return _lib._objc_msgSend_766(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + void storeCookies_forTask_(NSArray cookies, NSURLSessionTask task) { + _lib._objc_msgSend_882( + _id, _lib._sel_storeCookies_forTask_1, cookies._id, task._id); } void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock30 completionHandler) { - return _lib._objc_msgSend_767( - _id, - _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, - completionHandler._id); + NSURLSessionTask task, ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_883(_id, _lib._sel_getCookiesForTask_completionHandler_1, + task._id, completionHandler._id); + } + + @override + NSHTTPCookieStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } static NSHTTPCookieStorage new1(SwiftLibrary _lib) { @@ -52591,6 +60138,13 @@ class NSHTTPCookieStorage extends NSObject { return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } + static NSHTTPCookieStorage allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + } + static NSHTTPCookieStorage alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); @@ -52601,18 +60155,18 @@ class NSHTTPCookieStorage extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -52627,33 +60181,29 @@ class NSHTTPCookieStorage extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSHTTPCookieStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSHTTPCookieStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSHTTPCookieStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSHTTPCookieStorage1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSHTTPCookieStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -52688,40 +60238,42 @@ class NSHTTPCookie extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); } - NSHTTPCookie initWithProperties_(NSDictionary? properties) { - final _ret = _lib._objc_msgSend_143( - _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + NSHTTPCookie? initWithProperties_(NSDictionary properties) { + final _ret = _lib._objc_msgSend_851( + _id, _lib._sel_initWithProperties_1, properties._id); + return _ret.address == 0 + ? null + : NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookie cookieWithProperties_( - SwiftLibrary _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_741(_lib._class_NSHTTPCookie1, - _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + static NSHTTPCookie? cookieWithProperties_( + SwiftLibrary _lib, NSDictionary properties) { + final _ret = _lib._objc_msgSend_852(_lib._class_NSHTTPCookie1, + _lib._sel_cookieWithProperties_1, properties._id); + return _ret.address == 0 + ? null + : NSHTTPCookie._(_ret, _lib, retain: true, release: true); } static NSDictionary requestHeaderFieldsWithCookies_( - SwiftLibrary _lib, NSArray? cookies) { - final _ret = _lib._objc_msgSend_443( - _lib._class_NSHTTPCookie1, - _lib._sel_requestHeaderFieldsWithCookies_1, - cookies?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSArray cookies) { + final _ret = _lib._objc_msgSend_508(_lib._class_NSHTTPCookie1, + _lib._sel_requestHeaderFieldsWithCookies_1, cookies._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSArray cookiesWithResponseHeaderFields_forURL_( - SwiftLibrary _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_742( + SwiftLibrary _lib, NSDictionary headerFields, NSURL URL) { + final _ret = _lib._objc_msgSend_853( _lib._class_NSHTTPCookie1, _lib._sel_cookiesWithResponseHeaderFields_forURL_1, - headerFields?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr); + headerFields._id, + URL._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSDictionary? get properties { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_properties1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_properties1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -52731,22 +60283,18 @@ class NSHTTPCookie extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_version1); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get value { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get value { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_value1); + return NSString._(_ret, _lib, retain: true, release: true); } NSDate? get expiresDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_expiresDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_expiresDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -52756,18 +60304,14 @@ class NSHTTPCookie extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get path { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_path1); + return NSString._(_ret, _lib, retain: true, release: true); } bool get secure { @@ -52779,28 +60323,37 @@ class NSHTTPCookie extends NSObject { } NSString? get comment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_comment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSURL? get commentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_commentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSArray? get portList { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_portList1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_portList1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSHTTPCookieStringPolicy get sameSitePolicy { - return _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); + NSString? get sameSitePolicy { + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sameSitePolicy1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + @override + NSHTTPCookie init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } static NSHTTPCookie new1(SwiftLibrary _lib) { @@ -52809,6 +60362,13 @@ class NSHTTPCookie extends NSObject { return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } + static NSHTTPCookie allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookie1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + } + static NSHTTPCookie alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); @@ -52819,18 +60379,18 @@ class NSHTTPCookie extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -52845,33 +60405,29 @@ class NSHTTPCookie extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookie1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSHTTPCookie1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookie1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSHTTPCookie1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSHTTPCookie1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -52883,8 +60439,6 @@ class NSHTTPCookie extends NSObject { } } -typedef NSHTTPCookieStringPolicy = ffi.Pointer; - abstract class NSHTTPCookieAcceptPolicy { static const int NSHTTPCookieAcceptPolicyAlways = 0; static const int NSHTTPCookieAcceptPolicyNever = 1; @@ -52920,135 +60474,133 @@ class NSURLSessionTask extends NSObject { } NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_originalRequest1); + final _ret = _lib._objc_msgSend_876(_id, _lib._sel_originalRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_currentRequest1); + final _ret = _lib._objc_msgSend_876(_id, _lib._sel_currentRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLResponse? get response { - final _ret = _lib._objc_msgSend_763(_id, _lib._sel_response1); + final _ret = _lib._objc_msgSend_878(_id, _lib._sel_response1); return _ret.address == 0 ? null : NSURLResponse._(_ret, _lib, retain: true, release: true); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSProgress? get progress { - final _ret = _lib._objc_msgSend_577(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSProgress get progress { + final _ret = _lib._objc_msgSend_879(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_earliestBeginDate1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_earliestBeginDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } set earliestBeginDate(NSDate? value) { - _lib._objc_msgSend_493( + return _lib._objc_msgSend_800( _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_584( + return _lib._objc_msgSend_666( _id, _lib._sel_countOfBytesClientExpectsToSend1); } set countOfBytesClientExpectsToSend(int value) { - _lib._objc_msgSend_585( + return _lib._objc_msgSend_667( _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_584( + return _lib._objc_msgSend_666( _id, _lib._sel_countOfBytesClientExpectsToReceive1); } set countOfBytesClientExpectsToReceive(int value) { - _lib._objc_msgSend_585( + return _lib._objc_msgSend_667( _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } int get countOfBytesSent { - return _lib._objc_msgSend_584(_id, _lib._sel_countOfBytesSent1); + return _lib._objc_msgSend_666(_id, _lib._sel_countOfBytesSent1); } int get countOfBytesReceived { - return _lib._objc_msgSend_584(_id, _lib._sel_countOfBytesReceived1); + return _lib._objc_msgSend_666(_id, _lib._sel_countOfBytesReceived1); } int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_584(_id, _lib._sel_countOfBytesExpectedToSend1); + return _lib._objc_msgSend_666(_id, _lib._sel_countOfBytesExpectedToSend1); } int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_584( + return _lib._objc_msgSend_666( _id, _lib._sel_countOfBytesExpectedToReceive1); } NSString? get taskDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_taskDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set taskDescription(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } int get state { - return _lib._objc_msgSend_764(_id, _lib._sel_state1); + return _lib._objc_msgSend_880(_id, _lib._sel_state1); } NSError? get error { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); } void suspend() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } double get priority { - return _lib._objc_msgSend_215(_id, _lib._sel_priority1); + return _lib._objc_msgSend_239(_id, _lib._sel_priority1); } set priority(double value) { - _lib._objc_msgSend_765(_id, _lib._sel_setPriority_1, value); + return _lib._objc_msgSend_881(_id, _lib._sel_setPriority_1, value); } bool get prefersIncrementalDelivery { @@ -53056,7 +60608,7 @@ class NSURLSessionTask extends NSObject { } set prefersIncrementalDelivery(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } @@ -53072,6 +60624,13 @@ class NSURLSessionTask extends NSObject { return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionTask allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); @@ -53082,18 +60641,18 @@ class NSURLSessionTask extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53108,33 +60667,29 @@ class NSURLSessionTask extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53169,9 +60724,9 @@ class NSURLRequest extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); } - static NSURLRequest requestWithURL_(SwiftLibrary _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + static NSURLRequest requestWithURL_(SwiftLibrary _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_262( + _lib._class_NSURLRequest1, _lib._sel_requestWithURL_1, URL._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } @@ -53181,57 +60736,56 @@ class NSURLRequest extends NSObject { } static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SwiftLibrary _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_747( + SwiftLibrary _lib, NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( _lib._class_NSURLRequest1, _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, cachePolicy, timeoutInterval); return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + NSURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_262(_id, _lib._sel_initWithURL_1, URL._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_747( + NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( _id, _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, cachePolicy, timeoutInterval); return NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } int get cachePolicy { - return _lib._objc_msgSend_748(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_859(_id, _lib._sel_cachePolicy1); } double get timeoutInterval { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutInterval1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutInterval1); } NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } int get networkServiceType { - return _lib._objc_msgSend_749(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_860(_id, _lib._sel_networkServiceType1); } bool get allowsCellularAccess { @@ -53252,38 +60806,44 @@ class NSURLRequest extends NSObject { } int get attribution { - return _lib._objc_msgSend_750(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_861(_id, _lib._sel_attribution1); + } + + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_HTTPMethod1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_allHTTPHeaderFields1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? valueForHTTPHeaderField_(NSString field) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_valueForHTTPHeaderField_1, field._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_760(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_875(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); @@ -53297,12 +60857,25 @@ class NSURLRequest extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } + @override + NSURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + static NSURLRequest new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); return NSURLRequest._(_ret, _lib, retain: false, release: true); } + static NSURLRequest allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + static NSURLRequest alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); @@ -53313,18 +60886,18 @@ class NSURLRequest extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53339,33 +60912,29 @@ class NSURLRequest extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53428,12 +60997,12 @@ class NSInputStream extends NSStream { } int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_752(_id, _lib._sel_read_maxLength_1, buffer, len); + return _lib._objc_msgSend_864(_id, _lib._sel_read_maxLength_1, buffer, len); } - bool getBuffer_length_( - ffi.Pointer> buffer, ffi.Pointer len) { - return _lib._objc_msgSend_759( + bool getBuffer_length_(ffi.Pointer> buffer, + ffi.Pointer len) { + return _lib._objc_msgSend_873( _id, _lib._sel_getBuffer_length_1, buffer, len); } @@ -53441,53 +61010,62 @@ class NSInputStream extends NSStream { return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); } - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSInputStream initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSInputStream._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSInputStream? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_277(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithFileAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + NSInputStream? initWithFileAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithData_(SwiftLibrary _lib, NSData? data) { - final _ret = _lib._objc_msgSend_242(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithData_(SwiftLibrary _lib, NSData data) { + final _ret = _lib._objc_msgSend_874( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithData_1, data._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithFileAtPath_( - SwiftLibrary _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithFileAtPath_( + SwiftLibrary _lib, NSString path) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithURL_(SwiftLibrary _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithURL_(SwiftLibrary _lib, NSURL url) { + final _ret = _lib._objc_msgSend_277( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithURL_1, url._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } static void getStreamsToHostWithName_port_inputStream_outputStream_( SwiftLibrary _lib, - NSString? hostname, + NSString hostname, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_754( + _lib._objc_msgSend_867( _lib._class_NSInputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -53495,14 +61073,14 @@ class NSInputStream extends NSStream { static void getStreamsToHost_port_inputStream_outputStream_( SwiftLibrary _lib, - NSHost? host, + NSHost host, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_757( + _lib._objc_msgSend_871( _lib._class_NSInputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -53513,7 +61091,7 @@ class NSInputStream extends NSStream { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_758( + _lib._objc_msgSend_872( _lib._class_NSInputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -53521,12 +61099,25 @@ class NSInputStream extends NSStream { outputStream); } + @override + NSInputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + static NSInputStream new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); return NSInputStream._(_ret, _lib, retain: false, release: true); } + static NSInputStream allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInputStream1, _lib._sel_allocWithZone_1, zone); + return NSInputStream._(_ret, _lib, retain: false, release: true); + } + static NSInputStream alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); @@ -53537,18 +61128,18 @@ class NSInputStream extends NSStream { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInputStream1, + _lib._objc_msgSend_15(_lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53563,33 +61154,29 @@ class NSInputStream extends NSStream { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSInputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSInputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSInputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53625,51 +61212,54 @@ class NSStream extends NSObject { } void open() { - return _lib._objc_msgSend_1(_id, _lib._sel_open1); + _lib._objc_msgSend_1(_id, _lib._sel_open1); } void close() { - return _lib._objc_msgSend_1(_id, _lib._sel_close1); + _lib._objc_msgSend_1(_id, _lib._sel_close1); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSObject propertyForKey_(NSStreamPropertyKey key) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? propertyForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_propertyForKey_1, key._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - bool setProperty_forKey_(NSObject property, NSStreamPropertyKey key) { - return _lib._objc_msgSend_225( - _id, _lib._sel_setProperty_forKey_1, property._id, key); + bool setProperty_forKey_(NSObject? property, NSString key) { + return _lib._objc_msgSend_862(_id, _lib._sel_setProperty_forKey_1, + property?._id ?? ffi.nullptr, key._id); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); } int get streamStatus { - return _lib._objc_msgSend_751(_id, _lib._sel_streamStatus1); + return _lib._objc_msgSend_863(_id, _lib._sel_streamStatus1); } NSError? get streamError { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_streamError1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_streamError1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); @@ -53677,14 +61267,14 @@ class NSStream extends NSObject { static void getStreamsToHostWithName_port_inputStream_outputStream_( SwiftLibrary _lib, - NSString? hostname, + NSString hostname, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_754( + _lib._objc_msgSend_867( _lib._class_NSStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -53692,14 +61282,14 @@ class NSStream extends NSObject { static void getStreamsToHost_port_inputStream_outputStream_( SwiftLibrary _lib, - NSHost? host, + NSHost host, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_757( + _lib._objc_msgSend_871( _lib._class_NSStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -53710,7 +61300,7 @@ class NSStream extends NSObject { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_758( + _lib._objc_msgSend_872( _lib._class_NSStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -53718,11 +61308,23 @@ class NSStream extends NSObject { outputStream); } + @override + NSStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSStream._(_ret, _lib, retain: true, release: true); + } + static NSStream new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); return NSStream._(_ret, _lib, retain: false, release: true); } + static NSStream allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSStream1, _lib._sel_allocWithZone_1, zone); + return NSStream._(_ret, _lib, retain: false, release: true); + } + static NSStream alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); return NSStream._(_ret, _lib, retain: false, release: true); @@ -53732,18 +61334,18 @@ class NSStream extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._objc_msgSend_15(_lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53758,33 +61360,29 @@ class NSStream extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -53796,8 +61394,6 @@ class NSStream extends NSObject { } } -typedef NSStreamPropertyKey = ffi.Pointer; - abstract class NSStreamStatus { static const int NSStreamStatusNotOpen = 0; static const int NSStreamStatusOpening = 1; @@ -53833,7 +61429,7 @@ class NSOutputStream extends NSStream { } int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_752( + return _lib._objc_msgSend_864( _id, _lib._sel_write_maxLength_1, buffer, len); } @@ -53848,21 +61444,25 @@ class NSOutputStream extends NSStream { NSOutputStream initToBuffer_capacity_( ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_753( + final _ret = _lib._objc_msgSend_865( _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_231(_id, _lib._sel_initWithURL_append_1, - url?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSOutputStream? initWithURL_append_(NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_866( + _id, _lib._sel_initWithURL_append_1, url._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, - path?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSOutputStream? initToFileAtPath_append_(NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_40( + _id, _lib._sel_initToFileAtPath_append_1, path._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } static NSOutputStream outputStreamToMemory(SwiftLibrary _lib) { @@ -53873,41 +61473,37 @@ class NSOutputStream extends NSStream { static NSOutputStream outputStreamToBuffer_capacity_( SwiftLibrary _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_753(_lib._class_NSOutputStream1, + final _ret = _lib._objc_msgSend_865(_lib._class_NSOutputStream1, _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } static NSOutputStream outputStreamToFileAtPath_append_( - SwiftLibrary _lib, NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamToFileAtPath_append_1, - path?._id ?? ffi.nullptr, - shouldAppend); + SwiftLibrary _lib, NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToFileAtPath_append_1, path._id, shouldAppend); return NSOutputStream._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamWithURL_append_( - SwiftLibrary _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_231( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamWithURL_append_1, - url?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + static NSOutputStream? outputStreamWithURL_append_( + SwiftLibrary _lib, NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_866(_lib._class_NSOutputStream1, + _lib._sel_outputStreamWithURL_append_1, url._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } static void getStreamsToHostWithName_port_inputStream_outputStream_( SwiftLibrary _lib, - NSString? hostname, + NSString hostname, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_754( + _lib._objc_msgSend_867( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -53915,14 +61511,14 @@ class NSOutputStream extends NSStream { static void getStreamsToHost_port_inputStream_outputStream_( SwiftLibrary _lib, - NSHost? host, + NSHost host, int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_757( + _lib._objc_msgSend_871( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -53933,7 +61529,7 @@ class NSOutputStream extends NSStream { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_758( + _lib._objc_msgSend_872( _lib._class_NSOutputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -53941,12 +61537,25 @@ class NSOutputStream extends NSStream { outputStream); } + @override + NSOutputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + static NSOutputStream new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); return NSOutputStream._(_ret, _lib, retain: false, release: true); } + static NSOutputStream allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOutputStream1, _lib._sel_allocWithZone_1, zone); + return NSOutputStream._(_ret, _lib, retain: false, release: true); + } + static NSOutputStream alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); @@ -53957,18 +61566,18 @@ class NSOutputStream extends NSStream { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + _lib._objc_msgSend_15(_lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53983,33 +61592,29 @@ class NSOutputStream extends NSStream { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOutputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOutputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOutputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOutputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOutputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54050,59 +61655,54 @@ class NSHost extends NSObject { } static NSHost hostWithName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + final _ret = _lib._objc_msgSend_868(_lib._class_NSHost1, _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); return NSHost._(_ret, _lib, retain: true, release: true); } - static NSHost hostWithAddress_(SwiftLibrary _lib, NSString? address) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); + static NSHost hostWithAddress_(SwiftLibrary _lib, NSString address) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSHost1, _lib._sel_hostWithAddress_1, address._id); return NSHost._(_ret, _lib, retain: true, release: true); } - bool isEqualToHost_(NSHost? aHost) { - return _lib._objc_msgSend_755( - _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); + bool isEqualToHost_(NSHost aHost) { + return _lib._objc_msgSend_869(_id, _lib._sel_isEqualToHost_1, aHost._id); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get names { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_names1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get names { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_names1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get address { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_address1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_addresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get addresses { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_addresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get localizedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localizedName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } static void setHostCacheEnabled_(SwiftLibrary _lib, bool flag) { - return _lib._objc_msgSend_756( + _lib._objc_msgSend_870( _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); } @@ -54112,7 +61712,13 @@ class NSHost extends NSObject { } static void flushHostCache(SwiftLibrary _lib) { - return _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + } + + @override + NSHost init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHost._(_ret, _lib, retain: true, release: true); } static NSHost new1(SwiftLibrary _lib) { @@ -54120,6 +61726,12 @@ class NSHost extends NSObject { return NSHost._(_ret, _lib, retain: false, release: true); } + static NSHost allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHost1, _lib._sel_allocWithZone_1, zone); + return NSHost._(_ret, _lib, retain: false, release: true); + } + static NSHost alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); return NSHost._(_ret, _lib, retain: false, release: true); @@ -54129,18 +61741,18 @@ class NSHost extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSHost1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._objc_msgSend_15(_lib._class_NSHost1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54155,33 +61767,29 @@ class NSHost extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHost1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSHost1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHost1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSHost1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSHost1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54217,11 +61825,11 @@ class NSURLResponse extends NSObject { } NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_762( + NSURL URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_877( _id, _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, + URL._id, MIMEType?._id ?? ffi.nullptr, length, name?._id ?? ffi.nullptr); @@ -54229,43 +61837,56 @@ class NSURLResponse extends NSObject { } NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get expectedContentLength { - return _lib._objc_msgSend_214(_id, _lib._sel_expectedContentLength1); + return _lib._objc_msgSend_238(_id, _lib._sel_expectedContentLength1); } NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_textEncodingName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_suggestedFilename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } + @override + NSURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); + } + static NSURLResponse new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); return NSURLResponse._(_ret, _lib, retain: false, release: true); } + static NSURLResponse allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSURLResponse._(_ret, _lib, retain: false, release: true); + } + static NSURLResponse alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); @@ -54276,18 +61897,18 @@ class NSURLResponse extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54302,33 +61923,29 @@ class NSURLResponse extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54347,72 +61964,113 @@ abstract class NSURLSessionTaskState { static const int NSURLSessionTaskStateCompleted = 3; } -void _ObjCBlock30_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock30_closureRegistry = {}; -int _ObjCBlock30_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { - final id = ++_ObjCBlock30_closureRegistryIndex; - _ObjCBlock30_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSArray_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock30_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock30_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock30 extends _ObjCBlockBase { - ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock30.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock30_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock30.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray.fromFunction( + SwiftLibrary lib, void Function(NSArray?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock30_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(), - _ObjCBlock30_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray.listener( + SwiftLibrary lib, void Function(NSArray?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSArray? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } class NSIndexPath extends NSObject { @@ -54439,44 +62097,44 @@ class NSIndexPath extends NSObject { } static NSIndexPath indexPathWithIndex_(SwiftLibrary _lib, int index) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } static NSIndexPath indexPathWithIndexes_length_( - SwiftLibrary _lib, ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_768(_lib._class_NSIndexPath1, + SwiftLibrary _lib, ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_884(_lib._class_NSIndexPath1, _lib._sel_indexPathWithIndexes_length_1, indexes, length); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath initWithIndexes_length_( - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_768( + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_884( _id, _lib._sel_initWithIndexes_length_1, indexes, length); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath initWithIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); + final _ret = _lib._objc_msgSend_65(_id, _lib._sel_initWithIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath indexPathByAddingIndex_(int index) { final _ret = - _lib._objc_msgSend_769(_id, _lib._sel_indexPathByAddingIndex_1, index); + _lib._objc_msgSend_885(_id, _lib._sel_indexPathByAddingIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath indexPathByRemovingLastIndex() { final _ret = - _lib._objc_msgSend_770(_id, _lib._sel_indexPathByRemovingLastIndex1); + _lib._objc_msgSend_886(_id, _lib._sel_indexPathByRemovingLastIndex1); return NSIndexPath._(_ret, _lib, retain: true, release: true); } int indexAtPosition_(int position) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexAtPosition_1, position); + return _lib._objc_msgSend_94(_id, _lib._sel_indexAtPosition_1, position); } int get length { @@ -54484,18 +62142,23 @@ class NSIndexPath extends NSObject { } void getIndexes_range_( - ffi.Pointer indexes, NSRange positionRange) { - return _lib._objc_msgSend_771( + ffi.Pointer indexes, _NSRange positionRange) { + _lib._objc_msgSend_887( _id, _lib._sel_getIndexes_range_1, indexes, positionRange); } - int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_772( - _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); + int compare_(NSIndexPath otherObject) { + return _lib._objc_msgSend_888(_id, _lib._sel_compare_1, otherObject._id); } - void getIndexes_(ffi.Pointer indexes) { - return _lib._objc_msgSend_773(_id, _lib._sel_getIndexes_1, indexes); + void getIndexes_(ffi.Pointer indexes) { + _lib._objc_msgSend_889(_id, _lib._sel_getIndexes_1, indexes); + } + + @override + NSIndexPath init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } static NSIndexPath new1(SwiftLibrary _lib) { @@ -54503,6 +62166,13 @@ class NSIndexPath extends NSObject { return NSIndexPath._(_ret, _lib, retain: false, release: true); } + static NSIndexPath allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexPath1, _lib._sel_allocWithZone_1, zone); + return NSIndexPath._(_ret, _lib, retain: false, release: true); + } + static NSIndexPath alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); @@ -54513,18 +62183,18 @@ class NSIndexPath extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexPath1, + _lib._objc_msgSend_15(_lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54539,33 +62209,29 @@ class NSIndexPath extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexPath1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSIndexPath1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexPath1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSIndexPath1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSIndexPath1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54607,17 +62273,15 @@ class NSInflectionRule extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - static NSInflectionRule? getAutomaticRule(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_774( + static NSInflectionRule getAutomaticRule(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_890( _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); - return _ret.address == 0 - ? null - : NSInflectionRule._(_ret, _lib, retain: true, release: true); + return NSInflectionRule._(_ret, _lib, retain: true, release: true); } - static bool canInflectLanguage_(SwiftLibrary _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, - _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); + static bool canInflectLanguage_(SwiftLibrary _lib, NSString language) { + return _lib._objc_msgSend_64(_lib._class_NSInflectionRule1, + _lib._sel_canInflectLanguage_1, language._id); } static bool getCanInflectPreferredLocalization(SwiftLibrary _lib) { @@ -54631,6 +62295,13 @@ class NSInflectionRule extends NSObject { return NSInflectionRule._(_ret, _lib, retain: false, release: true); } + static NSInflectionRule allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInflectionRule1, _lib._sel_allocWithZone_1, zone); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); + } + static NSInflectionRule alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); @@ -54641,18 +62312,18 @@ class NSInflectionRule extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54667,33 +62338,29 @@ class NSInflectionRule extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInflectionRule1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSInflectionRule1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInflectionRule1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSInflectionRule1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSInflectionRule1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSInflectionRule1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSInflectionRule1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54729,42 +62396,84 @@ class NSMorphology extends NSObject { } int get grammaticalGender { - return _lib._objc_msgSend_775(_id, _lib._sel_grammaticalGender1); + return _lib._objc_msgSend_891(_id, _lib._sel_grammaticalGender1); } set grammaticalGender(int value) { - _lib._objc_msgSend_776(_id, _lib._sel_setGrammaticalGender_1, value); + return _lib._objc_msgSend_892(_id, _lib._sel_setGrammaticalGender_1, value); } int get partOfSpeech { - return _lib._objc_msgSend_777(_id, _lib._sel_partOfSpeech1); + return _lib._objc_msgSend_893(_id, _lib._sel_partOfSpeech1); } set partOfSpeech(int value) { - _lib._objc_msgSend_778(_id, _lib._sel_setPartOfSpeech_1, value); + return _lib._objc_msgSend_894(_id, _lib._sel_setPartOfSpeech_1, value); } int get number { - return _lib._objc_msgSend_779(_id, _lib._sel_number1); + return _lib._objc_msgSend_895(_id, _lib._sel_number1); } set number(int value) { - _lib._objc_msgSend_780(_id, _lib._sel_setNumber_1, value); + return _lib._objc_msgSend_896(_id, _lib._sel_setNumber_1, value); } - NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_781(_id, - _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + int get grammaticalCase { + return _lib._objc_msgSend_897(_id, _lib._sel_grammaticalCase1); + } + + set grammaticalCase(int value) { + return _lib._objc_msgSend_898(_id, _lib._sel_setGrammaticalCase_1, value); + } + + int get determination { + return _lib._objc_msgSend_899(_id, _lib._sel_determination1); + } + + set determination(int value) { + return _lib._objc_msgSend_900(_id, _lib._sel_setDetermination_1, value); + } + + int get grammaticalPerson { + return _lib._objc_msgSend_901(_id, _lib._sel_grammaticalPerson1); + } + + set grammaticalPerson(int value) { + return _lib._objc_msgSend_902(_id, _lib._sel_setGrammaticalPerson_1, value); + } + + int get pronounType { + return _lib._objc_msgSend_903(_id, _lib._sel_pronounType1); + } + + set pronounType(int value) { + return _lib._objc_msgSend_904(_id, _lib._sel_setPronounType_1, value); + } + + int get definiteness { + return _lib._objc_msgSend_905(_id, _lib._sel_definiteness1); + } + + set definiteness(int value) { + return _lib._objc_msgSend_906(_id, _lib._sel_setDefiniteness_1, value); + } + + NSMorphologyCustomPronoun? customPronounForLanguage_(NSString language) { + final _ret = _lib._objc_msgSend_907( + _id, _lib._sel_customPronounForLanguage_1, language._id); + return _ret.address == 0 + ? null + : NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, - NSString? language, ffi.Pointer> error) { - return _lib._objc_msgSend_782( + NSString language, ffi.Pointer> error) { + return _lib._objc_msgSend_908( _id, _lib._sel_setCustomPronoun_forLanguage_error_1, features?._id ?? ffi.nullptr, - language?._id ?? ffi.nullptr, + language._id, error); } @@ -54772,12 +62481,16 @@ class NSMorphology extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); } - static NSMorphology? getUserMorphology(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_783( + static NSMorphology getUserMorphology(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_909( _lib._class_NSMorphology1, _lib._sel_userMorphology1); - return _ret.address == 0 - ? null - : NSMorphology._(_ret, _lib, retain: true, release: true); + return NSMorphology._(_ret, _lib, retain: true, release: true); + } + + @override + NSMorphology init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphology._(_ret, _lib, retain: true, release: true); } static NSMorphology new1(SwiftLibrary _lib) { @@ -54786,6 +62499,13 @@ class NSMorphology extends NSObject { return NSMorphology._(_ret, _lib, retain: false, release: true); } + static NSMorphology allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMorphology1, _lib._sel_allocWithZone_1, zone); + return NSMorphology._(_ret, _lib, retain: false, release: true); + } + static NSMorphology alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); @@ -54796,18 +62516,18 @@ class NSMorphology extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._objc_msgSend_15(_lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54822,33 +62542,29 @@ class NSMorphology extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphology1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMorphology1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphology1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMorphology1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMorphology1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -54895,6 +62611,50 @@ abstract class NSGrammaticalNumber { static const int NSGrammaticalNumberPluralMany = 6; } +abstract class NSGrammaticalCase { + static const int NSGrammaticalCaseNotSet = 0; + static const int NSGrammaticalCaseNominative = 1; + static const int NSGrammaticalCaseAccusative = 2; + static const int NSGrammaticalCaseDative = 3; + static const int NSGrammaticalCaseGenitive = 4; + static const int NSGrammaticalCasePrepositional = 5; + static const int NSGrammaticalCaseAblative = 6; + static const int NSGrammaticalCaseAdessive = 7; + static const int NSGrammaticalCaseAllative = 8; + static const int NSGrammaticalCaseElative = 9; + static const int NSGrammaticalCaseIllative = 10; + static const int NSGrammaticalCaseEssive = 11; + static const int NSGrammaticalCaseInessive = 12; + static const int NSGrammaticalCaseLocative = 13; + static const int NSGrammaticalCaseTranslative = 14; +} + +abstract class NSGrammaticalDetermination { + static const int NSGrammaticalDeterminationNotSet = 0; + static const int NSGrammaticalDeterminationIndependent = 1; + static const int NSGrammaticalDeterminationDependent = 2; +} + +abstract class NSGrammaticalPerson { + static const int NSGrammaticalPersonNotSet = 0; + static const int NSGrammaticalPersonFirst = 1; + static const int NSGrammaticalPersonSecond = 2; + static const int NSGrammaticalPersonThird = 3; +} + +abstract class NSGrammaticalPronounType { + static const int NSGrammaticalPronounTypeNotSet = 0; + static const int NSGrammaticalPronounTypePersonal = 1; + static const int NSGrammaticalPronounTypeReflexive = 2; + static const int NSGrammaticalPronounTypePossessive = 3; +} + +abstract class NSGrammaticalDefiniteness { + static const int NSGrammaticalDefinitenessNotSet = 0; + static const int NSGrammaticalDefinitenessIndefinite = 1; + static const int NSGrammaticalDefinitenessDefinite = 2; +} + class NSMorphologyCustomPronoun extends NSObject { NSMorphologyCustomPronoun._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -54920,78 +62680,84 @@ class NSMorphologyCustomPronoun extends NSObject { obj._lib._class_NSMorphologyCustomPronoun1); } - static bool isSupportedForLanguage_(SwiftLibrary _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); + static bool isSupportedForLanguage_(SwiftLibrary _lib, NSString language) { + return _lib._objc_msgSend_64(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_isSupportedForLanguage_1, language._id); } static NSArray requiredKeysForLanguage_( - SwiftLibrary _lib, NSString? language) { - final _ret = _lib._objc_msgSend_119(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString language) { + final _ret = _lib._objc_msgSend_358(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_requiredKeysForLanguage_1, language._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSString? get subjectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_subjectForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set subjectForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); } NSString? get objectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_objectForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set objectForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); } NSString? get possessiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set possessiveForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); } NSString? get possessiveAdjectiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveAdjectiveForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set possessiveAdjectiveForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); } NSString? get reflexiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_reflexiveForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set reflexiveForm(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); } + @override + NSMorphologyCustomPronoun init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + } + static NSMorphologyCustomPronoun new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); @@ -54999,6 +62765,14 @@ class NSMorphologyCustomPronoun extends NSObject { retain: false, release: true); } + static NSMorphologyCustomPronoun allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_allocWithZone_1, zone); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); + } + static NSMorphologyCustomPronoun alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); @@ -55010,18 +62784,18 @@ class NSMorphologyCustomPronoun extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55036,33 +62810,29 @@ class NSMorphologyCustomPronoun extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMorphologyCustomPronoun1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55098,42 +62868,34 @@ class NSOperationQueue extends NSObject { obj._lib._class_NSOperationQueue1); } - NSProgress? get progress { - final _ret = _lib._objc_msgSend_577(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSProgress get progress { + final _ret = _lib._objc_msgSend_879(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void addOperation_(NSOperation? op) { - return _lib._objc_msgSend_784( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + void addOperation_(NSOperation op) { + _lib._objc_msgSend_910(_id, _lib._sel_addOperation_1, op._id); } - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - return _lib._objc_msgSend_787( - _id, - _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, - wait); + void addOperations_waitUntilFinished_(NSArray ops, bool wait) { + _lib._objc_msgSend_913( + _id, _lib._sel_addOperations_waitUntilFinished_1, ops._id, wait); } - void addOperationWithBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_465( - _id, _lib._sel_addOperationWithBlock_1, block._id); + void addOperationWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_532(_id, _lib._sel_addOperationWithBlock_1, block._id); } - void addBarrierBlock_(ObjCBlock16 barrier) { - return _lib._objc_msgSend_465( - _id, _lib._sel_addBarrierBlock_1, barrier._id); + void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { + _lib._objc_msgSend_532(_id, _lib._sel_addBarrierBlock_1, barrier._id); } int get maxConcurrentOperationCount { - return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); + return _lib._objc_msgSend_83(_id, _lib._sel_maxConcurrentOperationCount1); } set maxConcurrentOperationCount(int value) { - _lib._objc_msgSend_558( + return _lib._objc_msgSend_635( _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } @@ -55142,78 +62904,87 @@ class NSOperationQueue extends NSObject { } set suspended(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setSuspended_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setSuspended_1, value); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } - dispatch_queue_t get underlyingQueue { - return _lib._objc_msgSend_788(_id, _lib._sel_underlyingQueue1); + ffi.Pointer get underlyingQueue { + return _lib._objc_msgSend_914(_id, _lib._sel_underlyingQueue1); } - set underlyingQueue(dispatch_queue_t value) { - _lib._objc_msgSend_789(_id, _lib._sel_setUnderlyingQueue_1, value); + set underlyingQueue(ffi.Pointer value) { + return _lib._objc_msgSend_915(_id, _lib._sel_setUnderlyingQueue_1, value); } void cancelAllOperations() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); } void waitUntilAllOperationsAreFinished() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitUntilAllOperationsAreFinished1); + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); } static NSOperationQueue? getCurrentQueue(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_790( + final _ret = _lib._objc_msgSend_916( _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); return _ret.address == 0 ? null : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - static NSOperationQueue? getMainQueue(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_790( + static NSOperationQueue getMainQueue(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_917( _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } - NSArray? get operations { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get operations { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_operations1); + return NSArray._(_ret, _lib, retain: true, release: true); } int get operationCount { return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); } + @override + NSOperationQueue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + static NSOperationQueue new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); return NSOperationQueue._(_ret, _lib, retain: false, release: true); } + static NSOperationQueue allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOperationQueue1, _lib._sel_allocWithZone_1, zone); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } + static NSOperationQueue alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); @@ -55224,18 +62995,18 @@ class NSOperationQueue extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55250,33 +63021,29 @@ class NSOperationQueue extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperationQueue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOperationQueue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperationQueue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOperationQueue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOperationQueue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSOperationQueue1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSOperationQueue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55312,11 +63079,11 @@ class NSOperation extends NSObject { } void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + _lib._objc_msgSend_1(_id, _lib._sel_start1); } void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); + _lib._objc_msgSend_1(_id, _lib._sel_main1); } bool get cancelled { @@ -55324,7 +63091,7 @@ class NSOperation extends NSObject { } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } bool get executing { @@ -55347,69 +63114,75 @@ class NSOperation extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); } - void addDependency_(NSOperation? op) { - return _lib._objc_msgSend_784( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + void addDependency_(NSOperation op) { + _lib._objc_msgSend_910(_id, _lib._sel_addDependency_1, op._id); } - void removeDependency_(NSOperation? op) { - return _lib._objc_msgSend_784( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + void removeDependency_(NSOperation op) { + _lib._objc_msgSend_910(_id, _lib._sel_removeDependency_1, op._id); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_dependencies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get dependencies { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_dependencies1); + return NSArray._(_ret, _lib, retain: true, release: true); } int get queuePriority { - return _lib._objc_msgSend_785(_id, _lib._sel_queuePriority1); + return _lib._objc_msgSend_911(_id, _lib._sel_queuePriority1); } set queuePriority(int value) { - _lib._objc_msgSend_786(_id, _lib._sel_setQueuePriority_1, value); + return _lib._objc_msgSend_912(_id, _lib._sel_setQueuePriority_1, value); } - ObjCBlock16 get completionBlock { - final _ret = _lib._objc_msgSend_586(_id, _lib._sel_completionBlock1); - return ObjCBlock16._(_ret, _lib); + ObjCBlock_ffiVoid? get completionBlock { + final _ret = _lib._objc_msgSend_668(_id, _lib._sel_completionBlock1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set completionBlock(ObjCBlock16 value) { - _lib._objc_msgSend_587(_id, _lib._sel_setCompletionBlock_1, value._id); + set completionBlock(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_669( + _id, _lib._sel_setCompletionBlock_1, value?._id ?? ffi.nullptr); } void waitUntilFinished() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); } double get threadPriority { - return _lib._objc_msgSend_149(_id, _lib._sel_threadPriority1); + return _lib._objc_msgSend_165(_id, _lib._sel_threadPriority1); } set threadPriority(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setThreadPriority_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setThreadPriority_1, value); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + @override + NSOperation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOperation._(_ret, _lib, retain: true, release: true); } static NSOperation new1(SwiftLibrary _lib) { @@ -55417,6 +63190,13 @@ class NSOperation extends NSObject { return NSOperation._(_ret, _lib, retain: false, release: true); } + static NSOperation allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOperation1, _lib._sel_allocWithZone_1, zone); + return NSOperation._(_ret, _lib, retain: false, release: true); + } + static NSOperation alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); @@ -55427,18 +63207,18 @@ class NSOperation extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperation1, + _lib._objc_msgSend_15(_lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55453,33 +63233,29 @@ class NSOperation extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSOperation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSOperation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSOperation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55499,7 +63275,7 @@ abstract class NSOperationQueuePriority { static const int NSOperationQueuePriorityVeryHigh = 8; } -typedef dispatch_queue_t = ffi.Pointer; +final class dispatch_queue_s extends ffi.Opaque {} class NSPointerArray extends NSObject { NSPointerArray._(ffi.Pointer id, SwiftLibrary lib, @@ -55526,64 +63302,59 @@ class NSPointerArray extends NSObject { NSPointerArray initWithOptions_(int options) { final _ret = - _lib._objc_msgSend_791(_id, _lib._sel_initWithOptions_1, options); + _lib._objc_msgSend_918(_id, _lib._sel_initWithOptions_1, options); return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_805(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); + NSPointerArray initWithPointerFunctions_(NSPointerFunctions functions) { + final _ret = _lib._objc_msgSend_932( + _id, _lib._sel_initWithPointerFunctions_1, functions._id); return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray pointerArrayWithOptions_( SwiftLibrary _lib, int options) { - final _ret = _lib._objc_msgSend_806(_lib._class_NSPointerArray1, + final _ret = _lib._objc_msgSend_933(_lib._class_NSPointerArray1, _lib._sel_pointerArrayWithOptions_1, options); return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray pointerArrayWithPointerFunctions_( - SwiftLibrary _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_807( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSPointerFunctions functions) { + final _ret = _lib._objc_msgSend_934(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, functions._id); return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_808(_id, _lib._sel_pointerFunctions1); - return _ret.address == 0 - ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); + NSPointerFunctions get pointerFunctions { + final _ret = _lib._objc_msgSend_935(_id, _lib._sel_pointerFunctions1); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_809(_id, _lib._sel_pointerAtIndex_1, index); + return _lib._objc_msgSend_936(_id, _lib._sel_pointerAtIndex_1, index); } void addPointer_(ffi.Pointer pointer) { - return _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + _lib._objc_msgSend_52(_id, _lib._sel_addPointer_1, pointer); } void removePointerAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removePointerAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removePointerAtIndex_1, index); } void insertPointer_atIndex_(ffi.Pointer item, int index) { - return _lib._objc_msgSend_21( - _id, _lib._sel_insertPointer_atIndex_1, item, index); + _lib._objc_msgSend_22(_id, _lib._sel_insertPointer_atIndex_1, item, index); } void replacePointerAtIndex_withPointer_( int index, ffi.Pointer item) { - return _lib._objc_msgSend_810( + _lib._objc_msgSend_937( _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); } void compact() { - return _lib._objc_msgSend_1(_id, _lib._sel_compact1); + _lib._objc_msgSend_1(_id, _lib._sel_compact1); } int get count { @@ -55591,7 +63362,7 @@ class NSPointerArray extends NSObject { } set count(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setCount_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setCount_1, value); } static NSObject pointerArrayWithStrongObjects(SwiftLibrary _lib) { @@ -55607,22 +63378,26 @@ class NSPointerArray extends NSObject { } static NSPointerArray strongObjectsPointerArray(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_811( + final _ret = _lib._objc_msgSend_938( _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray weakObjectsPointerArray(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_811( + final _ret = _lib._objc_msgSend_938( _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get allObjects { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_allObjects1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSPointerArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } static NSPointerArray new1(SwiftLibrary _lib) { @@ -55631,6 +63406,13 @@ class NSPointerArray extends NSObject { return NSPointerArray._(_ret, _lib, retain: false, release: true); } + static NSPointerArray allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPointerArray1, _lib._sel_allocWithZone_1, zone); + return NSPointerArray._(_ret, _lib, retain: false, release: true); + } + static NSPointerArray alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); @@ -55641,18 +63423,18 @@ class NSPointerArray extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._objc_msgSend_15(_lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55667,33 +63449,29 @@ class NSPointerArray extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPointerArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPointerArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPointerArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -55747,38 +63525,39 @@ class NSPointerFunctions extends NSObject { NSPointerFunctions initWithOptions_(int options) { final _ret = - _lib._objc_msgSend_791(_id, _lib._sel_initWithOptions_1, options); + _lib._objc_msgSend_918(_id, _lib._sel_initWithOptions_1, options); return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } static NSPointerFunctions pointerFunctionsWithOptions_( SwiftLibrary _lib, int options) { - final _ret = _lib._objc_msgSend_792(_lib._class_NSPointerFunctions1, + final _ret = _lib._objc_msgSend_919(_lib._class_NSPointerFunctions1, _lib._sel_pointerFunctionsWithOptions_1, options); return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function(ffi.Pointer)>>)>> get hashFunction { - return _lib._objc_msgSend_793(_id, _lib._sel_hashFunction1); + return _lib._objc_msgSend_920(_id, _lib._sel_hashFunction1); } set hashFunction( ffi.Pointer< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value) { - _lib._objc_msgSend_794(_id, _lib._sel_setHashFunction_1, value); + return _lib._objc_msgSend_921(_id, _lib._sel_setHashFunction_1, value); } ffi.Pointer< @@ -55788,9 +63567,9 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function(ffi.Pointer)>>)>> get isEqualFunction { - return _lib._objc_msgSend_795(_id, _lib._sel_isEqualFunction1); + return _lib._objc_msgSend_922(_id, _lib._sel_isEqualFunction1); } set isEqualFunction( @@ -55801,28 +63580,31 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value) { - _lib._objc_msgSend_796(_id, _lib._sel_setIsEqualFunction_1, value); + return _lib._objc_msgSend_923(_id, _lib._sel_setIsEqualFunction_1, value); } - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction)>> get sizeFunction { - return _lib._objc_msgSend_797(_id, _lib._sel_sizeFunction1); + return _lib._objc_msgSend_924(_id, _lib._sel_sizeFunction1); } set sizeFunction( ffi.Pointer< - ffi.NativeFunction)>> + ffi + .NativeFunction)>> value) { - _lib._objc_msgSend_798(_id, _lib._sel_setSizeFunction_1, value); + return _lib._objc_msgSend_925(_id, _lib._sel_setSizeFunction_1, value); } ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> get descriptionFunction { - return _lib._objc_msgSend_799(_id, _lib._sel_descriptionFunction1); + return _lib._objc_msgSend_926(_id, _lib._sel_descriptionFunction1); } set descriptionFunction( @@ -55830,7 +63612,8 @@ class NSPointerFunctions extends NSObject { ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> value) { - _lib._objc_msgSend_800(_id, _lib._sel_setDescriptionFunction_1, value); + return _lib._objc_msgSend_927( + _id, _lib._sel_setDescriptionFunction_1, value); } ffi.Pointer< @@ -55839,9 +63622,9 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function(ffi.Pointer)>>)>> get relinquishFunction { - return _lib._objc_msgSend_801(_id, _lib._sel_relinquishFunction1); + return _lib._objc_msgSend_928(_id, _lib._sel_relinquishFunction1); } set relinquishFunction( @@ -55851,9 +63634,11 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>)>> + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> value) { - _lib._objc_msgSend_802(_id, _lib._sel_setRelinquishFunction_1, value); + return _lib._objc_msgSend_929( + _id, _lib._sel_setRelinquishFunction_1, value); } ffi.Pointer< @@ -55861,10 +63646,10 @@ class NSPointerFunctions extends NSObject { ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi - .NativeFunction)>>, + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, ffi.Bool)>> get acquireFunction { - return _lib._objc_msgSend_803(_id, _lib._sel_acquireFunction1); + return _lib._objc_msgSend_930(_id, _lib._sel_acquireFunction1); } set acquireFunction( @@ -55874,10 +63659,11 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer< ffi.NativeFunction< - NSUInteger Function(ffi.Pointer)>>, + ffi.UnsignedLong Function( + ffi.Pointer)>>, ffi.Bool)>> value) { - _lib._objc_msgSend_804(_id, _lib._sel_setAcquireFunction_1, value); + return _lib._objc_msgSend_931(_id, _lib._sel_setAcquireFunction_1, value); } bool get usesStrongWriteBarrier { @@ -55885,7 +63671,8 @@ class NSPointerFunctions extends NSObject { } set usesStrongWriteBarrier(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setUsesStrongWriteBarrier_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setUsesStrongWriteBarrier_1, value); } bool get usesWeakReadAndWriteBarriers { @@ -55893,16 +63680,29 @@ class NSPointerFunctions extends NSObject { } set usesWeakReadAndWriteBarriers(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); } + @override + NSPointerFunctions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + static NSPointerFunctions new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } + static NSPointerFunctions allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPointerFunctions1, _lib._sel_allocWithZone_1, zone); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + } + static NSPointerFunctions alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); @@ -55913,18 +63713,18 @@ class NSPointerFunctions extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, + _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55939,33 +63739,29 @@ class NSPointerFunctions extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerFunctions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSPointerFunctions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerFunctions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSPointerFunctions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSPointerFunctions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSPointerFunctions1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSPointerFunctions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56000,56 +63796,43 @@ class NSProcessInfo extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); } - static NSProcessInfo? getProcessInfo(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_812( + static NSProcessInfo getProcessInfo(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_939( _lib._class_NSProcessInfo1, _lib._sel_processInfo1); - return _ret.address == 0 - ? null - : NSProcessInfo._(_ret, _lib, retain: true, release: true); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get environment { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_environment1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get arguments { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_arguments1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get hostName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_hostName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get processName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get processName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_processName1); + return NSString._(_ret, _lib, retain: true, release: true); } - set processName(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + set processName(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setProcessName_1, value._id); } int get processIdentifier { - return _lib._objc_msgSend_213(_id, _lib._sel_processIdentifier1); + return _lib._objc_msgSend_237(_id, _lib._sel_processIdentifier1); } - NSString? get globallyUniqueString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get globallyUniqueString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_globallyUniqueString1); + return NSString._(_ret, _lib, retain: true, release: true); } int operatingSystem() { @@ -56057,20 +63840,18 @@ class NSProcessInfo extends NSObject { } NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_operatingSystemName1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get operatingSystemVersionString { + NSString get operatingSystemVersionString { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_21(_id, _lib._sel_operatingSystemVersionString1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSOperatingSystemVersion get operatingSystemVersion { - return _lib._objc_msgSend_813(_id, _lib._sel_operatingSystemVersion1); + void getOperatingSystemVersion(ffi.Pointer stret) { + _lib._objc_msgSend_940(stret, _id, _lib._sel_operatingSystemVersion1); } int get processorCount { @@ -56082,34 +63863,34 @@ class NSProcessInfo extends NSObject { } int get physicalMemory { - return _lib._objc_msgSend_148(_id, _lib._sel_physicalMemory1); + return _lib._objc_msgSend_164(_id, _lib._sel_physicalMemory1); } bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_814( + return _lib._objc_msgSend_941( _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); } double get systemUptime { - return _lib._objc_msgSend_149(_id, _lib._sel_systemUptime1); + return _lib._objc_msgSend_165(_id, _lib._sel_systemUptime1); } void disableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); } void enableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); } - void disableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_186(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + void disableAutomaticTermination_(NSString reason) { + _lib._objc_msgSend_248( + _id, _lib._sel_disableAutomaticTermination_1, reason._id); } - void enableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_186(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + void enableAutomaticTermination_(NSString reason) { + _lib._objc_msgSend_248( + _id, _lib._sel_enableAutomaticTermination_1, reason._id); } bool get automaticTerminationSupportEnabled { @@ -56118,59 +63899,51 @@ class NSProcessInfo extends NSObject { } set automaticTerminationSupportEnabled(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); } - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_815( - _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); + NSObject beginActivityWithOptions_reason_(int options, NSString reason) { + final _ret = _lib._objc_msgSend_942( + _id, _lib._sel_beginActivityWithOptions_reason_1, options, reason._id); return NSObject._(_ret, _lib, retain: true, release: true); } - void endActivity_(NSObject? activity) { - return _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + void endActivity_(NSObject activity) { + _lib._objc_msgSend_15(_id, _lib._sel_endActivity_1, activity._id); } void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock16 block) { - return _lib._objc_msgSend_816( + int options, NSString reason, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_943( _id, _lib._sel_performActivityWithOptions_reason_usingBlock_1, options, - reason?._id ?? ffi.nullptr, + reason._id, block._id); } void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock31 block) { - return _lib._objc_msgSend_817( + NSString reason, ObjCBlock_ffiVoid_bool block) { + _lib._objc_msgSend_944( _id, _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, + reason._id, block._id); } - NSString? get userName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get userName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_userName1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get fullUserName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get fullUserName { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_fullUserName1); + return NSString._(_ret, _lib, retain: true, release: true); } int get thermalState { - return _lib._objc_msgSend_818(_id, _lib._sel_thermalState1); + return _lib._objc_msgSend_945(_id, _lib._sel_thermalState1); } bool get lowPowerModeEnabled { @@ -56185,12 +63958,25 @@ class NSProcessInfo extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); } + @override + NSProcessInfo init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); + } + static NSProcessInfo new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); return NSProcessInfo._(_ret, _lib, retain: false, release: true); } + static NSProcessInfo allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProcessInfo1, _lib._sel_allocWithZone_1, zone); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); + } + static NSProcessInfo alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); @@ -56201,18 +63987,18 @@ class NSProcessInfo extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, + _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56227,33 +64013,29 @@ class NSProcessInfo extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSProcessInfo1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSProcessInfo1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSProcessInfo1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSProcessInfo1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSProcessInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56266,13 +64048,13 @@ class NSProcessInfo extends NSObject { } final class NSOperatingSystemVersion extends ffi.Struct { - @NSInteger() + @ffi.Long() external int majorVersion; - @NSInteger() + @ffi.Long() external int minorVersion; - @NSInteger() + @ffi.Long() external int patchVersion; } @@ -56281,68 +64063,105 @@ abstract class NSActivityOptions { static const int NSActivityIdleSystemSleepDisabled = 1048576; static const int NSActivitySuddenTerminationDisabled = 16384; static const int NSActivityAutomaticTerminationDisabled = 32768; + static const int NSActivityAnimationTrackingEnabled = 35184372088832; + static const int NSActivityTrackingEnabled = 70368744177664; static const int NSActivityUserInitiated = 16777215; static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; static const int NSActivityBackground = 255; static const int NSActivityLatencyCritical = 1095216660480; + static const int NSActivityUserInteractive = 1095233437695; } -void _ObjCBlock31_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); -} - -final _ObjCBlock31_closureRegistry = {}; -int _ObjCBlock31_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock31_registerClosure(Function fn) { - final id = ++_ObjCBlock31_closureRegistryIndex; - _ObjCBlock31_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure( + void Function(bool) fn) { + final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock31_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return _ObjCBlock31_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + _ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock31 extends _ObjCBlockBase { - ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock31.fromFunctionPointer(SwiftLibrary lib, + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool.fromFunctionPointer(SwiftLibrary lib, ffi.Pointer> ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock31_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Bool)>(_ObjCBlock_ffiVoid_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock31.fromFunction(SwiftLibrary lib, void Function(bool arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_bool.fromFunction(SwiftLibrary lib, void Function(bool) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock31_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>( + _ObjCBlock_ffiVoid_bool_closureTrampoline) .cast(), - _ObjCBlock31_registerClosure(fn)), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), lib); - void call(bool arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_bool.listener(SwiftLibrary lib, void Function(bool) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>.listener( + _ObjCBlock_ffiVoid_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), + lib); + static ffi + .NativeCallable, ffi.Bool)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(bool arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + .asFunction, bool)>()(_id, arg0); } abstract class NSProcessInfoThermalState { @@ -56377,82 +64196,82 @@ class NSTextCheckingResult extends NSObject { } int get resultType { - return _lib._objc_msgSend_819(_id, _lib._sel_resultType1); + return _lib._objc_msgSend_946(_id, _lib._sel_resultType1); } - NSRange get range { - return _lib._objc_msgSend_49(_id, _lib._sel_range1); + void getRange(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_54(stret, _id, _lib._sel_range1); } NSOrthography? get orthography { - final _ret = _lib._objc_msgSend_820(_id, _lib._sel_orthography1); + final _ret = _lib._objc_msgSend_947(_id, _lib._sel_orthography1); return _ret.address == 0 ? null : NSOrthography._(_ret, _lib, retain: true, release: true); } NSArray? get grammarDetails { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_grammarDetails1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_grammarDetails1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSDate? get date { - final _ret = _lib._objc_msgSend_156(_id, _lib._sel_date1); + final _ret = _lib._objc_msgSend_183(_id, _lib._sel_date1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timeZone1); + final _ret = _lib._objc_msgSend_773(_id, _lib._sel_timeZone1); return _ret.address == 0 ? null : NSTimeZone._(_ret, _lib, retain: true, release: true); } double get duration { - return _lib._objc_msgSend_149(_id, _lib._sel_duration1); + return _lib._objc_msgSend_165(_id, _lib._sel_duration1); } NSDictionary? get components { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_components1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_components1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } NSString? get replacementString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_replacementString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSArray? get alternativeStrings { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_alternativeStrings1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_alternativeStrings1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_832(_id, _lib._sel_regularExpression1); + final _ret = _lib._objc_msgSend_959(_id, _lib._sel_regularExpression1); return _ret.address == 0 ? null : NSRegularExpression._(_ret, _lib, retain: true, release: true); } NSString? get phoneNumber { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_phoneNumber1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -56462,188 +64281,184 @@ class NSTextCheckingResult extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); } - NSRange rangeAtIndex_(int idx) { - return _lib._objc_msgSend_308(_id, _lib._sel_rangeAtIndex_1, idx); + void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { + _lib._objc_msgSend_347(stret, _id, _lib._sel_rangeAtIndex_1, idx); } - NSRange rangeWithName_(NSString? name) { - return _lib._objc_msgSend_301( - _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString name) { + _lib._objc_msgSend_340(stret, _id, _lib._sel_rangeWithName_1, name._id); } NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_833( + final _ret = _lib._objc_msgSend_960( _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_addressComponents1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_addressComponents1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - SwiftLibrary _lib, NSRange range, NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_834( + SwiftLibrary _lib, _NSRange range, NSOrthography orthography) { + final _ret = _lib._objc_msgSend_961( _lib._class_NSTextCheckingResult1, _lib._sel_orthographyCheckingResultWithRange_orthography_1, range, - orthography?._id ?? ffi.nullptr); + orthography._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult spellCheckingResultWithRange_( - SwiftLibrary _lib, NSRange range) { - final _ret = _lib._objc_msgSend_835(_lib._class_NSTextCheckingResult1, + SwiftLibrary _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_962(_lib._class_NSTextCheckingResult1, _lib._sel_spellCheckingResultWithRange_1, range); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult grammarCheckingResultWithRange_details_( - SwiftLibrary _lib, NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_836( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); + SwiftLibrary _lib, _NSRange range, NSArray details) { + final _ret = _lib._objc_msgSend_963(_lib._class_NSTextCheckingResult1, + _lib._sel_grammarCheckingResultWithRange_details_1, range, details._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult dateCheckingResultWithRange_date_( - SwiftLibrary _lib, NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_837( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); + SwiftLibrary _lib, _NSRange range, NSDate date) { + final _ret = _lib._objc_msgSend_964(_lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_1, range, date._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult dateCheckingResultWithRange_date_timeZone_duration_(SwiftLibrary _lib, - NSRange range, NSDate? date, NSTimeZone? timeZone, double duration) { - final _ret = _lib._objc_msgSend_838( + _NSRange range, NSDate date, NSTimeZone timeZone, double duration) { + final _ret = _lib._objc_msgSend_965( _lib._class_NSTextCheckingResult1, _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, range, - date?._id ?? ffi.nullptr, - timeZone?._id ?? ffi.nullptr, + date._id, + timeZone._id, duration); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult addressCheckingResultWithRange_components_( - SwiftLibrary _lib, NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_839( + SwiftLibrary _lib, _NSRange range, NSDictionary components) { + final _ret = _lib._objc_msgSend_966( _lib._class_NSTextCheckingResult1, _lib._sel_addressCheckingResultWithRange_components_1, range, - components?._id ?? ffi.nullptr); + components._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult linkCheckingResultWithRange_URL_( - SwiftLibrary _lib, NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_840( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); + SwiftLibrary _lib, _NSRange range, NSURL url) { + final _ret = _lib._objc_msgSend_967(_lib._class_NSTextCheckingResult1, + _lib._sel_linkCheckingResultWithRange_URL_1, range, url._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - SwiftLibrary _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + SwiftLibrary _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_quoteCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - SwiftLibrary _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + SwiftLibrary _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_dashCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult replacementCheckingResultWithRange_replacementString_( - SwiftLibrary _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + SwiftLibrary _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_replacementCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult correctionCheckingResultWithRange_replacementString_( - SwiftLibrary _lib, NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_841( + SwiftLibrary _lib, _NSRange range, NSString replacementString) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_correctionCheckingResultWithRange_replacementString_1, range, - replacementString?._id ?? ffi.nullptr); + replacementString._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult correctionCheckingResultWithRange_replacementString_alternativeStrings_( SwiftLibrary _lib, - NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_842( + _NSRange range, + NSString replacementString, + NSArray alternativeStrings) { + final _ret = _lib._objc_msgSend_969( _lib._class_NSTextCheckingResult1, _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, range, - replacementString?._id ?? ffi.nullptr, - alternativeStrings?._id ?? ffi.nullptr); + replacementString._id, + alternativeStrings._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult regularExpressionCheckingResultWithRanges_count_regularExpression_( SwiftLibrary _lib, - NSRangePointer ranges, + ffi.Pointer<_NSRange> ranges, int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_843( + NSRegularExpression regularExpression) { + final _ret = _lib._objc_msgSend_970( _lib._class_NSTextCheckingResult1, _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, ranges, count, - regularExpression?._id ?? ffi.nullptr); + regularExpression._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - SwiftLibrary _lib, NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_841( + SwiftLibrary _lib, _NSRange range, NSString phoneNumber) { + final _ret = _lib._objc_msgSend_968( _lib._class_NSTextCheckingResult1, _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, range, - phoneNumber?._id ?? ffi.nullptr); + phoneNumber._id); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } static NSTextCheckingResult transitInformationCheckingResultWithRange_components_( - SwiftLibrary _lib, NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_839( + SwiftLibrary _lib, _NSRange range, NSDictionary components) { + final _ret = _lib._objc_msgSend_966( _lib._class_NSTextCheckingResult1, _lib._sel_transitInformationCheckingResultWithRange_components_1, range, - components?._id ?? ffi.nullptr); + components._id); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + @override + NSTextCheckingResult init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } @@ -56653,6 +64468,13 @@ class NSTextCheckingResult extends NSObject { return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } + static NSTextCheckingResult allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTextCheckingResult1, _lib._sel_allocWithZone_1, zone); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + } + static NSTextCheckingResult alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); @@ -56663,18 +64485,18 @@ class NSTextCheckingResult extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56689,33 +64511,29 @@ class NSTextCheckingResult extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTextCheckingResult1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTextCheckingResult1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTextCheckingResult1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTextCheckingResult1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTextCheckingResult1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSTextCheckingResult1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSTextCheckingResult1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -56767,157 +64585,169 @@ class NSRegularExpression extends NSObject { obj._lib._class_NSRegularExpression1); } - static NSRegularExpression regularExpressionWithPattern_options_error_( + static NSRegularExpression? regularExpressionWithPattern_options_error_( SwiftLibrary _lib, - NSString? pattern, + NSString pattern, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_821( + final _ret = _lib._objc_msgSend_948( _lib._class_NSRegularExpression1, _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, + pattern._id, options, error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - NSRegularExpression initWithPattern_options_error_(NSString? pattern, + NSRegularExpression? initWithPattern_options_error_(NSString pattern, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_822( - _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); + final _ret = _lib._objc_msgSend_949(_id, + _lib._sel_initWithPattern_options_error_1, pattern._id, options, error); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + + NSString get pattern { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_pattern1); + return NSString._(_ret, _lib, retain: true, release: true); } int get options { - return _lib._objc_msgSend_823(_id, _lib._sel_options1); + return _lib._objc_msgSend_950(_id, _lib._sel_options1); } int get numberOfCaptureGroups { return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); } - static NSString escapedPatternForString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); + static NSString escapedPatternForString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSRegularExpression1, + _lib._sel_escapedPatternForString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, int options, NSRange range, ObjCBlock32 block) { - return _lib._objc_msgSend_824( + NSString string, + int options, + _NSRange range, + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { + _lib._objc_msgSend_951( _id, _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, + string._id, options, range, block._id); } NSArray matchesInString_options_range_( - NSString? string, int options, NSRange range) { - final _ret = _lib._objc_msgSend_825( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + NSString string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_952(_id, + _lib._sel_matchesInString_options_range_1, string._id, options, range); return NSArray._(_ret, _lib, retain: true, release: true); } int numberOfMatchesInString_options_range_( - NSString? string, int options, NSRange range) { - return _lib._objc_msgSend_826( + NSString string, int options, _NSRange range) { + return _lib._objc_msgSend_953( _id, _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, + string._id, options, range); } - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, NSRange range) { - final _ret = _lib._objc_msgSend_827( + NSTextCheckingResult? firstMatchInString_options_range_( + NSString string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_954( _id, _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, + string._id, options, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - NSRange rangeOfFirstMatchInString_options_range_( - NSString? string, int options, NSRange range) { - return _lib._objc_msgSend_828( + void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, + NSString string, int options, _NSRange range) { + _lib._objc_msgSend_955( + stret, _id, _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, + string._id, options, range); } NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_829( + NSString string, int options, _NSRange range, NSString templ) { + final _ret = _lib._objc_msgSend_956( _id, _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, + string._id, options, range, - templ?._id ?? ffi.nullptr); + templ._id); return NSString._(_ret, _lib, retain: true, release: true); } int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, NSRange range, NSString? templ) { - return _lib._objc_msgSend_830( + NSMutableString string, int options, _NSRange range, NSString templ) { + return _lib._objc_msgSend_957( _id, _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, + string._id, options, range, - templ?._id ?? ffi.nullptr); + templ._id); } NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, + NSTextCheckingResult result, + NSString string, int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_831( + NSString templ) { + final _ret = _lib._objc_msgSend_958( _id, _lib._sel_replacementStringForResult_inString_offset_template_1, - result?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr, + result._id, + string._id, offset, - templ?._id ?? ffi.nullptr); + templ._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString escapedTemplateForString_( - SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_69(_lib._class_NSRegularExpression1, + _lib._sel_escapedTemplateForString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSRegularExpression init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + static NSRegularExpression new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); return NSRegularExpression._(_ret, _lib, retain: false, release: true); } + static NSRegularExpression allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSRegularExpression1, _lib._sel_allocWithZone_1, zone); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); + } + static NSRegularExpression alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSRegularExpression1, _lib._sel_alloc1); @@ -56928,18 +64758,18 @@ class NSRegularExpression extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56954,33 +64784,29 @@ class NSRegularExpression extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRegularExpression1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSRegularExpression1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRegularExpression1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSRegularExpression1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSRegularExpression1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSRegularExpression1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57010,38 +64836,55 @@ abstract class NSMatchingOptions { static const int NSMatchingWithoutAnchoringBounds = 16; } -void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock32_closureRegistry = {}; -int _ObjCBlock32_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { - final id = ++_ObjCBlock32_closureRegistryIndex; - _ObjCBlock32_closureRegistry[id] = fn; +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Int32 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock32_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock32 extends _ObjCBlockBase { - ObjCBlock32._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock32.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -57050,54 +64893,89 @@ class ObjCBlock32 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock32.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( SwiftLibrary lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + void Function(NSTextCheckingResult?, int, ffi.Pointer) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) .cast(), - _ObjCBlock32_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSTextCheckingResult._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.listener( + SwiftLibrary lib, + void Function(NSTextCheckingResult?, int, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(arg0.address == 0 ? null : NSTextCheckingResult._(arg0, lib, retain: true, release: true), arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Int32, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSTextCheckingResult? arg0, int arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, int, ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1, arg2); } abstract class NSMatchingFlags { @@ -57131,22 +65009,20 @@ class NSURLCache extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); } - static NSURLCache? getSharedURLCache(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_844( + static NSURLCache getSharedURLCache(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_971( _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static void setSharedURLCache(SwiftLibrary _lib, NSURLCache? value) { - _lib._objc_msgSend_845(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + static void setSharedURLCache(SwiftLibrary _lib, NSURLCache value) { + return _lib._objc_msgSend_972( + _lib._class_NSURLCache1, _lib._sel_setSharedURLCache_1, value._id); } NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_846( + final _ret = _lib._objc_msgSend_973( _id, _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, memoryCapacity, @@ -57157,7 +65033,7 @@ class NSURLCache extends NSObject { NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_847( + final _ret = _lib._objc_msgSend_974( _id, _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, memoryCapacity, @@ -57166,35 +65042,32 @@ class NSURLCache extends NSObject { return NSURLCache._(_ret, _lib, retain: true, release: true); } - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_851( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse? cachedResponseForRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_979( + _id, _lib._sel_cachedResponseForRequest_1, request._id); + return _ret.address == 0 + ? null + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - return _lib._objc_msgSend_852( - _id, - _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + NSCachedURLResponse cachedResponse, NSURLRequest request) { + _lib._objc_msgSend_980(_id, _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse._id, request._id); } - void removeCachedResponseForRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_853( - _id, - _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); + void removeCachedResponseForRequest_(NSURLRequest request) { + _lib._objc_msgSend_981( + _id, _lib._sel_removeCachedResponseForRequest_1, request._id); } void removeAllCachedResponses() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } - void removeCachedResponsesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_472(_id, - _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); + void removeCachedResponsesSinceDate_(NSDate date) { + _lib._objc_msgSend_540( + _id, _lib._sel_removeCachedResponsesSinceDate_1, date._id); } int get memoryCapacity { @@ -57202,7 +65075,7 @@ class NSURLCache extends NSObject { } set memoryCapacity(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setMemoryCapacity_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setMemoryCapacity_1, value); } int get diskCapacity { @@ -57210,7 +65083,7 @@ class NSURLCache extends NSObject { } set diskCapacity(int value) { - _lib._objc_msgSend_451(_id, _lib._sel_setDiskCapacity_1, value); + return _lib._objc_msgSend_516(_id, _lib._sel_setDiskCapacity_1, value); } int get currentMemoryUsage { @@ -57222,28 +65095,30 @@ class NSURLCache extends NSObject { } void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_854( - _id, - _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, - dataTask?._id ?? ffi.nullptr); + NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_982(_id, _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse._id, dataTask._id); } void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, ObjCBlock33 completionHandler) { - return _lib._objc_msgSend_855( + NSURLSessionDataTask dataTask, + ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { + _lib._objc_msgSend_983( _id, _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, + dataTask._id, completionHandler._id); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_856( - _id, - _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + void removeCachedResponseForDataTask_(NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_984( + _id, _lib._sel_removeCachedResponseForDataTask_1, dataTask._id); + } + + @override + NSURLCache init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCache._(_ret, _lib, retain: true, release: true); } static NSURLCache new1(SwiftLibrary _lib) { @@ -57251,6 +65126,13 @@ class NSURLCache extends NSObject { return NSURLCache._(_ret, _lib, retain: false, release: true); } + static NSURLCache allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCache1, _lib._sel_allocWithZone_1, zone); + return NSURLCache._(_ret, _lib, retain: false, release: true); + } + static NSURLCache alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); @@ -57261,18 +65143,18 @@ class NSURLCache extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCache1, + _lib._objc_msgSend_15(_lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57287,33 +65169,29 @@ class NSURLCache extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCache1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLCache1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCache1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLCache1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLCache1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57350,50 +65228,52 @@ class NSCachedURLResponse extends NSObject { } NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_848(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + NSURLResponse response, NSData data) { + final _ret = _lib._objc_msgSend_975( + _id, _lib._sel_initWithResponse_data_1, response._id, data._id); return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, + NSURLResponse response, + NSData data, NSDictionary? userInfo, int storagePolicy) { - final _ret = _lib._objc_msgSend_849( + final _ret = _lib._objc_msgSend_976( _id, _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, - response?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, + response._id, + data._id, userInfo?._id ?? ffi.nullptr, storagePolicy); return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_763(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + NSURLResponse get response { + final _ret = _lib._objc_msgSend_977(_id, _lib._sel_response1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } int get storagePolicy { - return _lib._objc_msgSend_850(_id, _lib._sel_storagePolicy1); + return _lib._objc_msgSend_978(_id, _lib._sel_storagePolicy1); + } + + @override + NSCachedURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } static NSCachedURLResponse new1(SwiftLibrary _lib) { @@ -57402,6 +65282,13 @@ class NSCachedURLResponse extends NSObject { return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } + static NSCachedURLResponse allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCachedURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + } + static NSCachedURLResponse alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); @@ -57412,18 +65299,18 @@ class NSCachedURLResponse extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57438,33 +65325,29 @@ class NSCachedURLResponse extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCachedURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSCachedURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCachedURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSCachedURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSCachedURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSCachedURLResponse1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSCachedURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57518,6 +65401,13 @@ class NSURLSessionDataTask extends NSURLSessionTask { return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionDataTask allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionDataTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionDataTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); @@ -57528,18 +65418,18 @@ class NSURLSessionDataTask extends NSURLSessionTask { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57554,33 +65444,29 @@ class NSURLSessionDataTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDataTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionDataTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDataTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionDataTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionDataTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionDataTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionDataTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57592,33 +65478,40 @@ class NSURLSessionDataTask extends NSURLSessionTask { } } -void _ObjCBlock33_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock33_closureRegistry = {}; -int _ObjCBlock33_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { - final id = ++_ObjCBlock33_closureRegistryIndex; - _ObjCBlock33_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock33_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock33_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock33 extends _ObjCBlockBase { - ObjCBlock33._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSCachedURLResponse._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock33.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi @@ -57626,38 +65519,72 @@ class ObjCBlock33 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock33_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock33.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( + SwiftLibrary lib, void Function(NSCachedURLResponse?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock33_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) .cast(), - _ObjCBlock33_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSCachedURLResponse.listener( + SwiftLibrary lib, void Function(NSCachedURLResponse?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSCachedURLResponse? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } class NSURLConnection extends NSObject { @@ -57684,115 +65611,129 @@ class NSURLConnection extends NSObject { obj._lib._class_NSURLConnection1); } - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_857( + NSURLConnection? initWithRequest_delegate_startImmediately_( + NSURLRequest request, NSObject? delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_985( _id, _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, + request._id, + delegate?._id ?? ffi.nullptr, startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_858( + NSURLConnection? initWithRequest_delegate_( + NSURLRequest request, NSObject? delegate) { + final _ret = _lib._objc_msgSend_986( _id, _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + request._id, + delegate?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - static NSURLConnection connectionWithRequest_delegate_( - SwiftLibrary _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_859( + static NSURLConnection? connectionWithRequest_delegate_( + SwiftLibrary _lib, NSURLRequest request, NSObject? delegate) { + final _ret = _lib._objc_msgSend_987( _lib._class_NSURLConnection1, _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_originalRequest1); + request._id, + delegate?._id ?? ffi.nullptr); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get originalRequest { + final _ret = _lib._objc_msgSend_988(_id, _lib._sel_originalRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest get currentRequest { + final _ret = _lib._objc_msgSend_988(_id, _lib._sel_currentRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); + _lib._objc_msgSend_1(_id, _lib._sel_start1); } void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501( - _id, - _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, - mode); + void unscheduleFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_unscheduleFromRunLoop_forMode_1, aRunLoop._id, mode._id); } void setDelegateQueue_(NSOperationQueue? queue) { - return _lib._objc_msgSend_860( + _lib._objc_msgSend_989( _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); } - static bool canHandleRequest_(SwiftLibrary _lib, NSURLRequest? request) { - return _lib._objc_msgSend_861(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + static bool canHandleRequest_(SwiftLibrary _lib, NSURLRequest request) { + return _lib._objc_msgSend_990(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request._id); } - static NSData sendSynchronousRequest_returningResponse_error_( + static NSData? sendSynchronousRequest_returningResponse_error_( SwiftLibrary _lib, - NSURLRequest? request, + NSURLRequest request, ffi.Pointer> response, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_862( + final _ret = _lib._objc_msgSend_991( _lib._class_NSURLConnection1, _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, + request._id, response, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } static void sendAsynchronousRequest_queue_completionHandler_( SwiftLibrary _lib, - NSURLRequest? request, - NSOperationQueue? queue, - ObjCBlock34 handler) { - return _lib._objc_msgSend_863( + NSURLRequest request, + NSOperationQueue queue, + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { + _lib._objc_msgSend_992( _lib._class_NSURLConnection1, _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, + request._id, + queue._id, handler._id); } + @override + NSURLConnection init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + static NSURLConnection new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); return NSURLConnection._(_ret, _lib, retain: false, release: true); } + static NSURLConnection allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLConnection1, _lib._sel_allocWithZone_1, zone); + return NSURLConnection._(_ret, _lib, retain: false, release: true); + } + static NSURLConnection alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); @@ -57803,18 +65744,18 @@ class NSURLConnection extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._objc_msgSend_15(_lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57829,33 +65770,29 @@ class NSURLConnection extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLConnection1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -57867,48 +65804,56 @@ class NSURLConnection extends NSObject { } } -void _ObjCBlock34_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock34_closureRegistry = {}; -int _ObjCBlock34_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { - final id = ++_ObjCBlock34_closureRegistryIndex; - _ObjCBlock34_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock34_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock34_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock34 extends _ObjCBlockBase { - ObjCBlock34._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock34.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -57919,54 +65864,93 @@ class ObjCBlock34 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock34_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock34.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( + SwiftLibrary lib, void Function(NSURLResponse?, NSData?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock34_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) .cast(), - _ObjCBlock34_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURLResponse._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSData._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.listener( + SwiftLibrary lib, void Function(NSURLResponse?, NSData?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURLResponse._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSData._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURLResponse? arg0, NSData? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); } class NSURLCredential extends NSObject { @@ -57994,40 +65978,40 @@ class NSURLCredential extends NSObject { } int get persistence { - return _lib._objc_msgSend_864(_id, _lib._sel_persistence1); + return _lib._objc_msgSend_993(_id, _lib._sel_persistence1); } NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_865( + NSString user, NSString password, int persistence) { + final _ret = _lib._objc_msgSend_994( _id, _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, + user._id, + password._id, persistence); return NSURLCredential._(_ret, _lib, retain: true, release: true); } static NSURLCredential credentialWithUser_password_persistence_( - SwiftLibrary _lib, NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_866( + SwiftLibrary _lib, NSString user, NSString password, int persistence) { + final _ret = _lib._objc_msgSend_995( _lib._class_NSURLCredential1, _lib._sel_credentialWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, + user._id, + password._id, persistence); return NSURLCredential._(_ret, _lib, retain: true, release: true); } NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -58038,8 +66022,10 @@ class NSURLCredential extends NSObject { } NSURLCredential initWithIdentity_certificates_persistence_( - SecIdentityRef identity, NSArray? certArray, int persistence) { - final _ret = _lib._objc_msgSend_867( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_996( _id, _lib._sel_initWithIdentity_certificates_persistence_1, identity, @@ -58050,10 +66036,10 @@ class NSURLCredential extends NSObject { static NSURLCredential credentialWithIdentity_certificates_persistence_( SwiftLibrary _lib, - SecIdentityRef identity, + ffi.Pointer<__SecIdentity> identity, NSArray? certArray, int persistence) { - final _ret = _lib._objc_msgSend_868( + final _ret = _lib._objc_msgSend_997( _lib._class_NSURLCredential1, _lib._sel_credentialWithIdentity_certificates_persistence_1, identity, @@ -58062,35 +66048,46 @@ class NSURLCredential extends NSObject { return NSURLCredential._(_ret, _lib, retain: true, release: true); } - SecIdentityRef get identity { - return _lib._objc_msgSend_869(_id, _lib._sel_identity1); + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_998(_id, _lib._sel_identity1); } - NSArray? get certificates { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_certificates1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get certificates { + final _ret = _lib._objc_msgSend_85(_id, _lib._sel_certificates1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURLCredential initWithTrust_(SecTrustRef trust) { - final _ret = _lib._objc_msgSend_870(_id, _lib._sel_initWithTrust_1, trust); + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_999(_id, _lib._sel_initWithTrust_1, trust); return NSURLCredential._(_ret, _lib, retain: true, release: true); } static NSURLCredential credentialForTrust_( - SwiftLibrary _lib, SecTrustRef trust) { - final _ret = _lib._objc_msgSend_871( + SwiftLibrary _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_1000( _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); return NSURLCredential._(_ret, _lib, retain: true, release: true); } + @override + NSURLCredential init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + static NSURLCredential new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); return NSURLCredential._(_ret, _lib, retain: false, release: true); } + static NSURLCredential allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredential1, _lib._sel_allocWithZone_1, zone); + return NSURLCredential._(_ret, _lib, retain: false, release: true); + } + static NSURLCredential alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); @@ -58101,18 +66098,18 @@ class NSURLCredential extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredential1, + _lib._objc_msgSend_15(_lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58127,33 +66124,29 @@ class NSURLCredential extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredential1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLCredential1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredential1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLCredential1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLCredential1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLCredential1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLCredential1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58172,12 +66165,8 @@ abstract class NSURLCredentialPersistence { static const int NSURLCredentialPersistenceSynchronizable = 3; } -typedef SecIdentityRef = ffi.Pointer<__SecIdentity>; - final class __SecIdentity extends ffi.Opaque {} -typedef SecTrustRef = ffi.Pointer<__SecTrust>; - final class __SecTrust extends ffi.Opaque {} class NSURLProtectionSpace extends NSObject { @@ -58205,15 +66194,15 @@ class NSURLProtectionSpace extends NSObject { } NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, + NSString host, int port, NSString? protocol, NSString? realm, NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_872( + final _ret = _lib._objc_msgSend_1001( _id, _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, + host._id, port, protocol?._id ?? ffi.nullptr, realm?._id ?? ffi.nullptr, @@ -58222,15 +66211,15 @@ class NSURLProtectionSpace extends NSObject { } NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, + NSString host, int port, NSString? type, NSString? realm, NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_872( + final _ret = _lib._objc_msgSend_1001( _id, _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, + host._id, port, type?._id ?? ffi.nullptr, realm?._id ?? ffi.nullptr, @@ -58239,7 +66228,7 @@ class NSURLProtectionSpace extends NSObject { } NSString? get realm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_realm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -58253,47 +66242,49 @@ class NSURLProtectionSpace extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); } - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get host { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_host1); + return NSString._(_ret, _lib, retain: true, release: true); } int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + return _lib._objc_msgSend_83(_id, _lib._sel_port1); } NSString? get proxyType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_proxyType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_protocol1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get authenticationMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get authenticationMethod { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_authenticationMethod1); + return NSString._(_ret, _lib, retain: true, release: true); } NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_distinguishedNames1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_distinguishedNames1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - SecTrustRef get serverTrust { - return _lib._objc_msgSend_873(_id, _lib._sel_serverTrust1); + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_1002(_id, _lib._sel_serverTrust1); + } + + @override + NSURLProtectionSpace init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } static NSURLProtectionSpace new1(SwiftLibrary _lib) { @@ -58302,6 +66293,13 @@ class NSURLProtectionSpace extends NSObject { return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } + static NSURLProtectionSpace allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLProtectionSpace1, _lib._sel_allocWithZone_1, zone); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + } + static NSURLProtectionSpace alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); @@ -58312,18 +66310,18 @@ class NSURLProtectionSpace extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, + _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58338,33 +66336,29 @@ class NSURLProtectionSpace extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtectionSpace1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLProtectionSpace1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtectionSpace1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLProtectionSpace1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLProtectionSpace1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLProtectionSpace1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLProtectionSpace1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58401,131 +66395,130 @@ class NSURLCredentialStorage extends NSObject { obj._lib._class_NSURLCredentialStorage1); } - static NSURLCredentialStorage? getSharedCredentialStorage(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_874(_lib._class_NSURLCredentialStorage1, + static NSURLCredentialStorage getSharedCredentialStorage(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_1003(_lib._class_NSURLCredentialStorage1, _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_875(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_allCredentials1); + NSDictionary? credentialsForProtectionSpace_(NSURLProtectionSpace space) { + final _ret = _lib._objc_msgSend_1004( + _id, _lib._sel_credentialsForProtectionSpace_1, space._id); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } + NSDictionary get allCredentials { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_allCredentials1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_876( - _id, - _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_1005(_id, _lib._sel_setCredential_forProtectionSpace_1, + credential._id, space._id); } void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_876( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_1005( _id, _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + credential._id, + space._id); } - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - return _lib._objc_msgSend_877( + void removeCredential_forProtectionSpace_options_(NSURLCredential credential, + NSURLProtectionSpace space, NSDictionary? options) { + _lib._objc_msgSend_1006( _id, _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, + credential._id, + space._id, options?._id ?? ffi.nullptr); } - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_878( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + NSURLCredential? defaultCredentialForProtectionSpace_( + NSURLProtectionSpace space) { + final _ret = _lib._objc_msgSend_1007( + _id, _lib._sel_defaultCredentialForProtectionSpace_1, space._id); + return _ret.address == 0 + ? null + : NSURLCredential._(_ret, _lib, retain: true, release: true); } void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_876( + NSURLCredential credential, NSURLProtectionSpace space) { + _lib._objc_msgSend_1005( _id, _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + credential._id, + space._id); } void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock35 completionHandler) { - return _lib._objc_msgSend_879( + NSURLProtectionSpace protectionSpace, + NSURLSessionTask task, + ObjCBlock_ffiVoid_NSDictionary completionHandler) { + _lib._objc_msgSend_1008( _id, _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, + protectionSpace._id, + task._id, completionHandler._id); } - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - return _lib._objc_msgSend_880( + void setCredential_forProtectionSpace_task_(NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSURLSessionTask task) { + _lib._objc_msgSend_1009( _id, _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + credential._id, + protectionSpace._id, + task._id); } void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, + NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSDictionary? options, - NSURLSessionTask? task) { - return _lib._objc_msgSend_881( + NSURLSessionTask task) { + _lib._objc_msgSend_1010( _id, _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, + credential._id, + protectionSpace._id, options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + task._id); } void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock36 completionHandler) { - return _lib._objc_msgSend_882( + NSURLProtectionSpace space, + NSURLSessionTask task, + ObjCBlock_ffiVoid_NSURLCredential completionHandler) { + _lib._objc_msgSend_1011( _id, _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, + space._id, + task._id, completionHandler._id); } - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - return _lib._objc_msgSend_880( + void setDefaultCredential_forProtectionSpace_task_(NSURLCredential credential, + NSURLProtectionSpace protectionSpace, NSURLSessionTask task) { + _lib._objc_msgSend_1009( _id, _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + credential._id, + protectionSpace._id, + task._id); + } + + @override + NSURLCredentialStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } static NSURLCredentialStorage new1(SwiftLibrary _lib) { @@ -58534,6 +66527,13 @@ class NSURLCredentialStorage extends NSObject { return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } + static NSURLCredentialStorage allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLCredentialStorage1, _lib._sel_allocWithZone_1, zone); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + } + static NSURLCredentialStorage alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); @@ -58544,18 +66544,18 @@ class NSURLCredentialStorage extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, + _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58570,33 +66570,29 @@ class NSURLCredentialStorage extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredentialStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLCredentialStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredentialStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLCredentialStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLCredentialStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLCredentialStorage1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLCredentialStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58608,101 +66604,151 @@ class NSURLCredentialStorage extends NSObject { } } -void _ObjCBlock35_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock35_closureRegistry = {}; -int _ObjCBlock35_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { - final id = ++_ObjCBlock35_closureRegistryIndex; - _ObjCBlock35_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock35_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock35_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock35 extends _ObjCBlockBase { - ObjCBlock35._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock35.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi .NativeFunction arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock35.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSDictionary.fromFunction( + SwiftLibrary lib, void Function(NSDictionary?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) .cast(), - _ObjCBlock35_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, + retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSDictionary.listener( + SwiftLibrary lib, void Function(NSDictionary?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSDictionary._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; -void _ObjCBlock36_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target + void call(NSDictionary? arg0) => _id.ref.invoke .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } -final _ObjCBlock36_closureRegistry = {}; -int _ObjCBlock36_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { - final id = ++_ObjCBlock36_closureRegistryIndex; - _ObjCBlock36_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock36_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock36_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock36 extends _ObjCBlockBase { - ObjCBlock36._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLCredential._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock36.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi @@ -58710,38 +66756,72 @@ class ObjCBlock36 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_fnPtrTrampoline) + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock36.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLCredential.fromFunction( + SwiftLibrary lib, void Function(NSURLCredential?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) .cast(), - _ObjCBlock36_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSURLCredential._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLCredential.listener( + SwiftLibrary lib, void Function(NSURLCredential?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null : NSURLCredential._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURLCredential? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); } class NSURLProtocol extends NSObject { @@ -58767,94 +66847,85 @@ class NSURLProtocol extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); } - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest request, NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_883( + final _ret = _lib._objc_msgSend_1012( _id, _lib._sel_initWithRequest_cachedResponse_client_1, - request?._id ?? ffi.nullptr, + request._id, cachedResponse?._id ?? ffi.nullptr, client?._id ?? ffi.nullptr); return NSURLProtocol._(_ret, _lib, retain: true, release: true); } NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_client1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_761(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get request { + final _ret = _lib._objc_msgSend_988(_id, _lib._sel_request1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_884(_id, _lib._sel_cachedResponse1); + final _ret = _lib._objc_msgSend_1013(_id, _lib._sel_cachedResponse1); return _ret.address == 0 ? null : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static bool canInitWithRequest_(SwiftLibrary _lib, NSURLRequest? request) { - return _lib._objc_msgSend_861(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + static bool canInitWithRequest_(SwiftLibrary _lib, NSURLRequest request) { + return _lib._objc_msgSend_990(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request._id); } static NSURLRequest canonicalRequestForRequest_( - SwiftLibrary _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_885(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSURLRequest request) { + final _ret = _lib._objc_msgSend_1014(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } static bool requestIsCacheEquivalent_toRequest_( - SwiftLibrary _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_886( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSURLRequest a, NSURLRequest b) { + return _lib._objc_msgSend_1015(_lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, a._id, b._id); } void startLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); } void stopLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); } - static NSObject propertyForKey_inRequest_( - SwiftLibrary _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_887( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? propertyForKey_inRequest_( + SwiftLibrary _lib, NSString key, NSURLRequest request) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSURLProtocol1, + _lib._sel_propertyForKey_inRequest_1, key._id, request._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static void setProperty_forKey_inRequest_(SwiftLibrary _lib, NSObject value, - NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_894( + NSString key, NSMutableURLRequest request) { + _lib._objc_msgSend_1023( _lib._class_NSURLProtocol1, _lib._sel_setProperty_forKey_inRequest_1, value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + key._id, + request._id); } static void removePropertyForKey_inRequest_( - SwiftLibrary _lib, NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_895( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key, NSMutableURLRequest request) { + _lib._objc_msgSend_1024(_lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, key._id, request._id); } static bool registerClass_(SwiftLibrary _lib, NSObject protocolClass) { @@ -58863,39 +66934,52 @@ class NSURLProtocol extends NSObject { } static void unregisterClass_(SwiftLibrary _lib, NSObject protocolClass) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, _lib._sel_unregisterClass_1, protocolClass._id); } - static bool canInitWithTask_(SwiftLibrary _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_896(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + static bool canInitWithTask_(SwiftLibrary _lib, NSURLSessionTask task) { + return _lib._objc_msgSend_1025( + _lib._class_NSURLProtocol1, _lib._sel_canInitWithTask_1, task._id); } - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask task, NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_897( + final _ret = _lib._objc_msgSend_1026( _id, _lib._sel_initWithTask_cachedResponse_client_1, - task?._id ?? ffi.nullptr, + task._id, cachedResponse?._id ?? ffi.nullptr, client?._id ?? ffi.nullptr); return NSURLProtocol._(_ret, _lib, retain: true, release: true); } NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_898(_id, _lib._sel_task1); + final _ret = _lib._objc_msgSend_1027(_id, _lib._sel_task1); return _ret.address == 0 ? null : NSURLSessionTask._(_ret, _lib, retain: true, release: true); } + @override + NSURLProtocol init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); + } + static NSURLProtocol new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); return NSURLProtocol._(_ret, _lib, retain: false, release: true); } + static NSURLProtocol allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLProtocol1, _lib._sel_allocWithZone_1, zone); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); + } + static NSURLProtocol alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); @@ -58906,18 +66990,18 @@ class NSURLProtocol extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58932,33 +67016,29 @@ class NSURLProtocol extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtocol1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLProtocol1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtocol1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLProtocol1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLProtocol1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -58996,54 +67076,56 @@ class NSMutableURLRequest extends NSURLRequest { @override NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set URL(NSURL? value) { - _lib._objc_msgSend_888(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_671( + _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } @override int get cachePolicy { - return _lib._objc_msgSend_748(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_859(_id, _lib._sel_cachePolicy1); } set cachePolicy(int value) { - _lib._objc_msgSend_889(_id, _lib._sel_setCachePolicy_1, value); + return _lib._objc_msgSend_1017(_id, _lib._sel_setCachePolicy_1, value); } @override double get timeoutInterval { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutInterval1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutInterval1); } set timeoutInterval(double value) { - _lib._objc_msgSend_474(_id, _lib._sel_setTimeoutInterval_1, value); + return _lib._objc_msgSend_542(_id, _lib._sel_setTimeoutInterval_1, value); } @override NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set mainDocumentURL(NSURL? value) { - _lib._objc_msgSend_888( + return _lib._objc_msgSend_671( _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } @override int get networkServiceType { - return _lib._objc_msgSend_749(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_860(_id, _lib._sel_networkServiceType1); } set networkServiceType(int value) { - _lib._objc_msgSend_890(_id, _lib._sel_setNetworkServiceType_1, value); + return _lib._objc_msgSend_1018( + _id, _lib._sel_setNetworkServiceType_1, value); } @override @@ -59052,7 +67134,8 @@ class NSMutableURLRequest extends NSURLRequest { } set allowsCellularAccess(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsCellularAccess_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAllowsCellularAccess_1, value); } @override @@ -59061,7 +67144,7 @@ class NSMutableURLRequest extends NSURLRequest { } set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -59072,7 +67155,7 @@ class NSMutableURLRequest extends NSURLRequest { } set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } @@ -59082,77 +67165,84 @@ class NSMutableURLRequest extends NSURLRequest { } set assumesHTTP3Capable(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAssumesHTTP3Capable_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAssumesHTTP3Capable_1, value); } @override int get attribution { - return _lib._objc_msgSend_750(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_861(_id, _lib._sel_attribution1); } set attribution(int value) { - _lib._objc_msgSend_891(_id, _lib._sel_setAttribution_1, value); + return _lib._objc_msgSend_1019(_id, _lib._sel_setAttribution_1, value); } @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - set HTTPMethod(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + NSString get HTTPMethod { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_HTTPMethod1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set HTTPMethod(NSString value) { + return _lib._objc_msgSend_646(_id, _lib._sel_setHTTPMethod_1, value._id); } @override NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_allHTTPHeaderFields1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set allHTTPHeaderFields(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_483(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + void setValue_forHTTPHeaderField_(NSString? value, NSString field) { + _lib._objc_msgSend_1020(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field._id); } - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_483(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + void addValue_forHTTPHeaderField_(NSString value, NSString field) { + _lib._objc_msgSend_551( + _id, _lib._sel_addValue_forHTTPHeaderField_1, value._id, field._id); } @override NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } set HTTPBody(NSData? value) { - _lib._objc_msgSend_892( + return _lib._objc_msgSend_1021( _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } @override NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_760(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_875(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); } set HTTPBodyStream(NSInputStream? value) { - _lib._objc_msgSend_893( + return _lib._objc_msgSend_1022( _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } @@ -59162,7 +67252,8 @@ class NSMutableURLRequest extends NSURLRequest { } set HTTPShouldHandleCookies(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldHandleCookies_1, value); } @override @@ -59171,12 +67262,13 @@ class NSMutableURLRequest extends NSURLRequest { } set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - static NSMutableURLRequest requestWithURL_(SwiftLibrary _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_226(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + static NSMutableURLRequest requestWithURL_(SwiftLibrary _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_262( + _lib._class_NSMutableURLRequest1, _lib._sel_requestWithURL_1, URL._id); return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } @@ -59186,22 +67278,53 @@ class NSMutableURLRequest extends NSURLRequest { } static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SwiftLibrary _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_747( + SwiftLibrary _lib, NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( _lib._class_NSMutableURLRequest1, _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, cachePolicy, timeoutInterval); return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } + @override + NSMutableURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_262(_id, _lib._sel_initWithURL_1, URL._id); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_858( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL._id, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + static NSMutableURLRequest new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } + static NSMutableURLRequest allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + } + static NSMutableURLRequest alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); @@ -59212,18 +67335,18 @@ class NSMutableURLRequest extends NSURLRequest { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59238,33 +67361,29 @@ class NSMutableURLRequest extends NSURLRequest { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSMutableURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSMutableURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSMutableURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSMutableURLRequest1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSMutableURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59299,33 +67418,35 @@ class NSXMLParser extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); } - NSXMLParser initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSXMLParser? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_277(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSXMLParser._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSXMLParser initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSXMLParser._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_899( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); + NSXMLParser initWithStream_(NSInputStream stream) { + final _ret = + _lib._objc_msgSend_1028(_id, _lib._sel_initWithStream_1, stream._id); return NSXMLParser._(_ret, _lib, retain: true, release: true); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -59334,7 +67455,8 @@ class NSXMLParser extends NSObject { } set shouldProcessNamespaces(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setShouldProcessNamespaces_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setShouldProcessNamespaces_1, value); } bool get shouldReportNamespacePrefixes { @@ -59342,31 +67464,31 @@ class NSXMLParser extends NSObject { } set shouldReportNamespacePrefixes(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); } int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_900( + return _lib._objc_msgSend_1029( _id, _lib._sel_externalEntityResolvingPolicy1); } set externalEntityResolvingPolicy(int value) { - _lib._objc_msgSend_901( + return _lib._objc_msgSend_1030( _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); } NSSet? get allowedExternalEntityURLs { final _ret = - _lib._objc_msgSend_280(_id, _lib._sel_allowedExternalEntityURLs1); + _lib._objc_msgSend_319(_id, _lib._sel_allowedExternalEntityURLs1); return _ret.address == 0 ? null : NSSet._(_ret, _lib, retain: true, release: true); } set allowedExternalEntityURLs(NSSet? value) { - _lib._objc_msgSend_902(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_1031(_id, + _lib._sel_setAllowedExternalEntityURLs_1, value?._id ?? ffi.nullptr); } bool parse() { @@ -59374,11 +67496,11 @@ class NSXMLParser extends NSObject { } void abortParsing() { - return _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); } NSError? get parserError { - final _ret = _lib._objc_msgSend_283(_id, _lib._sel_parserError1); + final _ret = _lib._objc_msgSend_322(_id, _lib._sel_parserError1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); @@ -59389,30 +67511,36 @@ class NSXMLParser extends NSObject { } set shouldResolveExternalEntities(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setShouldResolveExternalEntities_1, value); } NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get lineNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_lineNumber1); } int get columnNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + return _lib._objc_msgSend_83(_id, _lib._sel_columnNumber1); + } + + @override + NSXMLParser init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } static NSXMLParser new1(SwiftLibrary _lib) { @@ -59420,6 +67548,13 @@ class NSXMLParser extends NSObject { return NSXMLParser._(_ret, _lib, retain: false, release: true); } + static NSXMLParser allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLParser1, _lib._sel_allocWithZone_1, zone); + return NSXMLParser._(_ret, _lib, retain: false, release: true); + } + static NSXMLParser alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); @@ -59430,18 +67565,18 @@ class NSXMLParser extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLParser1, + _lib._objc_msgSend_15(_lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59456,33 +67591,29 @@ class NSXMLParser extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLParser1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLParser1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLParser1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLParser1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLParser1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59524,53 +67655,51 @@ class NSFileWrapper extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); } - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_903( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + NSFileWrapper? initWithURL_options_error_( + NSURL url, int options, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_1032( + _id, _lib._sel_initWithURL_options_error_1, url._id, options, outError); + return _ret.address == 0 + ? null + : NSFileWrapper._(_ret, _lib, retain: true, release: true); } NSFileWrapper initDirectoryWithFileWrappers_( - NSDictionary? childrenByPreferredName) { - final _ret = _lib._objc_msgSend_143( - _id, - _lib._sel_initDirectoryWithFileWrappers_1, - childrenByPreferredName?._id ?? ffi.nullptr); + NSDictionary childrenByPreferredName) { + final _ret = _lib._objc_msgSend_159(_id, + _lib._sel_initDirectoryWithFileWrappers_1, childrenByPreferredName._id); return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initRegularFileWithContents_(NSData? contents) { - final _ret = _lib._objc_msgSend_242(_id, - _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); + NSFileWrapper initRegularFileWithContents_(NSData contents) { + final _ret = _lib._objc_msgSend_279( + _id, _lib._sel_initRegularFileWithContents_1, contents._id); return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_226( - _id, - _lib._sel_initSymbolicLinkWithDestinationURL_1, - url?._id ?? ffi.nullptr); + NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL url) { + final _ret = _lib._objc_msgSend_262( + _id, _lib._sel_initSymbolicLinkWithDestinationURL_1, url._id); return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initWithSerializedRepresentation_( - NSData? serializeRepresentation) { - final _ret = _lib._objc_msgSend_242( + NSFileWrapper? initWithSerializedRepresentation_( + NSData serializeRepresentation) { + final _ret = _lib._objc_msgSend_874( _id, _lib._sel_initWithSerializedRepresentation_1, - serializeRepresentation?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + serializeRepresentation._id); + return _ret.address == 0 + ? null + : NSFileWrapper._(_ret, _lib, retain: true, release: true); } - NSFileWrapper initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + NSFileWrapper? initWithCoder_(NSCoder inCoder) { + final _ret = + _lib._objc_msgSend_47(_id, _lib._sel_initWithCoder_1, inCoder._id); + return _ret.address == 0 + ? null + : NSFileWrapper._(_ret, _lib, retain: true, release: true); } bool get directory { @@ -59586,61 +67715,59 @@ class NSFileWrapper extends NSObject { } NSString? get preferredFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_preferredFilename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set preferredFilename(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); } NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_filename1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set filename(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); } - NSDictionary? get fileAttributes { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_fileAttributes1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get fileAttributes { + final _ret = _lib._objc_msgSend_181(_id, _lib._sel_fileAttributes1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - set fileAttributes(NSDictionary? value) { - _lib._objc_msgSend_165( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + set fileAttributes(NSDictionary value) { + return _lib._objc_msgSend_182( + _id, _lib._sel_setFileAttributes_1, value._id); } - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_229( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + bool matchesContentsOfURL_(NSURL url) { + return _lib._objc_msgSend_265( + _id, _lib._sel_matchesContentsOfURL_1, url._id); } bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_904(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); + NSURL url, int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_1033( + _id, _lib._sel_readFromURL_options_error_1, url._id, options, outError); } bool writeToURL_options_originalContentsURL_error_( - NSURL? url, + NSURL url, int options, NSURL? originalContentsURL, ffi.Pointer> outError) { - return _lib._objc_msgSend_905( + return _lib._objc_msgSend_1034( _id, _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, + url._id, options, originalContentsURL?._id ?? ffi.nullptr, outError); @@ -59648,48 +67775,49 @@ class NSFileWrapper extends NSObject { NSData? get serializedRepresentation { final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + _lib._objc_msgSend_286(_id, _lib._sel_serializedRepresentation1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_906( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); + NSString addFileWrapper_(NSFileWrapper child) { + final _ret = + _lib._objc_msgSend_1035(_id, _lib._sel_addFileWrapper_1, child._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_907( + NSData data, NSString fileName) { + final _ret = _lib._objc_msgSend_1036( _id, _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); + data._id, + fileName._id); return NSString._(_ret, _lib, retain: true, release: true); } - void removeFileWrapper_(NSFileWrapper? child) { - return _lib._objc_msgSend_908( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + void removeFileWrapper_(NSFileWrapper child) { + _lib._objc_msgSend_1037(_id, _lib._sel_removeFileWrapper_1, child._id); } NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_fileWrappers1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_fileWrappers1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_906( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? keyForFileWrapper_(NSFileWrapper child) { + final _ret = + _lib._objc_msgSend_1038(_id, _lib._sel_keyForFileWrapper_1, child._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_regularFileContents1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -59697,71 +67825,84 @@ class NSFileWrapper extends NSObject { NSURL? get symbolicLinkDestinationURL { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); + _lib._objc_msgSend_45(_id, _lib._sel_symbolicLinkDestinationURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - NSObject initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? initWithPath_(NSString path) { + final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initSymbolicLinkWithDestination_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); + NSObject initSymbolicLinkWithDestination_(NSString path) { + final _ret = _lib._objc_msgSend_31( + _id, _lib._sel_initSymbolicLinkWithDestination_1, path._id); return NSObject._(_ret, _lib, retain: true, release: true); } - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + bool needsToBeUpdatedFromPath_(NSString path) { + return _lib._objc_msgSend_64( + _id, _lib._sel_needsToBeUpdatedFromPath_1, path._id); } - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + bool updateFromPath_(NSString path) { + return _lib._objc_msgSend_64(_id, _lib._sel_updateFromPath_1, path._id); } bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_909( + NSString path, bool atomicFlag, bool updateFilenamesFlag) { + return _lib._objc_msgSend_1039( _id, _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, + path._id, atomicFlag, updateFilenamesFlag); } - NSString addFileWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); + NSString addFileWithPath_(NSString path) { + final _ret = + _lib._objc_msgSend_69(_id, _lib._sel_addFileWithPath_1, path._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_324( + NSString path, NSString filename) { + final _ret = _lib._objc_msgSend_364( _id, _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); + path._id, + filename._id); return NSString._(_ret, _lib, retain: true, release: true); } NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_symbolicLinkDestination1); return NSString._(_ret, _lib, retain: true, release: true); } + @override + NSFileWrapper init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + static NSFileWrapper new1(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); return NSFileWrapper._(_ret, _lib, retain: false, release: true); } + static NSFileWrapper allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileWrapper1, _lib._sel_allocWithZone_1, zone); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); + } + static NSFileWrapper alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); @@ -59772,18 +67913,18 @@ class NSFileWrapper extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59798,33 +67939,29 @@ class NSFileWrapper extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileWrapper1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSFileWrapper1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileWrapper1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSFileWrapper1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSFileWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -59869,189 +68006,177 @@ class NSURLSession extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); } - static NSURLSession? getSharedSession(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_910( + static NSURLSession getSharedSession(SwiftLibrary _lib) { + final _ret = _lib._objc_msgSend_1040( _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); + return NSURLSession._(_ret, _lib, retain: true, release: true); } static NSURLSession sessionWithConfiguration_( - SwiftLibrary _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_921( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSURLSessionConfiguration configuration) { + final _ret = _lib._objc_msgSend_1056(_lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, configuration._id); return NSURLSession._(_ret, _lib, retain: true, release: true); } static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( SwiftLibrary _lib, - NSURLSessionConfiguration? configuration, + NSURLSessionConfiguration configuration, NSObject? delegate, NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_922( + final _ret = _lib._objc_msgSend_1057( _lib._class_NSURLSession1, _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, - configuration?._id ?? ffi.nullptr, + configuration._id, delegate?._id ?? ffi.nullptr, queue?._id ?? ffi.nullptr); return NSURLSession._(_ret, _lib, retain: true, release: true); } - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_790(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + NSOperationQueue get delegateQueue { + final _ret = _lib._objc_msgSend_917(_id, _lib._sel_delegateQueue1); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_911(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + NSURLSessionConfiguration get configuration { + final _ret = _lib._objc_msgSend_1041(_id, _lib._sel_configuration1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } NSString? get sessionDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_sessionDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set sessionDescription(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); } void finishTasksAndInvalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); } void invalidateAndCancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); } - void resetWithCompletionHandler_(ObjCBlock16 completionHandler) { - return _lib._objc_msgSend_465( + void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_532( _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); } - void flushWithCompletionHandler_(ObjCBlock16 completionHandler) { - return _lib._objc_msgSend_465( + void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_532( _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); } - void getTasksWithCompletionHandler_(ObjCBlock37 completionHandler) { - return _lib._objc_msgSend_923( + void getTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { + _lib._objc_msgSend_1058( _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); } - void getAllTasksWithCompletionHandler_(ObjCBlock30 completionHandler) { - return _lib._objc_msgSend_924(_id, - _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); + void getAllTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray1 completionHandler) { + _lib._objc_msgSend_1059(_id, _lib._sel_getAllTasksWithCompletionHandler_1, + completionHandler._id); } - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_925( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1060( + _id, _lib._sel_dataTaskWithRequest_1, request._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_926( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionDataTask dataTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_1061(_id, _lib._sel_dataTaskWithURL_1, url._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_927( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); + NSURLRequest request, NSURL fileURL) { + final _ret = _lib._objc_msgSend_1063(_id, + _lib._sel_uploadTaskWithRequest_fromFile_1, request._id, fileURL._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_928( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); + NSURLRequest request, NSData bodyData) { + final _ret = _lib._objc_msgSend_1064(_id, + _lib._sel_uploadTaskWithRequest_fromData_1, request._id, bodyData._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_1065( + _id, _lib._sel_uploadTaskWithResumeData_1, resumeData._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_929(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1066( + _id, _lib._sel_uploadTaskWithStreamedRequest_1, request._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_931( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1067( + _id, _lib._sel_downloadTaskWithRequest_1, request._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_932( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_1068(_id, _lib._sel_downloadTaskWithURL_1, url._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_933(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_1069( + _id, _lib._sel_downloadTaskWithResumeData_1, resumeData._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_936( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); + NSString hostname, int port) { + final _ret = _lib._objc_msgSend_1072( + _id, _lib._sel_streamTaskWithHostName_port_1, hostname._id, port); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_942( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService service) { + final _ret = _lib._objc_msgSend_1080( + _id, _lib._sel_streamTaskWithNetService_1, service._id); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_949( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_1087(_id, _lib._sel_webSocketTaskWithURL_1, url._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_950( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); + NSURL url, NSArray protocols) { + final _ret = _lib._objc_msgSend_1088(_id, + _lib._sel_webSocketTaskWithURL_protocols_1, url._id, protocols._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_951( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_1089( + _id, _lib._sel_webSocketTaskWithRequest_1, request._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } @@ -60068,77 +68193,102 @@ class NSURLSession extends NSObject { } NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_952( + NSURLRequest request, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1090( _id, _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, + request._id, completionHandler._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_953( + NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1091( _id, _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, completionHandler._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, NSURL? fileURL, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_954( + NSURLRequest request, + NSURL fileURL, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1092( _id, _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr, + request._id, + fileURL._id, completionHandler._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, NSData? bodyData, ObjCBlock41 completionHandler) { - final _ret = _lib._objc_msgSend_955( + NSURLRequest request, + NSData? bodyData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1093( _id, _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, - request?._id ?? ffi.nullptr, + request._id, bodyData?._id ?? ffi.nullptr, completionHandler._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } + NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( + NSData resumeData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1094( + _id, + _lib._sel_uploadTaskWithResumeData_completionHandler_1, + resumeData._id, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock42 completionHandler) { - final _ret = _lib._objc_msgSend_956( + NSURLRequest request, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1095( _id, _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, + request._id, completionHandler._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock42 completionHandler) { - final _ret = _lib._objc_msgSend_957( + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1096( _id, _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, completionHandler._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, ObjCBlock42 completionHandler) { - final _ret = _lib._objc_msgSend_958( + NSData resumeData, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1097( _id, _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, + resumeData._id, completionHandler._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } + static NSURLSession allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSession1, _lib._sel_allocWithZone_1, zone); + return NSURLSession._(_ret, _lib, retain: false, release: true); + } + static NSURLSession alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); @@ -60149,18 +68299,18 @@ class NSURLSession extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSession1, + _lib._objc_msgSend_15(_lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60175,33 +68325,29 @@ class NSURLSession extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSession1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSession1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSession1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSession1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSession1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60238,73 +68384,71 @@ class NSURLSessionConfiguration extends NSObject { obj._lib._class_NSURLSessionConfiguration1); } - static NSURLSessionConfiguration? getDefaultSessionConfiguration( + static NSURLSessionConfiguration getDefaultSessionConfiguration( SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_911(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_1041(_lib._class_NSURLSessionConfiguration1, _lib._sel_defaultSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( + static NSURLSessionConfiguration getEphemeralSessionConfiguration( SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_911(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_1041(_lib._class_NSURLSessionConfiguration1, _lib._sel_ephemeralSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } static NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier_( - SwiftLibrary _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_912( + SwiftLibrary _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_1042( _lib._class_NSURLSessionConfiguration1, _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); + identifier._id); return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } NSString? get identifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_identifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } int get requestCachePolicy { - return _lib._objc_msgSend_748(_id, _lib._sel_requestCachePolicy1); + return _lib._objc_msgSend_859(_id, _lib._sel_requestCachePolicy1); } set requestCachePolicy(int value) { - _lib._objc_msgSend_889(_id, _lib._sel_setRequestCachePolicy_1, value); + return _lib._objc_msgSend_1017( + _id, _lib._sel_setRequestCachePolicy_1, value); } double get timeoutIntervalForRequest { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutIntervalForRequest1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutIntervalForRequest1); } set timeoutIntervalForRequest(double value) { - _lib._objc_msgSend_474( + return _lib._objc_msgSend_542( _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } double get timeoutIntervalForResource { - return _lib._objc_msgSend_149(_id, _lib._sel_timeoutIntervalForResource1); + return _lib._objc_msgSend_165(_id, _lib._sel_timeoutIntervalForResource1); } set timeoutIntervalForResource(double value) { - _lib._objc_msgSend_474( + return _lib._objc_msgSend_542( _id, _lib._sel_setTimeoutIntervalForResource_1, value); } int get networkServiceType { - return _lib._objc_msgSend_749(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_860(_id, _lib._sel_networkServiceType1); } set networkServiceType(int value) { - _lib._objc_msgSend_890(_id, _lib._sel_setNetworkServiceType_1, value); + return _lib._objc_msgSend_1018( + _id, _lib._sel_setNetworkServiceType_1, value); } bool get allowsCellularAccess { @@ -60312,7 +68456,8 @@ class NSURLSessionConfiguration extends NSObject { } set allowsCellularAccess(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setAllowsCellularAccess_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setAllowsCellularAccess_1, value); } bool get allowsExpensiveNetworkAccess { @@ -60320,7 +68465,7 @@ class NSURLSessionConfiguration extends NSObject { } set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -60330,16 +68475,26 @@ class NSURLSessionConfiguration extends NSObject { } set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_527( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + bool get waitsForConnectivity { return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); } set waitsForConnectivity(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setWaitsForConnectivity_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setWaitsForConnectivity_1, value); } bool get discretionary { @@ -60347,19 +68502,19 @@ class NSURLSessionConfiguration extends NSObject { } set discretionary(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setDiscretionary_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setDiscretionary_1, value); } NSString? get sharedContainerIdentifier { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); + _lib._objc_msgSend_44(_id, _lib._sel_sharedContainerIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set sharedContainerIdentifier(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setSharedContainerIdentifier_1, + return _lib._objc_msgSend_545(_id, _lib._sel_setSharedContainerIdentifier_1, value?._id ?? ffi.nullptr); } @@ -60368,57 +68523,58 @@ class NSURLSessionConfiguration extends NSObject { } set sessionSendsLaunchEvents(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setSessionSendsLaunchEvents_1, value); } NSDictionary? get connectionProxyDictionary { final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_connectionProxyDictionary1); + _lib._objc_msgSend_390(_id, _lib._sel_connectionProxyDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set connectionProxyDictionary(NSDictionary? value) { - _lib._objc_msgSend_165(_id, _lib._sel_setConnectionProxyDictionary_1, + return _lib._objc_msgSend_634(_id, _lib._sel_setConnectionProxyDictionary_1, value?._id ?? ffi.nullptr); } int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_913(_id, _lib._sel_TLSMinimumSupportedProtocol1); + return _lib._objc_msgSend_1043(_id, _lib._sel_TLSMinimumSupportedProtocol1); } set TLSMinimumSupportedProtocol(int value) { - _lib._objc_msgSend_914( + return _lib._objc_msgSend_1044( _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_913(_id, _lib._sel_TLSMaximumSupportedProtocol1); + return _lib._objc_msgSend_1043(_id, _lib._sel_TLSMaximumSupportedProtocol1); } set TLSMaximumSupportedProtocol(int value) { - _lib._objc_msgSend_914( + return _lib._objc_msgSend_1044( _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_915( + return _lib._objc_msgSend_1045( _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } set TLSMinimumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_916( + return _lib._objc_msgSend_1046( _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_915( + return _lib._objc_msgSend_1045( _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); } set TLSMaximumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_916( + return _lib._objc_msgSend_1046( _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); } @@ -60427,7 +68583,8 @@ class NSURLSessionConfiguration extends NSObject { } set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } bool get HTTPShouldSetCookies { @@ -60435,71 +68592,73 @@ class NSURLSessionConfiguration extends NSObject { } set HTTPShouldSetCookies(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setHTTPShouldSetCookies_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setHTTPShouldSetCookies_1, value); } int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_745(_id, _lib._sel_HTTPCookieAcceptPolicy1); + return _lib._objc_msgSend_856(_id, _lib._sel_HTTPCookieAcceptPolicy1); } set HTTPCookieAcceptPolicy(int value) { - _lib._objc_msgSend_746(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + return _lib._objc_msgSend_857( + _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); } NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_HTTPAdditionalHeaders1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_HTTPAdditionalHeaders1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set HTTPAdditionalHeaders(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + return _lib._objc_msgSend_83(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } set HTTPMaximumConnectionsPerHost(int value) { - _lib._objc_msgSend_558( + return _lib._objc_msgSend_635( _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_739(_id, _lib._sel_HTTPCookieStorage1); + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_HTTPCookieStorage1); return _ret.address == 0 ? null : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } set HTTPCookieStorage(NSHTTPCookieStorage? value) { - _lib._objc_msgSend_917( + return _lib._objc_msgSend_1048( _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_874(_id, _lib._sel_URLCredentialStorage1); + final _ret = _lib._objc_msgSend_1049(_id, _lib._sel_URLCredentialStorage1); return _ret.address == 0 ? null : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } set URLCredentialStorage(NSURLCredentialStorage? value) { - _lib._objc_msgSend_918( + return _lib._objc_msgSend_1050( _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); } NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_844(_id, _lib._sel_URLCache1); + final _ret = _lib._objc_msgSend_1051(_id, _lib._sel_URLCache1); return _ret.address == 0 ? null : NSURLCache._(_ret, _lib, retain: true, release: true); } set URLCache(NSURLCache? value) { - _lib._objc_msgSend_845( + return _lib._objc_msgSend_1052( _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); } @@ -60509,28 +68668,29 @@ class NSURLSessionConfiguration extends NSObject { } set shouldUseExtendedBackgroundIdleMode(bool value) { - _lib._objc_msgSend_460( + return _lib._objc_msgSend_527( _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); } NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_protocolClasses1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_protocolClasses1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set protocolClasses(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } int get multipathServiceType { - return _lib._objc_msgSend_919(_id, _lib._sel_multipathServiceType1); + return _lib._objc_msgSend_1054(_id, _lib._sel_multipathServiceType1); } set multipathServiceType(int value) { - _lib._objc_msgSend_920(_id, _lib._sel_setMultipathServiceType_1, value); + return _lib._objc_msgSend_1055( + _id, _lib._sel_setMultipathServiceType_1, value); } @override @@ -60547,14 +68707,20 @@ class NSURLSessionConfiguration extends NSObject { } static NSURLSessionConfiguration backgroundSessionConfiguration_( - SwiftLibrary _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_912( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_1042(_lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, identifier._id); return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } + static NSURLSessionConfiguration allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionConfiguration1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionConfiguration alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); @@ -60566,18 +68732,18 @@ class NSURLSessionConfiguration extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60592,33 +68758,29 @@ class NSURLSessionConfiguration extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionConfiguration1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionConfiguration1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionConfiguration1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionConfiguration1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60662,106 +68824,258 @@ abstract class NSURLSessionMultipathServiceType { static const int NSURLSessionMultipathServiceTypeAggregate = 3; } -void _ObjCBlock37_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction(SwiftLibrary lib, void Function(NSArray, NSArray, NSArray) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSArray._(arg0, lib, retain: true, release: true), + NSArray._(arg1, lib, retain: true, release: true), + NSArray._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.listener(SwiftLibrary lib, void Function(NSArray, NSArray, NSArray) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + NSArray._(arg0, lib, retain: true, release: true), + NSArray._(arg1, lib, retain: true, release: true), + NSArray._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSArray arg0, NSArray arg1, NSArray arg2) => _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id, arg2._id); } -final _ObjCBlock37_closureRegistry = {}; -int _ObjCBlock37_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { - final id = ++_ObjCBlock37_closureRegistryIndex; - _ObjCBlock37_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSArray1_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSArray1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray1_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray1_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray1_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock37_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock37_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_NSArray1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSArray1_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock37 extends _ObjCBlockBase { - ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray1._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock37.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray1.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi.Void Function(ffi.Pointer arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock37_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock37.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSArray1.fromFunction( + SwiftLibrary lib, void Function(NSArray) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock37_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) .cast(), - _ObjCBlock37_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSArray1.listener( + SwiftLibrary lib, void Function(NSArray) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSArray arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSURLSessionUploadTask extends NSURLSessionDataTask { @@ -60801,6 +69115,19 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_1062( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + } + + static NSURLSessionUploadTask allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionUploadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionUploadTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); @@ -60811,18 +69138,18 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionUploadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60837,33 +69164,29 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionUploadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionUploadTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionUploadTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionUploadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60875,6 +69198,114 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { } } +void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSData_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address]!(arg0); + +class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData.fromFunctionPointer( + SwiftLibrary lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) + : this._( + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData.fromFunction( + SwiftLibrary lib, void Function(NSData?) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData.listener(SwiftLibrary lib, void Function(NSData?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSData? arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0?._id ?? ffi.nullptr); +} + class NSURLSessionDownloadTask extends NSURLSessionTask { NSURLSessionDownloadTask._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -60900,8 +69331,9 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { obj._lib._class_NSURLSessionDownloadTask1); } - void cancelByProducingResumeData_(ObjCBlock38 completionHandler) { - return _lib._objc_msgSend_930( + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_1062( _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } @@ -60917,6 +69349,13 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionDownloadTask allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionDownloadTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); @@ -60927,18 +69366,18 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60953,33 +69392,29 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionDownloadTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionDownloadTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionDownloadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -60991,74 +69426,6 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { } } -void _ObjCBlock38_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock38_closureRegistry = {}; -int _ObjCBlock38_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { - final id = ++_ObjCBlock38_closureRegistryIndex; - _ObjCBlock38_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock38_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock38_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock38 extends _ObjCBlockBase { - ObjCBlock38._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock38.fromFunctionPointer( - SwiftLibrary lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock38_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - - /// Creates a block from a Dart function. - ObjCBlock38.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock38_closureTrampoline) - .cast(), - _ObjCBlock38_registerClosure(fn)), - lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - class NSURLSessionStreamTask extends NSURLSessionTask { NSURLSessionStreamTask._(ffi.Pointer id, SwiftLibrary lib, {bool retain = false, bool release = false}) @@ -61084,9 +69451,12 @@ class NSURLSessionStreamTask extends NSURLSessionTask { obj._lib._class_NSURLSessionStreamTask1); } - void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, - int maxBytes, double timeout, ObjCBlock39 completionHandler) { - return _lib._objc_msgSend_934( + void readDataOfMinLength_maxLength_timeout_completionHandler_( + int minBytes, + int maxBytes, + double timeout, + ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { + _lib._objc_msgSend_1070( _id, _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, minBytes, @@ -61095,34 +69465,34 @@ class NSURLSessionStreamTask extends NSURLSessionTask { completionHandler._id); } - void writeData_timeout_completionHandler_( - NSData? data, double timeout, ObjCBlock15 completionHandler) { - return _lib._objc_msgSend_935( + void writeData_timeout_completionHandler_(NSData data, double timeout, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_1071( _id, _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, + data._id, timeout, completionHandler._id); } void captureStreams() { - return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } void closeWrite() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } void closeRead() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } void startSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } void stopSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } @override @@ -61137,6 +69507,13 @@ class NSURLSessionStreamTask extends NSURLSessionTask { return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionStreamTask allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionStreamTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionStreamTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); @@ -61147,18 +69524,18 @@ class NSURLSessionStreamTask extends NSURLSessionTask { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61173,33 +69550,29 @@ class NSURLSessionStreamTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionStreamTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionStreamTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionStreamTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionStreamTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionStreamTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -61211,38 +69584,49 @@ class NSURLSessionStreamTask extends NSURLSessionTask { } } -void _ObjCBlock39_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock39_closureRegistry = {}; -int _ObjCBlock39_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { - final id = ++_ObjCBlock39_closureRegistryIndex; - _ObjCBlock39_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, bool, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = , bool, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + void Function(ffi.Pointer, bool, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock39_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock39_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock39 extends _ObjCBlockBase { - ObjCBlock39._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock39.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -61251,54 +69635,86 @@ class ObjCBlock39 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock39_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock39.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction(SwiftLibrary lib, void Function(NSData, bool, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock39_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock39_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) => fn( + NSData._(arg0, lib, retain: true, release: true), + arg1, + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_bool_NSError.listener( + SwiftLibrary lib, void Function(NSData, bool, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + (ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) => + fn(NSData._(arg0, lib, retain: true, release: true), arg1, arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Bool, ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSData arg0, bool arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + bool, ffi.Pointer)>()( + _id, arg0._id, arg1, arg2?._id ?? ffi.nullptr); } class NSNetService extends NSObject { @@ -61325,47 +69741,43 @@ class NSNetService extends NSObject { } NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_937( + NSString domain, NSString type, NSString name, int port) { + final _ret = _lib._objc_msgSend_1073( _id, _lib._sel_initWithDomain_type_name_port_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, + domain._id, + type._id, + name._id, port); return NSNetService._(_ret, _lib, retain: true, release: true); } NSNetService initWithDomain_type_name_( - NSString? domain, NSString? type, NSString? name) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithDomain_type_name_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr); + NSString domain, NSString type, NSString name) { + final _ret = _lib._objc_msgSend_1074(_id, + _lib._sel_initWithDomain_type_name_1, domain._id, type._id, name._id); return NSNetService._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_501(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { + _lib._objc_msgSend_569( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); } NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_368( + return _lib._objc_msgSend_416( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -61374,107 +69786,108 @@ class NSNetService extends NSObject { } set includesPeerToPeer(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setIncludesPeerToPeer_1, value); + return _lib._objc_msgSend_527( + _id, _lib._sel_setIncludesPeerToPeer_1, value); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get name { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get type { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get type { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_type1); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get domain { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_hostName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSArray? get addresses { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_addresses1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_addresses1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + return _lib._objc_msgSend_83(_id, _lib._sel_port1); } void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } void publishWithOptions_(int options) { - return _lib._objc_msgSend_938(_id, _lib._sel_publishWithOptions_1, options); + _lib._objc_msgSend_1075(_id, _lib._sel_publishWithOptions_1, options); } void resolve() { - return _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + _lib._objc_msgSend_1(_id, _lib._sel_resolve1); } void stop() { - return _lib._objc_msgSend_1(_id, _lib._sel_stop1); + _lib._objc_msgSend_1(_id, _lib._sel_stop1); } static NSDictionary dictionaryFromTXTRecordData_( - SwiftLibrary _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_939(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSData txtData) { + final _ret = _lib._objc_msgSend_1076(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSData dataFromTXTRecordDictionary_( - SwiftLibrary _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_940( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSDictionary txtDictionary) { + final _ret = _lib._objc_msgSend_1077(_lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, txtDictionary._id); return NSData._(_ret, _lib, retain: true, release: true); } void resolveWithTimeout_(double timeout) { - return _lib._objc_msgSend_473(_id, _lib._sel_resolveWithTimeout_1, timeout); + _lib._objc_msgSend_541(_id, _lib._sel_resolveWithTimeout_1, timeout); } bool getInputStream_outputStream_( ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_941(_id, _lib._sel_getInputStream_outputStream_1, + return _lib._objc_msgSend_1078(_id, _lib._sel_getInputStream_outputStream_1, inputStream, outputStream); } bool setTXTRecordData_(NSData? recordData) { - return _lib._objc_msgSend_23( + return _lib._objc_msgSend_1079( _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); } - NSData TXTRecordData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); - return NSData._(_ret, _lib, retain: true, release: true); + NSData? TXTRecordData() { + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_TXTRecordData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } void startMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); } void stopMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + } + + @override + NSNetService init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNetService._(_ret, _lib, retain: true, release: true); } static NSNetService new1(SwiftLibrary _lib) { @@ -61483,6 +69896,13 @@ class NSNetService extends NSObject { return NSNetService._(_ret, _lib, retain: false, release: true); } + static NSNetService allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNetService1, _lib._sel_allocWithZone_1, zone); + return NSNetService._(_ret, _lib, retain: false, release: true); + } + static NSNetService alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); @@ -61493,18 +69913,18 @@ class NSNetService extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._objc_msgSend_15(_lib._class_NSNetService1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61519,33 +69939,29 @@ class NSNetService extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNetService1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSNetService1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNetService1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSNetService1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSNetService1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -61587,44 +70003,45 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { obj._lib._class_NSURLSessionWebSocketTask1); } - void sendMessage_completionHandler_( - NSURLSessionWebSocketMessage? message, ObjCBlock15 completionHandler) { - return _lib._objc_msgSend_944( - _id, - _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, - completionHandler._id); + void sendMessage_completionHandler_(NSURLSessionWebSocketMessage message, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_1082(_id, _lib._sel_sendMessage_completionHandler_1, + message._id, completionHandler._id); } - void receiveMessageWithCompletionHandler_(ObjCBlock40 completionHandler) { - return _lib._objc_msgSend_945(_id, + void receiveMessageWithCompletionHandler_( + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + completionHandler) { + _lib._objc_msgSend_1083(_id, _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); } - void sendPingWithPongReceiveHandler_(ObjCBlock15 pongReceiveHandler) { - return _lib._objc_msgSend_946(_id, - _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); + void sendPingWithPongReceiveHandler_( + ObjCBlock_ffiVoid_NSError pongReceiveHandler) { + _lib._objc_msgSend_1084(_id, _lib._sel_sendPingWithPongReceiveHandler_1, + pongReceiveHandler._id); } void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - return _lib._objc_msgSend_947(_id, _lib._sel_cancelWithCloseCode_reason_1, + _lib._objc_msgSend_1085(_id, _lib._sel_cancelWithCloseCode_reason_1, closeCode, reason?._id ?? ffi.nullptr); } int get maximumMessageSize { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + return _lib._objc_msgSend_83(_id, _lib._sel_maximumMessageSize1); } set maximumMessageSize(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setMaximumMessageSize_1, value); + return _lib._objc_msgSend_635( + _id, _lib._sel_setMaximumMessageSize_1, value); } int get closeCode { - return _lib._objc_msgSend_948(_id, _lib._sel_closeCode1); + return _lib._objc_msgSend_1086(_id, _lib._sel_closeCode1); } NSData? get closeReason { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_closeReason1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -61643,6 +70060,14 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { retain: false, release: true); } + static NSURLSessionWebSocketTask allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionWebSocketTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); @@ -61654,18 +70079,18 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61680,33 +70105,29 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80(_lib._class_NSURLSessionWebSocketTask1, + final _ret = _lib._objc_msgSend_85(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -61744,33 +70165,33 @@ class NSURLSessionWebSocketMessage extends NSObject { obj._lib._class_NSURLSessionWebSocketMessage1); } - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSURLSessionWebSocketMessage initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_279(_id, _lib._sel_initWithData_1, data._id); return NSURLSessionWebSocketMessage._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + NSURLSessionWebSocketMessage initWithString_(NSString string) { + final _ret = + _lib._objc_msgSend_31(_id, _lib._sel_initWithString_1, string._id); return NSURLSessionWebSocketMessage._(_ret, _lib, retain: true, release: true); } int get type { - return _lib._objc_msgSend_943(_id, _lib._sel_type1); + return _lib._objc_msgSend_1081(_id, _lib._sel_type1); } NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + final _ret = _lib._objc_msgSend_286(_id, _lib._sel_data1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_string1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -61790,6 +70211,14 @@ class NSURLSessionWebSocketMessage extends NSObject { retain: false, release: true); } + static NSURLSessionWebSocketMessage allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionWebSocketMessage alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); @@ -61801,18 +70230,18 @@ class NSURLSessionWebSocketMessage extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61827,33 +70256,31 @@ class NSURLSessionWebSocketMessage extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); @@ -61871,37 +70298,52 @@ abstract class NSURLSessionWebSocketMessageType { static const int NSURLSessionWebSocketMessageTypeString = 1; } -void _ObjCBlock40_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock40_closureRegistry = {}; -int _ObjCBlock40_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { - final id = ++_ObjCBlock40_closureRegistryIndex; - _ObjCBlock40_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[id] = + fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock40_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock40_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock40 extends _ObjCBlockBase { - ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock40.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -61910,48 +70352,86 @@ class ObjCBlock40 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock40_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock40.fromFunction( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + void Function(NSURLSessionWebSocketMessage?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock40_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) .cast(), - _ObjCBlock40_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 ? null : NSURLSessionWebSocketMessage._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSError._(arg1, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.listener( + SwiftLibrary lib, + void Function(NSURLSessionWebSocketMessage?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0.address == 0 + ? null + : NSURLSessionWebSocketMessage._(arg0, lib, + retain: true, release: true), + arg1.address == 0 + ? null + : NSError._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURLSessionWebSocketMessage? arg0, NSError? arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()( + _id, arg0?._id ?? ffi.nullptr, arg1?._id ?? ffi.nullptr); } abstract class NSURLSessionWebSocketCloseCode { @@ -61971,48 +70451,56 @@ abstract class NSURLSessionWebSocketCloseCode { static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; } -void _ObjCBlock41_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock41_closureRegistry = {}; -int _ObjCBlock41_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { - final id = ++_ObjCBlock41_closureRegistryIndex; - _ObjCBlock41_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> 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); +final _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock41_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock41_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock41 extends _ObjCBlockBase { - ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock41.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -62023,98 +70511,148 @@ class ObjCBlock41 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock41_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock41.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( + SwiftLibrary lib, void Function(NSData?, NSURLResponse?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock41_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.listener( + SwiftLibrary lib, void Function(NSData?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock41_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure((ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSData._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSData? arg0, NSURLResponse? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } - - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -void _ObjCBlock42_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock42_closureRegistry = {}; -int _ObjCBlock42_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { - final id = ++_ObjCBlock42_closureRegistryIndex; - _ObjCBlock42_closureRegistry[id] = fn; + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = , ffi.Pointer, + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock42_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock42_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock42 extends _ObjCBlockBase { - ObjCBlock42._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock42.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< ffi.NativeFunction< @@ -62125,54 +70663,94 @@ class ObjCBlock42 extends _ObjCBlockBase { ptr) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< + _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock42_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock42.fromFunction( - SwiftLibrary lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( + SwiftLibrary lib, void Function(NSURL?, NSURLResponse?, NSError?) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock42_closureTrampoline) + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.listener( + SwiftLibrary lib, void Function(NSURL?, NSURLResponse?, NSError?) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, ffi.Pointer, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction .cast(), - _ObjCBlock42_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) => + fn( + arg0.address == 0 + ? null + : NSURL._(arg0, lib, retain: true, release: true), + arg1.address == 0 ? null : NSURLResponse._(arg1, lib, retain: true, release: true), + arg2.address == 0 ? null : NSError._(arg2, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSURL? arg0, NSURLResponse? arg1, NSError? arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>()( + _id, + arg0?._id ?? ffi.nullptr, + arg1?._id ?? ffi.nullptr, + arg2?._id ?? ffi.nullptr); } class NSProtocolChecker extends NSProxy { @@ -62199,37 +70777,32 @@ class NSProtocolChecker extends NSProxy { obj._lib._class_NSProtocolChecker1); } - Protocol? get protocol { - final _ret = _lib._objc_msgSend_959(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : Protocol._(_ret, _lib, retain: true, release: true); + Protocol get protocol { + final _ret = _lib._objc_msgSend_1098(_id, _lib._sel_protocol1); + return Protocol._(_ret, _lib, retain: true, release: true); } NSObject? get target { - final _ret = _lib._objc_msgSend_788(_id, _lib._sel_target1); + final _ret = _lib._objc_msgSend_1099(_id, _lib._sel_target1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } static NSProtocolChecker protocolCheckerWithTarget_protocol_( - SwiftLibrary _lib, NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_960( + SwiftLibrary _lib, NSObject anObject, Protocol aProtocol) { + final _ret = _lib._objc_msgSend_1100( _lib._class_NSProtocolChecker1, _lib._sel_protocolCheckerWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); + anObject._id, + aProtocol._id); return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } NSProtocolChecker initWithTarget_protocol_( - NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_960( - _id, - _lib._sel_initWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); + NSObject anObject, Protocol aProtocol) { + final _ret = _lib._objc_msgSend_1100( + _id, _lib._sel_initWithTarget_protocol_1, anObject._id, aProtocol._id); return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } @@ -62275,90 +70848,99 @@ class NSTask extends NSObject { } NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_executableURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set executableURL(NSURL? value) { - _lib._objc_msgSend_888( + return _lib._objc_msgSend_671( _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); } NSArray? get arguments { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_arguments1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_arguments1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set arguments(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } NSDictionary? get environment { - final _ret = _lib._objc_msgSend_164(_id, _lib._sel_environment1); + final _ret = _lib._objc_msgSend_390(_id, _lib._sel_environment1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } set environment(NSDictionary? value) { - _lib._objc_msgSend_165( + return _lib._objc_msgSend_634( _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); } NSURL? get currentDirectoryURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); + final _ret = _lib._objc_msgSend_45(_id, _lib._sel_currentDirectoryURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set currentDirectoryURL(NSURL? value) { - _lib._objc_msgSend_888( + return _lib._objc_msgSend_671( _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); } - NSObject get standardInput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get standardInput { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_standardInput1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set standardInput(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setStandardInput_1, value._id); + set standardInput(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setStandardInput_1, value?._id ?? ffi.nullptr); } - NSObject get standardOutput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get standardOutput { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_standardOutput1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set standardOutput(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setStandardOutput_1, value._id); + set standardOutput(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setStandardOutput_1, value?._id ?? ffi.nullptr); } - NSObject get standardError { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get standardError { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_standardError1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set standardError(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setStandardError_1, value._id); + set standardError(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setStandardError_1, value?._id ?? ffi.nullptr); } bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219(_id, _lib._sel_launchAndReturnError_1, error); + return _lib._objc_msgSend_243(_id, _lib._sel_launchAndReturnError_1, error); } void interrupt() { - return _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); } void terminate() { - return _lib._objc_msgSend_1(_id, _lib._sel_terminate1); + _lib._objc_msgSend_1(_id, _lib._sel_terminate1); } bool suspend() { @@ -62370,7 +70952,7 @@ class NSTask extends NSObject { } int get processIdentifier { - return _lib._objc_msgSend_213(_id, _lib._sel_processIdentifier1); + return _lib._objc_msgSend_237(_id, _lib._sel_processIdentifier1); } bool get running { @@ -62378,86 +70960,89 @@ class NSTask extends NSObject { } int get terminationStatus { - return _lib._objc_msgSend_213(_id, _lib._sel_terminationStatus1); + return _lib._objc_msgSend_237(_id, _lib._sel_terminationStatus1); } int get terminationReason { - return _lib._objc_msgSend_961(_id, _lib._sel_terminationReason1); + return _lib._objc_msgSend_1101(_id, _lib._sel_terminationReason1); } - ObjCBlock43 get terminationHandler { - final _ret = _lib._objc_msgSend_962(_id, _lib._sel_terminationHandler1); - return ObjCBlock43._(_ret, _lib); + ObjCBlock_ffiVoid_NSTask? get terminationHandler { + final _ret = _lib._objc_msgSend_1102(_id, _lib._sel_terminationHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSTask._(_ret, _lib, retain: true, release: true); } - set terminationHandler(ObjCBlock43 value) { - _lib._objc_msgSend_963(_id, _lib._sel_setTerminationHandler_1, value._id); + set terminationHandler(ObjCBlock_ffiVoid_NSTask? value) { + return _lib._objc_msgSend_1103( + _id, _lib._sel_setTerminationHandler_1, value?._id ?? ffi.nullptr); } int get qualityOfService { - return _lib._objc_msgSend_475(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_543(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_476(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_544(_id, _lib._sel_setQualityOfService_1, value); } - static NSTask + static NSTask? launchedTaskWithExecutableURL_arguments_error_terminationHandler_( SwiftLibrary _lib, - NSURL? url, - NSArray? arguments, + NSURL url, + NSArray arguments, ffi.Pointer> error, - ObjCBlock43 terminationHandler) { - final _ret = _lib._objc_msgSend_964( + ObjCBlock_ffiVoid_NSTask? terminationHandler) { + final _ret = _lib._objc_msgSend_1104( _lib._class_NSTask1, _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, - url?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, + url._id, + arguments._id, error, - terminationHandler._id); - return NSTask._(_ret, _lib, retain: true, release: true); + terminationHandler?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSTask._(_ret, _lib, retain: true, release: true); } void waitUntilExit() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); } NSString? get launchPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_launchPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set launchPath(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString get currentDirectoryPath { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_currentDirectoryPath1); + return NSString._(_ret, _lib, retain: true, release: true); } - set currentDirectoryPath(NSString? value) { - _lib._objc_msgSend_477( - _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); + set currentDirectoryPath(NSString value) { + return _lib._objc_msgSend_646( + _id, _lib._sel_setCurrentDirectoryPath_1, value._id); } void launch() { - return _lib._objc_msgSend_1(_id, _lib._sel_launch1); + _lib._objc_msgSend_1(_id, _lib._sel_launch1); } static NSTask launchedTaskWithLaunchPath_arguments_( - SwiftLibrary _lib, NSString? path, NSArray? arguments) { - final _ret = _lib._objc_msgSend_965( + SwiftLibrary _lib, NSString path, NSArray arguments) { + final _ret = _lib._objc_msgSend_1105( _lib._class_NSTask1, _lib._sel_launchedTaskWithLaunchPath_arguments_1, - path?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); + path._id, + arguments._id); return NSTask._(_ret, _lib, retain: true, release: true); } @@ -62466,6 +71051,12 @@ class NSTask extends NSObject { return NSTask._(_ret, _lib, retain: false, release: true); } + static NSTask allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSTask1, _lib._sel_allocWithZone_1, zone); + return NSTask._(_ret, _lib, retain: false, release: true); + } + static NSTask alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); return NSTask._(_ret, _lib, retain: false, release: true); @@ -62475,18 +71066,18 @@ class NSTask extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTask1, + _lib._objc_msgSend_15(_lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62501,33 +71092,29 @@ class NSTask extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -62544,72 +71131,110 @@ abstract class NSTaskTerminationReason { static const int NSTaskTerminationReasonUncaughtSignal = 2; } -void _ObjCBlock43_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock43_closureRegistry = {}; -int _ObjCBlock43_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { - final id = ++_ObjCBlock43_closureRegistryIndex; - _ObjCBlock43_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSTask_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSTask_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTask_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSTask_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTask_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock43_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock43_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSTask_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSTask_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock43 extends _ObjCBlockBase { - ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSTask extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTask._(ffi.Pointer<_ObjCBlock> id, SwiftLibrary lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock43.fromFunctionPointer( + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTask.fromFunctionPointer( SwiftLibrary lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> ptr) : this._( - lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock43_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); + static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock43.fromFunction( - SwiftLibrary lib, void Function(ffi.Pointer arg0) fn) + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + ObjCBlock_ffiVoid_NSTask.fromFunction( + SwiftLibrary lib, void Function(NSTask) fn) : this._( lib._newBlock1( - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock43_closureTrampoline) + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSTask_closureTrampoline) .cast(), - _ObjCBlock43_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSTask_registerClosure( + (ffi.Pointer arg0) => + fn(NSTask._(arg0, lib, retain: true, release: true)))), lib); - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + static ffi.Pointer? _dartFuncTrampoline; + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// Note that unlike the default behavior of NativeCallable.listener, listener + /// blocks do not keep the isolate alive. + ObjCBlock_ffiVoid_NSTask.listener(SwiftLibrary lib, void Function(NSTask) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSTask_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSTask_registerClosure( + (ffi.Pointer arg0) => + fn(NSTask._(arg0, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; - ffi.Pointer<_ObjCBlock> get pointer => _id; + void call(NSTask arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id); } class NSXMLElement extends NSXMLNode { @@ -62635,177 +71260,193 @@ class NSXMLElement extends NSXMLNode { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); } - NSXMLElement initWithName_(NSString? name) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); + NSXMLElement initWithName_(NSString name) { + final _ret = _lib._objc_msgSend_31(_id, _lib._sel_initWithName_1, name._id); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159(_id, _lib._sel_initWithName_URI_1, - name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); + NSXMLElement initWithName_URI_(NSString name, NSString? URI) { + final _ret = _lib._objc_msgSend_1142( + _id, _lib._sel_initWithName_URI_1, name._id, URI?._id ?? ffi.nullptr); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( + NSXMLElement initWithName_stringValue_(NSString name, NSString? string) { + final _ret = _lib._objc_msgSend_1142( _id, _lib._sel_initWithName_stringValue_1, - name?._id ?? ffi.nullptr, + name._id, string?._id ?? ffi.nullptr); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithXMLString_error_( - NSString? string, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_264(_id, - _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + NSXMLElement? initWithXMLString_error_( + NSString string, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_303( + _id, _lib._sel_initWithXMLString_error_1, string._id, error); + return _ret.address == 0 + ? null + : NSXMLElement._(_ret, _lib, retain: true, release: true); } @override NSXMLElement initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSArray elementsForName_(NSString? name) { - final _ret = _lib._objc_msgSend_119( - _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); + NSArray elementsForName_(NSString name) { + final _ret = + _lib._objc_msgSend_358(_id, _lib._sel_elementsForName_1, name._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_617( + NSArray elementsForLocalName_URI_(NSString localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1143( _id, _lib._sel_elementsForLocalName_URI_1, - localName?._id ?? ffi.nullptr, + localName._id, URI?._id ?? ffi.nullptr); return NSArray._(_ret, _lib, retain: true, release: true); } - void addAttribute_(NSXMLNode? attribute) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); + void addAttribute_(NSXMLNode attribute) { + _lib._objc_msgSend_1121(_id, _lib._sel_addAttribute_1, attribute._id); } - void removeAttributeForName_(NSString? name) { - return _lib._objc_msgSend_186( - _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); + void removeAttributeForName_(NSString name) { + _lib._objc_msgSend_248(_id, _lib._sel_removeAttributeForName_1, name._id); } NSArray? get attributes { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_attributes1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_attributes1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set attributes(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); } - void setAttributesWithDictionary_(NSDictionary? attributes) { - return _lib._objc_msgSend_444(_id, _lib._sel_setAttributesWithDictionary_1, - attributes?._id ?? ffi.nullptr); + void setAttributesWithDictionary_(NSDictionary attributes) { + _lib._objc_msgSend_509( + _id, _lib._sel_setAttributesWithDictionary_1, attributes._id); } - NSXMLNode attributeForName_(NSString? name) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? attributeForName_(NSString name) { + final _ret = + _lib._objc_msgSend_1125(_id, _lib._sel_attributeForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_1000( + NSXMLNode? attributeForLocalName_URI_(NSString localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1144( _id, _lib._sel_attributeForLocalName_URI_1, - localName?._id ?? ffi.nullptr, + localName._id, URI?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - void addNamespace_(NSXMLNode? aNamespace) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + void addNamespace_(NSXMLNode aNamespace) { + _lib._objc_msgSend_1121(_id, _lib._sel_addNamespace_1, aNamespace._id); } - void removeNamespaceForPrefix_(NSString? name) { - return _lib._objc_msgSend_186( - _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + void removeNamespaceForPrefix_(NSString name) { + _lib._objc_msgSend_248(_id, _lib._sel_removeNamespaceForPrefix_1, name._id); } NSArray? get namespaces { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_namespaces1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_namespaces1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } set namespaces(NSArray? value) { - _lib._objc_msgSend_696( + return _lib._objc_msgSend_1053( _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); } - NSXMLNode namespaceForPrefix_(NSString? name) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? namespaceForPrefix_(NSString name) { + final _ret = + _lib._objc_msgSend_1125(_id, _lib._sel_namespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSXMLNode resolveNamespaceForName_(NSString? name) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? resolveNamespaceForName_(NSString name) { + final _ret = _lib._objc_msgSend_1125( + _id, _lib._sel_resolveNamespaceForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_resolvePrefixForNamespaceURI_1, - namespaceURI?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? resolvePrefixForNamespaceURI_(NSString namespaceURI) { + final _ret = _lib._objc_msgSend_186( + _id, _lib._sel_resolvePrefixForNamespaceURI_1, namespaceURI._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_977( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + void insertChild_atIndex_(NSXMLNode child, int index) { + _lib._objc_msgSend_1119( + _id, _lib._sel_insertChild_atIndex_1, child._id, index); } - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_978(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + void insertChildren_atIndex_(NSArray children, int index) { + _lib._objc_msgSend_1120( + _id, _lib._sel_insertChildren_atIndex_1, children._id, index); } void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeChildAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + void addChild_(NSXMLNode child) { + _lib._objc_msgSend_1121(_id, _lib._sel_addChild_1, child._id); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_980(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + void replaceChildAtIndex_withNode_(int index, NSXMLNode node) { + _lib._objc_msgSend_1122( + _id, _lib._sel_replaceChildAtIndex_withNode_1, index, node._id); } void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { - return _lib._objc_msgSend_756( + _lib._objc_msgSend_870( _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); } - void setAttributesAsDictionary_(NSDictionary? attributes) { - return _lib._objc_msgSend_444(_id, _lib._sel_setAttributesAsDictionary_1, - attributes?._id ?? ffi.nullptr); + void setAttributesAsDictionary_(NSDictionary attributes) { + _lib._objc_msgSend_509( + _id, _lib._sel_setAttributesAsDictionary_1, attributes._id); + } + + @override + NSXMLElement init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLElement initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } static NSObject document(SwiftLibrary _lib) { @@ -62815,127 +71456,121 @@ class NSXMLElement extends NSXMLNode { } static NSObject documentWithRootElement_( - SwiftLibrary _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLElement1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLElement1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLElement1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - SwiftLibrary _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_(SwiftLibrary _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLElement1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + SwiftLibrary _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLElement1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLElement1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLElement1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLElement1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject commentWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLElement1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject textWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLElement1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSXMLElement1, + _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLElement1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLElement1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLElement1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLElement1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLElement new1(SwiftLibrary _lib) { @@ -62944,6 +71579,13 @@ class NSXMLElement extends NSXMLNode { return NSXMLElement._(_ret, _lib, retain: false, release: true); } + static NSXMLElement allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLElement1, _lib._sel_allocWithZone_1, zone); + return NSXMLElement._(_ret, _lib, retain: false, release: true); + } + static NSXMLElement alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); @@ -62954,18 +71596,18 @@ class NSXMLElement extends NSXMLNode { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLElement1, + _lib._objc_msgSend_15(_lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -62980,33 +71622,29 @@ class NSXMLElement extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLElement1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLElement1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLElement1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLElement1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -63048,12 +71686,12 @@ class NSXMLNode extends NSObject { } NSXMLNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_966(_id, _lib._sel_initWithKind_1, kind); + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); return NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLNode._(_ret, _lib, retain: true, release: true); } @@ -63065,152 +71703,143 @@ class NSXMLNode extends NSObject { } static NSObject documentWithRootElement_( - SwiftLibrary _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLNode1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLNode1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - SwiftLibrary _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_(SwiftLibrary _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLNode1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + SwiftLibrary _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLNode1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLNode1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLNode1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject commentWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLNode1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject textWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLNode1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSXMLNode1, _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get kind { - return _lib._objc_msgSend_970(_id, _lib._sel_kind1); + return _lib._objc_msgSend_1111(_id, _lib._sel_kind1); } NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - NSObject get objectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get objectValue { + final _ret = _lib._objc_msgSend_17(_id, _lib._sel_objectValue1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - set objectValue(NSObject value) { - _lib._objc_msgSend_368(_id, _lib._sel_setObjectValue_1, value._id); + set objectValue(NSObject? value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setObjectValue_1, value?._id ?? ffi.nullptr); } NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_stringValue1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set stringValue(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); } - void setStringValue_resolvingEntities_(NSString? string, bool resolve) { - return _lib._objc_msgSend_971( - _id, - _lib._sel_setStringValue_resolvingEntities_1, - string?._id ?? ffi.nullptr, - resolve); + void setStringValue_resolvingEntities_(NSString string, bool resolve) { + _lib._objc_msgSend_1112( + _id, _lib._sel_setStringValue_resolvingEntities_1, string._id, resolve); } int get index { @@ -63222,14 +71851,14 @@ class NSXMLNode extends NSObject { } NSXMLDocument? get rootDocument { - final _ret = _lib._objc_msgSend_994(_id, _lib._sel_rootDocument1); + final _ret = _lib._objc_msgSend_1136(_id, _lib._sel_rootDocument1); return _ret.address == 0 ? null : NSXMLDocument._(_ret, _lib, retain: true, release: true); } NSXMLNode? get parent { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_parent1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_parent1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); @@ -63240,149 +71869,158 @@ class NSXMLNode extends NSObject { } NSArray? get children { - final _ret = _lib._objc_msgSend_80(_id, _lib._sel_children1); + final _ret = _lib._objc_msgSend_84(_id, _lib._sel_children1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSXMLNode childAtIndex_(int index) { - final _ret = _lib._objc_msgSend_996(_id, _lib._sel_childAtIndex_1, index); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + NSXMLNode? childAtIndex_(int index) { + final _ret = _lib._objc_msgSend_1138(_id, _lib._sel_childAtIndex_1, index); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get previousSibling { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_previousSibling1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_previousSibling1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get nextSibling { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_nextSibling1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_nextSibling1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get previousNode { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_previousNode1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_previousNode1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } NSXMLNode? get nextNode { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_nextNode1); + final _ret = _lib._objc_msgSend_1137(_id, _lib._sel_nextNode1); return _ret.address == 0 ? null : NSXMLNode._(_ret, _lib, retain: true, release: true); } void detach() { - return _lib._objc_msgSend_1(_id, _lib._sel_detach1); + _lib._objc_msgSend_1(_id, _lib._sel_detach1); } NSString? get XPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_XPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get localName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_localName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get prefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_prefix1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get URI { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_URI1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set URI(NSString? value) { - _lib._objc_msgSend_477(_id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_545( + _id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); } - static NSString localNameForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLNode1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode predefinedNamespaceForPrefix_( - SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + static NSString? prefixForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLNode1, _lib._sel_prefixForName_1, name._id); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get XMLString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + static NSXMLNode? predefinedNamespaceForPrefix_( + SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSString get description { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString get XMLString { + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_XMLString1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString XMLStringWithOptions_(int options) { final _ret = - _lib._objc_msgSend_997(_id, _lib._sel_XMLStringWithOptions_1, options); + _lib._objc_msgSend_1139(_id, _lib._sel_XMLStringWithOptions_1, options); return NSString._(_ret, _lib, retain: true, release: true); } NSString canonicalXMLStringPreservingComments_(bool comments) { - final _ret = _lib._objc_msgSend_998( + final _ret = _lib._objc_msgSend_1140( _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); return NSString._(_ret, _lib, retain: true, release: true); } - NSArray nodesForXPath_error_( - NSString? xpath, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394( - _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? nodesForXPath_error_( + NSString xpath, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_nodesForXPath_error_1, xpath._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray objectsForXQuery_constants_error_(NSString? xquery, + NSArray? objectsForXQuery_constants_error_(NSString xquery, NSDictionary? constants, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_999( + final _ret = _lib._objc_msgSend_1141( _id, _lib._sel_objectsForXQuery_constants_error_1, - xquery?._id ?? ffi.nullptr, + xquery._id, constants?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray objectsForXQuery_error_( - NSString? xquery, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_394(_id, _lib._sel_objectsForXQuery_error_1, - xquery?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? objectsForXQuery_error_( + NSString xquery, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_443( + _id, _lib._sel_objectsForXQuery_error_1, xquery._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } static NSXMLNode new1(SwiftLibrary _lib) { @@ -63390,6 +72028,13 @@ class NSXMLNode extends NSObject { return NSXMLNode._(_ret, _lib, retain: false, release: true); } + static NSXMLNode allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLNode._(_ret, _lib, retain: false, release: true); + } + static NSXMLNode alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); return NSXMLNode._(_ret, _lib, retain: false, release: true); @@ -63399,18 +72044,18 @@ class NSXMLNode extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLNode1, + _lib._objc_msgSend_15(_lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -63425,33 +72070,29 @@ class NSXMLNode extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -63539,72 +72180,66 @@ class NSXMLDocument extends NSXMLNode { return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithXMLString_options_error_( - NSString? string, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_972( - _id, - _lib._sel_initWithXMLString_options_error_1, - string?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + NSXMLDocument? initWithXMLString_options_error_( + NSString string, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1113(_id, + _lib._sel_initWithXMLString_options_error_1, string._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_973( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + NSXMLDocument? initWithContentsOfURL_options_error_( + NSURL url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1114(_id, + _lib._sel_initWithContentsOfURL_options_error_1, url._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_974( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + NSXMLDocument? initWithData_options_error_( + NSData data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1115( + _id, _lib._sel_initWithData_options_error_1, data._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } NSXMLDocument initWithRootElement_(NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968( + final _ret = _lib._objc_msgSend_1116( _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); return NSXMLDocument._(_ret, _lib, retain: true, release: true); } static NSObject replacementClassForClass_(SwiftLibrary _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, + final _ret = _lib._objc_msgSend_124(_lib._class_NSXMLDocument1, _lib._sel_replacementClassForClass_1, cls._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSString? get characterEncoding { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_characterEncoding1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set characterEncoding(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); } NSString? get version { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_version1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set version(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); } @@ -63613,130 +72248,149 @@ class NSXMLDocument extends NSXMLNode { } set standalone(bool value) { - _lib._objc_msgSend_460(_id, _lib._sel_setStandalone_1, value); + return _lib._objc_msgSend_527(_id, _lib._sel_setStandalone_1, value); } int get documentContentKind { - return _lib._objc_msgSend_975(_id, _lib._sel_documentContentKind1); + return _lib._objc_msgSend_1117(_id, _lib._sel_documentContentKind1); } set documentContentKind(int value) { - _lib._objc_msgSend_976(_id, _lib._sel_setDocumentContentKind_1, value); + return _lib._objc_msgSend_1118( + _id, _lib._sel_setDocumentContentKind_1, value); } NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set MIMEType(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); } NSXMLDTD? get DTD { - final _ret = _lib._objc_msgSend_986(_id, _lib._sel_DTD1); + final _ret = _lib._objc_msgSend_1128(_id, _lib._sel_DTD1); return _ret.address == 0 ? null : NSXMLDTD._(_ret, _lib, retain: true, release: true); } set DTD(NSXMLDTD? value) { - _lib._objc_msgSend_987(_id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_1129( + _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); } - void setRootElement_(NSXMLElement? root) { - return _lib._objc_msgSend_988( - _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); + void setRootElement_(NSXMLElement root) { + _lib._objc_msgSend_1130(_id, _lib._sel_setRootElement_1, root._id); } - NSXMLElement rootElement() { - final _ret = _lib._objc_msgSend_989(_id, _lib._sel_rootElement1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + NSXMLElement? rootElement() { + final _ret = _lib._objc_msgSend_1131(_id, _lib._sel_rootElement1); + return _ret.address == 0 + ? null + : NSXMLElement._(_ret, _lib, retain: true, release: true); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_977( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + void insertChild_atIndex_(NSXMLNode child, int index) { + _lib._objc_msgSend_1119( + _id, _lib._sel_insertChild_atIndex_1, child._id, index); } - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_978(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + void insertChildren_atIndex_(NSArray children, int index) { + _lib._objc_msgSend_1120( + _id, _lib._sel_insertChildren_atIndex_1, children._id, index); } void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeChildAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + void addChild_(NSXMLNode child) { + _lib._objc_msgSend_1121(_id, _lib._sel_addChild_1, child._id); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_980(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + void replaceChildAtIndex_withNode_(int index, NSXMLNode node) { + _lib._objc_msgSend_1122( + _id, _lib._sel_replaceChildAtIndex_withNode_1, index, node._id); } - NSData? get XMLData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get XMLData { + final _ret = _lib._objc_msgSend_43(_id, _lib._sel_XMLData1); + return NSData._(_ret, _lib, retain: true, release: true); } NSData XMLDataWithOptions_(int options) { final _ret = - _lib._objc_msgSend_990(_id, _lib._sel_XMLDataWithOptions_1, options); + _lib._objc_msgSend_1132(_id, _lib._sel_XMLDataWithOptions_1, options); return NSData._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, + NSObject? objectByApplyingXSLT_arguments_error_(NSData xslt, NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_991( + final _ret = _lib._objc_msgSend_1133( _id, _lib._sel_objectByApplyingXSLT_arguments_error_1, - xslt?._id ?? ffi.nullptr, + xslt._id, arguments?._id ?? ffi.nullptr, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, + NSObject? objectByApplyingXSLTString_arguments_error_(NSString xslt, NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_992( + final _ret = _lib._objc_msgSend_1134( _id, _lib._sel_objectByApplyingXSLTString_arguments_error_1, - xslt?._id ?? ffi.nullptr, + xslt._id, arguments?._id ?? ffi.nullptr, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, + NSObject? objectByApplyingXSLTAtURL_arguments_error_(NSURL xsltURL, NSDictionary? argument, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_993( + final _ret = _lib._objc_msgSend_1135( _id, _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, - xsltURL?._id ?? ffi.nullptr, + xsltURL._id, argument?._id ?? ffi.nullptr, error); - return NSObject._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_219( + return _lib._objc_msgSend_243( _id, _lib._sel_validateAndReturnError_1, error); } + @override + NSXMLDocument initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDocument initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1107( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + static NSObject document(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); @@ -63744,127 +72398,121 @@ class NSXMLDocument extends NSXMLNode { } static NSObject documentWithRootElement_( - SwiftLibrary _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLDocument1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLDocument1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLDocument1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - SwiftLibrary _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_(SwiftLibrary _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLDocument1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + SwiftLibrary _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLDocument1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDocument1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDocument1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLDocument1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject commentWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDocument1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject textWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDocument1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSXMLDocument1, + _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLDocument1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLDocument1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLDocument1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLDocument1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLDocument new1(SwiftLibrary _lib) { @@ -63873,6 +72521,13 @@ class NSXMLDocument extends NSXMLNode { return NSXMLDocument._(_ret, _lib, retain: false, release: true); } + static NSXMLDocument allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLDocument1, _lib._sel_allocWithZone_1, zone); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); + } + static NSXMLDocument alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); @@ -63883,18 +72538,18 @@ class NSXMLDocument extends NSXMLNode { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, + _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -63909,33 +72564,29 @@ class NSXMLDocument extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDocument1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLDocument1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDocument1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLDocument1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -63985,121 +72636,130 @@ class NSXMLDTD extends NSXMLNode { @override NSXMLDTD initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSXMLDTD initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_973( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + NSXMLDTD? initWithContentsOfURL_options_error_( + NSURL url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1114(_id, + _lib._sel_initWithContentsOfURL_options_error_1, url._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSXMLDTD initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_974( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + NSXMLDTD? initWithData_options_error_( + NSData data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1115( + _id, _lib._sel_initWithData_options_error_1, data._id, mask, error); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set publicID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set systemID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_977( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + void insertChild_atIndex_(NSXMLNode child, int index) { + _lib._objc_msgSend_1119( + _id, _lib._sel_insertChild_atIndex_1, child._id, index); } - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_978(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + void insertChildren_atIndex_(NSArray children, int index) { + _lib._objc_msgSend_1120( + _id, _lib._sel_insertChildren_atIndex_1, children._id, index); } void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_410(_id, _lib._sel_removeChildAtIndex_1, index); + _lib._objc_msgSend_470(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - return _lib._objc_msgSend_412( + _lib._objc_msgSend_843( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_979( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + void addChild_(NSXMLNode child) { + _lib._objc_msgSend_1121(_id, _lib._sel_addChild_1, child._id); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_980(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + void replaceChildAtIndex_withNode_(int index, NSXMLNode node) { + _lib._objc_msgSend_1122( + _id, _lib._sel_replaceChildAtIndex_withNode_1, index, node._id); } - NSXMLDTDNode entityDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? entityDeclarationForName_(NSString name) { + final _ret = _lib._objc_msgSend_1126( + _id, _lib._sel_entityDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode notationDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? notationDeclarationForName_(NSString name) { + final _ret = _lib._objc_msgSend_1126( + _id, _lib._sel_notationDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode elementDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? elementDeclarationForName_(NSString name) { + final _ret = _lib._objc_msgSend_1126( + _id, _lib._sel_elementDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode attributeDeclarationForName_elementName_( - NSString? name, NSString? elementName) { - final _ret = _lib._objc_msgSend_985( + NSXMLDTDNode? attributeDeclarationForName_elementName_( + NSString name, NSString elementName) { + final _ret = _lib._objc_msgSend_1127( _id, _lib._sel_attributeDeclarationForName_elementName_1, - name?._id ?? ffi.nullptr, - elementName?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + name._id, + elementName._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - static NSXMLDTDNode predefinedEntityDeclarationForName_( - SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_984( - _lib._class_NSXMLDTD1, - _lib._sel_predefinedEntityDeclarationForName_1, - name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static NSXMLDTDNode? predefinedEntityDeclarationForName_( + SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_1126(_lib._class_NSXMLDTD1, + _lib._sel_predefinedEntityDeclarationForName_1, name._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDTD initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } static NSObject document(SwiftLibrary _lib) { @@ -64109,127 +72769,121 @@ class NSXMLDTD extends NSXMLNode { } static NSObject documentWithRootElement_( - SwiftLibrary _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLDTD1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLDTD1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLDTD1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - SwiftLibrary _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_(SwiftLibrary _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLDTD1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + SwiftLibrary _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLDTD1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTD1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTD1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLDTD1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject commentWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTD1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject textWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTD1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSXMLDTD1, _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLDTD1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLDTD1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLDTD1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLDTD1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLDTD new1(SwiftLibrary _lib) { @@ -64237,6 +72891,12 @@ class NSXMLDTD extends NSXMLNode { return NSXMLDTD._(_ret, _lib, retain: false, release: true); } + static NSXMLDTD allocWithZone_(SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLDTD1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); + } + static NSXMLDTD alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); return NSXMLDTD._(_ret, _lib, retain: false, release: true); @@ -64246,18 +72906,18 @@ class NSXMLDTD extends NSXMLNode { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -64272,33 +72932,29 @@ class NSXMLDTD extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTD1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLDTD1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTD1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLDTD1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -64333,15 +72989,17 @@ class NSXMLDTDNode extends NSXMLNode { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); } - NSXMLDTDNode initWithXMLString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode? initWithXMLString_(NSString string) { + final _ret = + _lib._objc_msgSend_38(_id, _lib._sel_initWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } @override NSXMLDTDNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_967( + final _ret = _lib._objc_msgSend_1107( _id, _lib._sel_initWithKind_options_1, kind, options); return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } @@ -64353,11 +73011,11 @@ class NSXMLDTDNode extends NSXMLNode { } int get DTDKind { - return _lib._objc_msgSend_981(_id, _lib._sel_DTDKind1); + return _lib._objc_msgSend_1123(_id, _lib._sel_DTDKind1); } set DTDKind(int value) { - _lib._objc_msgSend_982(_id, _lib._sel_setDTDKind_1, value); + return _lib._objc_msgSend_1124(_id, _lib._sel_setDTDKind_1, value); } bool get external1 { @@ -64365,41 +73023,47 @@ class NSXMLDTDNode extends NSXMLNode { } NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set publicID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set systemID(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } NSString? get notationName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + final _ret = _lib._objc_msgSend_44(_id, _lib._sel_notationName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set notationName(NSString? value) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_545( _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); } + @override + NSXMLDTDNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + static NSObject document(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); @@ -64407,127 +73071,121 @@ class NSXMLDTDNode extends NSXMLNode { } static NSObject documentWithRootElement_( - SwiftLibrary _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_968(_lib._class_NSXMLDTDNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSXMLElement element) { + final _ret = _lib._objc_msgSend_1108(_lib._class_NSXMLDTDNode1, + _lib._sel_documentWithRootElement_1, element._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + static NSObject elementWithName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_1, name._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_URI_( - SwiftLibrary _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString URI) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_URI_1, name._id, URI._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString string) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_stringValue_1, name._id, string._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_children_attributes_(SwiftLibrary _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_969( + NSString name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1110( _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, + name._id, children?._id ?? ffi.nullptr, attributes?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject attributeWithName_URI_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( + SwiftLibrary _lib, NSString name, NSString URI, NSString stringValue) { + final _ret = _lib._objc_msgSend_1074( _lib._class_NSXMLDTDNode1, _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + URI._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject namespaceWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( - _lib._class_NSXMLDTDNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109(_lib._class_NSXMLDTDNode1, + _lib._sel_namespaceWithName_stringValue_1, name._id, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject processingInstructionWithName_stringValue_( - SwiftLibrary _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_159( + SwiftLibrary _lib, NSString name, NSString stringValue) { + final _ret = _lib._objc_msgSend_1109( _lib._class_NSXMLDTDNode1, _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + name._id, + stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject commentWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTDNode1, + _lib._sel_commentWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject textWithStringValue_( - SwiftLibrary _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString stringValue) { + final _ret = _lib._objc_msgSend_31(_lib._class_NSXMLDTDNode1, + _lib._sel_textWithStringValue_1, stringValue._id); return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SwiftLibrary _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? DTDNodeWithXMLString_(SwiftLibrary _lib, NSString string) { + final _ret = _lib._objc_msgSend_38(_lib._class_NSXMLDTDNode1, + _lib._sel_DTDNodeWithXMLString_1, string._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + static NSString localNameForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_69( + _lib._class_NSXMLDTDNode1, _lib._sel_localNameForName_1, name._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSString? prefixForName_(SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_186( + _lib._class_NSXMLDTDNode1, _lib._sel_prefixForName_1, name._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SwiftLibrary _lib, NSString? name) { - final _ret = _lib._objc_msgSend_983(_lib._class_NSXMLDTDNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSXMLNode? predefinedNamespaceForPrefix_( + SwiftLibrary _lib, NSString name) { + final _ret = _lib._objc_msgSend_1125(_lib._class_NSXMLDTDNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name._id); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } static NSXMLDTDNode new1(SwiftLibrary _lib) { @@ -64536,6 +73194,13 @@ class NSXMLDTDNode extends NSXMLNode { return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } + static NSXMLDTDNode allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSXMLDTDNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + } + static NSXMLDTDNode alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); @@ -64546,18 +73211,18 @@ class NSXMLDTDNode extends NSXMLNode { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -64572,33 +73237,29 @@ class NSXMLDTDNode extends NSXMLNode { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTDNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_NSXMLDTDNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTDNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_NSXMLDTDNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -64657,16 +73318,16 @@ class SwiftClass extends NSObject { } NSString sayHello() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sayHello1); + final _ret = _lib._objc_msgSend_21(_id, _lib._sel_sayHello1); return NSString._(_ret, _lib, retain: true, release: true); } int get someField { - return _lib._objc_msgSend_78(_id, _lib._sel_someField1); + return _lib._objc_msgSend_83(_id, _lib._sel_someField1); } set someField(int value) { - _lib._objc_msgSend_558(_id, _lib._sel_setSomeField_1, value); + return _lib._objc_msgSend_635(_id, _lib._sel_setSomeField_1, value); } @override @@ -64680,6 +73341,13 @@ class SwiftClass extends NSObject { return SwiftClass._(_ret, _lib, retain: false, release: true); } + static SwiftClass allocWithZone_( + SwiftLibrary _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SwiftClass1, _lib._sel_allocWithZone_1, zone); + return SwiftClass._(_ret, _lib, retain: false, release: true); + } + static SwiftClass alloc(SwiftLibrary _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_SwiftClass1, _lib._sel_alloc1); @@ -64690,18 +73358,18 @@ class SwiftClass extends NSObject { SwiftLibrary _lib, NSObject aTarget, ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( + NSObject? anArgument) { + _lib._objc_msgSend_14( _lib._class_SwiftClass1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, - anArgument._id); + anArgument?._id ?? ffi.nullptr); } static void cancelPreviousPerformRequestsWithTarget_( SwiftLibrary _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_SwiftClass1, + _lib._objc_msgSend_15(_lib._class_SwiftClass1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -64716,33 +73384,29 @@ class SwiftClass extends NSObject { } static NSSet keyPathsForValuesAffectingValueForKey_( - SwiftLibrary _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_SwiftClass1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + final _ret = _lib._objc_msgSend_63(_lib._class_SwiftClass1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, key._id); return NSSet._(_ret, _lib, retain: true, release: true); } static bool automaticallyNotifiesObserversForKey_( - SwiftLibrary _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_SwiftClass1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SwiftLibrary _lib, NSString key) { + return _lib._objc_msgSend_64(_lib._class_SwiftClass1, + _lib._sel_automaticallyNotifiesObserversForKey_1, key._id); } static void setKeys_triggerChangeNotificationsForDependentKey_( - SwiftLibrary _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_79( + SwiftLibrary _lib, NSArray keys, NSString dependentKey) { + _lib._objc_msgSend_88( _lib._class_SwiftClass1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + keys._id, + dependentKey._id); } static NSArray classFallbacksForKeyedArchiver(SwiftLibrary _lib) { - final _ret = _lib._objc_msgSend_80( + final _ret = _lib._objc_msgSend_85( _lib._class_SwiftClass1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } diff --git a/pkgs/ffigen/example/swift/third_party/swift_api.h b/pkgs/ffigen/example/swift/third_party/swift_api.h index 14ebedf92..2c6185a0c 100644 --- a/pkgs/ffigen/example/swift/third_party/swift_api.h +++ b/pkgs/ffigen/example/swift/third_party/swift_api.h @@ -1,4 +1,4 @@ -// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100) +// Generated by Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1) #ifndef SWIFT_MODULE_SWIFT_H #define SWIFT_MODULE_SWIFT_H #pragma clang diagnostic push @@ -40,12 +40,18 @@ #include #endif #if defined(__cplusplus) -#if __has_include() +#if defined(__arm64e__) && __has_include() # include #else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" # ifndef __ptrauth_swift_value_witness_function_pointer # define __ptrauth_swift_value_witness_function_pointer(x) # endif +# ifndef __ptrauth_swift_class_method_pointer +# define __ptrauth_swift_class_method_pointer(x) +# endif +#pragma clang diagnostic pop #endif #endif @@ -244,6 +250,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else # define SWIFT_NOEXCEPT #endif +#if !defined(SWIFT_C_INLINE_THUNK) +# if __has_attribute(always_inline) +# if __has_attribute(nodebug) +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) +# else +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +# endif +# else +# define SWIFT_C_INLINE_THUNK inline +# endif +#endif #if defined(_WIN32) #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) @@ -288,11 +305,11 @@ SWIFT_CLASS("_TtC12swift_module10SwiftClass") - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end -#endif -#if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif +#if defined(__cplusplus) +#endif #pragma clang diagnostic pop #endif