From 051482ab9e27fb3c8279c65395c2c5e10748e217 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Fri, 22 Mar 2024 15:33:50 -0700 Subject: [PATCH 1/3] Ready cupertino_http for release with WebSocket support (#1158) --- pkgs/cupertino_http/CHANGELOG.md | 4 +++- pkgs/cupertino_http/lib/src/cupertino_web_socket.dart | 6 ++++++ pkgs/cupertino_http/pubspec.yaml | 7 ++----- pkgs/web_socket_conformance_tests/pubspec.yaml | 3 +-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/cupertino_http/CHANGELOG.md b/pkgs/cupertino_http/CHANGELOG.md index 34a36c59a4..da5b0b5c07 100644 --- a/pkgs/cupertino_http/CHANGELOG.md +++ b/pkgs/cupertino_http/CHANGELOG.md @@ -1,4 +1,6 @@ -## 1.3.1-wip +## 1.4.0 + +* **Experimental** support for the `package:web_socket` `WebSocket` interface. ## 1.3.0 diff --git a/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart b/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart index 94246744c2..c3d50ef508 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_web_socket.dart @@ -22,6 +22,9 @@ class ConnectionException extends WebSocketException { /// A [WebSocket] implemented using the /// [NSURLSessionWebSocketTask API](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask). +/// +/// NOTE: the [WebSocket] interface is currently experimental and may change in +/// the future. class CupertinoWebSocket implements WebSocket { /// Create a new WebSocket connection using the /// [NSURLSessionWebSocketTask API](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask). @@ -31,6 +34,9 @@ class CupertinoWebSocket implements WebSocket { /// If provided, the [protocols] argument indicates that subprotocols that /// the peer is able to select. See /// [RFC-6455 1.9](https://datatracker.ietf.org/doc/html/rfc6455#section-1.9). + /// + /// NOTE: the [WebSocket] interface is currently experimental and may change + /// in the future. static Future connect(Uri url, {Iterable? protocols, URLSessionConfiguration? config}) async { if (!url.isScheme('ws') && !url.isScheme('wss')) { diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index 9d375981d0..12cdf94e62 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -1,7 +1,5 @@ name: cupertino_http -version: 1.4.0-wip -publish_to: none # Do not merge with this here! - +version: 1.4.0 description: >- A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. @@ -17,8 +15,7 @@ dependencies: flutter: sdk: flutter http: ^1.2.0 - web_socket: - path: ../web_socket + web_socket: ^0.1.0 dev_dependencies: dart_flutter_team_lints: ^2.0.0 diff --git a/pkgs/web_socket_conformance_tests/pubspec.yaml b/pkgs/web_socket_conformance_tests/pubspec.yaml index afb952f804..2c7ffda0c2 100644 --- a/pkgs/web_socket_conformance_tests/pubspec.yaml +++ b/pkgs/web_socket_conformance_tests/pubspec.yaml @@ -15,8 +15,7 @@ dependencies: dart_style: ^2.3.4 stream_channel: ^2.1.2 test: ^1.24.0 - web_socket: - path: ../web_socket + web_socket: ^0.1.0 dev_dependencies: dart_flutter_team_lints: ^2.0.0 From 7949d6f4a60bb5e9158da52910aa6bacda6b9286 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 25 Mar 2024 08:28:50 -0700 Subject: [PATCH 2/3] cupertino_http: upgrade ffigen version (#1159) --- .github/workflows/cupertino.yml | 9 +- pkgs/cupertino_http/CHANGELOG.md | 4 + .../cupertino_http/lib/src/cupertino_api.dart | 40 +- .../lib/src/native_cupertino_bindings.dart | 26827 ++++++++++------ pkgs/cupertino_http/lib/src/utils.dart | 11 +- pkgs/cupertino_http/pubspec.yaml | 4 +- .../src/CUPHTTPClientDelegate.m | 6 +- .../src/CUPHTTPForwardedDelegate.h | 12 +- .../src/CUPHTTPForwardedDelegate.m | 2 +- 9 files changed, 16291 insertions(+), 10624 deletions(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 1110e60e08..23041fbb36 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -42,14 +42,7 @@ jobs: name: Install dependencies run: flutter pub get - name: Check formatting - # Don't lint the generated file native_cupertino_bindings.dart - # This approach is simpler than using `find` and excluding that file - # because `dart format` also excludes other file e.g. ones in - # directories start with '.'. - run: | - mv lib/src/native_cupertino_bindings.dart lib/src/native_cupertino_bindings.tmp - dart format --output=none --set-exit-if-changed . - mv lib/src/native_cupertino_bindings.tmp lib/src/native_cupertino_bindings.dart + run: dart format --output=none --set-exit-if-changed . if: always() && steps.install.outcome == 'success' - name: Analyze code run: flutter analyze --fatal-infos diff --git a/pkgs/cupertino_http/CHANGELOG.md b/pkgs/cupertino_http/CHANGELOG.md index da5b0b5c07..b1872bdd03 100644 --- a/pkgs/cupertino_http/CHANGELOG.md +++ b/pkgs/cupertino_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.4.1-wip + +* Upgrade to `package:ffigen` 11.0.0. + ## 1.4.0 * **Experimental** support for the `package:web_socket` `WebSocket` interface. diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index 780ddde0ec..91e5198e19 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -184,8 +184,8 @@ class Error extends _ObjectHolder implements Exception { linkedLibs, linkedLibs.NSLocalizedDescriptionKey), ); } - final e = ncb.NSError.alloc(linkedLibs).initWithDomain_code_userInfo_( - domain.toNSString(linkedLibs).pointer, code, d); + final e = ncb.NSError.alloc(linkedLibs) + .initWithDomain_code_userInfo_(domain.toNSString(linkedLibs), code, d); return Error._(e); } @@ -201,8 +201,7 @@ class Error extends _ObjectHolder implements Exception { /// The error domain, for example `"NSPOSIXErrorDomain"`. /// /// See [NSError.domain](https://developer.apple.com/documentation/foundation/nserror/1413924-domain) - String get domain => - ncb.NSString.castFromPointer(linkedLibs, _nsObject.domain).toString(); + String get domain => _nsObject.domain.toString(); /// A description of the error in the current locale e.g. /// 'A server with the specified hostname could not be found.' @@ -244,7 +243,7 @@ class URLCache extends _ObjectHolder { /// See [NSURLCache.sharedURLCache](https://developer.apple.com/documentation/foundation/nsurlcache/1413377-sharedurlcache) static URLCache? get sharedURLCache { final sharedCache = ncb.NSURLCache.getSharedURLCache(linkedLibs); - return sharedCache == null ? null : URLCache._(sharedCache); + return URLCache._(sharedCache); } /// Create a new [URLCache] with the given memory and disk cache sizes. @@ -292,7 +291,7 @@ class URLSessionConfiguration URLSessionConfiguration._( ncb.NSURLSessionConfiguration.castFrom( ncb.NSURLSessionConfiguration.getDefaultSessionConfiguration( - linkedLibs)!), + linkedLibs)), isBackground: false); /// A session configuration that uses no persistent storage for caches, @@ -303,7 +302,7 @@ class URLSessionConfiguration URLSessionConfiguration._( ncb.NSURLSessionConfiguration.castFrom( ncb.NSURLSessionConfiguration.getEphemeralSessionConfiguration( - linkedLibs)!), + linkedLibs)), isBackground: false); /// Whether connections over a cellular network are allowed. @@ -552,7 +551,7 @@ class MutableData extends Data { /// A new empty [MutableData]. factory MutableData.empty() => - MutableData._(ncb.NSMutableData.dataWithCapacity_(linkedLibs, 0)); + MutableData._(ncb.NSMutableData.dataWithCapacity_(linkedLibs, 0)!); /// Appends the given data. /// @@ -626,8 +625,7 @@ class HTTPURLResponse extends URLResponse { /// /// See [HTTPURLResponse.allHeaderFields](https://developer.apple.com/documentation/foundation/nshttpurlresponse/1417930-allheaderfields) Map get allHeaderFields { - final headers = - ncb.NSDictionary.castFrom(_httpUrlResponse.allHeaderFields!); + final headers = ncb.NSDictionary.castFrom(_httpUrlResponse.allHeaderFields); return stringNSDictionaryToMap(headers); } @@ -918,8 +916,8 @@ class URLSessionWebSocketTask extends URLSessionTask { completionPort.close(); }); - helperLibs.CUPHTTPSendMessage(_urlSessionWebSocketTask.pointer, - message._nsObject.pointer, completionPort.sendPort.nativePort); + helperLibs.CUPHTTPSendMessage(_urlSessionWebSocketTask, message._nsObject, + completionPort.sendPort.nativePort); await completer.future; } @@ -956,7 +954,7 @@ class URLSessionWebSocketTask extends URLSessionTask { }); helperLibs.CUPHTTPReceiveMessage( - _urlSessionWebSocketTask.pointer, completionPort.sendPort.nativePort); + _urlSessionWebSocketTask, completionPort.sendPort.nativePort); return completer.future; } @@ -1066,7 +1064,7 @@ class MutableURLRequest extends URLRequest { /// See [NSMutableURLRequest.requestWithURL:](https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414617-allhttpheaderfields) factory MutableURLRequest.fromUrl(Uri uri) { final url = ncb.NSURL - .URLWithString_(linkedLibs, uri.toString().toNSString(linkedLibs)); + .URLWithString_(linkedLibs, uri.toString().toNSString(linkedLibs))!; return MutableURLRequest._( ncb.NSMutableURLRequest.requestWithURL_(linkedLibs, url)); } @@ -1160,7 +1158,7 @@ void _setupDelegation( try { final request = URLRequest._( - ncb.NSURLRequest.castFrom(forwardedRedirect.request!)); + ncb.NSURLRequest.castFrom(forwardedRedirect.request)); if (onRedirect == null) { redirectRequest = request; @@ -1168,7 +1166,7 @@ void _setupDelegation( } try { final response = HTTPURLResponse._( - ncb.NSHTTPURLResponse.castFrom(forwardedRedirect.response!)); + ncb.NSHTTPURLResponse.castFrom(forwardedRedirect.response)); redirectRequest = onRedirect(session, task, response, request); } catch (e) { // TODO(https://github.com/dart-lang/ffigen/issues/386): Package @@ -1191,7 +1189,7 @@ void _setupDelegation( break; } final response = - URLResponse._exactURLResponseType(forwardedResponse.response!); + URLResponse._exactURLResponseType(forwardedResponse.response); try { disposition = onResponse(session, task, response); @@ -1213,8 +1211,8 @@ void _setupDelegation( break; } try { - onData(session, task, - Data._(ncb.NSData.castFrom(forwardedData.data!))); + onData( + session, task, Data._(ncb.NSData.castFrom(forwardedData.data))); } catch (e) { // TODO(https://github.com/dart-lang/ffigen/issues/386): Package // this exception as an `Error` and call the completion function @@ -1236,7 +1234,7 @@ void _setupDelegation( session, task as URLSessionDownloadTask, Uri.parse( - finishedDownloading.location!.absoluteString!.toString())); + finishedDownloading.location.absoluteString!.toString())); } catch (e) { // TODO(https://github.com/dart-lang/ffigen/issues/386): Package // this exception as an `Error` and call the completion function @@ -1474,7 +1472,7 @@ class URLSession extends _ObjectHolder { /// /// See [NSURLSession.configuration](https://developer.apple.com/documentation/foundation/nsurlsession/1411477-configuration) URLSessionConfiguration get configuration => URLSessionConfiguration._( - ncb.NSURLSessionConfiguration.castFrom(_nsObject.configuration!), + ncb.NSURLSessionConfiguration.castFrom(_nsObject.configuration), isBackground: _isBackground); /// A description of the session that may be useful for debugging. diff --git a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart index 1d2383ef51..9c3b2c40b5 100644 --- a/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart +++ b/pkgs/cupertino_http/lib/src/native_cupertino_bindings.dart @@ -280,6 +280,264 @@ class NativeCupertinoHttp { set __mb_cur_max(int value) => ___mb_cur_max.value = value; + ffi.Pointer malloc_type_malloc( + int size, + int type_id, + ) { + return _malloc_type_malloc( + size, + type_id, + ); + } + + late final _malloc_type_mallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Size, malloc_type_id_t)>>('malloc_type_malloc'); + late final _malloc_type_malloc = _malloc_type_mallocPtr + .asFunction Function(int, int)>(); + + ffi.Pointer malloc_type_calloc( + int count, + int size, + int type_id, + ) { + return _malloc_type_calloc( + count, + size, + type_id, + ); + } + + late final _malloc_type_callocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Size, ffi.Size, malloc_type_id_t)>>('malloc_type_calloc'); + late final _malloc_type_calloc = _malloc_type_callocPtr + .asFunction Function(int, int, int)>(); + + void malloc_type_free( + ffi.Pointer ptr, + int type_id, + ) { + return _malloc_type_free( + ptr, + type_id, + ); + } + + late final _malloc_type_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, malloc_type_id_t)>>('malloc_type_free'); + late final _malloc_type_free = _malloc_type_freePtr + .asFunction, int)>(); + + ffi.Pointer malloc_type_realloc( + ffi.Pointer ptr, + int size, + int type_id, + ) { + return _malloc_type_realloc( + ptr, + size, + type_id, + ); + } + + late final _malloc_type_reallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size, + malloc_type_id_t)>>('malloc_type_realloc'); + late final _malloc_type_realloc = _malloc_type_reallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); + + ffi.Pointer malloc_type_valloc( + int size, + int type_id, + ) { + return _malloc_type_valloc( + size, + type_id, + ); + } + + late final _malloc_type_vallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Size, malloc_type_id_t)>>('malloc_type_valloc'); + late final _malloc_type_valloc = _malloc_type_vallocPtr + .asFunction Function(int, int)>(); + + ffi.Pointer malloc_type_aligned_alloc( + int alignment, + int size, + int type_id, + ) { + return _malloc_type_aligned_alloc( + alignment, + size, + type_id, + ); + } + + late final _malloc_type_aligned_allocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Size, ffi.Size, + malloc_type_id_t)>>('malloc_type_aligned_alloc'); + late final _malloc_type_aligned_alloc = _malloc_type_aligned_allocPtr + .asFunction Function(int, int, int)>(); + + int malloc_type_posix_memalign( + ffi.Pointer> memptr, + int alignment, + int size, + int type_id, + ) { + return _malloc_type_posix_memalign( + memptr, + alignment, + size, + type_id, + ); + } + + late final _malloc_type_posix_memalignPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer>, ffi.Size, + ffi.Size, malloc_type_id_t)>>('malloc_type_posix_memalign'); + late final _malloc_type_posix_memalign = + _malloc_type_posix_memalignPtr.asFunction< + int Function(ffi.Pointer>, int, int, int)>(); + + ffi.Pointer malloc_type_zone_malloc( + ffi.Pointer zone, + int size, + int type_id, + ) { + return _malloc_type_zone_malloc( + zone, + size, + type_id, + ); + } + + late final _malloc_type_zone_mallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size, + malloc_type_id_t)>>('malloc_type_zone_malloc'); + late final _malloc_type_zone_malloc = _malloc_type_zone_mallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); + + ffi.Pointer malloc_type_zone_calloc( + ffi.Pointer zone, + int count, + int size, + int type_id, + ) { + return _malloc_type_zone_calloc( + zone, + count, + size, + type_id, + ); + } + + late final _malloc_type_zone_callocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size, + ffi.Size, malloc_type_id_t)>>('malloc_type_zone_calloc'); + late final _malloc_type_zone_calloc = _malloc_type_zone_callocPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int, int, int)>(); + + void malloc_type_zone_free( + ffi.Pointer zone, + ffi.Pointer ptr, + int type_id, + ) { + return _malloc_type_zone_free( + zone, + ptr, + type_id, + ); + } + + late final _malloc_type_zone_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + malloc_type_id_t)>>('malloc_type_zone_free'); + late final _malloc_type_zone_free = _malloc_type_zone_freePtr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + ffi.Pointer malloc_type_zone_realloc( + ffi.Pointer zone, + ffi.Pointer ptr, + int size, + int type_id, + ) { + return _malloc_type_zone_realloc( + zone, + ptr, + size, + type_id, + ); + } + + late final _malloc_type_zone_reallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + malloc_type_id_t)>>('malloc_type_zone_realloc'); + late final _malloc_type_zone_realloc = + _malloc_type_zone_reallocPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int, int)>(); + + ffi.Pointer malloc_type_zone_valloc( + ffi.Pointer zone, + int size, + int type_id, + ) { + return _malloc_type_zone_valloc( + zone, + size, + type_id, + ); + } + + late final _malloc_type_zone_vallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size, + malloc_type_id_t)>>('malloc_type_zone_valloc'); + late final _malloc_type_zone_valloc = _malloc_type_zone_vallocPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); + + ffi.Pointer malloc_type_zone_memalign( + ffi.Pointer zone, + int alignment, + int size, + int type_id, + ) { + return _malloc_type_zone_memalign( + zone, + alignment, + size, + type_id, + ); + } + + late final _malloc_type_zone_memalignPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Size, + ffi.Size, malloc_type_id_t)>>('malloc_type_zone_memalign'); + late final _malloc_type_zone_memalign = + _malloc_type_zone_memalignPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int, int, int)>(); + ffi.Pointer malloc( int __size, ) { @@ -305,9 +563,8 @@ class NativeCupertinoHttp { } late final _callocPtr = _lookup< - ffi - .NativeFunction Function(ffi.Size, ffi.Size)>>( - 'calloc'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Size, ffi.Size)>>('calloc'); late final _calloc = _callocPtr.asFunction Function(int, int)>(); @@ -367,9 +624,8 @@ class NativeCupertinoHttp { } late final _aligned_allocPtr = _lookup< - ffi - .NativeFunction Function(ffi.Size, ffi.Size)>>( - 'aligned_alloc'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Size, ffi.Size)>>('aligned_alloc'); late final _aligned_alloc = _aligned_allocPtr.asFunction Function(int, int)>(); @@ -626,9 +882,8 @@ class NativeCupertinoHttp { } late final _mblenPtr = _lookup< - ffi - .NativeFunction, ffi.Size)>>( - 'mblen'); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Size)>>('mblen'); late final _mblen = _mblenPtr.asFunction, int)>(); @@ -886,9 +1141,8 @@ class NativeCupertinoHttp { } late final _wctombPtr = _lookup< - ffi - .NativeFunction, ffi.WChar)>>( - 'wctomb'); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.WChar)>>('wctomb'); late final _wctomb = _wctombPtr.asFunction, int)>(); @@ -956,9 +1210,8 @@ class NativeCupertinoHttp { } late final _erand48Ptr = _lookup< - ffi - .NativeFunction)>>( - 'erand48'); + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer)>>('erand48'); late final _erand48 = _erand48Ptr.asFunction)>(); @@ -1067,9 +1320,8 @@ class NativeCupertinoHttp { } late final _jrand48Ptr = _lookup< - ffi - .NativeFunction)>>( - 'jrand48'); + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer)>>('jrand48'); late final _jrand48 = _jrand48Ptr.asFunction)>(); @@ -1095,9 +1347,8 @@ class NativeCupertinoHttp { } late final _lcong48Ptr = _lookup< - ffi - .NativeFunction)>>( - 'lcong48'); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>>('lcong48'); late final _lcong48 = _lcong48Ptr.asFunction)>(); @@ -1154,9 +1405,8 @@ class NativeCupertinoHttp { } late final _nrand48Ptr = _lookup< - ffi - .NativeFunction)>>( - 'nrand48'); + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer)>>('nrand48'); late final _nrand48 = _nrand48Ptr.asFunction)>(); @@ -1439,10 +1689,10 @@ class NativeCupertinoHttp { _arc4random_uniformPtr.asFunction(); int atexit_b( - ffi.Pointer<_ObjCBlock> arg0, + ObjCBlock_ffiVoid arg0, ) { return _atexit_b( - arg0, + arg0._id, ); } @@ -1516,14 +1766,14 @@ class NativeCupertinoHttp { ffi.Pointer __base, int __nel, int __width, - ffi.Pointer<_ObjCBlock> __compar, + ObjCBlock_ffiInt_ffiVoid_ffiVoid __compar, ) { return _bsearch_b( __key, __base, __nel, __width, - __compar, + __compar._id, ); } @@ -1796,9 +2046,8 @@ class NativeCupertinoHttp { } late final _getloadavgPtr = _lookup< - ffi - .NativeFunction, ffi.Int)>>( - 'getloadavg'); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int)>>('getloadavg'); late final _getloadavg = _getloadavgPtr.asFunction, int)>(); @@ -1867,13 +2116,13 @@ class NativeCupertinoHttp { ffi.Pointer __base, int __nel, int __width, - ffi.Pointer<_ObjCBlock> __compar, + ObjCBlock_ffiInt_ffiVoid_ffiVoid __compar, ) { return _heapsort_b( __base, __nel, __width, - __compar, + __compar._id, ); } @@ -1925,13 +2174,13 @@ class NativeCupertinoHttp { ffi.Pointer __base, int __nel, int __width, - ffi.Pointer<_ObjCBlock> __compar, + ObjCBlock_ffiInt_ffiVoid_ffiVoid __compar, ) { return _mergesort_b( __base, __nel, __width, - __compar, + __compar._id, ); } @@ -1983,13 +2232,13 @@ class NativeCupertinoHttp { ffi.Pointer __base, int __nel, int __width, - ffi.Pointer<_ObjCBlock> __compar, + ObjCBlock_ffiInt_ffiVoid_ffiVoid __compar, ) { return _psort_b( __base, __nel, __width, - __compar, + __compar._id, ); } @@ -2049,13 +2298,13 @@ class NativeCupertinoHttp { ffi.Pointer __base, int __nel, int __width, - ffi.Pointer<_ObjCBlock> __compar, + ObjCBlock_ffiInt_ffiVoid_ffiVoid __compar, ) { return _qsort_b( __base, __nel, __width, - __compar, + __compar._id, ); } @@ -2321,10 +2570,10 @@ class NativeCupertinoHttp { .asFunction Function(ffi.Pointer)>(); ffi.Pointer object_getClassName( - ffi.Pointer obj, + NSObject? obj, ) { return _object_getClassName( - obj, + obj?._id ?? ffi.nullptr, ); } @@ -2336,10 +2585,10 @@ class NativeCupertinoHttp { .asFunction Function(ffi.Pointer)>(); ffi.Pointer object_getIndexedIvars( - ffi.Pointer obj, + NSObject? obj, ) { return _object_getIndexedIvars( - obj, + obj?._id ?? ffi.nullptr, ); } @@ -2378,12 +2627,21 @@ class NativeCupertinoHttp { late final _sel_getUid = _sel_getUidPtr .asFunction Function(ffi.Pointer)>(); - ffi.Pointer objc_retainedObject( + NSObject? objc_retainedObject( objc_objectptr_t obj, ) { return _objc_retainedObject( - obj, - ); + obj, + ).address == + 0 + ? null + : NSObject._( + _objc_retainedObject( + obj, + ), + this, + retain: true, + release: true); } late final _objc_retainedObjectPtr = _lookup< @@ -2393,12 +2651,21 @@ class NativeCupertinoHttp { late final _objc_retainedObject = _objc_retainedObjectPtr .asFunction Function(objc_objectptr_t)>(); - ffi.Pointer objc_unretainedObject( + NSObject? objc_unretainedObject( objc_objectptr_t obj, ) { return _objc_unretainedObject( - obj, - ); + obj, + ).address == + 0 + ? null + : NSObject._( + _objc_unretainedObject( + obj, + ), + this, + retain: true, + release: true); } late final _objc_unretainedObjectPtr = _lookup< @@ -2409,10 +2676,10 @@ class NativeCupertinoHttp { .asFunction Function(objc_objectptr_t)>(); objc_objectptr_t objc_unretainedPointer( - ffi.Pointer obj, + NSObject? obj, ) { return _objc_unretainedPointer( - obj, + obj?._id ?? ffi.nullptr, ); } @@ -3729,20 +3996,91 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_initWithString_1 = _registerName1("initWithString:"); + instancetype _objc_msgSend_49( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ) { + return __objc_msgSend_49( + obj, + sel, + URLString, + ); + } + + late final __objc_msgSend_49Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithString_relativeToURL_1 = _registerName1("initWithString:relativeToURL:"); + instancetype _objc_msgSend_50( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_50( + obj, + sel, + URLString, + baseURL, + ); + } + + late final __objc_msgSend_50Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_50 = __objc_msgSend_50Ptr.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_51( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URLString, + bool encodingInvalidCharacters, + ) { + return __objc_msgSend_51( + obj, + sel, + URLString, + encodingInvalidCharacters, + ); + } + + late final __objc_msgSend_51Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_51 = __objc_msgSend_51Ptr.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_49( + instancetype _objc_msgSend_52( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_49( + return __objc_msgSend_52( obj, sel, data, @@ -3750,26 +4088,26 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_49Ptr = _lookup< + late final __objc_msgSend_52Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< + late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLWithDataRepresentation_relativeToURL_1 = _registerName1("URLWithDataRepresentation:relativeToURL:"); - ffi.Pointer _objc_msgSend_50( + ffi.Pointer _objc_msgSend_53( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer baseURL, ) { - return __objc_msgSend_50( + return __objc_msgSend_53( obj, sel, data, @@ -3777,14 +4115,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_50Ptr = _lookup< + late final __objc_msgSend_53Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3796,42 +4134,60 @@ class NativeCupertinoHttp { late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); - ffi.Pointer _objc_msgSend_51( + ffi.Pointer _objc_msgSend_54( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_51( + return __objc_msgSend_54( obj, sel, ); } - late final __objc_msgSend_51Ptr = _lookup< + late final __objc_msgSend_54Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< + late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_absoluteString1 = _registerName1("absoluteString"); + ffi.Pointer _objc_msgSend_55( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_55( + obj, + sel, + ); + } + + late final __objc_msgSend_55Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_relativeString1 = _registerName1("relativeString"); late final _sel_baseURL1 = _registerName1("baseURL"); - ffi.Pointer _objc_msgSend_52( + ffi.Pointer _objc_msgSend_56( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_52( + return __objc_msgSend_56( obj, sel, ); } - late final __objc_msgSend_52Ptr = _lookup< + late final __objc_msgSend_56Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< + late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -3843,33 +4199,33 @@ class NativeCupertinoHttp { late final _class_NSValue1 = _getClass1("NSValue"); late final _sel_getValue_size_1 = _registerName1("getValue:size:"); late final _sel_objCType1 = _registerName1("objCType"); - ffi.Pointer _objc_msgSend_53( + ffi.Pointer _objc_msgSend_57( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_53( + return __objc_msgSend_57( obj, sel, ); } - late final __objc_msgSend_53Ptr = _lookup< + late final __objc_msgSend_57Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< + late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithBytes_objCType_1 = _registerName1("initWithBytes:objCType:"); - instancetype _objc_msgSend_54( + instancetype _objc_msgSend_58( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_54( + return __objc_msgSend_58( obj, sel, value, @@ -3877,23 +4233,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_54Ptr = _lookup< + late final __objc_msgSend_58Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithBytes_objCType_1 = _registerName1("valueWithBytes:objCType:"); - ffi.Pointer _objc_msgSend_55( + ffi.Pointer _objc_msgSend_59( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_55( + return __objc_msgSend_59( obj, sel, value, @@ -3901,14 +4257,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_55Ptr = _lookup< + late final __objc_msgSend_59Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< + late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -3918,406 +4274,424 @@ class NativeCupertinoHttp { late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); late final _sel_valueWithNonretainedObject_1 = _registerName1("valueWithNonretainedObject:"); - ffi.Pointer _objc_msgSend_56( + ffi.Pointer _objc_msgSend_60( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_56( + return __objc_msgSend_60( obj, sel, anObject, ); } - late final __objc_msgSend_56Ptr = _lookup< + late final __objc_msgSend_60Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< + late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_nonretainedObjectValue1 = _registerName1("nonretainedObjectValue"); + ffi.Pointer _objc_msgSend_61( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_61( + obj, + sel, + ); + } + + late final __objc_msgSend_61Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); - ffi.Pointer _objc_msgSend_57( + ffi.Pointer _objc_msgSend_62( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pointer, ) { - return __objc_msgSend_57( + return __objc_msgSend_62( obj, sel, pointer, ); } - late final __objc_msgSend_57Ptr = _lookup< + late final __objc_msgSend_62Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< + late final __objc_msgSend_62 = __objc_msgSend_62Ptr.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_58( + bool _objc_msgSend_63( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_58( + return __objc_msgSend_63( obj, sel, value, ); } - late final __objc_msgSend_58Ptr = _lookup< + late final __objc_msgSend_63Ptr = _lookup< ffi.NativeFunction< ffi.Bool 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< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getValue_1 = _registerName1("getValue:"); - void _objc_msgSend_59( + void _objc_msgSend_64( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_59( + return __objc_msgSend_64( obj, sel, value, ); } - late final __objc_msgSend_59Ptr = _lookup< + late final __objc_msgSend_64Ptr = _lookup< ffi.NativeFunction< ffi.Void 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< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); - ffi.Pointer _objc_msgSend_60( + ffi.Pointer _objc_msgSend_65( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_60( + return __objc_msgSend_65( obj, sel, range, ); } - late final __objc_msgSend_60Ptr = _lookup< + late final __objc_msgSend_65Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSRange)>(); late final _sel_rangeValue1 = _registerName1("rangeValue"); - NSRange _objc_msgSend_61( + NSRange _objc_msgSend_66( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_61( + return __objc_msgSend_66( obj, sel, ); } - late final __objc_msgSend_61Ptr = _lookup< + late final __objc_msgSend_66Ptr = _lookup< ffi.NativeFunction< NSRange Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< NSRange Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithChar_1 = _registerName1("initWithChar:"); - ffi.Pointer _objc_msgSend_62( + ffi.Pointer _objc_msgSend_67( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_62( + return __objc_msgSend_67( obj, sel, value, ); } - late final __objc_msgSend_62Ptr = _lookup< + late final __objc_msgSend_67Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Char)>>('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, int)>(); late final _sel_initWithUnsignedChar_1 = _registerName1("initWithUnsignedChar:"); - ffi.Pointer _objc_msgSend_63( + ffi.Pointer _objc_msgSend_68( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_63( + return __objc_msgSend_68( obj, sel, value, ); } - late final __objc_msgSend_63Ptr = _lookup< + late final __objc_msgSend_68Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedChar)>>('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, int)>(); late final _sel_initWithShort_1 = _registerName1("initWithShort:"); - ffi.Pointer _objc_msgSend_64( + ffi.Pointer _objc_msgSend_69( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_64( + return __objc_msgSend_69( obj, sel, value, ); } - late final __objc_msgSend_64Ptr = _lookup< + late final __objc_msgSend_69Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Short)>>('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, int)>(); late final _sel_initWithUnsignedShort_1 = _registerName1("initWithUnsignedShort:"); - ffi.Pointer _objc_msgSend_65( + ffi.Pointer _objc_msgSend_70( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_65( + return __objc_msgSend_70( obj, sel, value, ); } - late final __objc_msgSend_65Ptr = _lookup< + late final __objc_msgSend_70Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedShort)>>('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, int)>(); late final _sel_initWithInt_1 = _registerName1("initWithInt:"); - ffi.Pointer _objc_msgSend_66( + ffi.Pointer _objc_msgSend_71( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_66( + return __objc_msgSend_71( obj, sel, value, ); } - late final __objc_msgSend_66Ptr = _lookup< + late final __objc_msgSend_71Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< + late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedInt_1 = _registerName1("initWithUnsignedInt:"); - ffi.Pointer _objc_msgSend_67( + ffi.Pointer _objc_msgSend_72( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_67( + return __objc_msgSend_72( obj, sel, value, ); } - late final __objc_msgSend_67Ptr = _lookup< + late final __objc_msgSend_72Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('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, int)>(); late final _sel_initWithLong_1 = _registerName1("initWithLong:"); - ffi.Pointer _objc_msgSend_68( + ffi.Pointer _objc_msgSend_73( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_68( + return __objc_msgSend_73( obj, sel, value, ); } - late final __objc_msgSend_68Ptr = _lookup< + late final __objc_msgSend_73Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< + late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLong_1 = _registerName1("initWithUnsignedLong:"); - ffi.Pointer _objc_msgSend_69( + ffi.Pointer _objc_msgSend_74( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_69( + return __objc_msgSend_74( obj, sel, value, ); } - late final __objc_msgSend_69Ptr = _lookup< + late final __objc_msgSend_74Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< + late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); - ffi.Pointer _objc_msgSend_70( + ffi.Pointer _objc_msgSend_75( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_70( + return __objc_msgSend_75( obj, sel, value, ); } - late final __objc_msgSend_70Ptr = _lookup< + late final __objc_msgSend_75Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUnsignedLongLong_1 = _registerName1("initWithUnsignedLongLong:"); - ffi.Pointer _objc_msgSend_71( + ffi.Pointer _objc_msgSend_76( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_71( + return __objc_msgSend_76( obj, sel, value, ); } - late final __objc_msgSend_71Ptr = _lookup< + late final __objc_msgSend_76Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< + late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); - ffi.Pointer _objc_msgSend_72( + ffi.Pointer _objc_msgSend_77( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_72( + return __objc_msgSend_77( obj, sel, value, ); } - late final __objc_msgSend_72Ptr = _lookup< + late final __objc_msgSend_77Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('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, double)>(); late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); - ffi.Pointer _objc_msgSend_73( + ffi.Pointer _objc_msgSend_78( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_73( + return __objc_msgSend_78( obj, sel, value, ); } - late final __objc_msgSend_73Ptr = _lookup< + late final __objc_msgSend_78Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('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, double)>(); late final _sel_initWithBool_1 = _registerName1("initWithBool:"); - ffi.Pointer _objc_msgSend_74( + ffi.Pointer _objc_msgSend_79( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_74( + return __objc_msgSend_79( obj, sel, value, ); } - late final __objc_msgSend_74Ptr = _lookup< + late final __objc_msgSend_79Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('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, bool)>(); @@ -4325,203 +4699,239 @@ class NativeCupertinoHttp { late final _sel_initWithUnsignedInteger_1 = _registerName1("initWithUnsignedInteger:"); late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_75( + int _objc_msgSend_80( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_75( + return __objc_msgSend_80( obj, sel, ); } - late final __objc_msgSend_75Ptr = _lookup< + late final __objc_msgSend_80Ptr = _lookup< ffi.NativeFunction< ffi.Char Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< + late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_76( + int _objc_msgSend_81( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_76( + return __objc_msgSend_81( obj, sel, ); } - late final __objc_msgSend_76Ptr = _lookup< + late final __objc_msgSend_81Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedChar Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< + late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_77( + int _objc_msgSend_82( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_77( + return __objc_msgSend_82( obj, sel, ); } - late final __objc_msgSend_77Ptr = _lookup< + late final __objc_msgSend_82Ptr = _lookup< ffi.NativeFunction< ffi.Short Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< + late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - 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< ffi.UnsignedShort 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_intValue1 = _registerName1("intValue"); - int _objc_msgSend_79( + int _objc_msgSend_84( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_79( + return __objc_msgSend_84( obj, sel, ); } - late final __objc_msgSend_79Ptr = _lookup< + late final __objc_msgSend_84Ptr = _lookup< ffi.NativeFunction< ffi.Int Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< + late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); - int _objc_msgSend_80( + int _objc_msgSend_85( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_80( + return __objc_msgSend_85( obj, sel, ); } - late final __objc_msgSend_80Ptr = _lookup< + late final __objc_msgSend_85Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< + late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_longValue1 = _registerName1("longValue"); - int _objc_msgSend_81( + int _objc_msgSend_86( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_81( + return __objc_msgSend_86( obj, sel, ); } - late final __objc_msgSend_81Ptr = _lookup< + late final __objc_msgSend_86Ptr = _lookup< ffi.NativeFunction< ffi.Long Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< + late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_82( + int _objc_msgSend_87( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_82( + return __objc_msgSend_87( obj, sel, ); } - late final __objc_msgSend_82Ptr = _lookup< + late final __objc_msgSend_87Ptr = _lookup< ffi.NativeFunction< ffi.LongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_unsignedLongLongValue1 = _registerName1("unsignedLongLongValue"); - int _objc_msgSend_83( + int _objc_msgSend_88( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_83( + return __objc_msgSend_88( obj, sel, ); } - late final __objc_msgSend_83Ptr = _lookup< + late final __objc_msgSend_88Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLongLong Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< + late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_floatValue1 = _registerName1("floatValue"); - double _objc_msgSend_84( + late final _objc_msgSend_useVariants1 = ffi.Abi.current() == ffi.Abi.iosX64 || + ffi.Abi.current() == ffi.Abi.macosX64; + double _objc_msgSend_89( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_84( + return __objc_msgSend_89( obj, sel, ); } - late final __objc_msgSend_84Ptr = _lookup< + late final __objc_msgSend_89Ptr = _lookup< ffi.NativeFunction< ffi.Float Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer)>(); + + double _objc_msgSend_89_fpret( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_89_fpret( + obj, + sel, + ); + } + + late final __objc_msgSend_89_fpretPtr = _lookup< + ffi.NativeFunction< + ffi.Float Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_89_fpret = __objc_msgSend_89_fpretPtr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_doubleValue1 = _registerName1("doubleValue"); - double _objc_msgSend_85( + double _objc_msgSend_90( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_85( + return __objc_msgSend_90( obj, sel, ); } - late final __objc_msgSend_85Ptr = _lookup< + late final __objc_msgSend_90Ptr = _lookup< ffi.NativeFunction< ffi.Double Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer)>(); + + double _objc_msgSend_90_fpret( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_90_fpret( + obj, + sel, + ); + } + + late final __objc_msgSend_90_fpretPtr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>('objc_msgSend_fpret'); + late final __objc_msgSend_90_fpret = __objc_msgSend_90_fpretPtr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_boolValue1 = _registerName1("boolValue"); @@ -4529,66 +4939,66 @@ class NativeCupertinoHttp { late final _sel_unsignedIntegerValue1 = _registerName1("unsignedIntegerValue"); late final _sel_stringValue1 = _registerName1("stringValue"); - int _objc_msgSend_86( + int _objc_msgSend_91( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherNumber, ) { - return __objc_msgSend_86( + return __objc_msgSend_91( obj, sel, otherNumber, ); } - late final __objc_msgSend_86Ptr = _lookup< + late final __objc_msgSend_91Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< + late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); - bool _objc_msgSend_87( + bool _objc_msgSend_92( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_87( + return __objc_msgSend_92( obj, sel, number, ); } - late final __objc_msgSend_87Ptr = _lookup< + late final __objc_msgSend_92Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptionWithLocale_1 = _registerName1("descriptionWithLocale:"); - ffi.Pointer _objc_msgSend_88( + ffi.Pointer _objc_msgSend_93( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_88( + return __objc_msgSend_93( obj, sel, locale, ); } - late final __objc_msgSend_88Ptr = _lookup< + late final __objc_msgSend_93Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< + late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4614,21 +5024,21 @@ class NativeCupertinoHttp { late final _sel_numberWithUnsignedInteger_1 = _registerName1("numberWithUnsignedInteger:"); late final _sel_port1 = _registerName1("port"); - ffi.Pointer _objc_msgSend_89( + ffi.Pointer _objc_msgSend_94( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_89( + return __objc_msgSend_94( obj, sel, ); } - late final __objc_msgSend_89Ptr = _lookup< + late final __objc_msgSend_94Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -4642,13 +5052,13 @@ class NativeCupertinoHttp { late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); late final _sel_getFileSystemRepresentation_maxLength_1 = _registerName1("getFileSystemRepresentation:maxLength:"); - bool _objc_msgSend_90( + bool _objc_msgSend_95( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferLength, ) { - return __objc_msgSend_90( + return __objc_msgSend_95( obj, sel, buffer, @@ -4656,11 +5066,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_90Ptr = _lookup< + late final __objc_msgSend_95Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< + late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -4668,27 +5078,30 @@ class NativeCupertinoHttp { _registerName1("fileSystemRepresentation"); late final _sel_isFileURL1 = _registerName1("isFileURL"); late final _sel_standardizedURL1 = _registerName1("standardizedURL"); + late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); + late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); + late final _sel_filePathURL1 = _registerName1("filePathURL"); late final _class_NSError1 = _getClass1("NSError"); late final _class_NSDictionary1 = _getClass1("NSDictionary"); late final _sel_count1 = _registerName1("count"); late final _sel_objectForKey_1 = _registerName1("objectForKey:"); - ffi.Pointer _objc_msgSend_91( + ffi.Pointer _objc_msgSend_96( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aKey, ) { - return __objc_msgSend_91( + return __objc_msgSend_96( obj, sel, aKey, ); } - late final __objc_msgSend_91Ptr = _lookup< + late final __objc_msgSend_96Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -4696,34 +5109,34 @@ class NativeCupertinoHttp { late final _sel_nextObject1 = _registerName1("nextObject"); late final _sel_allObjects1 = _registerName1("allObjects"); late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); - ffi.Pointer _objc_msgSend_92( + ffi.Pointer _objc_msgSend_97( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_92( + return __objc_msgSend_97( obj, sel, ); } - late final __objc_msgSend_92Ptr = _lookup< + late final __objc_msgSend_97Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithObjects_forKeys_count_1 = _registerName1("initWithObjects:forKeys:count:"); - instancetype _objc_msgSend_93( + instancetype _objc_msgSend_98( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int cnt, ) { - return __objc_msgSend_93( + return __objc_msgSend_98( obj, sel, objects, @@ -4732,7 +5145,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_93Ptr = _lookup< + late final __objc_msgSend_98Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -4740,7 +5153,7 @@ class NativeCupertinoHttp { ffi.Pointer>, ffi.Pointer>, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< + late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -4750,35 +5163,35 @@ class NativeCupertinoHttp { late final _class_NSArray1 = _getClass1("NSArray"); late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); - ffi.Pointer _objc_msgSend_94( + ffi.Pointer _objc_msgSend_99( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_94( + return __objc_msgSend_99( obj, sel, index, ); } - late final __objc_msgSend_94Ptr = _lookup< + late final __objc_msgSend_99Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< + late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithObjects_count_1 = _registerName1("initWithObjects:count:"); - instancetype _objc_msgSend_95( + instancetype _objc_msgSend_100( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int cnt, ) { - return __objc_msgSend_95( + return __objc_msgSend_100( obj, sel, objects, @@ -4786,93 +5199,93 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_95Ptr = _lookup< + late final __objc_msgSend_100Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< + late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_arrayByAddingObject_1 = _registerName1("arrayByAddingObject:"); - ffi.Pointer _objc_msgSend_96( + ffi.Pointer _objc_msgSend_101( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_96( + return __objc_msgSend_101( obj, sel, anObject, ); } - late final __objc_msgSend_96Ptr = _lookup< + late final __objc_msgSend_101Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< + late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayByAddingObjectsFromArray_1 = _registerName1("arrayByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_97( + ffi.Pointer _objc_msgSend_102( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_97( + return __objc_msgSend_102( obj, sel, otherArray, ); } - late final __objc_msgSend_97Ptr = _lookup< + late final __objc_msgSend_102Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< + late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_componentsJoinedByString_1 = _registerName1("componentsJoinedByString:"); - ffi.Pointer _objc_msgSend_98( + ffi.Pointer _objc_msgSend_103( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_98( + return __objc_msgSend_103( obj, sel, separator, ); } - late final __objc_msgSend_98Ptr = _lookup< + late final __objc_msgSend_103Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_containsObject_1 = _registerName1("containsObject:"); late final _sel_descriptionWithLocale_indent_1 = _registerName1("descriptionWithLocale:indent:"); - ffi.Pointer _objc_msgSend_99( + ffi.Pointer _objc_msgSend_104( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, int level, ) { - return __objc_msgSend_99( + return __objc_msgSend_104( obj, sel, locale, @@ -4880,47 +5293,47 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_99Ptr = _lookup< + late final __objc_msgSend_104Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< + late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_firstObjectCommonWithArray_1 = _registerName1("firstObjectCommonWithArray:"); - ffi.Pointer _objc_msgSend_100( + ffi.Pointer _objc_msgSend_105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_100( + return __objc_msgSend_105( obj, sel, otherArray, ); } - late final __objc_msgSend_100Ptr = _lookup< + late final __objc_msgSend_105Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< + late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); - void _objc_msgSend_101( + void _objc_msgSend_106( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, NSRange range, ) { - return __objc_msgSend_101( + return __objc_msgSend_106( obj, sel, objects, @@ -4928,44 +5341,44 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_101Ptr = _lookup< + late final __objc_msgSend_106Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, NSRange)>(); late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); - int _objc_msgSend_102( + int _objc_msgSend_107( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_102( + return __objc_msgSend_107( obj, sel, anObject, ); } - late final __objc_msgSend_102Ptr = _lookup< + late final __objc_msgSend_107Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< + late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_indexOfObject_inRange_1 = _registerName1("indexOfObject:inRange:"); - int _objc_msgSend_103( + int _objc_msgSend_108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, NSRange range, ) { - return __objc_msgSend_103( + return __objc_msgSend_108( obj, sel, anObject, @@ -4973,11 +5386,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_103Ptr = _lookup< + late final __objc_msgSend_108Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< + late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRange)>(); @@ -4986,23 +5399,23 @@ class NativeCupertinoHttp { late final _sel_indexOfObjectIdenticalTo_inRange_1 = _registerName1("indexOfObjectIdenticalTo:inRange:"); late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); - bool _objc_msgSend_104( + bool _objc_msgSend_109( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_104( + return __objc_msgSend_109( obj, sel, otherArray, ); } - late final __objc_msgSend_104Ptr = _lookup< + late final __objc_msgSend_109Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5014,7 +5427,7 @@ class NativeCupertinoHttp { late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); late final _sel_sortedArrayUsingFunction_context_1 = _registerName1("sortedArrayUsingFunction:context:"); - ffi.Pointer _objc_msgSend_105( + ffi.Pointer _objc_msgSend_110( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -5024,7 +5437,7 @@ class NativeCupertinoHttp { comparator, ffi.Pointer context, ) { - return __objc_msgSend_105( + return __objc_msgSend_110( obj, sel, comparator, @@ -5032,7 +5445,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_105Ptr = _lookup< + late final __objc_msgSend_110Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5042,7 +5455,7 @@ class NativeCupertinoHttp { NSInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< + late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5054,7 +5467,7 @@ class NativeCupertinoHttp { late final _sel_sortedArrayUsingFunction_context_hint_1 = _registerName1("sortedArrayUsingFunction:context:hint:"); - ffi.Pointer _objc_msgSend_106( + ffi.Pointer _objc_msgSend_111( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -5065,7 +5478,7 @@ class NativeCupertinoHttp { ffi.Pointer context, ffi.Pointer hint, ) { - return __objc_msgSend_106( + return __objc_msgSend_111( obj, sel, comparator, @@ -5074,7 +5487,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_106Ptr = _lookup< + late final __objc_msgSend_111Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5085,7 +5498,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer)>>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5098,55 +5511,55 @@ class NativeCupertinoHttp { late final _sel_sortedArrayUsingSelector_1 = _registerName1("sortedArrayUsingSelector:"); - ffi.Pointer _objc_msgSend_107( + ffi.Pointer _objc_msgSend_112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comparator, ) { - return __objc_msgSend_107( + return __objc_msgSend_112( obj, sel, comparator, ); } - late final __objc_msgSend_107Ptr = _lookup< + late final __objc_msgSend_112Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< + late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); - ffi.Pointer _objc_msgSend_108( + ffi.Pointer _objc_msgSend_113( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_108( + return __objc_msgSend_113( obj, sel, range, ); } - late final __objc_msgSend_108Ptr = _lookup< + late final __objc_msgSend_113Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSRange)>(); late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); - bool _objc_msgSend_109( + bool _objc_msgSend_114( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_109( + return __objc_msgSend_114( obj, sel, url, @@ -5154,14 +5567,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_109Ptr = _lookup< + late final __objc_msgSend_114Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< + late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -5169,13 +5582,13 @@ class NativeCupertinoHttp { _registerName1("makeObjectsPerformSelector:"); late final _sel_makeObjectsPerformSelector_withObject_1 = _registerName1("makeObjectsPerformSelector:withObject:"); - void _objc_msgSend_110( + void _objc_msgSend_115( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer argument, ) { - return __objc_msgSend_110( + return __objc_msgSend_115( obj, sel, aSelector, @@ -5183,11 +5596,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_110Ptr = _lookup< + late final __objc_msgSend_115Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5196,68 +5609,68 @@ class NativeCupertinoHttp { late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); late final _sel_indexSetWithIndexesInRange_1 = _registerName1("indexSetWithIndexesInRange:"); - instancetype _objc_msgSend_111( + instancetype _objc_msgSend_116( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_111( + return __objc_msgSend_116( obj, sel, range, ); } - late final __objc_msgSend_111Ptr = _lookup< + late final __objc_msgSend_116Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< + late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, NSRange)>(); late final _sel_initWithIndexesInRange_1 = _registerName1("initWithIndexesInRange:"); late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); - instancetype _objc_msgSend_112( + instancetype _objc_msgSend_117( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_112( + return __objc_msgSend_117( obj, sel, indexSet, ); } - late final __objc_msgSend_112Ptr = _lookup< + late final __objc_msgSend_117Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< + late final __objc_msgSend_117 = __objc_msgSend_117Ptr.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_113( + bool _objc_msgSend_118( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_113( + return __objc_msgSend_118( obj, sel, indexSet, ); } - late final __objc_msgSend_113Ptr = _lookup< + late final __objc_msgSend_118Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< + late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5265,23 +5678,23 @@ class NativeCupertinoHttp { late final _sel_lastIndex1 = _registerName1("lastIndex"); late final _sel_indexGreaterThanIndex_1 = _registerName1("indexGreaterThanIndex:"); - int _objc_msgSend_114( + int _objc_msgSend_119( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_114( + return __objc_msgSend_119( obj, sel, value, ); } - late final __objc_msgSend_114Ptr = _lookup< + late final __objc_msgSend_119Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< + late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); @@ -5291,14 +5704,14 @@ class NativeCupertinoHttp { _registerName1("indexLessThanOrEqualToIndex:"); late final _sel_getIndexes_maxCount_inIndexRange_1 = _registerName1("getIndexes:maxCount:inIndexRange:"); - int _objc_msgSend_115( + int _objc_msgSend_120( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexBuffer, int bufferSize, NSRangePointer range, ) { - return __objc_msgSend_115( + return __objc_msgSend_120( obj, sel, indexBuffer, @@ -5307,7 +5720,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_115Ptr = _lookup< + late final __objc_msgSend_120Ptr = _lookup< ffi.NativeFunction< NSUInteger Function( ffi.Pointer, @@ -5315,70 +5728,70 @@ class NativeCupertinoHttp { ffi.Pointer, NSUInteger, NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, NSRangePointer)>(); late final _sel_countOfIndexesInRange_1 = _registerName1("countOfIndexesInRange:"); - int _objc_msgSend_116( + int _objc_msgSend_121( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_116( + return __objc_msgSend_121( obj, sel, range, ); } - late final __objc_msgSend_116Ptr = _lookup< + late final __objc_msgSend_121Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, NSRange)>(); late final _sel_containsIndex_1 = _registerName1("containsIndex:"); - bool _objc_msgSend_117( + bool _objc_msgSend_122( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_117( + return __objc_msgSend_122( obj, sel, value, ); } - late final __objc_msgSend_117Ptr = _lookup< + late final __objc_msgSend_122Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< + late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_containsIndexesInRange_1 = _registerName1("containsIndexesInRange:"); - bool _objc_msgSend_118( + bool _objc_msgSend_123( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_118( + return __objc_msgSend_123( obj, sel, range, ); } - late final __objc_msgSend_118Ptr = _lookup< + late final __objc_msgSend_123Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< + late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSRange)>(); late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); @@ -5386,35 +5799,35 @@ class NativeCupertinoHttp { _registerName1("intersectsIndexesInRange:"); late final _sel_enumerateIndexesUsingBlock_1 = _registerName1("enumerateIndexesUsingBlock:"); - void _objc_msgSend_119( + void _objc_msgSend_124( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_119( + return __objc_msgSend_124( obj, sel, block, ); } - late final __objc_msgSend_119Ptr = _lookup< + late final __objc_msgSend_124Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< + late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateIndexesWithOptions_usingBlock_1 = _registerName1("enumerateIndexesWithOptions:usingBlock:"); - void _objc_msgSend_120( + void _objc_msgSend_125( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_120( + return __objc_msgSend_125( obj, sel, opts, @@ -5422,24 +5835,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_120Ptr = _lookup< + late final __objc_msgSend_125Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< + late final __objc_msgSend_125 = __objc_msgSend_125Ptr.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_121( + void _objc_msgSend_126( ffi.Pointer obj, ffi.Pointer sel, NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_121( + return __objc_msgSend_126( obj, sel, range, @@ -5448,44 +5861,44 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_121Ptr = _lookup< + late final __objc_msgSend_126Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); - int _objc_msgSend_122( + int _objc_msgSend_127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_122( + return __objc_msgSend_127( obj, sel, predicate, ); } - late final __objc_msgSend_122Ptr = _lookup< + late final __objc_msgSend_127Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexWithOptions_passingTest_1 = _registerName1("indexWithOptions:passingTest:"); - int _objc_msgSend_123( + int _objc_msgSend_128( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_123( + return __objc_msgSend_128( obj, sel, opts, @@ -5493,24 +5906,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_123Ptr = _lookup< + late final __objc_msgSend_128Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< + late final __objc_msgSend_128 = __objc_msgSend_128Ptr.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_124( + int _objc_msgSend_129( ffi.Pointer obj, ffi.Pointer sel, NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_124( + return __objc_msgSend_129( obj, sel, range, @@ -5519,44 +5932,44 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_124Ptr = _lookup< + late final __objc_msgSend_129Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); - ffi.Pointer _objc_msgSend_125( + ffi.Pointer _objc_msgSend_130( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_125( + return __objc_msgSend_130( obj, sel, predicate, ); } - late final __objc_msgSend_125Ptr = _lookup< + late final __objc_msgSend_130Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesWithOptions_passingTest_1 = _registerName1("indexesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_126( + ffi.Pointer _objc_msgSend_131( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_126( + return __objc_msgSend_131( obj, sel, opts, @@ -5564,27 +5977,27 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_126Ptr = _lookup< + late final __objc_msgSend_131Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< + late final __objc_msgSend_131 = __objc_msgSend_131Ptr.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_127( + ffi.Pointer _objc_msgSend_132( ffi.Pointer obj, ffi.Pointer sel, NSRange range, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_127( + return __objc_msgSend_132( obj, sel, range, @@ -5593,7 +6006,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_127Ptr = _lookup< + late final __objc_msgSend_132Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5601,41 +6014,41 @@ class NativeCupertinoHttp { NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< + late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesUsingBlock_1 = _registerName1("enumerateRangesUsingBlock:"); - void _objc_msgSend_128( + void _objc_msgSend_133( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_128( + return __objc_msgSend_133( obj, sel, block, ); } - late final __objc_msgSend_128Ptr = _lookup< + late final __objc_msgSend_133Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateRangesWithOptions_usingBlock_1 = _registerName1("enumerateRangesWithOptions:usingBlock:"); - void _objc_msgSend_129( + void _objc_msgSend_134( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_129( + return __objc_msgSend_134( obj, sel, opts, @@ -5643,24 +6056,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_129Ptr = _lookup< + late final __objc_msgSend_134Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + late final __objc_msgSend_134 = __objc_msgSend_134Ptr.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_130( + void _objc_msgSend_135( ffi.Pointer obj, ffi.Pointer sel, NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_130( + return __objc_msgSend_135( obj, sel, range, @@ -5669,32 +6082,32 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_130Ptr = _lookup< + late final __objc_msgSend_135Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); - ffi.Pointer _objc_msgSend_131( + ffi.Pointer _objc_msgSend_136( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_131( + return __objc_msgSend_136( obj, sel, indexes, ); } - late final __objc_msgSend_131Ptr = _lookup< + late final __objc_msgSend_136Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5702,35 +6115,35 @@ class NativeCupertinoHttp { _registerName1("objectAtIndexedSubscript:"); late final _sel_enumerateObjectsUsingBlock_1 = _registerName1("enumerateObjectsUsingBlock:"); - void _objc_msgSend_132( + void _objc_msgSend_137( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_132( + return __objc_msgSend_137( obj, sel, block, ); } - late final __objc_msgSend_132Ptr = _lookup< + late final __objc_msgSend_137Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< + late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateObjectsWithOptions_usingBlock_1 = _registerName1("enumerateObjectsWithOptions:usingBlock:"); - void _objc_msgSend_133( + void _objc_msgSend_138( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_133( + return __objc_msgSend_138( obj, sel, opts, @@ -5738,24 +6151,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_133Ptr = _lookup< + late final __objc_msgSend_138Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< + late final __objc_msgSend_138 = __objc_msgSend_138Ptr.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_134( + void _objc_msgSend_139( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_134( + return __objc_msgSend_139( obj, sel, s, @@ -5764,7 +6177,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_134Ptr = _lookup< + late final __objc_msgSend_139Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -5772,41 +6185,41 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< + late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectPassingTest_1 = _registerName1("indexOfObjectPassingTest:"); - int _objc_msgSend_135( + int _objc_msgSend_140( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_135( + return __objc_msgSend_140( obj, sel, predicate, ); } - late final __objc_msgSend_135Ptr = _lookup< + late final __objc_msgSend_140Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< + late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexOfObjectWithOptions_passingTest_1 = _registerName1("indexOfObjectWithOptions:passingTest:"); - int _objc_msgSend_136( + int _objc_msgSend_141( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_136( + return __objc_msgSend_141( obj, sel, opts, @@ -5814,24 +6227,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_136Ptr = _lookup< + late final __objc_msgSend_141Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + late final __objc_msgSend_141 = __objc_msgSend_141Ptr.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_137( + int _objc_msgSend_142( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_137( + return __objc_msgSend_142( obj, sel, s, @@ -5840,7 +6253,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_137Ptr = _lookup< + late final __objc_msgSend_142Ptr = _lookup< ffi.NativeFunction< NSUInteger Function( ffi.Pointer, @@ -5848,41 +6261,41 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< + late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsPassingTest_1 = _registerName1("indexesOfObjectsPassingTest:"); - ffi.Pointer _objc_msgSend_138( + ffi.Pointer _objc_msgSend_143( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_138( + return __objc_msgSend_143( obj, sel, predicate, ); } - late final __objc_msgSend_138Ptr = _lookup< + late final __objc_msgSend_143Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_indexesOfObjectsWithOptions_passingTest_1 = _registerName1("indexesOfObjectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_139( + ffi.Pointer _objc_msgSend_144( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_139( + return __objc_msgSend_144( obj, sel, opts, @@ -5890,27 +6303,27 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_139Ptr = _lookup< + late final __objc_msgSend_144Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< + late final __objc_msgSend_144 = __objc_msgSend_144Ptr.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_140( + ffi.Pointer _objc_msgSend_145( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer s, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_140( + return __objc_msgSend_145( obj, sel, s, @@ -5919,7 +6332,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_140Ptr = _lookup< + late final __objc_msgSend_145Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -5927,7 +6340,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< + late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -5937,35 +6350,35 @@ class NativeCupertinoHttp { late final _sel_sortedArrayUsingComparator_1 = _registerName1("sortedArrayUsingComparator:"); - ffi.Pointer _objc_msgSend_141( + ffi.Pointer _objc_msgSend_146( ffi.Pointer obj, ffi.Pointer sel, NSComparator cmptr, ) { - return __objc_msgSend_141( + return __objc_msgSend_146( obj, sel, cmptr, ); } - late final __objc_msgSend_141Ptr = _lookup< + late final __objc_msgSend_146Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< + late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSComparator)>(); late final _sel_sortedArrayWithOptions_usingComparator_1 = _registerName1("sortedArrayWithOptions:usingComparator:"); - ffi.Pointer _objc_msgSend_142( + ffi.Pointer _objc_msgSend_147( ffi.Pointer obj, ffi.Pointer sel, int opts, NSComparator cmptr, ) { - return __objc_msgSend_142( + return __objc_msgSend_147( obj, sel, opts, @@ -5973,17 +6386,17 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_142Ptr = _lookup< + late final __objc_msgSend_147Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< + late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, NSComparator)>(); late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); - int _objc_msgSend_143( + int _objc_msgSend_148( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, @@ -5991,7 +6404,7 @@ class NativeCupertinoHttp { int opts, NSComparator cmp, ) { - return __objc_msgSend_143( + return __objc_msgSend_148( obj, sel, obj1, @@ -6001,7 +6414,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_143Ptr = _lookup< + late final __objc_msgSend_148Ptr = _lookup< ffi.NativeFunction< NSUInteger Function( ffi.Pointer, @@ -6010,27 +6423,67 @@ class NativeCupertinoHttp { NSRange, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< + late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRange, int, NSComparator)>(); late final _sel_array1 = _registerName1("array"); late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); + instancetype _objc_msgSend_149( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ) { + return __objc_msgSend_149( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_149Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_arrayWithObjects_count_1 = _registerName1("arrayWithObjects:count:"); late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); + instancetype _objc_msgSend_150( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + ) { + return __objc_msgSend_150( + obj, + sel, + array, + ); + } + + late final __objc_msgSend_150Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + 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_144( + instancetype _objc_msgSend_151( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, bool flag, ) { - return __objc_msgSend_144( + return __objc_msgSend_151( obj, sel, array, @@ -6038,23 +6491,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_144Ptr = _lookup< + late final __objc_msgSend_151Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithContentsOfURL_error_1 = _registerName1("initWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_145( + ffi.Pointer _objc_msgSend_152( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_145( + return __objc_msgSend_152( obj, sel, url, @@ -6062,14 +6515,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_145Ptr = _lookup< + late final __objc_msgSend_152Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6084,7 +6537,7 @@ class NativeCupertinoHttp { late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_1 = _registerName1( "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:"); - instancetype _objc_msgSend_146( + instancetype _objc_msgSend_153( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer inserts, @@ -6093,7 +6546,7 @@ class NativeCupertinoHttp { ffi.Pointer removedObjects, ffi.Pointer changes, ) { - return __objc_msgSend_146( + return __objc_msgSend_153( obj, sel, inserts, @@ -6104,7 +6557,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_146Ptr = _lookup< + late final __objc_msgSend_153Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6114,7 +6567,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< + late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6127,7 +6580,7 @@ class NativeCupertinoHttp { late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_1 = _registerName1( "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:"); - instancetype _objc_msgSend_147( + instancetype _objc_msgSend_154( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer inserts, @@ -6135,7 +6588,7 @@ class NativeCupertinoHttp { ffi.Pointer removes, ffi.Pointer removedObjects, ) { - return __objc_msgSend_147( + return __objc_msgSend_154( obj, sel, inserts, @@ -6145,7 +6598,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_147Ptr = _lookup< + late final __objc_msgSend_154Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6154,7 +6607,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6170,14 +6623,14 @@ class NativeCupertinoHttp { _getClass1("NSOrderedCollectionChange"); late final _sel_changeWithObject_type_index_1 = _registerName1("changeWithObject:type:index:"); - ffi.Pointer _objc_msgSend_148( + ffi.Pointer _objc_msgSend_155( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int type, int index, ) { - return __objc_msgSend_148( + return __objc_msgSend_155( obj, sel, anObject, @@ -6186,7 +6639,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_148Ptr = _lookup< + late final __objc_msgSend_155Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6194,13 +6647,13 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< + late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_changeWithObject_type_index_associatedIndex_1 = _registerName1("changeWithObject:type:index:associatedIndex:"); - ffi.Pointer _objc_msgSend_149( + ffi.Pointer _objc_msgSend_156( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, @@ -6208,7 +6661,7 @@ class NativeCupertinoHttp { int index, int associatedIndex, ) { - return __objc_msgSend_149( + return __objc_msgSend_156( obj, sel, anObject, @@ -6218,7 +6671,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_149Ptr = _lookup< + late final __objc_msgSend_156Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6227,41 +6680,41 @@ class NativeCupertinoHttp { ffi.Int32, NSUInteger, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int)>(); late final _sel_object1 = _registerName1("object"); late final _sel_changeType1 = _registerName1("changeType"); - int _objc_msgSend_150( + int _objc_msgSend_157( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_150( + return __objc_msgSend_157( obj, sel, ); } - late final __objc_msgSend_150Ptr = _lookup< + late final __objc_msgSend_157Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_index1 = _registerName1("index"); late final _sel_associatedIndex1 = _registerName1("associatedIndex"); late final _sel_initWithObject_type_index_1 = _registerName1("initWithObject:type:index:"); - instancetype _objc_msgSend_151( + instancetype _objc_msgSend_158( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int type, int index, ) { - return __objc_msgSend_151( + return __objc_msgSend_158( obj, sel, anObject, @@ -6270,17 +6723,17 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_151Ptr = _lookup< + late final __objc_msgSend_158Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_initWithObject_type_index_associatedIndex_1 = _registerName1("initWithObject:type:index:associatedIndex:"); - instancetype _objc_msgSend_152( + instancetype _objc_msgSend_159( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, @@ -6288,7 +6741,7 @@ class NativeCupertinoHttp { int index, int associatedIndex, ) { - return __objc_msgSend_152( + return __objc_msgSend_159( obj, sel, anObject, @@ -6298,7 +6751,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_152Ptr = _lookup< + late final __objc_msgSend_159Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6307,43 +6760,43 @@ class NativeCupertinoHttp { ffi.Int32, NSUInteger, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< + late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int)>(); late final _sel_differenceByTransformingChangesWithBlock_1 = _registerName1("differenceByTransformingChangesWithBlock:"); - ffi.Pointer _objc_msgSend_153( + ffi.Pointer _objc_msgSend_160( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_153( + return __objc_msgSend_160( obj, sel, block, ); } - late final __objc_msgSend_153Ptr = _lookup< + late final __objc_msgSend_160Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_inverseDifference1 = _registerName1("inverseDifference"); late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_154( + ffi.Pointer _objc_msgSend_161( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_154( + return __objc_msgSend_161( obj, sel, other, @@ -6352,7 +6805,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_154Ptr = _lookup< + late final __objc_msgSend_161Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6360,7 +6813,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6370,13 +6823,13 @@ class NativeCupertinoHttp { late final _sel_differenceFromArray_withOptions_1 = _registerName1("differenceFromArray:withOptions:"); - ffi.Pointer _objc_msgSend_155( + ffi.Pointer _objc_msgSend_162( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ) { - return __objc_msgSend_155( + return __objc_msgSend_162( obj, sel, other, @@ -6384,123 +6837,123 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_155Ptr = _lookup< + late final __objc_msgSend_162Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< + late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_differenceFromArray_1 = _registerName1("differenceFromArray:"); - ffi.Pointer _objc_msgSend_156( + ffi.Pointer _objc_msgSend_163( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_156( + return __objc_msgSend_163( obj, sel, other, ); } - late final __objc_msgSend_156Ptr = _lookup< + late final __objc_msgSend_163Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< + late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayByApplyingDifference_1 = _registerName1("arrayByApplyingDifference:"); - ffi.Pointer _objc_msgSend_157( + ffi.Pointer _objc_msgSend_164( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer difference, ) { - return __objc_msgSend_157( + return __objc_msgSend_164( obj, sel, difference, ); } - late final __objc_msgSend_157Ptr = _lookup< + late final __objc_msgSend_164Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< + late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getObjects_1 = _registerName1("getObjects:"); - void _objc_msgSend_158( + void _objc_msgSend_165( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ) { - return __objc_msgSend_158( + return __objc_msgSend_165( obj, sel, objects, ); } - late final __objc_msgSend_158Ptr = _lookup< + late final __objc_msgSend_165Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_arrayWithContentsOfFile_1 = _registerName1("arrayWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_159( + ffi.Pointer _objc_msgSend_166( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_159( + return __objc_msgSend_166( obj, sel, path, ); } - late final __objc_msgSend_159Ptr = _lookup< + late final __objc_msgSend_166Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< + late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_arrayWithContentsOfURL_1 = _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_160( + ffi.Pointer _objc_msgSend_167( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_160( + return __objc_msgSend_167( obj, sel, url, ); } - late final __objc_msgSend_160Ptr = _lookup< + late final __objc_msgSend_167Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< + late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -6510,13 +6963,13 @@ class NativeCupertinoHttp { _registerName1("initWithContentsOfURL:"); late final _sel_writeToURL_atomically_1 = _registerName1("writeToURL:atomically:"); - bool _objc_msgSend_161( + bool _objc_msgSend_168( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, bool atomically, ) { - return __objc_msgSend_161( + return __objc_msgSend_168( obj, sel, url, @@ -6524,30 +6977,30 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_161Ptr = _lookup< + late final __objc_msgSend_168Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< + late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_allKeys1 = _registerName1("allKeys"); - ffi.Pointer _objc_msgSend_162( + ffi.Pointer _objc_msgSend_169( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_162( + return __objc_msgSend_169( obj, sel, ); } - late final __objc_msgSend_162Ptr = _lookup< + late final __objc_msgSend_169Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< + late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -6557,35 +7010,35 @@ class NativeCupertinoHttp { _registerName1("descriptionInStringsFileFormat"); late final _sel_isEqualToDictionary_1 = _registerName1("isEqualToDictionary:"); - bool _objc_msgSend_163( + bool _objc_msgSend_170( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_163( + return __objc_msgSend_170( obj, sel, otherDictionary, ); } - late final __objc_msgSend_163Ptr = _lookup< + late final __objc_msgSend_170Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_objectsForKeys_notFoundMarker_1 = _registerName1("objectsForKeys:notFoundMarker:"); - ffi.Pointer _objc_msgSend_164( + ffi.Pointer _objc_msgSend_171( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer marker, ) { - return __objc_msgSend_164( + return __objc_msgSend_171( obj, sel, keys, @@ -6593,14 +7046,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_164Ptr = _lookup< + late final __objc_msgSend_171Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6611,14 +7064,14 @@ class NativeCupertinoHttp { _registerName1("keysSortedByValueUsingSelector:"); late final _sel_getObjects_andKeys_count_1 = _registerName1("getObjects:andKeys:count:"); - void _objc_msgSend_165( + void _objc_msgSend_172( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, int count, ) { - return __objc_msgSend_165( + return __objc_msgSend_172( obj, sel, objects, @@ -6627,7 +7080,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_165Ptr = _lookup< + late final __objc_msgSend_172Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -6635,7 +7088,7 @@ class NativeCupertinoHttp { ffi.Pointer>, ffi.Pointer>, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -6647,35 +7100,35 @@ class NativeCupertinoHttp { _registerName1("objectForKeyedSubscript:"); late final _sel_enumerateKeysAndObjectsUsingBlock_1 = _registerName1("enumerateKeysAndObjectsUsingBlock:"); - void _objc_msgSend_166( + void _objc_msgSend_173( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_166( + return __objc_msgSend_173( obj, sel, block, ); } - late final __objc_msgSend_166Ptr = _lookup< + late final __objc_msgSend_173Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< + late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); - void _objc_msgSend_167( + void _objc_msgSend_174( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_167( + return __objc_msgSend_174( obj, sel, opts, @@ -6683,11 +7136,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_167Ptr = _lookup< + late final __objc_msgSend_174Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< + late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -6697,35 +7150,35 @@ class NativeCupertinoHttp { _registerName1("keysSortedByValueWithOptions:usingComparator:"); late final _sel_keysOfEntriesPassingTest_1 = _registerName1("keysOfEntriesPassingTest:"); - ffi.Pointer _objc_msgSend_168( + ffi.Pointer _objc_msgSend_175( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_168( + return __objc_msgSend_175( obj, sel, predicate, ); } - late final __objc_msgSend_168Ptr = _lookup< + late final __objc_msgSend_175Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_keysOfEntriesWithOptions_passingTest_1 = _registerName1("keysOfEntriesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_169( + ffi.Pointer _objc_msgSend_176( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_169( + return __objc_msgSend_176( obj, sel, opts, @@ -6733,25 +7186,25 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_169Ptr = _lookup< + late final __objc_msgSend_176Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< + late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); - void _objc_msgSend_170( + void _objc_msgSend_177( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ffi.Pointer> keys, ) { - return __objc_msgSend_170( + return __objc_msgSend_177( obj, sel, objects, @@ -6759,14 +7212,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_170Ptr = _lookup< + late final __objc_msgSend_177Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< + late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -6775,58 +7228,58 @@ class NativeCupertinoHttp { late final _sel_dictionaryWithContentsOfFile_1 = _registerName1("dictionaryWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_171( + ffi.Pointer _objc_msgSend_178( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_171( + return __objc_msgSend_178( obj, sel, path, ); } - late final __objc_msgSend_171Ptr = _lookup< + late final __objc_msgSend_178Ptr = _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_178 = __objc_msgSend_178Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithContentsOfURL_1 = _registerName1("dictionaryWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_172( + ffi.Pointer _objc_msgSend_179( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_172( + return __objc_msgSend_179( obj, sel, url, ); } - late final __objc_msgSend_172Ptr = _lookup< + late final __objc_msgSend_179Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< + late final __objc_msgSend_179 = __objc_msgSend_179Ptr.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_173( + instancetype _objc_msgSend_180( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer key, ) { - return __objc_msgSend_173( + return __objc_msgSend_180( obj, sel, object, @@ -6834,14 +7287,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_173Ptr = _lookup< + late final __objc_msgSend_180Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< + late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -6851,35 +7304,35 @@ class NativeCupertinoHttp { _registerName1("dictionaryWithObjectsAndKeys:"); late final _sel_dictionaryWithDictionary_1 = _registerName1("dictionaryWithDictionary:"); - instancetype _objc_msgSend_174( + instancetype _objc_msgSend_181( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_174( + return __objc_msgSend_181( obj, sel, dict, ); } - late final __objc_msgSend_174Ptr = _lookup< + late final __objc_msgSend_181Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< + late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithObjects_forKeys_1 = _registerName1("dictionaryWithObjects:forKeys:"); - instancetype _objc_msgSend_175( + instancetype _objc_msgSend_182( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer keys, ) { - return __objc_msgSend_175( + return __objc_msgSend_182( obj, sel, objects, @@ -6887,14 +7340,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_175Ptr = _lookup< + late final __objc_msgSend_182Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -6903,13 +7356,13 @@ class NativeCupertinoHttp { late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); late final _sel_initWithDictionary_copyItems_1 = _registerName1("initWithDictionary:copyItems:"); - instancetype _objc_msgSend_176( + instancetype _objc_msgSend_183( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, bool flag, ) { - return __objc_msgSend_176( + return __objc_msgSend_183( obj, sel, otherDictionary, @@ -6917,23 +7370,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_176Ptr = _lookup< + late final __objc_msgSend_183Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithObjects_forKeys_1 = _registerName1("initWithObjects:forKeys:"); - ffi.Pointer _objc_msgSend_177( + ffi.Pointer _objc_msgSend_184( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_177( + return __objc_msgSend_184( obj, sel, url, @@ -6941,14 +7394,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_177Ptr = _lookup< + late final __objc_msgSend_184Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< + late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6961,14 +7414,14 @@ class NativeCupertinoHttp { _registerName1("sharedKeySetForKeys:"); late final _sel_countByEnumeratingWithState_objects_count_1 = _registerName1("countByEnumeratingWithState:objects:count:"); - int _objc_msgSend_178( + int _objc_msgSend_185( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer state, ffi.Pointer> buffer, int len, ) { - return __objc_msgSend_178( + return __objc_msgSend_185( obj, sel, state, @@ -6977,7 +7430,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_178Ptr = _lookup< + late final __objc_msgSend_185Ptr = _lookup< ffi.NativeFunction< NSUInteger Function( ffi.Pointer, @@ -6985,7 +7438,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer>, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -6995,14 +7448,14 @@ class NativeCupertinoHttp { late final _sel_initWithDomain_code_userInfo_1 = _registerName1("initWithDomain:code:userInfo:"); - instancetype _objc_msgSend_179( + instancetype _objc_msgSend_186( ffi.Pointer obj, ffi.Pointer sel, NSErrorDomain domain, int code, ffi.Pointer dict, ) { - return __objc_msgSend_179( + return __objc_msgSend_186( obj, sel, domain, @@ -7011,7 +7464,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_179Ptr = _lookup< + late final __objc_msgSend_186Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -7019,7 +7472,7 @@ class NativeCupertinoHttp { NSErrorDomain, NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, NSErrorDomain, int, ffi.Pointer)>(); @@ -7028,21 +7481,21 @@ class NativeCupertinoHttp { late final _sel_domain1 = _registerName1("domain"); late final _sel_code1 = _registerName1("code"); late final _sel_userInfo1 = _registerName1("userInfo"); - ffi.Pointer _objc_msgSend_180( + ffi.Pointer _objc_msgSend_187( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_180( + return __objc_msgSend_187( obj, sel, ); } - late final __objc_msgSend_180Ptr = _lookup< + late final __objc_msgSend_187Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< + late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -7054,18 +7507,36 @@ class NativeCupertinoHttp { _registerName1("localizedRecoverySuggestion"); late final _sel_localizedRecoveryOptions1 = _registerName1("localizedRecoveryOptions"); + ffi.Pointer _objc_msgSend_188( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_188( + obj, + sel, + ); + } + + late final __objc_msgSend_188Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_188 = __objc_msgSend_188Ptr.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"); late final _sel_setUserInfoValueProviderForDomain_provider_1 = _registerName1("setUserInfoValueProviderForDomain:provider:"); - void _objc_msgSend_181( + void _objc_msgSend_189( ffi.Pointer obj, ffi.Pointer sel, NSErrorDomain errorDomain, ffi.Pointer<_ObjCBlock> provider, ) { - return __objc_msgSend_181( + return __objc_msgSend_189( obj, sel, errorDomain, @@ -7073,24 +7544,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_181Ptr = _lookup< + late final __objc_msgSend_189Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSErrorDomain, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< + late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSErrorDomain, ffi.Pointer<_ObjCBlock>)>(); late final _sel_userInfoValueProviderForDomain_1 = _registerName1("userInfoValueProviderForDomain:"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_182( + ffi.Pointer<_ObjCBlock> _objc_msgSend_190( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer err, NSErrorUserInfoKey userInfoKey, NSErrorDomain errorDomain, ) { - return __objc_msgSend_182( + return __objc_msgSend_190( obj, sel, err, @@ -7099,7 +7570,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_182Ptr = _lookup< + late final __objc_msgSend_190Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, @@ -7107,7 +7578,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSErrorUserInfoKey, NSErrorDomain)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< + late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer, @@ -7115,41 +7586,16 @@ class NativeCupertinoHttp { NSErrorUserInfoKey, NSErrorDomain)>(); - late final _sel_checkResourceIsReachableAndReturnError_1 = - _registerName1("checkResourceIsReachableAndReturnError:"); - bool _objc_msgSend_183( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> error, - ) { - return __objc_msgSend_183( - obj, - sel, - error, - ); - } - - late final __objc_msgSend_183Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); - late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); - late final _sel_filePathURL1 = _registerName1("filePathURL"); late final _sel_getResourceValue_forKey_error_1 = _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_184( + bool _objc_msgSend_191( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> value, NSURLResourceKey key, ffi.Pointer> error, ) { - return __objc_msgSend_184( + return __objc_msgSend_191( obj, sel, value, @@ -7158,7 +7604,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_184Ptr = _lookup< + late final __objc_msgSend_191Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7166,7 +7612,7 @@ class NativeCupertinoHttp { ffi.Pointer>, NSURLResourceKey, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< + late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -7176,13 +7622,13 @@ class NativeCupertinoHttp { late final _sel_resourceValuesForKeys_error_1 = _registerName1("resourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_185( + ffi.Pointer _objc_msgSend_192( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_185( + return __objc_msgSend_192( obj, sel, keys, @@ -7190,14 +7636,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_185Ptr = _lookup< + late final __objc_msgSend_192Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7206,14 +7652,14 @@ class NativeCupertinoHttp { late final _sel_setResourceValue_forKey_error_1 = _registerName1("setResourceValue:forKey:error:"); - bool _objc_msgSend_186( + bool _objc_msgSend_193( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, NSURLResourceKey key, ffi.Pointer> error, ) { - return __objc_msgSend_186( + return __objc_msgSend_193( obj, sel, value, @@ -7222,7 +7668,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_186Ptr = _lookup< + late final __objc_msgSend_193Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7230,7 +7676,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSURLResourceKey, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -7240,13 +7686,13 @@ class NativeCupertinoHttp { late final _sel_setResourceValues_error_1 = _registerName1("setResourceValues:error:"); - bool _objc_msgSend_187( + bool _objc_msgSend_194( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ffi.Pointer> error, ) { - return __objc_msgSend_187( + return __objc_msgSend_194( obj, sel, keyedValues, @@ -7254,36 +7700,36 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_187Ptr = _lookup< + late final __objc_msgSend_194Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< + late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_removeCachedResourceValueForKey_1 = _registerName1("removeCachedResourceValueForKey:"); - void _objc_msgSend_188( + void _objc_msgSend_195( ffi.Pointer obj, ffi.Pointer sel, NSURLResourceKey key, ) { - return __objc_msgSend_188( + return __objc_msgSend_195( obj, sel, key, ); } - late final __objc_msgSend_188Ptr = _lookup< + late final __objc_msgSend_195Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSURLResourceKey)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< + late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, NSURLResourceKey)>(); @@ -7291,13 +7737,13 @@ class NativeCupertinoHttp { _registerName1("removeAllCachedResourceValues"); late final _sel_setTemporaryResourceValue_forKey_1 = _registerName1("setTemporaryResourceValue:forKey:"); - void _objc_msgSend_189( + void _objc_msgSend_196( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, NSURLResourceKey key, ) { - return __objc_msgSend_189( + return __objc_msgSend_196( obj, sel, value, @@ -7305,18 +7751,18 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_189Ptr = _lookup< + late final __objc_msgSend_196Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSURLResourceKey)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< + late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSURLResourceKey)>(); late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = _registerName1( "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); - ffi.Pointer _objc_msgSend_190( + ffi.Pointer _objc_msgSend_197( ffi.Pointer obj, ffi.Pointer sel, int options, @@ -7324,7 +7770,7 @@ class NativeCupertinoHttp { ffi.Pointer relativeURL, ffi.Pointer> error, ) { - return __objc_msgSend_190( + return __objc_msgSend_197( obj, sel, options, @@ -7334,7 +7780,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_190Ptr = _lookup< + late final __objc_msgSend_197Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -7343,7 +7789,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< + late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7355,7 +7801,7 @@ class NativeCupertinoHttp { late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = _registerName1( "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - instancetype _objc_msgSend_191( + instancetype _objc_msgSend_198( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkData, @@ -7364,7 +7810,7 @@ class NativeCupertinoHttp { ffi.Pointer isStale, ffi.Pointer> error, ) { - return __objc_msgSend_191( + return __objc_msgSend_198( obj, sel, bookmarkData, @@ -7375,7 +7821,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_191Ptr = _lookup< + late final __objc_msgSend_198Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -7385,7 +7831,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -7400,13 +7846,13 @@ class NativeCupertinoHttp { "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); late final _sel_resourceValuesForKeys_fromBookmarkData_1 = _registerName1("resourceValuesForKeys:fromBookmarkData:"); - ffi.Pointer _objc_msgSend_192( + ffi.Pointer _objc_msgSend_199( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer bookmarkData, ) { - return __objc_msgSend_192( + return __objc_msgSend_199( obj, sel, keys, @@ -7414,14 +7860,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_192Ptr = _lookup< + late final __objc_msgSend_199Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7430,7 +7876,7 @@ class NativeCupertinoHttp { late final _sel_writeBookmarkData_toURL_options_error_1 = _registerName1("writeBookmarkData:toURL:options:error:"); - bool _objc_msgSend_193( + bool _objc_msgSend_200( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkData, @@ -7438,7 +7884,7 @@ class NativeCupertinoHttp { int options, ffi.Pointer> error, ) { - return __objc_msgSend_193( + return __objc_msgSend_200( obj, sel, bookmarkData, @@ -7448,7 +7894,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_193Ptr = _lookup< + late final __objc_msgSend_200Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7457,7 +7903,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSURLBookmarkFileCreationOptions, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< + late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -7468,13 +7914,13 @@ class NativeCupertinoHttp { late final _sel_bookmarkDataWithContentsOfURL_error_1 = _registerName1("bookmarkDataWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_194( + ffi.Pointer _objc_msgSend_201( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkFileURL, ffi.Pointer> error, ) { - return __objc_msgSend_194( + return __objc_msgSend_201( obj, sel, bookmarkFileURL, @@ -7482,14 +7928,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_194Ptr = _lookup< + late final __objc_msgSend_201Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< + late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -7498,14 +7944,14 @@ class NativeCupertinoHttp { late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = _registerName1("URLByResolvingAliasFileAtURL:options:error:"); - instancetype _objc_msgSend_195( + instancetype _objc_msgSend_202( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> error, ) { - return __objc_msgSend_195( + return __objc_msgSend_202( obj, sel, url, @@ -7514,7 +7960,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_195Ptr = _lookup< + late final __objc_msgSend_202Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -7522,7 +7968,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< + late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -7540,25 +7986,45 @@ class NativeCupertinoHttp { _registerName1("promisedItemResourceValuesForKeys:error:"); late final _sel_checkPromisedItemIsReachableAndReturnError_1 = _registerName1("checkPromisedItemIsReachableAndReturnError:"); + bool _objc_msgSend_203( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> error, + ) { + return __objc_msgSend_203( + obj, + sel, + error, + ); + } + + late final __objc_msgSend_203Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + late final _sel_fileURLWithPathComponents_1 = _registerName1("fileURLWithPathComponents:"); - ffi.Pointer _objc_msgSend_196( + ffi.Pointer _objc_msgSend_204( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer components, ) { - return __objc_msgSend_196( + return __objc_msgSend_204( obj, sel, components, ); } - late final __objc_msgSend_196Ptr = _lookup< + late final __objc_msgSend_204Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -7567,49 +8033,96 @@ class NativeCupertinoHttp { late final _sel_pathExtension1 = _registerName1("pathExtension"); late final _sel_URLByAppendingPathComponent_1 = _registerName1("URLByAppendingPathComponent:"); + ffi.Pointer _objc_msgSend_205( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pathComponent, + ) { + return __objc_msgSend_205( + obj, + sel, + pathComponent, + ); + } + + late final __objc_msgSend_205Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_URLByAppendingPathComponent_isDirectory_1 = _registerName1("URLByAppendingPathComponent:isDirectory:"); + ffi.Pointer _objc_msgSend_206( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pathComponent, + bool isDirectory, + ) { + return __objc_msgSend_206( + obj, + sel, + pathComponent, + isDirectory, + ); + } + + late final __objc_msgSend_206Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_206 = __objc_msgSend_206Ptr.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_checkResourceIsReachableAndReturnError_1 = + _registerName1("checkResourceIsReachableAndReturnError:"); late final _sel_URLByStandardizingPath1 = _registerName1("URLByStandardizingPath"); late final _sel_URLByResolvingSymlinksInPath1 = _registerName1("URLByResolvingSymlinksInPath"); late final _sel_resourceDataUsingCache_1 = _registerName1("resourceDataUsingCache:"); - ffi.Pointer _objc_msgSend_197( + ffi.Pointer _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, bool shouldUseCache, ) { - return __objc_msgSend_197( + return __objc_msgSend_207( obj, sel, shouldUseCache, ); } - late final __objc_msgSend_197Ptr = _lookup< + late final __objc_msgSend_207Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< + late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_loadResourceDataNotifyingClient_usingCache_1 = _registerName1("loadResourceDataNotifyingClient:usingCache:"); - void _objc_msgSend_198( + void _objc_msgSend_208( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer client, bool shouldUseCache, ) { - return __objc_msgSend_198( + return __objc_msgSend_208( obj, sel, client, @@ -7617,24 +8130,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_198Ptr = _lookup< + late final __objc_msgSend_208Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + late final __objc_msgSend_208 = __objc_msgSend_208Ptr.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_199( + bool _objc_msgSend_209( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer property, ffi.Pointer propertyKey, ) { - return __objc_msgSend_199( + return __objc_msgSend_209( obj, sel, property, @@ -7642,78 +8155,78 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_199Ptr = _lookup< + late final __objc_msgSend_209Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< + late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); late final _sel_registerURLHandleClass_1 = _registerName1("registerURLHandleClass:"); - void _objc_msgSend_200( + void _objc_msgSend_210( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURLHandleSubclass, ) { - return __objc_msgSend_200( + return __objc_msgSend_210( obj, sel, anURLHandleSubclass, ); } - late final __objc_msgSend_200Ptr = _lookup< + late final __objc_msgSend_210Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< + late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLHandleClassForURL_1 = _registerName1("URLHandleClassForURL:"); - ffi.Pointer _objc_msgSend_201( + ffi.Pointer _objc_msgSend_211( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURL, ) { - return __objc_msgSend_201( + return __objc_msgSend_211( obj, sel, anURL, ); } - late final __objc_msgSend_201Ptr = _lookup< + late final __objc_msgSend_211Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< + late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_status1 = _registerName1("status"); - int _objc_msgSend_202( + int _objc_msgSend_212( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_202( + return __objc_msgSend_212( obj, sel, ); } - late final __objc_msgSend_202Ptr = _lookup< + late final __objc_msgSend_212Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_failureReason1 = _registerName1("failureReason"); @@ -7732,13 +8245,13 @@ class NativeCupertinoHttp { _registerName1("backgroundLoadDidFailWithReason:"); late final _sel_didLoadBytes_loadComplete_1 = _registerName1("didLoadBytes:loadComplete:"); - void _objc_msgSend_203( + void _objc_msgSend_213( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer newBytes, bool yorn, ) { - return __objc_msgSend_203( + return __objc_msgSend_213( obj, sel, newBytes, @@ -7746,64 +8259,64 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_203Ptr = _lookup< + late final __objc_msgSend_213Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< + late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); - bool _objc_msgSend_204( + bool _objc_msgSend_214( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURL, ) { - return __objc_msgSend_204( + return __objc_msgSend_214( obj, sel, anURL, ); } - late final __objc_msgSend_204Ptr = _lookup< + late final __objc_msgSend_214Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< + late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); - ffi.Pointer _objc_msgSend_205( + ffi.Pointer _objc_msgSend_215( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURL, ) { - return __objc_msgSend_205( + return __objc_msgSend_215( obj, sel, anURL, ); } - late final __objc_msgSend_205Ptr = _lookup< + late final __objc_msgSend_215Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); - ffi.Pointer _objc_msgSend_206( + ffi.Pointer _objc_msgSend_216( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anURL, bool willCache, ) { - return __objc_msgSend_206( + return __objc_msgSend_216( obj, sel, anURL, @@ -7811,14 +8324,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_206Ptr = _lookup< + late final __objc_msgSend_216Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< + late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -7833,36 +8346,36 @@ class NativeCupertinoHttp { late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); late final _sel_URLHandleUsingCache_1 = _registerName1("URLHandleUsingCache:"); - ffi.Pointer _objc_msgSend_207( + ffi.Pointer _objc_msgSend_217( ffi.Pointer obj, ffi.Pointer sel, bool shouldUseCache, ) { - return __objc_msgSend_207( + return __objc_msgSend_217( obj, sel, shouldUseCache, ); } - late final __objc_msgSend_207Ptr = _lookup< + late final __objc_msgSend_217Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< + late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_writeToFile_options_error_1 = _registerName1("writeToFile:options:error:"); - bool _objc_msgSend_208( + bool _objc_msgSend_218( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_208( + return __objc_msgSend_218( obj, sel, path, @@ -7871,7 +8384,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_208Ptr = _lookup< + late final __objc_msgSend_218Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7879,7 +8392,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -7889,14 +8402,14 @@ class NativeCupertinoHttp { late final _sel_writeToURL_options_error_1 = _registerName1("writeToURL:options:error:"); - bool _objc_msgSend_209( + bool _objc_msgSend_219( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int writeOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_209( + return __objc_msgSend_219( obj, sel, url, @@ -7905,7 +8418,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_209Ptr = _lookup< + late final __objc_msgSend_219Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -7913,7 +8426,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -7923,14 +8436,14 @@ class NativeCupertinoHttp { late final _sel_rangeOfData_options_range_1 = _registerName1("rangeOfData:options:range:"); - NSRange _objc_msgSend_210( + NSRange _objc_msgSend_220( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataToFind, int mask, NSRange searchRange, ) { - return __objc_msgSend_210( + return __objc_msgSend_220( obj, sel, dataToFind, @@ -7939,46 +8452,46 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_210Ptr = _lookup< + late final __objc_msgSend_220Ptr = _lookup< ffi.NativeFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< + late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, NSRange)>(); late final _sel_enumerateByteRangesUsingBlock_1 = _registerName1("enumerateByteRangesUsingBlock:"); - void _objc_msgSend_211( + void _objc_msgSend_221( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_211( + return __objc_msgSend_221( obj, sel, block, ); } - late final __objc_msgSend_211Ptr = _lookup< + late final __objc_msgSend_221Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< + late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_data1 = _registerName1("data"); late final _sel_dataWithBytes_length_1 = _registerName1("dataWithBytes:length:"); - instancetype _objc_msgSend_212( + instancetype _objc_msgSend_222( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ) { - return __objc_msgSend_212( + return __objc_msgSend_222( obj, sel, bytes, @@ -7986,11 +8499,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_212Ptr = _lookup< + late final __objc_msgSend_222Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -7998,14 +8511,14 @@ class NativeCupertinoHttp { _registerName1("dataWithBytesNoCopy:length:"); late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_213( + instancetype _objc_msgSend_223( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool b, ) { - return __objc_msgSend_213( + return __objc_msgSend_223( obj, sel, bytes, @@ -8014,24 +8527,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_213Ptr = _lookup< + late final __objc_msgSend_223Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< + late final __objc_msgSend_223 = __objc_msgSend_223Ptr.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_214( + instancetype _objc_msgSend_224( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_214( + return __objc_msgSend_224( obj, sel, path, @@ -8040,7 +8553,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_214Ptr = _lookup< + late final __objc_msgSend_224Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8048,7 +8561,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< + late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8058,14 +8571,14 @@ class NativeCupertinoHttp { late final _sel_dataWithContentsOfURL_options_error_1 = _registerName1("dataWithContentsOfURL:options:error:"); - instancetype _objc_msgSend_215( + instancetype _objc_msgSend_225( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int readOptionsMask, ffi.Pointer> errorPtr, ) { - return __objc_msgSend_215( + return __objc_msgSend_225( obj, sel, url, @@ -8074,7 +8587,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_215Ptr = _lookup< + late final __objc_msgSend_225Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8082,7 +8595,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -8094,6 +8607,26 @@ class NativeCupertinoHttp { _registerName1("dataWithContentsOfFile:"); late final _sel_dataWithContentsOfURL_1 = _registerName1("dataWithContentsOfURL:"); + instancetype _objc_msgSend_226( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_226( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_226Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_initWithBytes_length_1 = _registerName1("initWithBytes:length:"); late final _sel_initWithBytesNoCopy_length_1 = @@ -8102,14 +8635,14 @@ class NativeCupertinoHttp { _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); late final _sel_initWithBytesNoCopy_length_deallocator_1 = _registerName1("initWithBytesNoCopy:length:deallocator:"); - instancetype _objc_msgSend_216( + instancetype _objc_msgSend_227( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_216( + return __objc_msgSend_227( obj, sel, bytes, @@ -8118,7 +8651,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_216Ptr = _lookup< + late final __objc_msgSend_227Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -8126,7 +8659,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSUInteger, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -8135,36 +8668,36 @@ class NativeCupertinoHttp { late final _sel_initWithContentsOfURL_options_error_1 = _registerName1("initWithContentsOfURL:options:error:"); late final _sel_initWithData_1 = _registerName1("initWithData:"); - instancetype _objc_msgSend_217( + instancetype _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_217( + return __objc_msgSend_228( obj, sel, data, ); } - late final __objc_msgSend_217Ptr = _lookup< + late final __objc_msgSend_228Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.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_218( + instancetype _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64String, int options, ) { - return __objc_msgSend_218( + return __objc_msgSend_229( obj, sel, base64String, @@ -8172,45 +8705,45 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_218Ptr = _lookup< + late final __objc_msgSend_229Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedStringWithOptions_1 = _registerName1("base64EncodedStringWithOptions:"); - ffi.Pointer _objc_msgSend_219( + ffi.Pointer _objc_msgSend_230( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_219( + return __objc_msgSend_230( obj, sel, options, ); } - late final __objc_msgSend_219Ptr = _lookup< + late final __objc_msgSend_230Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBase64EncodedData_options_1 = _registerName1("initWithBase64EncodedData:options:"); - instancetype _objc_msgSend_220( + instancetype _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer base64Data, int options, ) { - return __objc_msgSend_220( + return __objc_msgSend_231( obj, sel, base64Data, @@ -8218,45 +8751,45 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_220Ptr = _lookup< + late final __objc_msgSend_231Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_base64EncodedDataWithOptions_1 = _registerName1("base64EncodedDataWithOptions:"); - ffi.Pointer _objc_msgSend_221( + ffi.Pointer _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_221( + return __objc_msgSend_232( obj, sel, options, ); } - late final __objc_msgSend_221Ptr = _lookup< + late final __objc_msgSend_232Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_decompressedDataUsingAlgorithm_error_1 = _registerName1("decompressedDataUsingAlgorithm:error:"); - instancetype _objc_msgSend_222( + instancetype _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_222( + return __objc_msgSend_233( obj, sel, algorithm, @@ -8264,14 +8797,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_222Ptr = _lookup< + late final __objc_msgSend_233Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -8287,46 +8820,86 @@ class NativeCupertinoHttp { late final _sel_base64Encoding1 = _registerName1("base64Encoding"); late final _sel_characterSetWithBitmapRepresentation_1 = _registerName1("characterSetWithBitmapRepresentation:"); - ffi.Pointer _objc_msgSend_223( + ffi.Pointer _objc_msgSend_234( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_223( + return __objc_msgSend_234( obj, sel, data, ); } - late final __objc_msgSend_223Ptr = _lookup< + late final __objc_msgSend_234Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_characterSetWithContentsOfFile_1 = _registerName1("characterSetWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_235( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fName, + ) { + return __objc_msgSend_235( + obj, + sel, + fName, + ); + } + + late final __objc_msgSend_235Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + instancetype _objc_msgSend_236( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, + ) { + return __objc_msgSend_236( + obj, + sel, + coder, + ); + } + + late final __objc_msgSend_236Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); - bool _objc_msgSend_224( + bool _objc_msgSend_237( ffi.Pointer obj, ffi.Pointer sel, int aCharacter, ) { - return __objc_msgSend_224( + return __objc_msgSend_237( obj, sel, aCharacter, ); } - late final __objc_msgSend_224Ptr = _lookup< + late final __objc_msgSend_237Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, unichar)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< + late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_bitmapRepresentation1 = @@ -8334,64 +8907,64 @@ class NativeCupertinoHttp { late final _sel_invertedSet1 = _registerName1("invertedSet"); late final _sel_longCharacterIsMember_1 = _registerName1("longCharacterIsMember:"); - bool _objc_msgSend_225( + bool _objc_msgSend_238( ffi.Pointer obj, ffi.Pointer sel, int theLongChar, ) { - return __objc_msgSend_225( + return __objc_msgSend_238( obj, sel, theLongChar, ); } - late final __objc_msgSend_225Ptr = _lookup< + late final __objc_msgSend_238Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, UTF32Char)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< + late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); - bool _objc_msgSend_226( + bool _objc_msgSend_239( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer theOtherSet, ) { - return __objc_msgSend_226( + return __objc_msgSend_239( obj, sel, theOtherSet, ); } - late final __objc_msgSend_226Ptr = _lookup< + late final __objc_msgSend_239Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< + late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); - bool _objc_msgSend_227( + bool _objc_msgSend_240( ffi.Pointer obj, ffi.Pointer sel, int thePlane, ) { - return __objc_msgSend_227( + return __objc_msgSend_240( obj, sel, thePlane, ); } - late final __objc_msgSend_227Ptr = _lookup< + late final __objc_msgSend_240Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Uint8)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< + late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_URLUserAllowedCharacterSet1 = @@ -8408,35 +8981,35 @@ class NativeCupertinoHttp { _registerName1("URLFragmentAllowedCharacterSet"); late final _sel_rangeOfCharacterFromSet_1 = _registerName1("rangeOfCharacterFromSet:"); - NSRange _objc_msgSend_228( + NSRange _objc_msgSend_241( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { - return __objc_msgSend_228( + return __objc_msgSend_241( obj, sel, searchSet, ); } - late final __objc_msgSend_228Ptr = _lookup< + late final __objc_msgSend_241Ptr = _lookup< ffi.NativeFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< + late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1("rangeOfCharacterFromSet:options:"); - NSRange _objc_msgSend_229( + NSRange _objc_msgSend_242( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { - return __objc_msgSend_229( + return __objc_msgSend_242( obj, sel, searchSet, @@ -8444,24 +9017,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_229Ptr = _lookup< + late final __objc_msgSend_242Ptr = _lookup< ffi.NativeFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< + late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1("rangeOfCharacterFromSet:options:range:"); - NSRange _objc_msgSend_230( + NSRange _objc_msgSend_243( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, NSRange rangeOfReceiverToSearch, ) { - return __objc_msgSend_230( + return __objc_msgSend_243( obj, sel, searchSet, @@ -8470,54 +9043,54 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_230Ptr = _lookup< + late final __objc_msgSend_243Ptr = _lookup< ffi.NativeFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, NSRange)>(); late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - NSRange _objc_msgSend_231( + NSRange _objc_msgSend_244( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_231( + return __objc_msgSend_244( obj, sel, index, ); } - late final __objc_msgSend_231Ptr = _lookup< + late final __objc_msgSend_244Ptr = _lookup< ffi.NativeFunction< NSRange Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1("rangeOfComposedCharacterSequencesForRange:"); - NSRange _objc_msgSend_232( + NSRange _objc_msgSend_245( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_232( + return __objc_msgSend_245( obj, sel, range, ); } - late final __objc_msgSend_232Ptr = _lookup< + late final __objc_msgSend_245Ptr = _lookup< ffi.NativeFunction< NSRange Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< NSRange Function( ffi.Pointer, ffi.Pointer, NSRange)>(); @@ -8536,23 +9109,23 @@ class NativeCupertinoHttp { _registerName1("localizedCapitalizedString"); late final _sel_uppercaseStringWithLocale_1 = _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_233( + ffi.Pointer _objc_msgSend_246( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_233( + return __objc_msgSend_246( obj, sel, locale, ); } - late final __objc_msgSend_233Ptr = _lookup< + late final __objc_msgSend_246Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -8562,7 +9135,7 @@ class NativeCupertinoHttp { _registerName1("capitalizedStringWithLocale:"); late final _sel_getLineStart_end_contentsEnd_forRange_1 = _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_234( + void _objc_msgSend_247( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer startPtr, @@ -8570,7 +9143,7 @@ class NativeCupertinoHttp { ffi.Pointer contentsEndPtr, NSRange range, ) { - return __objc_msgSend_234( + return __objc_msgSend_247( obj, sel, startPtr, @@ -8580,7 +9153,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_234Ptr = _lookup< + late final __objc_msgSend_247Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -8589,7 +9162,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -8605,14 +9178,14 @@ class NativeCupertinoHttp { _registerName1("paragraphRangeForRange:"); late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_235( + void _objc_msgSend_248( ffi.Pointer obj, ffi.Pointer sel, NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_235( + return __objc_msgSend_248( obj, sel, range, @@ -8621,33 +9194,33 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_235Ptr = _lookup< + late final __objc_msgSend_248Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< + late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateLinesUsingBlock_1 = _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_236( + void _objc_msgSend_249( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_236( + return __objc_msgSend_249( obj, sel, block, ); } - late final __objc_msgSend_236Ptr = _lookup< + late final __objc_msgSend_249Ptr = _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_249 = __objc_msgSend_249Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -8656,13 +9229,13 @@ class NativeCupertinoHttp { late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); late final _sel_dataUsingEncoding_allowLossyConversion_1 = _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_237( + ffi.Pointer _objc_msgSend_250( ffi.Pointer obj, ffi.Pointer sel, int encoding, bool lossy, ) { - return __objc_msgSend_237( + return __objc_msgSend_250( obj, sel, encoding, @@ -8670,35 +9243,35 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_237Ptr = _lookup< + late final __objc_msgSend_250Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSStringEncoding, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< + late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_238( + ffi.Pointer _objc_msgSend_251( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_238( + return __objc_msgSend_251( obj, sel, encoding, ); } - late final __objc_msgSend_238Ptr = _lookup< + late final __objc_msgSend_251Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< + late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -8706,36 +9279,36 @@ class NativeCupertinoHttp { _registerName1("canBeConvertedToEncoding:"); late final _sel_cStringUsingEncoding_1 = _registerName1("cStringUsingEncoding:"); - ffi.Pointer _objc_msgSend_239( + ffi.Pointer _objc_msgSend_252( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_239( + return __objc_msgSend_252( obj, sel, encoding, ); } - late final __objc_msgSend_239Ptr = _lookup< + late final __objc_msgSend_252Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< + late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getCString_maxLength_encoding_1 = _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_240( + bool _objc_msgSend_253( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int maxBufferCount, int encoding, ) { - return __objc_msgSend_240( + return __objc_msgSend_253( obj, sel, buffer, @@ -8744,7 +9317,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_240Ptr = _lookup< + late final __objc_msgSend_253Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -8752,14 +9325,14 @@ class NativeCupertinoHttp { ffi.Pointer, NSUInteger, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + late final __objc_msgSend_253 = __objc_msgSend_253Ptr.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_241( + bool _objc_msgSend_254( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, @@ -8770,7 +9343,7 @@ class NativeCupertinoHttp { NSRange range, NSRangePointer leftover, ) { - return __objc_msgSend_241( + return __objc_msgSend_254( obj, sel, buffer, @@ -8783,7 +9356,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_241Ptr = _lookup< + late final __objc_msgSend_254Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -8795,7 +9368,7 @@ class NativeCupertinoHttp { ffi.Int32, NSRange, NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< + late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -8813,21 +9386,21 @@ class NativeCupertinoHttp { _registerName1("lengthOfBytesUsingEncoding:"); late final _sel_availableStringEncodings1 = _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_242( + ffi.Pointer _objc_msgSend_255( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_242( + return __objc_msgSend_255( obj, sel, ); } - late final __objc_msgSend_242Ptr = _lookup< + late final __objc_msgSend_255Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< + late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -8845,60 +9418,80 @@ class NativeCupertinoHttp { _registerName1("precomposedStringWithCompatibilityMapping"); late final _sel_componentsSeparatedByString_1 = _registerName1("componentsSeparatedByString:"); + ffi.Pointer _objc_msgSend_256( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, + ) { + return __objc_msgSend_256( + obj, + sel, + separator, + ); + } + + late final __objc_msgSend_256Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_componentsSeparatedByCharactersInSet_1 = _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_243( + ffi.Pointer _objc_msgSend_257( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_243( + return __objc_msgSend_257( obj, sel, separator, ); } - late final __objc_msgSend_243Ptr = _lookup< + late final __objc_msgSend_257Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< + late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByTrimmingCharactersInSet_1 = _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_244( + ffi.Pointer _objc_msgSend_258( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_244( + return __objc_msgSend_258( obj, sel, set1, ); } - late final __objc_msgSend_244Ptr = _lookup< + late final __objc_msgSend_258Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + late final __objc_msgSend_258 = __objc_msgSend_258Ptr.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_245( + ffi.Pointer _objc_msgSend_259( ffi.Pointer obj, ffi.Pointer sel, int newLength, ffi.Pointer padString, int padIndex, ) { - return __objc_msgSend_245( + return __objc_msgSend_259( obj, sel, newLength, @@ -8907,7 +9500,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_245Ptr = _lookup< + late final __objc_msgSend_259Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8915,19 +9508,19 @@ class NativeCupertinoHttp { NSUInteger, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< + late final __objc_msgSend_259 = __objc_msgSend_259Ptr.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_246( + ffi.Pointer _objc_msgSend_260( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer locale, ) { - return __objc_msgSend_246( + return __objc_msgSend_260( obj, sel, options, @@ -8935,21 +9528,21 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_246Ptr = _lookup< + late final __objc_msgSend_260Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + late final __objc_msgSend_260 = __objc_msgSend_260Ptr.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_247( + ffi.Pointer _objc_msgSend_261( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -8957,7 +9550,7 @@ class NativeCupertinoHttp { int options, NSRange searchRange, ) { - return __objc_msgSend_247( + return __objc_msgSend_261( obj, sel, target, @@ -8967,7 +9560,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_247Ptr = _lookup< + late final __objc_msgSend_261Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -8976,7 +9569,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -8987,13 +9580,13 @@ class NativeCupertinoHttp { late final _sel_stringByReplacingOccurrencesOfString_withString_1 = _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_248( + ffi.Pointer _objc_msgSend_262( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer replacement, ) { - return __objc_msgSend_248( + return __objc_msgSend_262( obj, sel, target, @@ -9001,14 +9594,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_248Ptr = _lookup< + late final __objc_msgSend_262Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -9017,13 +9610,13 @@ class NativeCupertinoHttp { late final _sel_stringByReplacingCharactersInRange_withString_1 = _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_249( + ffi.Pointer _objc_msgSend_263( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer replacement, ) { - return __objc_msgSend_249( + return __objc_msgSend_263( obj, sel, range, @@ -9031,26 +9624,26 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_249Ptr = _lookup< + late final __objc_msgSend_263Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>(); late final _sel_stringByApplyingTransform_reverse_1 = _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_250( + ffi.Pointer _objc_msgSend_264( ffi.Pointer obj, ffi.Pointer sel, NSStringTransform transform, bool reverse, ) { - return __objc_msgSend_250( + return __objc_msgSend_264( obj, sel, transform, @@ -9058,20 +9651,20 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_250Ptr = _lookup< + late final __objc_msgSend_264Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSStringTransform, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSStringTransform, bool)>(); late final _sel_writeToURL_atomically_encoding_error_1 = _registerName1("writeToURL:atomically:encoding:error:"); - bool _objc_msgSend_251( + bool _objc_msgSend_265( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -9079,7 +9672,7 @@ class NativeCupertinoHttp { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_251( + return __objc_msgSend_265( obj, sel, url, @@ -9089,7 +9682,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_251Ptr = _lookup< + late final __objc_msgSend_265Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -9098,7 +9691,7 @@ class NativeCupertinoHttp { ffi.Bool, NSStringEncoding, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -9109,7 +9702,7 @@ class NativeCupertinoHttp { late final _sel_writeToFile_atomically_encoding_error_1 = _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_252( + bool _objc_msgSend_266( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, @@ -9117,7 +9710,7 @@ class NativeCupertinoHttp { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_252( + return __objc_msgSend_266( obj, sel, path, @@ -9127,7 +9720,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_252Ptr = _lookup< + late final __objc_msgSend_266Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -9136,7 +9729,7 @@ class NativeCupertinoHttp { ffi.Bool, NSStringEncoding, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -9147,14 +9740,14 @@ class NativeCupertinoHttp { late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_253( + instancetype _objc_msgSend_267( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, bool freeBuffer, ) { - return __objc_msgSend_253( + return __objc_msgSend_267( obj, sel, characters, @@ -9163,24 +9756,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_253Ptr = _lookup< + late final __objc_msgSend_267Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_initWithCharactersNoCopy_length_deallocator_1 = _registerName1("initWithCharactersNoCopy:length:deallocator:"); - instancetype _objc_msgSend_254( + instancetype _objc_msgSend_268( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer chars, int len, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_254( + return __objc_msgSend_268( obj, sel, chars, @@ -9189,7 +9782,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_254Ptr = _lookup< + late final __objc_msgSend_268Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9197,19 +9790,19 @@ class NativeCupertinoHttp { ffi.Pointer, NSUInteger, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithCharacters_length_1 = _registerName1("initWithCharacters:length:"); - instancetype _objc_msgSend_255( + instancetype _objc_msgSend_269( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, ) { - return __objc_msgSend_255( + return __objc_msgSend_269( obj, sel, characters, @@ -9217,45 +9810,45 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_255Ptr = _lookup< + late final __objc_msgSend_269Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_256( + instancetype _objc_msgSend_270( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_256( + return __objc_msgSend_270( obj, sel, nullTerminatedCString, ); } - late final __objc_msgSend_256Ptr = _lookup< + late final __objc_msgSend_270Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + late final __objc_msgSend_270 = __objc_msgSend_270Ptr.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_257( + instancetype _objc_msgSend_271( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, va_list argList, ) { - return __objc_msgSend_257( + return __objc_msgSend_271( obj, sel, format, @@ -9263,23 +9856,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_257Ptr = _lookup< + late final __objc_msgSend_271Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, va_list)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, va_list)>(); late final _sel_initWithFormat_locale_1 = _registerName1("initWithFormat:locale:"); - instancetype _objc_msgSend_258( + instancetype _objc_msgSend_272( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, ) { - return __objc_msgSend_258( + return __objc_msgSend_272( obj, sel, format, @@ -9287,27 +9880,27 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_258Ptr = _lookup< + late final __objc_msgSend_272Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + late final __objc_msgSend_272 = __objc_msgSend_272Ptr.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_259( + instancetype _objc_msgSend_273( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, va_list argList, ) { - return __objc_msgSend_259( + return __objc_msgSend_273( obj, sel, format, @@ -9316,7 +9909,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_259Ptr = _lookup< + late final __objc_msgSend_273Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9324,20 +9917,20 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, va_list)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, va_list)>(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); - instancetype _objc_msgSend_260( + instancetype _objc_msgSend_274( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer validFormatSpecifiers, ffi.Pointer> error, ) { - return __objc_msgSend_260( + return __objc_msgSend_274( obj, sel, format, @@ -9346,7 +9939,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_260Ptr = _lookup< + late final __objc_msgSend_274Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9354,7 +9947,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9365,7 +9958,7 @@ class NativeCupertinoHttp { late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); - instancetype _objc_msgSend_261( + instancetype _objc_msgSend_275( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -9373,7 +9966,7 @@ class NativeCupertinoHttp { ffi.Pointer locale, ffi.Pointer> error, ) { - return __objc_msgSend_261( + return __objc_msgSend_275( obj, sel, format, @@ -9383,7 +9976,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_261Ptr = _lookup< + late final __objc_msgSend_275Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9392,7 +9985,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9404,7 +9997,7 @@ class NativeCupertinoHttp { late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); - instancetype _objc_msgSend_262( + instancetype _objc_msgSend_276( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -9412,7 +10005,7 @@ class NativeCupertinoHttp { va_list argList, ffi.Pointer> error, ) { - return __objc_msgSend_262( + return __objc_msgSend_276( obj, sel, format, @@ -9422,7 +10015,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_262Ptr = _lookup< + late final __objc_msgSend_276Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9431,7 +10024,7 @@ class NativeCupertinoHttp { ffi.Pointer, va_list, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9443,7 +10036,7 @@ class NativeCupertinoHttp { late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = _registerName1( "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); - instancetype _objc_msgSend_263( + instancetype _objc_msgSend_277( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -9452,7 +10045,7 @@ class NativeCupertinoHttp { va_list argList, ffi.Pointer> error, ) { - return __objc_msgSend_263( + return __objc_msgSend_277( obj, sel, format, @@ -9463,7 +10056,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_263Ptr = _lookup< + late final __objc_msgSend_277Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9473,7 +10066,7 @@ class NativeCupertinoHttp { ffi.Pointer, va_list, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9485,13 +10078,13 @@ class NativeCupertinoHttp { late final _sel_initWithData_encoding_1 = _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_264( + instancetype _objc_msgSend_278( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int encoding, ) { - return __objc_msgSend_264( + return __objc_msgSend_278( obj, sel, data, @@ -9499,24 +10092,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_264Ptr = _lookup< + late final __objc_msgSend_278Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithBytes_length_encoding_1 = _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_265( + instancetype _objc_msgSend_279( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int len, int encoding, ) { - return __objc_msgSend_265( + return __objc_msgSend_279( obj, sel, bytes, @@ -9525,7 +10118,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_265Ptr = _lookup< + late final __objc_msgSend_279Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9533,13 +10126,13 @@ class NativeCupertinoHttp { ffi.Pointer, NSUInteger, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + late final __objc_msgSend_279 = __objc_msgSend_279Ptr.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_266( + instancetype _objc_msgSend_280( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9547,7 +10140,7 @@ class NativeCupertinoHttp { int encoding, bool freeBuffer, ) { - return __objc_msgSend_266( + return __objc_msgSend_280( obj, sel, bytes, @@ -9557,7 +10150,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_266Ptr = _lookup< + late final __objc_msgSend_280Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9566,13 +10159,13 @@ class NativeCupertinoHttp { NSUInteger, NSStringEncoding, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + late final __objc_msgSend_280 = __objc_msgSend_280Ptr.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_267( + instancetype _objc_msgSend_281( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9580,7 +10173,7 @@ class NativeCupertinoHttp { int encoding, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_267( + return __objc_msgSend_281( obj, sel, bytes, @@ -9590,7 +10183,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_267Ptr = _lookup< + late final __objc_msgSend_281Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9599,7 +10192,7 @@ class NativeCupertinoHttp { NSUInteger, NSStringEncoding, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -9619,13 +10212,13 @@ class NativeCupertinoHttp { "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_initWithCString_encoding_1 = _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_268( + instancetype _objc_msgSend_282( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, int encoding, ) { - return __objc_msgSend_268( + return __objc_msgSend_282( obj, sel, nullTerminatedCString, @@ -9633,11 +10226,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_268Ptr = _lookup< + late final __objc_msgSend_282Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< + late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -9645,14 +10238,14 @@ class NativeCupertinoHttp { _registerName1("stringWithCString:encoding:"); late final _sel_initWithContentsOfURL_encoding_error_1 = _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_269( + instancetype _objc_msgSend_283( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_269( + return __objc_msgSend_283( obj, sel, url, @@ -9661,7 +10254,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_269Ptr = _lookup< + late final __objc_msgSend_283Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9669,7 +10262,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSStringEncoding, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< + late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9679,14 +10272,14 @@ class NativeCupertinoHttp { late final _sel_initWithContentsOfFile_encoding_error_1 = _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_270( + instancetype _objc_msgSend_284( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, int enc, ffi.Pointer> error, ) { - return __objc_msgSend_270( + return __objc_msgSend_284( obj, sel, path, @@ -9695,7 +10288,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_270Ptr = _lookup< + late final __objc_msgSend_284Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9703,7 +10296,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSStringEncoding, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< + late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9717,14 +10310,14 @@ class NativeCupertinoHttp { _registerName1("stringWithContentsOfFile:encoding:error:"); late final _sel_initWithContentsOfURL_usedEncoding_error_1 = _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_271( + instancetype _objc_msgSend_285( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_271( + return __objc_msgSend_285( obj, sel, url, @@ -9733,7 +10326,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_271Ptr = _lookup< + late final __objc_msgSend_285Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9741,7 +10334,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9751,14 +10344,14 @@ class NativeCupertinoHttp { late final _sel_initWithContentsOfFile_usedEncoding_error_1 = _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_272( + instancetype _objc_msgSend_286( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_272( + return __objc_msgSend_286( obj, sel, path, @@ -9767,7 +10360,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_272Ptr = _lookup< + late final __objc_msgSend_286Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -9775,7 +10368,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -9790,7 +10383,7 @@ class NativeCupertinoHttp { late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = _registerName1( "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_273( + int _objc_msgSend_287( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, @@ -9798,7 +10391,7 @@ class NativeCupertinoHttp { ffi.Pointer> string, ffi.Pointer usedLossyConversion, ) { - return __objc_msgSend_273( + return __objc_msgSend_287( obj, sel, data, @@ -9808,7 +10401,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_273Ptr = _lookup< + late final __objc_msgSend_287Ptr = _lookup< ffi.NativeFunction< NSStringEncoding Function( ffi.Pointer, @@ -9817,7 +10410,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< int Function( ffi.Pointer, ffi.Pointer, @@ -9829,39 +10422,57 @@ class NativeCupertinoHttp { late final _sel_propertyList1 = _registerName1("propertyList"); late final _sel_propertyListFromStringsFileFormat1 = _registerName1("propertyListFromStringsFileFormat"); + ffi.Pointer _objc_msgSend_288( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_288( + obj, + sel, + ); + } + + late final __objc_msgSend_288Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.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:"); - void _objc_msgSend_274( + void _objc_msgSend_289( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, ) { - return __objc_msgSend_274( + return __objc_msgSend_289( obj, sel, bytes, ); } - late final __objc_msgSend_274Ptr = _lookup< + late final __objc_msgSend_289Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCString_maxLength_1 = _registerName1("getCString:maxLength:"); - void _objc_msgSend_275( + void _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, ) { - return __objc_msgSend_275( + return __objc_msgSend_290( obj, sel, bytes, @@ -9869,17 +10480,17 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_275Ptr = _lookup< + late final __objc_msgSend_290Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.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_276( + void _objc_msgSend_291( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, @@ -9887,7 +10498,7 @@ class NativeCupertinoHttp { NSRange aRange, NSRangePointer leftoverRange, ) { - return __objc_msgSend_276( + return __objc_msgSend_291( obj, sel, bytes, @@ -9897,7 +10508,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_276Ptr = _lookup< + late final __objc_msgSend_291Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -9906,7 +10517,7 @@ class NativeCupertinoHttp { NSUInteger, NSRange, NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, NSRange, NSRangePointer)>(); @@ -9916,14 +10527,14 @@ class NativeCupertinoHttp { _registerName1("stringWithContentsOfURL:"); late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_277( + ffi.Pointer _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int length, bool freeBuffer, ) { - return __objc_msgSend_277( + return __objc_msgSend_292( obj, sel, bytes, @@ -9932,7 +10543,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_277Ptr = _lookup< + late final __objc_msgSend_292Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -9940,7 +10551,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSUInteger, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, bool)>(); @@ -9951,54 +10562,94 @@ class NativeCupertinoHttp { _registerName1("stringWithCString:length:"); late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_278( + void _objc_msgSend_293( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, ) { - return __objc_msgSend_278( + return __objc_msgSend_293( obj, sel, buffer, ); } - late final __objc_msgSend_278Ptr = _lookup< + late final __objc_msgSend_293Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); + ffi.Pointer _objc_msgSend_294( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer allowedCharacters, + ) { + return __objc_msgSend_294( + obj, + sel, + allowedCharacters, + ); + } + + late final __objc_msgSend_294Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_stringByRemovingPercentEncoding1 = _registerName1("stringByRemovingPercentEncoding"); late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = _registerName1("stringByAddingPercentEscapesUsingEncoding:"); + ffi.Pointer _objc_msgSend_295( + ffi.Pointer obj, + ffi.Pointer sel, + int enc, + ) { + return __objc_msgSend_295( + obj, + sel, + enc, + ); + } + + late final __objc_msgSend_295Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSStringEncoding)>>('objc_msgSend'); + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); late final _sel_debugDescription1 = _registerName1("debugDescription"); late final _sel_version1 = _registerName1("version"); late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_279( + void _objc_msgSend_296( ffi.Pointer obj, ffi.Pointer sel, int aVersion, ) { - return __objc_msgSend_279( + return __objc_msgSend_296( obj, sel, aVersion, ); } - late final __objc_msgSend_279Ptr = _lookup< + late final __objc_msgSend_296Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_classForCoder1 = _registerName1("classForCoder"); @@ -10011,13 +10662,13 @@ class NativeCupertinoHttp { _registerName1("autoContentAccessingProxy"); late final _sel_URL_resourceDataDidBecomeAvailable_1 = _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_280( + void _objc_msgSend_297( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer newBytes, ) { - return __objc_msgSend_280( + return __objc_msgSend_297( obj, sel, sender, @@ -10025,36 +10676,36 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_280Ptr = _lookup< + late final __objc_msgSend_297Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLResourceDidFinishLoading_1 = _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_281( + void _objc_msgSend_298( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ) { - return __objc_msgSend_281( + return __objc_msgSend_298( obj, sel, sender, ); } - late final __objc_msgSend_281Ptr = _lookup< + late final __objc_msgSend_298Ptr = _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_298 = __objc_msgSend_298Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -10062,13 +10713,13 @@ class NativeCupertinoHttp { _registerName1("URLResourceDidCancelLoading:"); late final _sel_URL_resourceDidFailLoadingWithReason_1 = _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_282( + void _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sender, ffi.Pointer reason, ) { - return __objc_msgSend_282( + return __objc_msgSend_299( obj, sel, sender, @@ -10076,21 +10727,21 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_282Ptr = _lookup< + late final __objc_msgSend_299Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = _registerName1( "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_283( + void _objc_msgSend_300( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, @@ -10099,7 +10750,7 @@ class NativeCupertinoHttp { ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo, ) { - return __objc_msgSend_283( + return __objc_msgSend_300( obj, sel, error, @@ -10110,7 +10761,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_283Ptr = _lookup< + late final __objc_msgSend_300Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -10120,7 +10771,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -10132,13 +10783,13 @@ class NativeCupertinoHttp { late final _sel_attemptRecoveryFromError_optionIndex_1 = _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_284( + bool _objc_msgSend_301( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, int recoveryOptionIndex, ) { - return __objc_msgSend_284( + return __objc_msgSend_301( obj, sel, error, @@ -10146,11 +10797,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_284Ptr = _lookup< + late final __objc_msgSend_301Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -10162,12 +10813,16 @@ class NativeCupertinoHttp { set NSFoundationVersionNumber(double value) => _NSFoundationVersionNumber.value = value; - ffi.Pointer NSStringFromSelector( + NSString NSStringFromSelector( ffi.Pointer aSelector, ) { - return _NSStringFromSelector( - aSelector, - ); + return NSString._( + _NSStringFromSelector( + aSelector, + ), + this, + retain: true, + release: true); } late final _NSStringFromSelectorPtr = _lookup< @@ -10178,10 +10833,10 @@ class NativeCupertinoHttp { ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer NSSelectorFromString( - ffi.Pointer aSelectorName, + NSString aSelectorName, ) { return _NSSelectorFromString( - aSelectorName, + aSelectorName._id, ); } @@ -10192,12 +10847,16 @@ class NativeCupertinoHttp { late final _NSSelectorFromString = _NSSelectorFromStringPtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); - ffi.Pointer NSStringFromClass( - ffi.Pointer aClass, + NSString NSStringFromClass( + NSObject aClass, ) { - return _NSStringFromClass( - aClass, - ); + return NSString._( + _NSStringFromClass( + aClass._id, + ), + this, + retain: true, + release: true); } late final _NSStringFromClassPtr = _lookup< @@ -10207,12 +10866,21 @@ class NativeCupertinoHttp { late final _NSStringFromClass = _NSStringFromClassPtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); - ffi.Pointer NSClassFromString( - ffi.Pointer aClassName, + NSObject? NSClassFromString( + NSString aClassName, ) { return _NSClassFromString( - aClassName, - ); + aClassName._id, + ).address == + 0 + ? null + : NSObject._( + _NSClassFromString( + aClassName._id, + ), + this, + retain: true, + release: true); } late final _NSClassFromStringPtr = _lookup< @@ -10222,12 +10890,16 @@ class NativeCupertinoHttp { late final _NSClassFromString = _NSClassFromStringPtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); - ffi.Pointer NSStringFromProtocol( - ffi.Pointer proto, + NSString NSStringFromProtocol( + Protocol proto, ) { - return _NSStringFromProtocol( - proto, - ); + return NSString._( + _NSStringFromProtocol( + proto._id, + ), + this, + retain: true, + release: true); } late final _NSStringFromProtocolPtr = _lookup< @@ -10237,12 +10909,21 @@ class NativeCupertinoHttp { late final _NSStringFromProtocol = _NSStringFromProtocolPtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); - ffi.Pointer NSProtocolFromString( - ffi.Pointer namestr, + Protocol? NSProtocolFromString( + NSString namestr, ) { return _NSProtocolFromString( - namestr, - ); + namestr._id, + ).address == + 0 + ? null + : Protocol._( + _NSProtocolFromString( + namestr._id, + ), + this, + retain: true, + release: true); } late final _NSProtocolFromStringPtr = _lookup< @@ -10275,10 +10956,10 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer)>(); void NSLog( - ffi.Pointer format, + NSString format, ) { return _NSLog( - format, + format._id, ); } @@ -10289,19 +10970,18 @@ class NativeCupertinoHttp { _NSLogPtr.asFunction)>(); void NSLogv( - ffi.Pointer format, + NSString format, va_list args, ) { return _NSLogv( - format, + format._id, args, ); } late final _NSLogvPtr = _lookup< - ffi - .NativeFunction, va_list)>>( - 'NSLogv'); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, va_list)>>('NSLogv'); late final _NSLogv = _NSLogvPtr.asFunction, va_list)>(); @@ -10310,8 +10990,6 @@ class NativeCupertinoHttp { int get NSNotFound => _NSNotFound.value; - set NSNotFound(int value) => _NSNotFound.value = value; - ffi.Pointer _Block_copy1( ffi.Pointer aBlock, ) { @@ -10469,8 +11147,6 @@ class NativeCupertinoHttp { int get kCFNotFound => _kCFNotFound.value; - set kCFNotFound(int value) => _kCFNotFound.value = value; - CFRange __CFRangeMake( int loc, int len, @@ -10500,56 +11176,37 @@ class NativeCupertinoHttp { CFNullRef get kCFNull => _kCFNull.value; - set kCFNull(CFNullRef value) => _kCFNull.value = value; - late final ffi.Pointer _kCFAllocatorDefault = _lookup('kCFAllocatorDefault'); CFAllocatorRef get kCFAllocatorDefault => _kCFAllocatorDefault.value; - set kCFAllocatorDefault(CFAllocatorRef value) => - _kCFAllocatorDefault.value = value; - late final ffi.Pointer _kCFAllocatorSystemDefault = _lookup('kCFAllocatorSystemDefault'); CFAllocatorRef get kCFAllocatorSystemDefault => _kCFAllocatorSystemDefault.value; - set kCFAllocatorSystemDefault(CFAllocatorRef value) => - _kCFAllocatorSystemDefault.value = value; - late final ffi.Pointer _kCFAllocatorMalloc = _lookup('kCFAllocatorMalloc'); CFAllocatorRef get kCFAllocatorMalloc => _kCFAllocatorMalloc.value; - set kCFAllocatorMalloc(CFAllocatorRef value) => - _kCFAllocatorMalloc.value = value; - late final ffi.Pointer _kCFAllocatorMallocZone = _lookup('kCFAllocatorMallocZone'); CFAllocatorRef get kCFAllocatorMallocZone => _kCFAllocatorMallocZone.value; - set kCFAllocatorMallocZone(CFAllocatorRef value) => - _kCFAllocatorMallocZone.value = value; - late final ffi.Pointer _kCFAllocatorNull = _lookup('kCFAllocatorNull'); CFAllocatorRef get kCFAllocatorNull => _kCFAllocatorNull.value; - set kCFAllocatorNull(CFAllocatorRef value) => _kCFAllocatorNull.value = value; - late final ffi.Pointer _kCFAllocatorUseContext = _lookup('kCFAllocatorUseContext'); CFAllocatorRef get kCFAllocatorUseContext => _kCFAllocatorUseContext.value; - set kCFAllocatorUseContext(CFAllocatorRef value) => - _kCFAllocatorUseContext.value = value; - int CFAllocatorGetTypeID() { return _CFAllocatorGetTypeID(); } @@ -10891,11 +11548,11 @@ class NativeCupertinoHttp { void NSSetZoneName( ffi.Pointer zone, - ffi.Pointer name, + NSString name, ) { return _NSSetZoneName( zone, - name, + name._id, ); } @@ -10906,12 +11563,16 @@ class NativeCupertinoHttp { late final _NSSetZoneName = _NSSetZoneNamePtr.asFunction< void Function(ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer NSZoneName( + NSString NSZoneName( ffi.Pointer zone, ) { - return _NSZoneName( - zone, - ); + return NSString._( + _NSZoneName( + zone, + ), + this, + retain: true, + release: true); } late final _NSZoneNamePtr = _lookup< @@ -11148,16 +11809,20 @@ class NativeCupertinoHttp { late final _NSRealMemoryAvailable = _NSRealMemoryAvailablePtr.asFunction(); - ffi.Pointer NSAllocateObject( - ffi.Pointer aClass, - int extraBytes, + NSObject NSAllocateObject( + NSObject aClass, + DartNSUInteger extraBytes, ffi.Pointer zone, ) { - return _NSAllocateObject( - aClass, - extraBytes, - zone, - ); + return NSObject._( + _NSAllocateObject( + aClass._id, + extraBytes, + zone, + ), + this, + retain: true, + release: true); } late final _NSAllocateObjectPtr = _lookup< @@ -11169,10 +11834,10 @@ class NativeCupertinoHttp { ffi.Pointer, int, ffi.Pointer)>(); void NSDeallocateObject( - ffi.Pointer object, + NSObject object, ) { return _NSDeallocateObject( - object, + object._id, ); } @@ -11182,16 +11847,20 @@ class NativeCupertinoHttp { late final _NSDeallocateObject = _NSDeallocateObjectPtr.asFunction< void Function(ffi.Pointer)>(); - ffi.Pointer NSCopyObject( - ffi.Pointer object, - int extraBytes, + NSObject NSCopyObject( + NSObject object, + DartNSUInteger extraBytes, ffi.Pointer zone, ) { - return _NSCopyObject( - object, - extraBytes, - zone, - ); + return NSObject._( + _NSCopyObject( + object._id, + extraBytes, + zone, + ), + this, + retain: true, + release: true); } late final _NSCopyObjectPtr = _lookup< @@ -11203,11 +11872,11 @@ class NativeCupertinoHttp { ffi.Pointer, int, ffi.Pointer)>(); bool NSShouldRetainWithZone( - ffi.Pointer anObject, + NSObject anObject, ffi.Pointer requestedZone, ) { return _NSShouldRetainWithZone( - anObject, + anObject._id, requestedZone, ); } @@ -11220,10 +11889,10 @@ class NativeCupertinoHttp { bool Function(ffi.Pointer, ffi.Pointer)>(); void NSIncrementExtraRefCount( - ffi.Pointer object, + NSObject object, ) { return _NSIncrementExtraRefCount( - object, + object._id, ); } @@ -11234,10 +11903,10 @@ class NativeCupertinoHttp { .asFunction)>(); bool NSDecrementExtraRefCountWasZero( - ffi.Pointer object, + NSObject object, ) { return _NSDecrementExtraRefCountWasZero( - object, + object._id, ); } @@ -11248,11 +11917,11 @@ class NativeCupertinoHttp { _NSDecrementExtraRefCountWasZeroPtr.asFunction< bool Function(ffi.Pointer)>(); - int NSExtraRefCount( - ffi.Pointer object, + DartNSUInteger NSExtraRefCount( + NSObject object, ) { return _NSExtraRefCount( - object, + object._id, ); } @@ -11294,12 +11963,16 @@ class NativeCupertinoHttp { late final _NSIntersectionRange = _NSIntersectionRangePtr.asFunction(); - ffi.Pointer NSStringFromRange( + NSString NSStringFromRange( NSRange range, ) { - return _NSStringFromRange( - range, - ); + return NSString._( + _NSStringFromRange( + range, + ), + this, + retain: true, + release: true); } late final _NSStringFromRangePtr = @@ -11309,10 +11982,10 @@ class NativeCupertinoHttp { ffi.Pointer Function(NSRange)>(); NSRange NSRangeFromString( - ffi.Pointer aString, + NSString aString, ) { return _NSRangeFromString( - aString, + aString._id, ); } @@ -11324,80 +11997,80 @@ class NativeCupertinoHttp { late final _class_NSMutableIndexSet1 = _getClass1("NSMutableIndexSet"); late final _sel_addIndexes_1 = _registerName1("addIndexes:"); - void _objc_msgSend_285( + void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_285( + return __objc_msgSend_302( obj, sel, indexSet, ); } - late final __objc_msgSend_285Ptr = _lookup< + late final __objc_msgSend_302Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeIndexes_1 = _registerName1("removeIndexes:"); late final _sel_removeAllIndexes1 = _registerName1("removeAllIndexes"); late final _sel_addIndex_1 = _registerName1("addIndex:"); - void _objc_msgSend_286( + void _objc_msgSend_303( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_286( + return __objc_msgSend_303( obj, sel, value, ); } - late final __objc_msgSend_286Ptr = _lookup< + late final __objc_msgSend_303Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeIndex_1 = _registerName1("removeIndex:"); late final _sel_addIndexesInRange_1 = _registerName1("addIndexesInRange:"); - void _objc_msgSend_287( + void _objc_msgSend_304( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ) { - return __objc_msgSend_287( + return __objc_msgSend_304( obj, sel, range, ); } - late final __objc_msgSend_287Ptr = _lookup< + late final __objc_msgSend_304Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange)>(); late final _sel_removeIndexesInRange_1 = _registerName1("removeIndexesInRange:"); late final _sel_shiftIndexesStartingAtIndex_by_1 = _registerName1("shiftIndexesStartingAtIndex:by:"); - void _objc_msgSend_288( + void _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, int index, int delta, ) { - return __objc_msgSend_288( + return __objc_msgSend_305( obj, sel, index, @@ -11405,24 +12078,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_288Ptr = _lookup< + late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); 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_289( + void _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int index, ) { - return __objc_msgSend_289( + return __objc_msgSend_306( obj, sel, anObject, @@ -11430,11 +12103,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_289Ptr = _lookup< + late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -11443,13 +12116,13 @@ class NativeCupertinoHttp { _registerName1("removeObjectAtIndex:"); late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_290( + void _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_290( + return __objc_msgSend_307( obj, sel, index, @@ -11457,46 +12130,46 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_290Ptr = _lookup< + late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.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_291( + void _objc_msgSend_308( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_291( + return __objc_msgSend_308( obj, sel, otherArray, ); } - late final __objc_msgSend_291Ptr = _lookup< + late final __objc_msgSend_308Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_292( + void _objc_msgSend_309( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_292( + return __objc_msgSend_309( obj, sel, idx1, @@ -11504,23 +12177,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_292Ptr = _lookup< + late final __objc_msgSend_309Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.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_293( + void _objc_msgSend_310( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, NSRange range, ) { - return __objc_msgSend_293( + return __objc_msgSend_310( obj, sel, anObject, @@ -11528,11 +12201,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_293Ptr = _lookup< + late final __objc_msgSend_310Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRange)>(); @@ -11543,13 +12216,13 @@ class NativeCupertinoHttp { _registerName1("removeObjectIdenticalTo:"); late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_294( + void _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_294( + return __objc_msgSend_311( obj, sel, indices, @@ -11557,11 +12230,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_294Ptr = _lookup< + late final __objc_msgSend_311Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -11571,14 +12244,14 @@ class NativeCupertinoHttp { _registerName1("removeObjectsInRange:"); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_295( + void _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer otherArray, NSRange otherRange, ) { - return __objc_msgSend_295( + return __objc_msgSend_312( obj, sel, range, @@ -11587,23 +12260,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_295Ptr = _lookup< + late final __objc_msgSend_312Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer, NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_296( + void _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_296( + return __objc_msgSend_313( obj, sel, range, @@ -11611,18 +12284,18 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_296Ptr = _lookup< + late final __objc_msgSend_313Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.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_297( + void _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -11632,7 +12305,7 @@ class NativeCupertinoHttp { compare, ffi.Pointer context, ) { - return __objc_msgSend_297( + return __objc_msgSend_314( obj, sel, compare, @@ -11640,7 +12313,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_297Ptr = _lookup< + late final __objc_msgSend_314Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -11650,7 +12323,7 @@ class NativeCupertinoHttp { NSInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -11663,13 +12336,13 @@ class NativeCupertinoHttp { late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); late final _sel_insertObjects_atIndexes_1 = _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_298( + void _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_298( + return __objc_msgSend_315( obj, sel, objects, @@ -11677,14 +12350,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_298Ptr = _lookup< + late final __objc_msgSend_315Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11692,13 +12365,13 @@ class NativeCupertinoHttp { _registerName1("removeObjectsAtIndexes:"); late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_299( + void _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_299( + return __objc_msgSend_316( obj, sel, indexes, @@ -11706,14 +12379,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_299Ptr = _lookup< + late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -11721,35 +12394,35 @@ class NativeCupertinoHttp { _registerName1("setObject:atIndexedSubscript:"); late final _sel_sortUsingComparator_1 = _registerName1("sortUsingComparator:"); - void _objc_msgSend_300( + void _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, NSComparator cmptr, ) { - return __objc_msgSend_300( + return __objc_msgSend_317( obj, sel, cmptr, ); } - late final __objc_msgSend_300Ptr = _lookup< + late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, NSComparator)>(); late final _sel_sortWithOptions_usingComparator_1 = _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_301( + void _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, int opts, NSComparator cmptr, ) { - return __objc_msgSend_301( + return __objc_msgSend_318( obj, sel, opts, @@ -11757,130 +12430,130 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_301Ptr = _lookup< + late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, NSComparator)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, int, NSComparator)>(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_302( + ffi.Pointer _objc_msgSend_319( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_302( + return __objc_msgSend_319( obj, sel, path, ); } - late final __objc_msgSend_302Ptr = _lookup< + late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_303( + ffi.Pointer _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_303( + return __objc_msgSend_320( obj, sel, url, ); } - late final __objc_msgSend_303Ptr = _lookup< + late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_applyDifference_1 = _registerName1("applyDifference:"); - void _objc_msgSend_304( + void _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer difference, ) { - return __objc_msgSend_304( + return __objc_msgSend_321( obj, sel, difference, ); } - late final __objc_msgSend_304Ptr = _lookup< + late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSMutableData1 = _getClass1("NSMutableData"); late final _sel_mutableBytes1 = _registerName1("mutableBytes"); late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_305( + void _objc_msgSend_322( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_305( + return __objc_msgSend_322( obj, sel, value, ); } - late final __objc_msgSend_305Ptr = _lookup< + late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); late final _sel_appendData_1 = _registerName1("appendData:"); - void _objc_msgSend_306( + void _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_306( + return __objc_msgSend_323( obj, sel, other, ); } - late final __objc_msgSend_306Ptr = _lookup< + late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); late final _sel_replaceBytesInRange_withBytes_1 = _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_307( + void _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer bytes, ) { - return __objc_msgSend_307( + return __objc_msgSend_324( obj, sel, range, @@ -11888,11 +12561,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_307Ptr = _lookup< + late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>(); @@ -11900,14 +12573,14 @@ class NativeCupertinoHttp { late final _sel_setData_1 = _registerName1("setData:"); late final _sel_replaceBytesInRange_withBytes_length_1 = _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_308( + void _objc_msgSend_325( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer replacementBytes, int replacementLength, ) { - return __objc_msgSend_308( + return __objc_msgSend_325( obj, sel, range, @@ -11916,26 +12589,46 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_308Ptr = _lookup< + late final __objc_msgSend_325Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer, int)>(); late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); + instancetype _objc_msgSend_326( + ffi.Pointer obj, + ffi.Pointer sel, + int aNumItems, + ) { + return __objc_msgSend_326( + obj, + sel, + aNumItems, + ); + } + + late final __objc_msgSend_326Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + NSUInteger)>>('objc_msgSend'); + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.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_309( + bool _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_309( + return __objc_msgSend_327( obj, sel, algorithm, @@ -11943,14 +12636,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_309Ptr = _lookup< + late final __objc_msgSend_327Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -11960,13 +12653,13 @@ class NativeCupertinoHttp { 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_310( + void _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_310( + return __objc_msgSend_328( obj, sel, anObject, @@ -11974,36 +12667,36 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_310Ptr = _lookup< + late final __objc_msgSend_328Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addEntriesFromDictionary_1 = _registerName1("addEntriesFromDictionary:"); - void _objc_msgSend_311( + void _objc_msgSend_329( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_311( + return __objc_msgSend_329( obj, sel, otherDictionary, ); } - late final __objc_msgSend_311Ptr = _lookup< + late final __objc_msgSend_329Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12012,67 +12705,92 @@ class NativeCupertinoHttp { late final _sel_setDictionary_1 = _registerName1("setDictionary:"); late final _sel_setObject_forKeyedSubscript_1 = _registerName1("setObject:forKeyedSubscript:"); + void _objc_msgSend_330( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ffi.Pointer key, + ) { + return __objc_msgSend_330( + obj, + sel, + obj1, + key, + ); + } + + late final __objc_msgSend_330Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_dictionaryWithCapacity_1 = _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_312( + ffi.Pointer _objc_msgSend_331( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_312( + return __objc_msgSend_331( obj, sel, path, ); } - late final __objc_msgSend_312Ptr = _lookup< + late final __objc_msgSend_331Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_313( + ffi.Pointer _objc_msgSend_332( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_313( + return __objc_msgSend_332( obj, sel, url, ); } - late final __objc_msgSend_313Ptr = _lookup< + late final __objc_msgSend_332Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithSharedKeySet_1 = _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_314( + ffi.Pointer _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_314( + return __objc_msgSend_333( obj, sel, keyset, ); } - late final __objc_msgSend_314Ptr = _lookup< + late final __objc_msgSend_333Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12081,7 +12799,7 @@ class NativeCupertinoHttp { late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = _registerName1( "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_315( + instancetype _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, @@ -12089,7 +12807,7 @@ class NativeCupertinoHttp { int length, ffi.Pointer name, ) { - return __objc_msgSend_315( + return __objc_msgSend_334( obj, sel, URL, @@ -12099,7 +12817,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_315Ptr = _lookup< + late final __objc_msgSend_334Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -12108,7 +12826,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -12125,13 +12843,13 @@ class NativeCupertinoHttp { late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); late final _sel_initWithResponse_data_1 = _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_316( + instancetype _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, ffi.Pointer data, ) { - return __objc_msgSend_316( + return __objc_msgSend_335( obj, sel, response, @@ -12139,20 +12857,20 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_316Ptr = _lookup< + late final __objc_msgSend_335Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.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_317( + instancetype _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, @@ -12160,7 +12878,7 @@ class NativeCupertinoHttp { ffi.Pointer userInfo, int storagePolicy, ) { - return __objc_msgSend_317( + return __objc_msgSend_336( obj, sel, response, @@ -12170,7 +12888,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_317Ptr = _lookup< + late final __objc_msgSend_336Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -12179,7 +12897,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -12189,93 +12907,93 @@ class NativeCupertinoHttp { int)>(); late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_318( + ffi.Pointer _objc_msgSend_337( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_318( + return __objc_msgSend_337( obj, sel, ); } - late final __objc_msgSend_318Ptr = _lookup< + late final __objc_msgSend_337Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_319( + int _objc_msgSend_338( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_319( + return __objc_msgSend_338( obj, sel, ); } - late final __objc_msgSend_319Ptr = _lookup< + late final __objc_msgSend_338Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_320( + ffi.Pointer _objc_msgSend_339( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_320( + return __objc_msgSend_339( obj, sel, ); } - late final __objc_msgSend_320Ptr = _lookup< + late final __objc_msgSend_339Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_321( + void _objc_msgSend_340( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_321( + return __objc_msgSend_340( obj, sel, value, ); } - late final __objc_msgSend_321Ptr = _lookup< + late final __objc_msgSend_340Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_322( + instancetype _objc_msgSend_341( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer path, ) { - return __objc_msgSend_322( + return __objc_msgSend_341( obj, sel, memoryCapacity, @@ -12284,7 +13002,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_322Ptr = _lookup< + late final __objc_msgSend_341Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -12292,20 +13010,20 @@ class NativeCupertinoHttp { NSUInteger, NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.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_323( + instancetype _objc_msgSend_342( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer directoryURL, ) { - return __objc_msgSend_323( + return __objc_msgSend_342( obj, sel, memoryCapacity, @@ -12314,7 +13032,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_323Ptr = _lookup< + late final __objc_msgSend_342Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -12322,7 +13040,7 @@ class NativeCupertinoHttp { NSUInteger, NSUInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); @@ -12332,14 +13050,14 @@ class NativeCupertinoHttp { _registerName1("supportsSecureCoding"); late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_324( + instancetype _objc_msgSend_343( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, int cachePolicy, double timeoutInterval, ) { - return __objc_msgSend_324( + return __objc_msgSend_343( obj, sel, URL, @@ -12348,7 +13066,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_324Ptr = _lookup< + late final __objc_msgSend_343Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -12356,7 +13074,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, double)>(); @@ -12364,41 +13082,41 @@ class NativeCupertinoHttp { late final _sel_initWithURL_cachePolicy_timeoutInterval_1 = _registerName1("initWithURL:cachePolicy:timeoutInterval:"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_325( + int _objc_msgSend_344( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_325( + return __objc_msgSend_344( obj, sel, ); } - late final __objc_msgSend_325Ptr = _lookup< + late final __objc_msgSend_344Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.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_326( + int _objc_msgSend_345( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_326( + return __objc_msgSend_345( obj, sel, ); } - late final __objc_msgSend_326Ptr = _lookup< + late final __objc_msgSend_345Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_allowsCellularAccess1 = @@ -12409,21 +13127,21 @@ class NativeCupertinoHttp { _registerName1("allowsConstrainedNetworkAccess"); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_327( + int _objc_msgSend_346( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_327( + return __objc_msgSend_346( obj, sel, ); } - late final __objc_msgSend_327Ptr = _lookup< + late final __objc_msgSend_346Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_requiresDNSSECValidation1 = @@ -12432,43 +13150,103 @@ class NativeCupertinoHttp { late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); late final _sel_valueForHTTPHeaderField_1 = _registerName1("valueForHTTPHeaderField:"); + ffi.Pointer _objc_msgSend_347( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer field, + ) { + return __objc_msgSend_347( + obj, + sel, + field, + ); + } + + late final __objc_msgSend_347Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_HTTPBody1 = _registerName1("HTTPBody"); + ffi.Pointer _objc_msgSend_348( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_348( + obj, + sel, + ); + } + + late final __objc_msgSend_348Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSInputStream1 = _getClass1("NSInputStream"); late final _class_NSStream1 = _getClass1("NSStream"); late final _sel_open1 = _registerName1("open"); late final _sel_close1 = _registerName1("close"); late final _sel_delegate1 = _registerName1("delegate"); late final _sel_setDelegate_1 = _registerName1("setDelegate:"); - void _objc_msgSend_328( + void _objc_msgSend_349( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_328( + return __objc_msgSend_349( obj, sel, value, ); } - late final __objc_msgSend_328Ptr = _lookup< + late final __objc_msgSend_349Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + bool _objc_msgSend_350( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + NSStreamPropertyKey key, + ) { + return __objc_msgSend_350( + obj, + sel, + property, + key, + ); + } + + late final __objc_msgSend_350Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSStreamPropertyKey)>>('objc_msgSend'); + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, NSStreamPropertyKey)>(); + late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); late final _sel_scheduleInRunLoop_forMode_1 = _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_329( + void _objc_msgSend_351( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aRunLoop, NSRunLoopMode mode, ) { - return __objc_msgSend_329( + return __objc_msgSend_351( obj, sel, aRunLoop, @@ -12476,62 +13254,62 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_329Ptr = _lookup< + late final __objc_msgSend_351Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRunLoopMode)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSRunLoopMode)>(); late final _sel_removeFromRunLoop_forMode_1 = _registerName1("removeFromRunLoop:forMode:"); late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_330( + int _objc_msgSend_352( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_330( + return __objc_msgSend_352( obj, sel, ); } - late final __objc_msgSend_330Ptr = _lookup< + late final __objc_msgSend_352Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_streamError1 = _registerName1("streamError"); - ffi.Pointer _objc_msgSend_331( + ffi.Pointer _objc_msgSend_353( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_331( + return __objc_msgSend_353( obj, sel, ); } - late final __objc_msgSend_331Ptr = _lookup< + late final __objc_msgSend_353Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); - int _objc_msgSend_332( + int _objc_msgSend_354( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int len, ) { - return __objc_msgSend_332( + return __objc_msgSend_354( obj, sel, buffer, @@ -12539,11 +13317,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_332Ptr = _lookup< + late final __objc_msgSend_354Ptr = _lookup< ffi.NativeFunction< NSInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -12551,13 +13329,13 @@ class NativeCupertinoHttp { late final _sel_initToMemory1 = _registerName1("initToMemory"); late final _sel_initToBuffer_capacity_1 = _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_333( + instancetype _objc_msgSend_355( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int capacity, ) { - return __objc_msgSend_333( + return __objc_msgSend_355( obj, sel, buffer, @@ -12565,15 +13343,37 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_333Ptr = _lookup< + late final __objc_msgSend_355Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); + instancetype _objc_msgSend_356( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + bool shouldAppend, + ) { + return __objc_msgSend_356( + obj, + sel, + url, + shouldAppend, + ); + } + + late final __objc_msgSend_356Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + late final _sel_initToFileAtPath_append_1 = _registerName1("initToFileAtPath:append:"); late final _sel_outputStreamToMemory1 = @@ -12586,7 +13386,7 @@ class NativeCupertinoHttp { _registerName1("outputStreamWithURL:append:"); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_334( + void _objc_msgSend_357( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, @@ -12594,7 +13394,7 @@ class NativeCupertinoHttp { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_334( + return __objc_msgSend_357( obj, sel, hostname, @@ -12604,7 +13404,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_334Ptr = _lookup< + late final __objc_msgSend_357Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12613,7 +13413,7 @@ class NativeCupertinoHttp { NSInteger, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12625,7 +13425,7 @@ class NativeCupertinoHttp { late final _class_NSHost1 = _getClass1("NSHost"); late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_335( + void _objc_msgSend_358( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -12633,7 +13433,7 @@ class NativeCupertinoHttp { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_335( + return __objc_msgSend_358( obj, sel, host, @@ -12643,7 +13443,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_335Ptr = _lookup< + late final __objc_msgSend_358Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12652,7 +13452,7 @@ class NativeCupertinoHttp { NSInteger, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12663,14 +13463,14 @@ class NativeCupertinoHttp { late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_336( + void _objc_msgSend_359( ffi.Pointer obj, ffi.Pointer sel, int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_336( + return __objc_msgSend_359( obj, sel, bufferSize, @@ -12679,7 +13479,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_336Ptr = _lookup< + late final __objc_msgSend_359Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12687,7 +13487,7 @@ class NativeCupertinoHttp { NSUInteger, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12697,13 +13497,13 @@ class NativeCupertinoHttp { late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_337( + bool _objc_msgSend_360( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> buffer, ffi.Pointer len, ) { - return __objc_msgSend_337( + return __objc_msgSend_360( obj, sel, buffer, @@ -12711,14 +13511,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_337Ptr = _lookup< + late final __objc_msgSend_360Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>(); @@ -12726,25 +13526,45 @@ class NativeCupertinoHttp { late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); late final _sel_inputStreamWithData_1 = _registerName1("inputStreamWithData:"); + instancetype _objc_msgSend_361( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_361( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_361Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_inputStreamWithFileAtPath_1 = _registerName1("inputStreamWithFileAtPath:"); late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_338( + ffi.Pointer _objc_msgSend_362( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_338( + return __objc_msgSend_362( obj, sel, ); } - late final __objc_msgSend_338Ptr = _lookup< + late final __objc_msgSend_362Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -12754,35 +13574,35 @@ class NativeCupertinoHttp { _registerName1("HTTPShouldUsePipelining"); late final _sel_cachedResponseForRequest_1 = _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_339( + ffi.Pointer _objc_msgSend_363( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_339( + return __objc_msgSend_363( obj, sel, request, ); } - late final __objc_msgSend_339Ptr = _lookup< + late final __objc_msgSend_363Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_storeCachedResponse_forRequest_1 = _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_340( + void _objc_msgSend_364( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer request, ) { - return __objc_msgSend_340( + return __objc_msgSend_364( obj, sel, cachedResponse, @@ -12790,36 +13610,36 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_340Ptr = _lookup< + late final __objc_msgSend_364Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeCachedResponseForRequest_1 = _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_341( + void _objc_msgSend_365( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_341( + return __objc_msgSend_365( obj, sel, request, ); } - late final __objc_msgSend_341Ptr = _lookup< + late final __objc_msgSend_365Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12830,45 +13650,45 @@ class NativeCupertinoHttp { _registerName1("timeIntervalSinceReferenceDate"); late final _sel_initWithTimeIntervalSinceReferenceDate_1 = _registerName1("initWithTimeIntervalSinceReferenceDate:"); - instancetype _objc_msgSend_342( + instancetype _objc_msgSend_366( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_342( + return __objc_msgSend_366( obj, sel, ti, ); } - late final __objc_msgSend_342Ptr = _lookup< + late final __objc_msgSend_366Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, NSTimeInterval)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, double)>(); late final _sel_timeIntervalSinceDate_1 = _registerName1("timeIntervalSinceDate:"); - double _objc_msgSend_343( + double _objc_msgSend_367( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_343( + return __objc_msgSend_367( obj, sel, anotherDate, ); } - late final __objc_msgSend_343Ptr = _lookup< + late final __objc_msgSend_367Ptr = _lookup< ffi.NativeFunction< NSTimeInterval Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12880,65 +13700,65 @@ class NativeCupertinoHttp { late final _sel_dateByAddingTimeInterval_1 = _registerName1("dateByAddingTimeInterval:"); late final _sel_earlierDate_1 = _registerName1("earlierDate:"); - ffi.Pointer _objc_msgSend_344( + ffi.Pointer _objc_msgSend_368( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_344( + return __objc_msgSend_368( obj, sel, anotherDate, ); } - late final __objc_msgSend_344Ptr = _lookup< + late final __objc_msgSend_368Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_laterDate_1 = _registerName1("laterDate:"); - int _objc_msgSend_345( + int _objc_msgSend_369( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_345( + return __objc_msgSend_369( obj, sel, other, ); } - late final __objc_msgSend_345Ptr = _lookup< + late final __objc_msgSend_369Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); - bool _objc_msgSend_346( + bool _objc_msgSend_370( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDate, ) { - return __objc_msgSend_346( + return __objc_msgSend_370( obj, sel, otherDate, ); } - late final __objc_msgSend_346Ptr = _lookup< + late final __objc_msgSend_370Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12951,13 +13771,13 @@ class NativeCupertinoHttp { _registerName1("dateWithTimeIntervalSince1970:"); late final _sel_dateWithTimeInterval_sinceDate_1 = _registerName1("dateWithTimeInterval:sinceDate:"); - instancetype _objc_msgSend_347( + instancetype _objc_msgSend_371( ffi.Pointer obj, ffi.Pointer sel, double secsToBeAdded, ffi.Pointer date, ) { - return __objc_msgSend_347( + return __objc_msgSend_371( obj, sel, secsToBeAdded, @@ -12965,30 +13785,30 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_347Ptr = _lookup< + late final __objc_msgSend_371Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, NSTimeInterval, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); late final _sel_distantFuture1 = _registerName1("distantFuture"); - ffi.Pointer _objc_msgSend_348( + ffi.Pointer _objc_msgSend_372( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_348( + return __objc_msgSend_372( obj, sel, ); } - late final __objc_msgSend_348Ptr = _lookup< + late final __objc_msgSend_372Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -13002,23 +13822,23 @@ class NativeCupertinoHttp { _registerName1("initWithTimeInterval:sinceDate:"); late final _sel_removeCachedResponsesSinceDate_1 = _registerName1("removeCachedResponsesSinceDate:"); - void _objc_msgSend_349( + void _objc_msgSend_373( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_349( + return __objc_msgSend_373( obj, sel, date, ); } - late final __objc_msgSend_349Ptr = _lookup< + late final __objc_msgSend_373Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13032,64 +13852,82 @@ class NativeCupertinoHttp { late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_350( + ffi.Pointer _objc_msgSend_374( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_350( + return __objc_msgSend_374( obj, sel, ); } - late final __objc_msgSend_350Ptr = _lookup< + late final __objc_msgSend_374Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_currentRequest1 = _registerName1("currentRequest"); + ffi.Pointer _objc_msgSend_375( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_375( + obj, + sel, + ); + } + + late final __objc_msgSend_375Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _class_NSProgress1 = _getClass1("NSProgress"); late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_351( + ffi.Pointer _objc_msgSend_376( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_351( + return __objc_msgSend_376( obj, sel, ); } - late final __objc_msgSend_351Ptr = _lookup< + late final __objc_msgSend_376Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progressWithTotalUnitCount_1 = _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_352( + ffi.Pointer _objc_msgSend_377( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_352( + return __objc_msgSend_377( obj, sel, unitCount, ); } - late final __objc_msgSend_352Ptr = _lookup< + late final __objc_msgSend_377Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -13097,14 +13935,14 @@ class NativeCupertinoHttp { _registerName1("discreteProgressWithTotalUnitCount:"); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_353( + ffi.Pointer _objc_msgSend_378( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer parent, int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_353( + return __objc_msgSend_378( obj, sel, unitCount, @@ -13113,7 +13951,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_353Ptr = _lookup< + late final __objc_msgSend_378Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -13121,19 +13959,19 @@ class NativeCupertinoHttp { ffi.Int64, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithParent_userInfo_1 = _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_354( + instancetype _objc_msgSend_379( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_354( + return __objc_msgSend_379( obj, sel, parentProgressOrNil, @@ -13141,47 +13979,47 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_354Ptr = _lookup< + late final __objc_msgSend_379Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_355( + void _objc_msgSend_380( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_355( + return __objc_msgSend_380( obj, sel, unitCount, ); } - late final __objc_msgSend_355Ptr = _lookup< + late final __objc_msgSend_380Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_356( + void _objc_msgSend_381( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_356( + return __objc_msgSend_381( obj, sel, unitCount, @@ -13189,24 +14027,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_356Ptr = _lookup< + late final __objc_msgSend_381Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.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_357( + void _objc_msgSend_382( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_357( + return __objc_msgSend_382( obj, sel, child, @@ -13214,50 +14052,50 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_357Ptr = _lookup< + late final __objc_msgSend_382Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_358( + int _objc_msgSend_383( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_358( + return __objc_msgSend_383( obj, sel, ); } - late final __objc_msgSend_358Ptr = _lookup< + late final __objc_msgSend_383Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_359( + void _objc_msgSend_384( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_359( + return __objc_msgSend_384( obj, sel, value, ); } - late final __objc_msgSend_359Ptr = _lookup< + late final __objc_msgSend_384Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); @@ -13265,23 +14103,23 @@ class NativeCupertinoHttp { _registerName1("setCompletedUnitCount:"); late final _sel_setLocalizedDescription_1 = _registerName1("setLocalizedDescription:"); - void _objc_msgSend_360( + void _objc_msgSend_385( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_360( + return __objc_msgSend_385( obj, sel, value, ); } - late final __objc_msgSend_360Ptr = _lookup< + late final __objc_msgSend_385Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13291,23 +14129,23 @@ class NativeCupertinoHttp { _registerName1("setLocalizedAdditionalDescription:"); late final _sel_isCancellable1 = _registerName1("isCancellable"); late final _sel_setCancellable_1 = _registerName1("setCancellable:"); - void _objc_msgSend_361( + void _objc_msgSend_386( ffi.Pointer obj, ffi.Pointer sel, bool value, ) { - return __objc_msgSend_361( + return __objc_msgSend_386( obj, sel, value, ); } - late final __objc_msgSend_361Ptr = _lookup< + late final __objc_msgSend_386Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_isPausable1 = _registerName1("isPausable"); @@ -13315,43 +14153,43 @@ class NativeCupertinoHttp { late final _sel_isCancelled1 = _registerName1("isCancelled"); late final _sel_isPaused1 = _registerName1("isPaused"); late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_362( + ffi.Pointer<_ObjCBlock> _objc_msgSend_387( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_362( + return __objc_msgSend_387( obj, sel, ); } - late final __objc_msgSend_362Ptr = _lookup< + late final __objc_msgSend_387Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setCancellationHandler_1 = _registerName1("setCancellationHandler:"); - void _objc_msgSend_363( + void _objc_msgSend_388( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_363( + return __objc_msgSend_388( obj, sel, value, ); } - late final __objc_msgSend_363Ptr = _lookup< + late final __objc_msgSend_388Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -13373,23 +14211,23 @@ class NativeCupertinoHttp { _registerName1("estimatedTimeRemaining"); late final _sel_setEstimatedTimeRemaining_1 = _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_364( + void _objc_msgSend_389( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_364( + return __objc_msgSend_389( obj, sel, value, ); } - late final __objc_msgSend_364Ptr = _lookup< + late final __objc_msgSend_389Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13400,23 +14238,23 @@ class NativeCupertinoHttp { _registerName1("setFileOperationKind:"); late final _sel_fileURL1 = _registerName1("fileURL"); late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_365( + void _objc_msgSend_390( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_365( + return __objc_msgSend_390( obj, sel, value, ); } - late final __objc_msgSend_365Ptr = _lookup< + late final __objc_msgSend_390Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13429,13 +14267,13 @@ class NativeCupertinoHttp { late final _sel_unpublish1 = _registerName1("unpublish"); late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = _registerName1("addSubscriberForFileURL:withPublishingHandler:"); - ffi.Pointer _objc_msgSend_366( + ffi.Pointer _objc_msgSend_391( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, NSProgressPublishingHandler publishingHandler, ) { - return __objc_msgSend_366( + return __objc_msgSend_391( obj, sel, url, @@ -13443,14 +14281,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_366Ptr = _lookup< + late final __objc_msgSend_391Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSProgressPublishingHandler)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13460,26 +14298,62 @@ class NativeCupertinoHttp { late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); late final _sel_isOld1 = _registerName1("isOld"); late final _sel_progress1 = _registerName1("progress"); + ffi.Pointer _objc_msgSend_392( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_392( + obj, + sel, + ); + } + + late final __objc_msgSend_392Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); + ffi.Pointer _objc_msgSend_393( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_393( + obj, + sel, + ); + } + + late final __objc_msgSend_393Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setEarliestBeginDate_1 = _registerName1("setEarliestBeginDate:"); - void _objc_msgSend_367( + void _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_367( + return __objc_msgSend_394( obj, sel, value, ); } - late final __objc_msgSend_367Ptr = _lookup< + late final __objc_msgSend_394Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13500,45 +14374,65 @@ class NativeCupertinoHttp { _registerName1("countOfBytesExpectedToReceive"); late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); + void _objc_msgSend_395( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_395( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_395Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_368( + int _objc_msgSend_396( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_368( + return __objc_msgSend_396( obj, sel, ); } - late final __objc_msgSend_368Ptr = _lookup< + late final __objc_msgSend_396Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_error1 = _registerName1("error"); late final _sel_suspend1 = _registerName1("suspend"); late final _sel_priority1 = _registerName1("priority"); late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_369( + void _objc_msgSend_397( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_369( + return __objc_msgSend_397( obj, sel, value, ); } - late final __objc_msgSend_369Ptr = _lookup< + late final __objc_msgSend_397Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_prefersIncrementalDelivery1 = @@ -13547,13 +14441,13 @@ class NativeCupertinoHttp { _registerName1("setPrefersIncrementalDelivery:"); late final _sel_storeCachedResponse_forDataTask_1 = _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_370( + void _objc_msgSend_398( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer dataTask, ) { - return __objc_msgSend_370( + return __objc_msgSend_398( obj, sel, cachedResponse, @@ -13561,26 +14455,26 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_370Ptr = _lookup< + late final __objc_msgSend_398Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCachedResponseForDataTask_completionHandler_1 = _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_371( + void _objc_msgSend_399( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_371( + return __objc_msgSend_399( obj, sel, dataTask, @@ -13588,36 +14482,36 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_371Ptr = _lookup< + late final __objc_msgSend_399Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_removeCachedResponseForDataTask_1 = _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_372( + void _objc_msgSend_400( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ) { - return __objc_msgSend_372( + return __objc_msgSend_400( obj, sel, dataTask, ); } - late final __objc_msgSend_372Ptr = _lookup< + late final __objc_msgSend_400Ptr = _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_400 = __objc_msgSend_400Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13625,14 +14519,14 @@ class NativeCupertinoHttp { late final _sel_name1 = _registerName1("name"); late final _sel_initWithName_object_userInfo_1 = _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_373( + instancetype _objc_msgSend_401( ffi.Pointer obj, ffi.Pointer sel, NSNotificationName name, ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_373( + return __objc_msgSend_401( obj, sel, name, @@ -13641,7 +14535,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_373Ptr = _lookup< + late final __objc_msgSend_401Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -13649,7 +14543,7 @@ class NativeCupertinoHttp { NSNotificationName, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -13663,27 +14557,27 @@ class NativeCupertinoHttp { _registerName1("notificationWithName:object:userInfo:"); late final _class_NSNotificationCenter1 = _getClass1("NSNotificationCenter"); late final _sel_defaultCenter1 = _registerName1("defaultCenter"); - ffi.Pointer _objc_msgSend_374( + ffi.Pointer _objc_msgSend_402( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_374( + return __objc_msgSend_402( obj, sel, ); } - late final __objc_msgSend_374Ptr = _lookup< + late final __objc_msgSend_402Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addObserver_selector_name_object_1 = _registerName1("addObserver:selector:name:object:"); - void _objc_msgSend_375( + void _objc_msgSend_403( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -13691,7 +14585,7 @@ class NativeCupertinoHttp { NSNotificationName aName, ffi.Pointer anObject, ) { - return __objc_msgSend_375( + return __objc_msgSend_403( obj, sel, observer, @@ -13701,7 +14595,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_375Ptr = _lookup< + late final __objc_msgSend_403Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13710,7 +14604,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSNotificationName, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13720,35 +14614,35 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_postNotification_1 = _registerName1("postNotification:"); - void _objc_msgSend_376( + void _objc_msgSend_404( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer notification, ) { - return __objc_msgSend_376( + return __objc_msgSend_404( obj, sel, notification, ); } - late final __objc_msgSend_376Ptr = _lookup< + late final __objc_msgSend_404Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_postNotificationName_object_1 = _registerName1("postNotificationName:object:"); - void _objc_msgSend_377( + void _objc_msgSend_405( ffi.Pointer obj, ffi.Pointer sel, NSNotificationName aName, ffi.Pointer anObject, ) { - return __objc_msgSend_377( + return __objc_msgSend_405( obj, sel, aName, @@ -13756,24 +14650,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_377Ptr = _lookup< + late final __objc_msgSend_405Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSNotificationName, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSNotificationName, ffi.Pointer)>(); late final _sel_postNotificationName_object_userInfo_1 = _registerName1("postNotificationName:object:userInfo:"); - void _objc_msgSend_378( + void _objc_msgSend_406( ffi.Pointer obj, ffi.Pointer sel, NSNotificationName aName, ffi.Pointer anObject, ffi.Pointer aUserInfo, ) { - return __objc_msgSend_378( + return __objc_msgSend_406( obj, sel, aName, @@ -13782,7 +14676,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_378Ptr = _lookup< + late final __objc_msgSend_406Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13790,7 +14684,7 @@ class NativeCupertinoHttp { NSNotificationName, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13801,14 +14695,14 @@ class NativeCupertinoHttp { late final _sel_removeObserver_1 = _registerName1("removeObserver:"); late final _sel_removeObserver_name_object_1 = _registerName1("removeObserver:name:object:"); - void _objc_msgSend_379( + void _objc_msgSend_407( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, NSNotificationName aName, ffi.Pointer anObject, ) { - return __objc_msgSend_379( + return __objc_msgSend_407( obj, sel, observer, @@ -13817,7 +14711,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_379Ptr = _lookup< + late final __objc_msgSend_407Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13825,7 +14719,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSNotificationName, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13842,64 +14736,64 @@ class NativeCupertinoHttp { late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); late final _sel_isReady1 = _registerName1("isReady"); late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_380( + void _objc_msgSend_408( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer op, ) { - return __objc_msgSend_380( + return __objc_msgSend_408( obj, sel, op, ); } - late final __objc_msgSend_380Ptr = _lookup< + late final __objc_msgSend_408Ptr = _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_408 = __objc_msgSend_408Ptr.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_381( + int _objc_msgSend_409( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_381( + return __objc_msgSend_409( obj, sel, ); } - late final __objc_msgSend_381Ptr = _lookup< + late final __objc_msgSend_409Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_382( + void _objc_msgSend_410( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_382( + return __objc_msgSend_410( obj, sel, value, ); } - late final __objc_msgSend_382Ptr = _lookup< + late final __objc_msgSend_410Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completionBlock1 = _registerName1("completionBlock"); @@ -13907,75 +14801,75 @@ class NativeCupertinoHttp { late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); late final _sel_threadPriority1 = _registerName1("threadPriority"); late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_383( + void _objc_msgSend_411( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_383( + return __objc_msgSend_411( obj, sel, value, ); } - late final __objc_msgSend_383Ptr = _lookup< + late final __objc_msgSend_411Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_384( + int _objc_msgSend_412( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_384( + return __objc_msgSend_412( obj, sel, ); } - late final __objc_msgSend_384Ptr = _lookup< + late final __objc_msgSend_412Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQualityOfService_1 = _registerName1("setQualityOfService:"); - void _objc_msgSend_385( + void _objc_msgSend_413( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_385( + return __objc_msgSend_413( obj, sel, value, ); } - late final __objc_msgSend_385Ptr = _lookup< + late final __objc_msgSend_413Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setName_1 = _registerName1("setName:"); late final _sel_addOperation_1 = _registerName1("addOperation:"); late final _sel_addOperations_waitUntilFinished_1 = _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_386( + void _objc_msgSend_414( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ops, bool wait, ) { - return __objc_msgSend_386( + return __objc_msgSend_414( obj, sel, ops, @@ -13983,33 +14877,33 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_386Ptr = _lookup< + late final __objc_msgSend_414Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_addOperationWithBlock_1 = _registerName1("addOperationWithBlock:"); - void _objc_msgSend_387( + void _objc_msgSend_415( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_387( + return __objc_msgSend_415( obj, sel, block, ); } - late final __objc_msgSend_387Ptr = _lookup< + late final __objc_msgSend_415Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -14018,64 +14912,64 @@ class NativeCupertinoHttp { _registerName1("maxConcurrentOperationCount"); late final _sel_setMaxConcurrentOperationCount_1 = _registerName1("setMaxConcurrentOperationCount:"); - void _objc_msgSend_388( + void _objc_msgSend_416( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_388( + return __objc_msgSend_416( obj, sel, value, ); } - late final __objc_msgSend_388Ptr = _lookup< + late final __objc_msgSend_416Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isSuspended1 = _registerName1("isSuspended"); late final _sel_setSuspended_1 = _registerName1("setSuspended:"); late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - dispatch_queue_t _objc_msgSend_389( + dispatch_queue_t _objc_msgSend_417( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_389( + return __objc_msgSend_417( obj, sel, ); } - late final __objc_msgSend_389Ptr = _lookup< + late final __objc_msgSend_417Ptr = _lookup< ffi.NativeFunction< dispatch_queue_t Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< dispatch_queue_t Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_390( + void _objc_msgSend_418( ffi.Pointer obj, ffi.Pointer sel, dispatch_queue_t value, ) { - return __objc_msgSend_390( + return __objc_msgSend_418( obj, sel, value, ); } - late final __objc_msgSend_390Ptr = _lookup< + late final __objc_msgSend_418Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, dispatch_queue_t)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, dispatch_queue_t)>(); @@ -14083,30 +14977,48 @@ class NativeCupertinoHttp { late final _sel_waitUntilAllOperationsAreFinished1 = _registerName1("waitUntilAllOperationsAreFinished"); late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_391( + ffi.Pointer _objc_msgSend_419( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_391( + return __objc_msgSend_419( obj, sel, ); } - late final __objc_msgSend_391Ptr = _lookup< + late final __objc_msgSend_419Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainQueue1 = _registerName1("mainQueue"); + ffi.Pointer _objc_msgSend_420( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_420( + obj, + sel, + ); + } + + late final __objc_msgSend_420Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_operations1 = _registerName1("operations"); late final _sel_operationCount1 = _registerName1("operationCount"); late final _sel_addObserverForName_object_queue_usingBlock_1 = _registerName1("addObserverForName:object:queue:usingBlock:"); - ffi.Pointer _objc_msgSend_392( + ffi.Pointer _objc_msgSend_421( ffi.Pointer obj, ffi.Pointer sel, NSNotificationName name, @@ -14114,7 +15026,7 @@ class NativeCupertinoHttp { ffi.Pointer queue, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_392( + return __objc_msgSend_421( obj, sel, name, @@ -14124,7 +15036,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_392Ptr = _lookup< + late final __objc_msgSend_421Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14133,7 +15045,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14155,46 +15067,46 @@ class NativeCupertinoHttp { late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); late final _sel_setURL_1 = _registerName1("setURL:"); late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_393( + void _objc_msgSend_422( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_393( + return __objc_msgSend_422( obj, sel, value, ); } - late final __objc_msgSend_393Ptr = _lookup< + late final __objc_msgSend_422Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.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_394( + void _objc_msgSend_423( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_394( + return __objc_msgSend_423( obj, sel, value, ); } - late final __objc_msgSend_394Ptr = _lookup< + late final __objc_msgSend_423Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAllowsCellularAccess_1 = @@ -14206,23 +15118,23 @@ class NativeCupertinoHttp { late final _sel_setAssumesHTTP3Capable_1 = _registerName1("setAssumesHTTP3Capable:"); late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_395( + void _objc_msgSend_424( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_395( + return __objc_msgSend_424( obj, sel, value, ); } - late final __objc_msgSend_395Ptr = _lookup< + late final __objc_msgSend_424Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setRequiresDNSSECValidation_1 = @@ -14230,35 +15142,35 @@ class NativeCupertinoHttp { late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); late final _sel_setAllHTTPHeaderFields_1 = _registerName1("setAllHTTPHeaderFields:"); - void _objc_msgSend_396( + void _objc_msgSend_425( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_396( + return __objc_msgSend_425( obj, sel, value, ); } - late final __objc_msgSend_396Ptr = _lookup< + late final __objc_msgSend_425Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setValue_forHTTPHeaderField_1 = _registerName1("setValue:forHTTPHeaderField:"); - void _objc_msgSend_397( + void _objc_msgSend_426( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer field, ) { - return __objc_msgSend_397( + return __objc_msgSend_426( obj, sel, value, @@ -14266,58 +15178,83 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_397Ptr = _lookup< + late final __objc_msgSend_426Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addValue_forHTTPHeaderField_1 = _registerName1("addValue:forHTTPHeaderField:"); + void _objc_msgSend_427( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer field, + ) { + return __objc_msgSend_427( + obj, + sel, + value, + field, + ); + } + + late final __objc_msgSend_427Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_398( + void _objc_msgSend_428( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_398( + return __objc_msgSend_428( obj, sel, value, ); } - late final __objc_msgSend_398Ptr = _lookup< + late final __objc_msgSend_428Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_399( + void _objc_msgSend_429( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_399( + return __objc_msgSend_429( obj, sel, value, ); } - late final __objc_msgSend_399Ptr = _lookup< + late final __objc_msgSend_429Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14328,66 +15265,66 @@ class NativeCupertinoHttp { late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); late final _sel_sharedHTTPCookieStorage1 = _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_400( + ffi.Pointer _objc_msgSend_430( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_400( + return __objc_msgSend_430( obj, sel, ); } - late final __objc_msgSend_400Ptr = _lookup< + late final __objc_msgSend_430Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_401( + ffi.Pointer _objc_msgSend_431( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_401( + return __objc_msgSend_431( obj, sel, identifier, ); } - late final __objc_msgSend_401Ptr = _lookup< + late final __objc_msgSend_431Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.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_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_402( + void _objc_msgSend_432( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookie, ) { - return __objc_msgSend_402( + return __objc_msgSend_432( obj, sel, cookie, ); } - late final __objc_msgSend_402Ptr = _lookup< + late final __objc_msgSend_432Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14397,14 +15334,14 @@ class NativeCupertinoHttp { late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); late final _sel_setCookies_forURL_mainDocumentURL_1 = _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_403( + void _objc_msgSend_433( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer URL, ffi.Pointer mainDocumentURL, ) { - return __objc_msgSend_403( + return __objc_msgSend_433( obj, sel, cookies, @@ -14413,7 +15350,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_403Ptr = _lookup< + late final __objc_msgSend_433Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14421,7 +15358,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14430,55 +15367,55 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_404( + int _objc_msgSend_434( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_404( + return __objc_msgSend_434( obj, sel, ); } - late final __objc_msgSend_404Ptr = _lookup< + late final __objc_msgSend_434Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setCookieAcceptPolicy_1 = _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_405( + void _objc_msgSend_435( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_405( + return __objc_msgSend_435( obj, sel, value, ); } - late final __objc_msgSend_405Ptr = _lookup< + late final __objc_msgSend_435Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_sortedCookiesUsingDescriptors_1 = _registerName1("sortedCookiesUsingDescriptors:"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); - void _objc_msgSend_406( + void _objc_msgSend_436( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer task, ) { - return __objc_msgSend_406( + return __objc_msgSend_436( obj, sel, cookies, @@ -14486,26 +15423,26 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_406Ptr = _lookup< + late final __objc_msgSend_436Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCookiesForTask_completionHandler_1 = _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_407( + void _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_407( + return __objc_msgSend_437( obj, sel, task, @@ -14513,14 +15450,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_407Ptr = _lookup< + late final __objc_msgSend_437Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -15155,7 +16092,6 @@ class NativeCupertinoHttp { late final _CFArrayAppendArray = _CFArrayAppendArrayPtr.asFunction< void Function(CFMutableArrayRef, CFArrayRef, CFRange)>(); - late final _class_OS_object1 = _getClass1("OS_object"); ffi.Pointer os_retain( ffi.Pointer object, ) { @@ -15999,9 +16935,8 @@ class NativeCupertinoHttp { } late final _frexpfPtr = _lookup< - ffi - .NativeFunction)>>( - 'frexpf'); + ffi.NativeFunction< + ffi.Float Function(ffi.Float, ffi.Pointer)>>('frexpf'); late final _frexpf = _frexpfPtr.asFunction)>(); @@ -16869,9 +17804,8 @@ class NativeCupertinoHttp { } late final _fmafPtr = _lookup< - ffi - .NativeFunction>( - 'fmaf'); + ffi.NativeFunction< + ffi.Float Function(ffi.Float, ffi.Float, ffi.Float)>>('fmaf'); late final _fmaf = _fmafPtr.asFunction(); @@ -16989,62 +17923,6 @@ class NativeCupertinoHttp { _lookup>('__tanpi'); late final ___tanpi = ___tanpiPtr.asFunction(); - __float2 __sincosf_stret( - double arg0, - ) { - return ___sincosf_stret( - arg0, - ); - } - - late final ___sincosf_stretPtr = - _lookup>( - '__sincosf_stret'); - late final ___sincosf_stret = - ___sincosf_stretPtr.asFunction<__float2 Function(double)>(); - - __double2 __sincos_stret( - double arg0, - ) { - return ___sincos_stret( - arg0, - ); - } - - late final ___sincos_stretPtr = - _lookup>( - '__sincos_stret'); - late final ___sincos_stret = - ___sincos_stretPtr.asFunction<__double2 Function(double)>(); - - __float2 __sincospif_stret( - double arg0, - ) { - return ___sincospif_stret( - arg0, - ); - } - - late final ___sincospif_stretPtr = - _lookup>( - '__sincospif_stret'); - late final ___sincospif_stret = - ___sincospif_stretPtr.asFunction<__float2 Function(double)>(); - - __double2 __sincospi_stret( - double arg0, - ) { - return ___sincospi_stret( - arg0, - ); - } - - late final ___sincospi_stretPtr = - _lookup>( - '__sincospi_stret'); - late final ___sincospi_stret = - ___sincospi_stretPtr.asFunction<__double2 Function(double)>(); - double j0( double arg0, ) { @@ -17628,8 +18506,7 @@ class NativeCupertinoHttp { late final _psignalPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedInt, ffi.Pointer)>>('psignal'); + ffi.Void Function(ffi.Int, ffi.Pointer)>>('psignal'); late final _psignal = _psignalPtr.asFunction)>(); @@ -18671,9 +19548,8 @@ class NativeCupertinoHttp { } late final _fseekoPtr = _lookup< - ffi - .NativeFunction, off_t, ffi.Int)>>( - 'fseeko'); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, off_t, ffi.Int)>>('fseeko'); late final _fseeko = _fseekoPtr.asFunction, int, int)>(); @@ -18903,8 +19779,6 @@ class NativeCupertinoHttp { int get sys_nerr => _sys_nerr.value; - set sys_nerr(int value) => _sys_nerr.value = value; - late final ffi.Pointer>> _sys_errlist = _lookup>>('sys_errlist'); @@ -19743,9 +20617,8 @@ class NativeCupertinoHttp { } late final _strnlenPtr = _lookup< - ffi - .NativeFunction, ffi.Size)>>( - 'strnlen'); + ffi.NativeFunction< + ffi.Size Function(ffi.Pointer, ffi.Size)>>('strnlen'); late final _strnlen = _strnlenPtr.asFunction, int)>(); @@ -19950,9 +20823,8 @@ class NativeCupertinoHttp { } late final _strmodePtr = _lookup< - ffi - .NativeFunction)>>( - 'strmode'); + ffi.NativeFunction< + ffi.Void Function(ffi.Int, ffi.Pointer)>>('strmode'); late final _strmode = _strmodePtr.asFunction)>(); @@ -20080,9 +20952,8 @@ class NativeCupertinoHttp { } late final _bzeroPtr = _lookup< - ffi - .NativeFunction, ffi.Size)>>( - 'bzero'); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Size)>>('bzero'); late final _bzero = _bzeroPtr.asFunction, int)>(); @@ -20285,9 +21156,8 @@ class NativeCupertinoHttp { } late final _ctimePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>( - 'ctime'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('ctime'); late final _ctime = _ctimePtr .asFunction Function(ffi.Pointer)>(); @@ -20577,9 +21447,8 @@ class NativeCupertinoHttp { } late final _clock_getresPtr = _lookup< - ffi - .NativeFunction)>>( - 'clock_getres'); + ffi.NativeFunction< + ffi.Int Function(ffi.Int32, ffi.Pointer)>>('clock_getres'); late final _clock_getres = _clock_getresPtr.asFunction)>(); @@ -20594,9 +21463,8 @@ class NativeCupertinoHttp { } late final _clock_gettimePtr = _lookup< - ffi - .NativeFunction)>>( - 'clock_gettime'); + ffi.NativeFunction< + ffi.Int Function(ffi.Int32, ffi.Pointer)>>('clock_gettime'); late final _clock_gettime = _clock_gettimePtr.asFunction)>(); @@ -20625,9 +21493,8 @@ class NativeCupertinoHttp { } late final _clock_settimePtr = _lookup< - ffi - .NativeFunction)>>( - 'clock_settime'); + ffi.NativeFunction< + ffi.Int Function(ffi.Int32, ffi.Pointer)>>('clock_settime'); late final _clock_settime = _clock_settimePtr.asFunction)>(); @@ -22500,160 +23367,104 @@ class NativeCupertinoHttp { CFNotificationName get kCFLocaleCurrentLocaleDidChangeNotification => _kCFLocaleCurrentLocaleDidChangeNotification.value; - set kCFLocaleCurrentLocaleDidChangeNotification(CFNotificationName value) => - _kCFLocaleCurrentLocaleDidChangeNotification.value = value; - late final ffi.Pointer _kCFLocaleIdentifier = _lookup('kCFLocaleIdentifier'); CFLocaleKey get kCFLocaleIdentifier => _kCFLocaleIdentifier.value; - set kCFLocaleIdentifier(CFLocaleKey value) => - _kCFLocaleIdentifier.value = value; - late final ffi.Pointer _kCFLocaleLanguageCode = _lookup('kCFLocaleLanguageCode'); CFLocaleKey get kCFLocaleLanguageCode => _kCFLocaleLanguageCode.value; - set kCFLocaleLanguageCode(CFLocaleKey value) => - _kCFLocaleLanguageCode.value = value; - late final ffi.Pointer _kCFLocaleCountryCode = _lookup('kCFLocaleCountryCode'); CFLocaleKey get kCFLocaleCountryCode => _kCFLocaleCountryCode.value; - set kCFLocaleCountryCode(CFLocaleKey value) => - _kCFLocaleCountryCode.value = value; - late final ffi.Pointer _kCFLocaleScriptCode = _lookup('kCFLocaleScriptCode'); CFLocaleKey get kCFLocaleScriptCode => _kCFLocaleScriptCode.value; - set kCFLocaleScriptCode(CFLocaleKey value) => - _kCFLocaleScriptCode.value = value; - late final ffi.Pointer _kCFLocaleVariantCode = _lookup('kCFLocaleVariantCode'); CFLocaleKey get kCFLocaleVariantCode => _kCFLocaleVariantCode.value; - set kCFLocaleVariantCode(CFLocaleKey value) => - _kCFLocaleVariantCode.value = value; - late final ffi.Pointer _kCFLocaleExemplarCharacterSet = _lookup('kCFLocaleExemplarCharacterSet'); CFLocaleKey get kCFLocaleExemplarCharacterSet => _kCFLocaleExemplarCharacterSet.value; - set kCFLocaleExemplarCharacterSet(CFLocaleKey value) => - _kCFLocaleExemplarCharacterSet.value = value; - late final ffi.Pointer _kCFLocaleCalendarIdentifier = _lookup('kCFLocaleCalendarIdentifier'); CFLocaleKey get kCFLocaleCalendarIdentifier => _kCFLocaleCalendarIdentifier.value; - set kCFLocaleCalendarIdentifier(CFLocaleKey value) => - _kCFLocaleCalendarIdentifier.value = value; - late final ffi.Pointer _kCFLocaleCalendar = _lookup('kCFLocaleCalendar'); CFLocaleKey get kCFLocaleCalendar => _kCFLocaleCalendar.value; - set kCFLocaleCalendar(CFLocaleKey value) => _kCFLocaleCalendar.value = value; - late final ffi.Pointer _kCFLocaleCollationIdentifier = _lookup('kCFLocaleCollationIdentifier'); CFLocaleKey get kCFLocaleCollationIdentifier => _kCFLocaleCollationIdentifier.value; - set kCFLocaleCollationIdentifier(CFLocaleKey value) => - _kCFLocaleCollationIdentifier.value = value; - late final ffi.Pointer _kCFLocaleUsesMetricSystem = _lookup('kCFLocaleUsesMetricSystem'); CFLocaleKey get kCFLocaleUsesMetricSystem => _kCFLocaleUsesMetricSystem.value; - set kCFLocaleUsesMetricSystem(CFLocaleKey value) => - _kCFLocaleUsesMetricSystem.value = value; - late final ffi.Pointer _kCFLocaleMeasurementSystem = _lookup('kCFLocaleMeasurementSystem'); CFLocaleKey get kCFLocaleMeasurementSystem => _kCFLocaleMeasurementSystem.value; - set kCFLocaleMeasurementSystem(CFLocaleKey value) => - _kCFLocaleMeasurementSystem.value = value; - late final ffi.Pointer _kCFLocaleDecimalSeparator = _lookup('kCFLocaleDecimalSeparator'); CFLocaleKey get kCFLocaleDecimalSeparator => _kCFLocaleDecimalSeparator.value; - set kCFLocaleDecimalSeparator(CFLocaleKey value) => - _kCFLocaleDecimalSeparator.value = value; - late final ffi.Pointer _kCFLocaleGroupingSeparator = _lookup('kCFLocaleGroupingSeparator'); CFLocaleKey get kCFLocaleGroupingSeparator => _kCFLocaleGroupingSeparator.value; - set kCFLocaleGroupingSeparator(CFLocaleKey value) => - _kCFLocaleGroupingSeparator.value = value; - late final ffi.Pointer _kCFLocaleCurrencySymbol = _lookup('kCFLocaleCurrencySymbol'); CFLocaleKey get kCFLocaleCurrencySymbol => _kCFLocaleCurrencySymbol.value; - set kCFLocaleCurrencySymbol(CFLocaleKey value) => - _kCFLocaleCurrencySymbol.value = value; - late final ffi.Pointer _kCFLocaleCurrencyCode = _lookup('kCFLocaleCurrencyCode'); CFLocaleKey get kCFLocaleCurrencyCode => _kCFLocaleCurrencyCode.value; - set kCFLocaleCurrencyCode(CFLocaleKey value) => - _kCFLocaleCurrencyCode.value = value; - late final ffi.Pointer _kCFLocaleCollatorIdentifier = _lookup('kCFLocaleCollatorIdentifier'); CFLocaleKey get kCFLocaleCollatorIdentifier => _kCFLocaleCollatorIdentifier.value; - set kCFLocaleCollatorIdentifier(CFLocaleKey value) => - _kCFLocaleCollatorIdentifier.value = value; - late final ffi.Pointer _kCFLocaleQuotationBeginDelimiterKey = _lookup('kCFLocaleQuotationBeginDelimiterKey'); CFLocaleKey get kCFLocaleQuotationBeginDelimiterKey => _kCFLocaleQuotationBeginDelimiterKey.value; - set kCFLocaleQuotationBeginDelimiterKey(CFLocaleKey value) => - _kCFLocaleQuotationBeginDelimiterKey.value = value; - late final ffi.Pointer _kCFLocaleQuotationEndDelimiterKey = _lookup('kCFLocaleQuotationEndDelimiterKey'); CFLocaleKey get kCFLocaleQuotationEndDelimiterKey => _kCFLocaleQuotationEndDelimiterKey.value; - set kCFLocaleQuotationEndDelimiterKey(CFLocaleKey value) => - _kCFLocaleQuotationEndDelimiterKey.value = value; - late final ffi.Pointer _kCFLocaleAlternateQuotationBeginDelimiterKey = _lookup('kCFLocaleAlternateQuotationBeginDelimiterKey'); @@ -22661,9 +23472,6 @@ class NativeCupertinoHttp { CFLocaleKey get kCFLocaleAlternateQuotationBeginDelimiterKey => _kCFLocaleAlternateQuotationBeginDelimiterKey.value; - set kCFLocaleAlternateQuotationBeginDelimiterKey(CFLocaleKey value) => - _kCFLocaleAlternateQuotationBeginDelimiterKey.value = value; - late final ffi.Pointer _kCFLocaleAlternateQuotationEndDelimiterKey = _lookup('kCFLocaleAlternateQuotationEndDelimiterKey'); @@ -22671,117 +23479,75 @@ class NativeCupertinoHttp { CFLocaleKey get kCFLocaleAlternateQuotationEndDelimiterKey => _kCFLocaleAlternateQuotationEndDelimiterKey.value; - set kCFLocaleAlternateQuotationEndDelimiterKey(CFLocaleKey value) => - _kCFLocaleAlternateQuotationEndDelimiterKey.value = value; - late final ffi.Pointer _kCFGregorianCalendar = _lookup('kCFGregorianCalendar'); CFCalendarIdentifier get kCFGregorianCalendar => _kCFGregorianCalendar.value; - set kCFGregorianCalendar(CFCalendarIdentifier value) => - _kCFGregorianCalendar.value = value; - late final ffi.Pointer _kCFBuddhistCalendar = _lookup('kCFBuddhistCalendar'); CFCalendarIdentifier get kCFBuddhistCalendar => _kCFBuddhistCalendar.value; - set kCFBuddhistCalendar(CFCalendarIdentifier value) => - _kCFBuddhistCalendar.value = value; - late final ffi.Pointer _kCFChineseCalendar = _lookup('kCFChineseCalendar'); CFCalendarIdentifier get kCFChineseCalendar => _kCFChineseCalendar.value; - set kCFChineseCalendar(CFCalendarIdentifier value) => - _kCFChineseCalendar.value = value; - late final ffi.Pointer _kCFHebrewCalendar = _lookup('kCFHebrewCalendar'); CFCalendarIdentifier get kCFHebrewCalendar => _kCFHebrewCalendar.value; - set kCFHebrewCalendar(CFCalendarIdentifier value) => - _kCFHebrewCalendar.value = value; - late final ffi.Pointer _kCFIslamicCalendar = _lookup('kCFIslamicCalendar'); CFCalendarIdentifier get kCFIslamicCalendar => _kCFIslamicCalendar.value; - set kCFIslamicCalendar(CFCalendarIdentifier value) => - _kCFIslamicCalendar.value = value; - late final ffi.Pointer _kCFIslamicCivilCalendar = _lookup('kCFIslamicCivilCalendar'); CFCalendarIdentifier get kCFIslamicCivilCalendar => _kCFIslamicCivilCalendar.value; - set kCFIslamicCivilCalendar(CFCalendarIdentifier value) => - _kCFIslamicCivilCalendar.value = value; - late final ffi.Pointer _kCFJapaneseCalendar = _lookup('kCFJapaneseCalendar'); CFCalendarIdentifier get kCFJapaneseCalendar => _kCFJapaneseCalendar.value; - set kCFJapaneseCalendar(CFCalendarIdentifier value) => - _kCFJapaneseCalendar.value = value; - late final ffi.Pointer _kCFRepublicOfChinaCalendar = _lookup('kCFRepublicOfChinaCalendar'); CFCalendarIdentifier get kCFRepublicOfChinaCalendar => _kCFRepublicOfChinaCalendar.value; - set kCFRepublicOfChinaCalendar(CFCalendarIdentifier value) => - _kCFRepublicOfChinaCalendar.value = value; - late final ffi.Pointer _kCFPersianCalendar = _lookup('kCFPersianCalendar'); CFCalendarIdentifier get kCFPersianCalendar => _kCFPersianCalendar.value; - set kCFPersianCalendar(CFCalendarIdentifier value) => - _kCFPersianCalendar.value = value; - late final ffi.Pointer _kCFIndianCalendar = _lookup('kCFIndianCalendar'); CFCalendarIdentifier get kCFIndianCalendar => _kCFIndianCalendar.value; - set kCFIndianCalendar(CFCalendarIdentifier value) => - _kCFIndianCalendar.value = value; - late final ffi.Pointer _kCFISO8601Calendar = _lookup('kCFISO8601Calendar'); CFCalendarIdentifier get kCFISO8601Calendar => _kCFISO8601Calendar.value; - set kCFISO8601Calendar(CFCalendarIdentifier value) => - _kCFISO8601Calendar.value = value; - late final ffi.Pointer _kCFIslamicTabularCalendar = _lookup('kCFIslamicTabularCalendar'); CFCalendarIdentifier get kCFIslamicTabularCalendar => _kCFIslamicTabularCalendar.value; - set kCFIslamicTabularCalendar(CFCalendarIdentifier value) => - _kCFIslamicTabularCalendar.value = value; - late final ffi.Pointer _kCFIslamicUmmAlQuraCalendar = _lookup('kCFIslamicUmmAlQuraCalendar'); CFCalendarIdentifier get kCFIslamicUmmAlQuraCalendar => _kCFIslamicUmmAlQuraCalendar.value; - set kCFIslamicUmmAlQuraCalendar(CFCalendarIdentifier value) => - _kCFIslamicUmmAlQuraCalendar.value = value; - double CFAbsoluteTimeGetCurrent() { return _CFAbsoluteTimeGetCurrent(); } @@ -22798,18 +23564,12 @@ class NativeCupertinoHttp { double get kCFAbsoluteTimeIntervalSince1970 => _kCFAbsoluteTimeIntervalSince1970.value; - set kCFAbsoluteTimeIntervalSince1970(double value) => - _kCFAbsoluteTimeIntervalSince1970.value = value; - late final ffi.Pointer _kCFAbsoluteTimeIntervalSince1904 = _lookup('kCFAbsoluteTimeIntervalSince1904'); double get kCFAbsoluteTimeIntervalSince1904 => _kCFAbsoluteTimeIntervalSince1904.value; - set kCFAbsoluteTimeIntervalSince1904(double value) => - _kCFAbsoluteTimeIntervalSince1904.value = value; - int CFDateGetTypeID() { return _CFDateGetTypeID(); } @@ -22830,9 +23590,8 @@ class NativeCupertinoHttp { } late final _CFDateCreatePtr = _lookup< - ffi - .NativeFunction>( - 'CFDateCreate'); + ffi.NativeFunction< + CFDateRef Function(CFAllocatorRef, CFAbsoluteTime)>>('CFDateCreate'); late final _CFDateCreate = _CFDateCreatePtr.asFunction(); @@ -23672,101 +24431,66 @@ class NativeCupertinoHttp { CFErrorDomain get kCFErrorDomainPOSIX => _kCFErrorDomainPOSIX.value; - set kCFErrorDomainPOSIX(CFErrorDomain value) => - _kCFErrorDomainPOSIX.value = value; - late final ffi.Pointer _kCFErrorDomainOSStatus = _lookup('kCFErrorDomainOSStatus'); CFErrorDomain get kCFErrorDomainOSStatus => _kCFErrorDomainOSStatus.value; - set kCFErrorDomainOSStatus(CFErrorDomain value) => - _kCFErrorDomainOSStatus.value = value; - late final ffi.Pointer _kCFErrorDomainMach = _lookup('kCFErrorDomainMach'); CFErrorDomain get kCFErrorDomainMach => _kCFErrorDomainMach.value; - set kCFErrorDomainMach(CFErrorDomain value) => - _kCFErrorDomainMach.value = value; - late final ffi.Pointer _kCFErrorDomainCocoa = _lookup('kCFErrorDomainCocoa'); CFErrorDomain get kCFErrorDomainCocoa => _kCFErrorDomainCocoa.value; - set kCFErrorDomainCocoa(CFErrorDomain value) => - _kCFErrorDomainCocoa.value = value; - late final ffi.Pointer _kCFErrorLocalizedDescriptionKey = _lookup('kCFErrorLocalizedDescriptionKey'); CFStringRef get kCFErrorLocalizedDescriptionKey => _kCFErrorLocalizedDescriptionKey.value; - set kCFErrorLocalizedDescriptionKey(CFStringRef value) => - _kCFErrorLocalizedDescriptionKey.value = value; - late final ffi.Pointer _kCFErrorLocalizedFailureKey = _lookup('kCFErrorLocalizedFailureKey'); CFStringRef get kCFErrorLocalizedFailureKey => _kCFErrorLocalizedFailureKey.value; - set kCFErrorLocalizedFailureKey(CFStringRef value) => - _kCFErrorLocalizedFailureKey.value = value; - late final ffi.Pointer _kCFErrorLocalizedFailureReasonKey = _lookup('kCFErrorLocalizedFailureReasonKey'); CFStringRef get kCFErrorLocalizedFailureReasonKey => _kCFErrorLocalizedFailureReasonKey.value; - set kCFErrorLocalizedFailureReasonKey(CFStringRef value) => - _kCFErrorLocalizedFailureReasonKey.value = value; - late final ffi.Pointer _kCFErrorLocalizedRecoverySuggestionKey = _lookup('kCFErrorLocalizedRecoverySuggestionKey'); CFStringRef get kCFErrorLocalizedRecoverySuggestionKey => _kCFErrorLocalizedRecoverySuggestionKey.value; - set kCFErrorLocalizedRecoverySuggestionKey(CFStringRef value) => - _kCFErrorLocalizedRecoverySuggestionKey.value = value; - late final ffi.Pointer _kCFErrorDescriptionKey = _lookup('kCFErrorDescriptionKey'); CFStringRef get kCFErrorDescriptionKey => _kCFErrorDescriptionKey.value; - set kCFErrorDescriptionKey(CFStringRef value) => - _kCFErrorDescriptionKey.value = value; - late final ffi.Pointer _kCFErrorUnderlyingErrorKey = _lookup('kCFErrorUnderlyingErrorKey'); CFStringRef get kCFErrorUnderlyingErrorKey => _kCFErrorUnderlyingErrorKey.value; - set kCFErrorUnderlyingErrorKey(CFStringRef value) => - _kCFErrorUnderlyingErrorKey.value = value; - late final ffi.Pointer _kCFErrorURLKey = _lookup('kCFErrorURLKey'); CFStringRef get kCFErrorURLKey => _kCFErrorURLKey.value; - set kCFErrorURLKey(CFStringRef value) => _kCFErrorURLKey.value = value; - late final ffi.Pointer _kCFErrorFilePathKey = _lookup('kCFErrorFilePathKey'); CFStringRef get kCFErrorFilePathKey => _kCFErrorFilePathKey.value; - set kCFErrorFilePathKey(CFStringRef value) => - _kCFErrorFilePathKey.value = value; - CFErrorRef CFErrorCreate( CFAllocatorRef allocator, CFErrorDomain domain, @@ -25304,9 +26028,8 @@ class NativeCupertinoHttp { } late final _CFStringTrimPtr = _lookup< - ffi - .NativeFunction>( - 'CFStringTrim'); + ffi.NativeFunction< + ffi.Void Function(CFMutableStringRef, CFStringRef)>>('CFStringTrim'); late final _CFStringTrim = _CFStringTrimPtr.asFunction< void Function(CFMutableStringRef, CFStringRef)>(); @@ -25438,143 +26161,95 @@ class NativeCupertinoHttp { CFStringRef get kCFStringTransformStripCombiningMarks => _kCFStringTransformStripCombiningMarks.value; - set kCFStringTransformStripCombiningMarks(CFStringRef value) => - _kCFStringTransformStripCombiningMarks.value = value; - late final ffi.Pointer _kCFStringTransformToLatin = _lookup('kCFStringTransformToLatin'); CFStringRef get kCFStringTransformToLatin => _kCFStringTransformToLatin.value; - set kCFStringTransformToLatin(CFStringRef value) => - _kCFStringTransformToLatin.value = value; - late final ffi.Pointer _kCFStringTransformFullwidthHalfwidth = _lookup('kCFStringTransformFullwidthHalfwidth'); CFStringRef get kCFStringTransformFullwidthHalfwidth => _kCFStringTransformFullwidthHalfwidth.value; - set kCFStringTransformFullwidthHalfwidth(CFStringRef value) => - _kCFStringTransformFullwidthHalfwidth.value = value; - late final ffi.Pointer _kCFStringTransformLatinKatakana = _lookup('kCFStringTransformLatinKatakana'); CFStringRef get kCFStringTransformLatinKatakana => _kCFStringTransformLatinKatakana.value; - set kCFStringTransformLatinKatakana(CFStringRef value) => - _kCFStringTransformLatinKatakana.value = value; - late final ffi.Pointer _kCFStringTransformLatinHiragana = _lookup('kCFStringTransformLatinHiragana'); CFStringRef get kCFStringTransformLatinHiragana => _kCFStringTransformLatinHiragana.value; - set kCFStringTransformLatinHiragana(CFStringRef value) => - _kCFStringTransformLatinHiragana.value = value; - late final ffi.Pointer _kCFStringTransformHiraganaKatakana = _lookup('kCFStringTransformHiraganaKatakana'); CFStringRef get kCFStringTransformHiraganaKatakana => _kCFStringTransformHiraganaKatakana.value; - set kCFStringTransformHiraganaKatakana(CFStringRef value) => - _kCFStringTransformHiraganaKatakana.value = value; - late final ffi.Pointer _kCFStringTransformMandarinLatin = _lookup('kCFStringTransformMandarinLatin'); CFStringRef get kCFStringTransformMandarinLatin => _kCFStringTransformMandarinLatin.value; - set kCFStringTransformMandarinLatin(CFStringRef value) => - _kCFStringTransformMandarinLatin.value = value; - late final ffi.Pointer _kCFStringTransformLatinHangul = _lookup('kCFStringTransformLatinHangul'); CFStringRef get kCFStringTransformLatinHangul => _kCFStringTransformLatinHangul.value; - set kCFStringTransformLatinHangul(CFStringRef value) => - _kCFStringTransformLatinHangul.value = value; - late final ffi.Pointer _kCFStringTransformLatinArabic = _lookup('kCFStringTransformLatinArabic'); CFStringRef get kCFStringTransformLatinArabic => _kCFStringTransformLatinArabic.value; - set kCFStringTransformLatinArabic(CFStringRef value) => - _kCFStringTransformLatinArabic.value = value; - late final ffi.Pointer _kCFStringTransformLatinHebrew = _lookup('kCFStringTransformLatinHebrew'); CFStringRef get kCFStringTransformLatinHebrew => _kCFStringTransformLatinHebrew.value; - set kCFStringTransformLatinHebrew(CFStringRef value) => - _kCFStringTransformLatinHebrew.value = value; - late final ffi.Pointer _kCFStringTransformLatinThai = _lookup('kCFStringTransformLatinThai'); CFStringRef get kCFStringTransformLatinThai => _kCFStringTransformLatinThai.value; - set kCFStringTransformLatinThai(CFStringRef value) => - _kCFStringTransformLatinThai.value = value; - late final ffi.Pointer _kCFStringTransformLatinCyrillic = _lookup('kCFStringTransformLatinCyrillic'); CFStringRef get kCFStringTransformLatinCyrillic => _kCFStringTransformLatinCyrillic.value; - set kCFStringTransformLatinCyrillic(CFStringRef value) => - _kCFStringTransformLatinCyrillic.value = value; - late final ffi.Pointer _kCFStringTransformLatinGreek = _lookup('kCFStringTransformLatinGreek'); CFStringRef get kCFStringTransformLatinGreek => _kCFStringTransformLatinGreek.value; - set kCFStringTransformLatinGreek(CFStringRef value) => - _kCFStringTransformLatinGreek.value = value; - late final ffi.Pointer _kCFStringTransformToXMLHex = _lookup('kCFStringTransformToXMLHex'); CFStringRef get kCFStringTransformToXMLHex => _kCFStringTransformToXMLHex.value; - set kCFStringTransformToXMLHex(CFStringRef value) => - _kCFStringTransformToXMLHex.value = value; - late final ffi.Pointer _kCFStringTransformToUnicodeName = _lookup('kCFStringTransformToUnicodeName'); CFStringRef get kCFStringTransformToUnicodeName => _kCFStringTransformToUnicodeName.value; - set kCFStringTransformToUnicodeName(CFStringRef value) => - _kCFStringTransformToUnicodeName.value = value; - late final ffi.Pointer _kCFStringTransformStripDiacritics = _lookup('kCFStringTransformStripDiacritics'); CFStringRef get kCFStringTransformStripDiacritics => _kCFStringTransformStripDiacritics.value; - set kCFStringTransformStripDiacritics(CFStringRef value) => - _kCFStringTransformStripDiacritics.value = value; - int CFStringIsEncodingAvailable( int encoding, ) { @@ -26044,10 +26719,6 @@ class NativeCupertinoHttp { CFNotificationName get kCFTimeZoneSystemTimeZoneDidChangeNotification => _kCFTimeZoneSystemTimeZoneDidChangeNotification.value; - set kCFTimeZoneSystemTimeZoneDidChangeNotification( - CFNotificationName value) => - _kCFTimeZoneSystemTimeZoneDidChangeNotification.value = value; - int CFCalendarGetTypeID() { return _CFCalendarGetTypeID(); } @@ -26696,36 +27367,24 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterIsLenient => _kCFDateFormatterIsLenient.value; - set kCFDateFormatterIsLenient(CFDateFormatterKey value) => - _kCFDateFormatterIsLenient.value = value; - late final ffi.Pointer _kCFDateFormatterTimeZone = _lookup('kCFDateFormatterTimeZone'); CFDateFormatterKey get kCFDateFormatterTimeZone => _kCFDateFormatterTimeZone.value; - set kCFDateFormatterTimeZone(CFDateFormatterKey value) => - _kCFDateFormatterTimeZone.value = value; - late final ffi.Pointer _kCFDateFormatterCalendarName = _lookup('kCFDateFormatterCalendarName'); CFDateFormatterKey get kCFDateFormatterCalendarName => _kCFDateFormatterCalendarName.value; - set kCFDateFormatterCalendarName(CFDateFormatterKey value) => - _kCFDateFormatterCalendarName.value = value; - late final ffi.Pointer _kCFDateFormatterDefaultFormat = _lookup('kCFDateFormatterDefaultFormat'); CFDateFormatterKey get kCFDateFormatterDefaultFormat => _kCFDateFormatterDefaultFormat.value; - set kCFDateFormatterDefaultFormat(CFDateFormatterKey value) => - _kCFDateFormatterDefaultFormat.value = value; - late final ffi.Pointer _kCFDateFormatterTwoDigitStartDate = _lookup('kCFDateFormatterTwoDigitStartDate'); @@ -26733,45 +27392,30 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterTwoDigitStartDate => _kCFDateFormatterTwoDigitStartDate.value; - set kCFDateFormatterTwoDigitStartDate(CFDateFormatterKey value) => - _kCFDateFormatterTwoDigitStartDate.value = value; - late final ffi.Pointer _kCFDateFormatterDefaultDate = _lookup('kCFDateFormatterDefaultDate'); CFDateFormatterKey get kCFDateFormatterDefaultDate => _kCFDateFormatterDefaultDate.value; - set kCFDateFormatterDefaultDate(CFDateFormatterKey value) => - _kCFDateFormatterDefaultDate.value = value; - late final ffi.Pointer _kCFDateFormatterCalendar = _lookup('kCFDateFormatterCalendar'); CFDateFormatterKey get kCFDateFormatterCalendar => _kCFDateFormatterCalendar.value; - set kCFDateFormatterCalendar(CFDateFormatterKey value) => - _kCFDateFormatterCalendar.value = value; - late final ffi.Pointer _kCFDateFormatterEraSymbols = _lookup('kCFDateFormatterEraSymbols'); CFDateFormatterKey get kCFDateFormatterEraSymbols => _kCFDateFormatterEraSymbols.value; - set kCFDateFormatterEraSymbols(CFDateFormatterKey value) => - _kCFDateFormatterEraSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterMonthSymbols = _lookup('kCFDateFormatterMonthSymbols'); CFDateFormatterKey get kCFDateFormatterMonthSymbols => _kCFDateFormatterMonthSymbols.value; - set kCFDateFormatterMonthSymbols(CFDateFormatterKey value) => - _kCFDateFormatterMonthSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterShortMonthSymbols = _lookup('kCFDateFormatterShortMonthSymbols'); @@ -26779,18 +27423,12 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterShortMonthSymbols => _kCFDateFormatterShortMonthSymbols.value; - set kCFDateFormatterShortMonthSymbols(CFDateFormatterKey value) => - _kCFDateFormatterShortMonthSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterWeekdaySymbols = _lookup('kCFDateFormatterWeekdaySymbols'); CFDateFormatterKey get kCFDateFormatterWeekdaySymbols => _kCFDateFormatterWeekdaySymbols.value; - set kCFDateFormatterWeekdaySymbols(CFDateFormatterKey value) => - _kCFDateFormatterWeekdaySymbols.value = value; - late final ffi.Pointer _kCFDateFormatterShortWeekdaySymbols = _lookup('kCFDateFormatterShortWeekdaySymbols'); @@ -26798,36 +27436,24 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterShortWeekdaySymbols => _kCFDateFormatterShortWeekdaySymbols.value; - set kCFDateFormatterShortWeekdaySymbols(CFDateFormatterKey value) => - _kCFDateFormatterShortWeekdaySymbols.value = value; - late final ffi.Pointer _kCFDateFormatterAMSymbol = _lookup('kCFDateFormatterAMSymbol'); CFDateFormatterKey get kCFDateFormatterAMSymbol => _kCFDateFormatterAMSymbol.value; - set kCFDateFormatterAMSymbol(CFDateFormatterKey value) => - _kCFDateFormatterAMSymbol.value = value; - late final ffi.Pointer _kCFDateFormatterPMSymbol = _lookup('kCFDateFormatterPMSymbol'); CFDateFormatterKey get kCFDateFormatterPMSymbol => _kCFDateFormatterPMSymbol.value; - set kCFDateFormatterPMSymbol(CFDateFormatterKey value) => - _kCFDateFormatterPMSymbol.value = value; - late final ffi.Pointer _kCFDateFormatterLongEraSymbols = _lookup('kCFDateFormatterLongEraSymbols'); CFDateFormatterKey get kCFDateFormatterLongEraSymbols => _kCFDateFormatterLongEraSymbols.value; - set kCFDateFormatterLongEraSymbols(CFDateFormatterKey value) => - _kCFDateFormatterLongEraSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterVeryShortMonthSymbols = _lookup('kCFDateFormatterVeryShortMonthSymbols'); @@ -26835,9 +27461,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterVeryShortMonthSymbols => _kCFDateFormatterVeryShortMonthSymbols.value; - set kCFDateFormatterVeryShortMonthSymbols(CFDateFormatterKey value) => - _kCFDateFormatterVeryShortMonthSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterStandaloneMonthSymbols = _lookup('kCFDateFormatterStandaloneMonthSymbols'); @@ -26845,9 +27468,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterStandaloneMonthSymbols => _kCFDateFormatterStandaloneMonthSymbols.value; - set kCFDateFormatterStandaloneMonthSymbols(CFDateFormatterKey value) => - _kCFDateFormatterStandaloneMonthSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterShortStandaloneMonthSymbols = _lookup( @@ -26856,9 +27476,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterShortStandaloneMonthSymbols => _kCFDateFormatterShortStandaloneMonthSymbols.value; - set kCFDateFormatterShortStandaloneMonthSymbols(CFDateFormatterKey value) => - _kCFDateFormatterShortStandaloneMonthSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterVeryShortStandaloneMonthSymbols = _lookup( @@ -26867,10 +27484,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterVeryShortStandaloneMonthSymbols => _kCFDateFormatterVeryShortStandaloneMonthSymbols.value; - set kCFDateFormatterVeryShortStandaloneMonthSymbols( - CFDateFormatterKey value) => - _kCFDateFormatterVeryShortStandaloneMonthSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterVeryShortWeekdaySymbols = _lookup('kCFDateFormatterVeryShortWeekdaySymbols'); @@ -26878,9 +27491,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterVeryShortWeekdaySymbols => _kCFDateFormatterVeryShortWeekdaySymbols.value; - set kCFDateFormatterVeryShortWeekdaySymbols(CFDateFormatterKey value) => - _kCFDateFormatterVeryShortWeekdaySymbols.value = value; - late final ffi.Pointer _kCFDateFormatterStandaloneWeekdaySymbols = _lookup('kCFDateFormatterStandaloneWeekdaySymbols'); @@ -26888,9 +27498,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterStandaloneWeekdaySymbols => _kCFDateFormatterStandaloneWeekdaySymbols.value; - set kCFDateFormatterStandaloneWeekdaySymbols(CFDateFormatterKey value) => - _kCFDateFormatterStandaloneWeekdaySymbols.value = value; - late final ffi.Pointer _kCFDateFormatterShortStandaloneWeekdaySymbols = _lookup( @@ -26899,9 +27506,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterShortStandaloneWeekdaySymbols => _kCFDateFormatterShortStandaloneWeekdaySymbols.value; - set kCFDateFormatterShortStandaloneWeekdaySymbols(CFDateFormatterKey value) => - _kCFDateFormatterShortStandaloneWeekdaySymbols.value = value; - late final ffi.Pointer _kCFDateFormatterVeryShortStandaloneWeekdaySymbols = _lookup( @@ -26910,19 +27514,12 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterVeryShortStandaloneWeekdaySymbols => _kCFDateFormatterVeryShortStandaloneWeekdaySymbols.value; - set kCFDateFormatterVeryShortStandaloneWeekdaySymbols( - CFDateFormatterKey value) => - _kCFDateFormatterVeryShortStandaloneWeekdaySymbols.value = value; - late final ffi.Pointer _kCFDateFormatterQuarterSymbols = _lookup('kCFDateFormatterQuarterSymbols'); CFDateFormatterKey get kCFDateFormatterQuarterSymbols => _kCFDateFormatterQuarterSymbols.value; - set kCFDateFormatterQuarterSymbols(CFDateFormatterKey value) => - _kCFDateFormatterQuarterSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterShortQuarterSymbols = _lookup('kCFDateFormatterShortQuarterSymbols'); @@ -26930,9 +27527,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterShortQuarterSymbols => _kCFDateFormatterShortQuarterSymbols.value; - set kCFDateFormatterShortQuarterSymbols(CFDateFormatterKey value) => - _kCFDateFormatterShortQuarterSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterStandaloneQuarterSymbols = _lookup('kCFDateFormatterStandaloneQuarterSymbols'); @@ -26940,9 +27534,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterStandaloneQuarterSymbols => _kCFDateFormatterStandaloneQuarterSymbols.value; - set kCFDateFormatterStandaloneQuarterSymbols(CFDateFormatterKey value) => - _kCFDateFormatterStandaloneQuarterSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterShortStandaloneQuarterSymbols = _lookup( @@ -26951,9 +27542,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterShortStandaloneQuarterSymbols => _kCFDateFormatterShortStandaloneQuarterSymbols.value; - set kCFDateFormatterShortStandaloneQuarterSymbols(CFDateFormatterKey value) => - _kCFDateFormatterShortStandaloneQuarterSymbols.value = value; - late final ffi.Pointer _kCFDateFormatterGregorianStartDate = _lookup('kCFDateFormatterGregorianStartDate'); @@ -26961,9 +27549,6 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterGregorianStartDate => _kCFDateFormatterGregorianStartDate.value; - set kCFDateFormatterGregorianStartDate(CFDateFormatterKey value) => - _kCFDateFormatterGregorianStartDate.value = value; - late final ffi.Pointer _kCFDateFormatterDoesRelativeDateFormattingKey = _lookup( @@ -26972,23 +27557,16 @@ class NativeCupertinoHttp { CFDateFormatterKey get kCFDateFormatterDoesRelativeDateFormattingKey => _kCFDateFormatterDoesRelativeDateFormattingKey.value; - set kCFDateFormatterDoesRelativeDateFormattingKey(CFDateFormatterKey value) => - _kCFDateFormatterDoesRelativeDateFormattingKey.value = value; - late final ffi.Pointer _kCFBooleanTrue = _lookup('kCFBooleanTrue'); CFBooleanRef get kCFBooleanTrue => _kCFBooleanTrue.value; - set kCFBooleanTrue(CFBooleanRef value) => _kCFBooleanTrue.value = value; - late final ffi.Pointer _kCFBooleanFalse = _lookup('kCFBooleanFalse'); CFBooleanRef get kCFBooleanFalse => _kCFBooleanFalse.value; - set kCFBooleanFalse(CFBooleanRef value) => _kCFBooleanFalse.value = value; - int CFBooleanGetTypeID() { return _CFBooleanGetTypeID(); } @@ -27017,24 +27595,16 @@ class NativeCupertinoHttp { CFNumberRef get kCFNumberPositiveInfinity => _kCFNumberPositiveInfinity.value; - set kCFNumberPositiveInfinity(CFNumberRef value) => - _kCFNumberPositiveInfinity.value = value; - late final ffi.Pointer _kCFNumberNegativeInfinity = _lookup('kCFNumberNegativeInfinity'); CFNumberRef get kCFNumberNegativeInfinity => _kCFNumberNegativeInfinity.value; - set kCFNumberNegativeInfinity(CFNumberRef value) => - _kCFNumberNegativeInfinity.value = value; - late final ffi.Pointer _kCFNumberNaN = _lookup('kCFNumberNaN'); CFNumberRef get kCFNumberNaN => _kCFNumberNaN.value; - set kCFNumberNaN(CFNumberRef value) => _kCFNumberNaN.value = value; - int CFNumberGetTypeID() { return _CFNumberGetTypeID(); } @@ -27379,9 +27949,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterCurrencyCode => _kCFNumberFormatterCurrencyCode.value; - set kCFNumberFormatterCurrencyCode(CFNumberFormatterKey value) => - _kCFNumberFormatterCurrencyCode.value = value; - late final ffi.Pointer _kCFNumberFormatterDecimalSeparator = _lookup('kCFNumberFormatterDecimalSeparator'); @@ -27389,9 +27956,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterDecimalSeparator => _kCFNumberFormatterDecimalSeparator.value; - set kCFNumberFormatterDecimalSeparator(CFNumberFormatterKey value) => - _kCFNumberFormatterDecimalSeparator.value = value; - late final ffi.Pointer _kCFNumberFormatterCurrencyDecimalSeparator = _lookup( @@ -27400,9 +27964,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterCurrencyDecimalSeparator => _kCFNumberFormatterCurrencyDecimalSeparator.value; - set kCFNumberFormatterCurrencyDecimalSeparator(CFNumberFormatterKey value) => - _kCFNumberFormatterCurrencyDecimalSeparator.value = value; - late final ffi.Pointer _kCFNumberFormatterAlwaysShowDecimalSeparator = _lookup( @@ -27411,10 +27972,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterAlwaysShowDecimalSeparator => _kCFNumberFormatterAlwaysShowDecimalSeparator.value; - set kCFNumberFormatterAlwaysShowDecimalSeparator( - CFNumberFormatterKey value) => - _kCFNumberFormatterAlwaysShowDecimalSeparator.value = value; - late final ffi.Pointer _kCFNumberFormatterGroupingSeparator = _lookup('kCFNumberFormatterGroupingSeparator'); @@ -27422,9 +27979,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterGroupingSeparator => _kCFNumberFormatterGroupingSeparator.value; - set kCFNumberFormatterGroupingSeparator(CFNumberFormatterKey value) => - _kCFNumberFormatterGroupingSeparator.value = value; - late final ffi.Pointer _kCFNumberFormatterUseGroupingSeparator = _lookup('kCFNumberFormatterUseGroupingSeparator'); @@ -27432,9 +27986,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterUseGroupingSeparator => _kCFNumberFormatterUseGroupingSeparator.value; - set kCFNumberFormatterUseGroupingSeparator(CFNumberFormatterKey value) => - _kCFNumberFormatterUseGroupingSeparator.value = value; - late final ffi.Pointer _kCFNumberFormatterPercentSymbol = _lookup('kCFNumberFormatterPercentSymbol'); @@ -27442,27 +27993,18 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterPercentSymbol => _kCFNumberFormatterPercentSymbol.value; - set kCFNumberFormatterPercentSymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterPercentSymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterZeroSymbol = _lookup('kCFNumberFormatterZeroSymbol'); CFNumberFormatterKey get kCFNumberFormatterZeroSymbol => _kCFNumberFormatterZeroSymbol.value; - set kCFNumberFormatterZeroSymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterZeroSymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterNaNSymbol = _lookup('kCFNumberFormatterNaNSymbol'); CFNumberFormatterKey get kCFNumberFormatterNaNSymbol => _kCFNumberFormatterNaNSymbol.value; - set kCFNumberFormatterNaNSymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterNaNSymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterInfinitySymbol = _lookup('kCFNumberFormatterInfinitySymbol'); @@ -27470,27 +28012,18 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterInfinitySymbol => _kCFNumberFormatterInfinitySymbol.value; - set kCFNumberFormatterInfinitySymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterInfinitySymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterMinusSign = _lookup('kCFNumberFormatterMinusSign'); CFNumberFormatterKey get kCFNumberFormatterMinusSign => _kCFNumberFormatterMinusSign.value; - set kCFNumberFormatterMinusSign(CFNumberFormatterKey value) => - _kCFNumberFormatterMinusSign.value = value; - late final ffi.Pointer _kCFNumberFormatterPlusSign = _lookup('kCFNumberFormatterPlusSign'); CFNumberFormatterKey get kCFNumberFormatterPlusSign => _kCFNumberFormatterPlusSign.value; - set kCFNumberFormatterPlusSign(CFNumberFormatterKey value) => - _kCFNumberFormatterPlusSign.value = value; - late final ffi.Pointer _kCFNumberFormatterCurrencySymbol = _lookup('kCFNumberFormatterCurrencySymbol'); @@ -27498,9 +28031,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterCurrencySymbol => _kCFNumberFormatterCurrencySymbol.value; - set kCFNumberFormatterCurrencySymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterCurrencySymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterExponentSymbol = _lookup('kCFNumberFormatterExponentSymbol'); @@ -27508,9 +28038,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterExponentSymbol => _kCFNumberFormatterExponentSymbol.value; - set kCFNumberFormatterExponentSymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterExponentSymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterMinIntegerDigits = _lookup('kCFNumberFormatterMinIntegerDigits'); @@ -27518,9 +28045,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterMinIntegerDigits => _kCFNumberFormatterMinIntegerDigits.value; - set kCFNumberFormatterMinIntegerDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterMinIntegerDigits.value = value; - late final ffi.Pointer _kCFNumberFormatterMaxIntegerDigits = _lookup('kCFNumberFormatterMaxIntegerDigits'); @@ -27528,9 +28052,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterMaxIntegerDigits => _kCFNumberFormatterMaxIntegerDigits.value; - set kCFNumberFormatterMaxIntegerDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterMaxIntegerDigits.value = value; - late final ffi.Pointer _kCFNumberFormatterMinFractionDigits = _lookup('kCFNumberFormatterMinFractionDigits'); @@ -27538,9 +28059,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterMinFractionDigits => _kCFNumberFormatterMinFractionDigits.value; - set kCFNumberFormatterMinFractionDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterMinFractionDigits.value = value; - late final ffi.Pointer _kCFNumberFormatterMaxFractionDigits = _lookup('kCFNumberFormatterMaxFractionDigits'); @@ -27548,18 +28066,12 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterMaxFractionDigits => _kCFNumberFormatterMaxFractionDigits.value; - set kCFNumberFormatterMaxFractionDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterMaxFractionDigits.value = value; - late final ffi.Pointer _kCFNumberFormatterGroupingSize = _lookup('kCFNumberFormatterGroupingSize'); CFNumberFormatterKey get kCFNumberFormatterGroupingSize => _kCFNumberFormatterGroupingSize.value; - set kCFNumberFormatterGroupingSize(CFNumberFormatterKey value) => - _kCFNumberFormatterGroupingSize.value = value; - late final ffi.Pointer _kCFNumberFormatterSecondaryGroupingSize = _lookup('kCFNumberFormatterSecondaryGroupingSize'); @@ -27567,18 +28079,12 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterSecondaryGroupingSize => _kCFNumberFormatterSecondaryGroupingSize.value; - set kCFNumberFormatterSecondaryGroupingSize(CFNumberFormatterKey value) => - _kCFNumberFormatterSecondaryGroupingSize.value = value; - late final ffi.Pointer _kCFNumberFormatterRoundingMode = _lookup('kCFNumberFormatterRoundingMode'); CFNumberFormatterKey get kCFNumberFormatterRoundingMode => _kCFNumberFormatterRoundingMode.value; - set kCFNumberFormatterRoundingMode(CFNumberFormatterKey value) => - _kCFNumberFormatterRoundingMode.value = value; - late final ffi.Pointer _kCFNumberFormatterRoundingIncrement = _lookup('kCFNumberFormatterRoundingIncrement'); @@ -27586,18 +28092,12 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterRoundingIncrement => _kCFNumberFormatterRoundingIncrement.value; - set kCFNumberFormatterRoundingIncrement(CFNumberFormatterKey value) => - _kCFNumberFormatterRoundingIncrement.value = value; - late final ffi.Pointer _kCFNumberFormatterFormatWidth = _lookup('kCFNumberFormatterFormatWidth'); CFNumberFormatterKey get kCFNumberFormatterFormatWidth => _kCFNumberFormatterFormatWidth.value; - set kCFNumberFormatterFormatWidth(CFNumberFormatterKey value) => - _kCFNumberFormatterFormatWidth.value = value; - late final ffi.Pointer _kCFNumberFormatterPaddingPosition = _lookup('kCFNumberFormatterPaddingPosition'); @@ -27605,9 +28105,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterPaddingPosition => _kCFNumberFormatterPaddingPosition.value; - set kCFNumberFormatterPaddingPosition(CFNumberFormatterKey value) => - _kCFNumberFormatterPaddingPosition.value = value; - late final ffi.Pointer _kCFNumberFormatterPaddingCharacter = _lookup('kCFNumberFormatterPaddingCharacter'); @@ -27615,9 +28112,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterPaddingCharacter => _kCFNumberFormatterPaddingCharacter.value; - set kCFNumberFormatterPaddingCharacter(CFNumberFormatterKey value) => - _kCFNumberFormatterPaddingCharacter.value = value; - late final ffi.Pointer _kCFNumberFormatterDefaultFormat = _lookup('kCFNumberFormatterDefaultFormat'); @@ -27625,18 +28119,12 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterDefaultFormat => _kCFNumberFormatterDefaultFormat.value; - set kCFNumberFormatterDefaultFormat(CFNumberFormatterKey value) => - _kCFNumberFormatterDefaultFormat.value = value; - late final ffi.Pointer _kCFNumberFormatterMultiplier = _lookup('kCFNumberFormatterMultiplier'); CFNumberFormatterKey get kCFNumberFormatterMultiplier => _kCFNumberFormatterMultiplier.value; - set kCFNumberFormatterMultiplier(CFNumberFormatterKey value) => - _kCFNumberFormatterMultiplier.value = value; - late final ffi.Pointer _kCFNumberFormatterPositivePrefix = _lookup('kCFNumberFormatterPositivePrefix'); @@ -27644,9 +28132,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterPositivePrefix => _kCFNumberFormatterPositivePrefix.value; - set kCFNumberFormatterPositivePrefix(CFNumberFormatterKey value) => - _kCFNumberFormatterPositivePrefix.value = value; - late final ffi.Pointer _kCFNumberFormatterPositiveSuffix = _lookup('kCFNumberFormatterPositiveSuffix'); @@ -27654,9 +28139,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterPositiveSuffix => _kCFNumberFormatterPositiveSuffix.value; - set kCFNumberFormatterPositiveSuffix(CFNumberFormatterKey value) => - _kCFNumberFormatterPositiveSuffix.value = value; - late final ffi.Pointer _kCFNumberFormatterNegativePrefix = _lookup('kCFNumberFormatterNegativePrefix'); @@ -27664,9 +28146,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterNegativePrefix => _kCFNumberFormatterNegativePrefix.value; - set kCFNumberFormatterNegativePrefix(CFNumberFormatterKey value) => - _kCFNumberFormatterNegativePrefix.value = value; - late final ffi.Pointer _kCFNumberFormatterNegativeSuffix = _lookup('kCFNumberFormatterNegativeSuffix'); @@ -27674,9 +28153,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterNegativeSuffix => _kCFNumberFormatterNegativeSuffix.value; - set kCFNumberFormatterNegativeSuffix(CFNumberFormatterKey value) => - _kCFNumberFormatterNegativeSuffix.value = value; - late final ffi.Pointer _kCFNumberFormatterPerMillSymbol = _lookup('kCFNumberFormatterPerMillSymbol'); @@ -27684,9 +28160,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterPerMillSymbol => _kCFNumberFormatterPerMillSymbol.value; - set kCFNumberFormatterPerMillSymbol(CFNumberFormatterKey value) => - _kCFNumberFormatterPerMillSymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterInternationalCurrencySymbol = _lookup( @@ -27695,10 +28168,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterInternationalCurrencySymbol => _kCFNumberFormatterInternationalCurrencySymbol.value; - set kCFNumberFormatterInternationalCurrencySymbol( - CFNumberFormatterKey value) => - _kCFNumberFormatterInternationalCurrencySymbol.value = value; - late final ffi.Pointer _kCFNumberFormatterCurrencyGroupingSeparator = _lookup( @@ -27707,18 +28176,12 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterCurrencyGroupingSeparator => _kCFNumberFormatterCurrencyGroupingSeparator.value; - set kCFNumberFormatterCurrencyGroupingSeparator(CFNumberFormatterKey value) => - _kCFNumberFormatterCurrencyGroupingSeparator.value = value; - late final ffi.Pointer _kCFNumberFormatterIsLenient = _lookup('kCFNumberFormatterIsLenient'); CFNumberFormatterKey get kCFNumberFormatterIsLenient => _kCFNumberFormatterIsLenient.value; - set kCFNumberFormatterIsLenient(CFNumberFormatterKey value) => - _kCFNumberFormatterIsLenient.value = value; - late final ffi.Pointer _kCFNumberFormatterUseSignificantDigits = _lookup('kCFNumberFormatterUseSignificantDigits'); @@ -27726,9 +28189,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterUseSignificantDigits => _kCFNumberFormatterUseSignificantDigits.value; - set kCFNumberFormatterUseSignificantDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterUseSignificantDigits.value = value; - late final ffi.Pointer _kCFNumberFormatterMinSignificantDigits = _lookup('kCFNumberFormatterMinSignificantDigits'); @@ -27736,9 +28196,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterMinSignificantDigits => _kCFNumberFormatterMinSignificantDigits.value; - set kCFNumberFormatterMinSignificantDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterMinSignificantDigits.value = value; - late final ffi.Pointer _kCFNumberFormatterMaxSignificantDigits = _lookup('kCFNumberFormatterMaxSignificantDigits'); @@ -27746,9 +28203,6 @@ class NativeCupertinoHttp { CFNumberFormatterKey get kCFNumberFormatterMaxSignificantDigits => _kCFNumberFormatterMaxSignificantDigits.value; - set kCFNumberFormatterMaxSignificantDigits(CFNumberFormatterKey value) => - _kCFNumberFormatterMaxSignificantDigits.value = value; - int CFNumberFormatterGetDecimalInfoForCurrencyCode( CFStringRef currencyCode, ffi.Pointer defaultFractionDigits, @@ -28989,9 +29443,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLKeysOfUnsetValuesKey => _kCFURLKeysOfUnsetValuesKey.value; - set kCFURLKeysOfUnsetValuesKey(CFStringRef value) => - _kCFURLKeysOfUnsetValuesKey.value = value; - void CFURLClearResourcePropertyCacheForKey( CFURLRef url, CFStringRef key, @@ -29065,560 +29516,366 @@ class NativeCupertinoHttp { CFStringRef get kCFURLNameKey => _kCFURLNameKey.value; - set kCFURLNameKey(CFStringRef value) => _kCFURLNameKey.value = value; - late final ffi.Pointer _kCFURLLocalizedNameKey = _lookup('kCFURLLocalizedNameKey'); CFStringRef get kCFURLLocalizedNameKey => _kCFURLLocalizedNameKey.value; - set kCFURLLocalizedNameKey(CFStringRef value) => - _kCFURLLocalizedNameKey.value = value; - late final ffi.Pointer _kCFURLIsRegularFileKey = _lookup('kCFURLIsRegularFileKey'); CFStringRef get kCFURLIsRegularFileKey => _kCFURLIsRegularFileKey.value; - set kCFURLIsRegularFileKey(CFStringRef value) => - _kCFURLIsRegularFileKey.value = value; - late final ffi.Pointer _kCFURLIsDirectoryKey = _lookup('kCFURLIsDirectoryKey'); CFStringRef get kCFURLIsDirectoryKey => _kCFURLIsDirectoryKey.value; - set kCFURLIsDirectoryKey(CFStringRef value) => - _kCFURLIsDirectoryKey.value = value; - late final ffi.Pointer _kCFURLIsSymbolicLinkKey = _lookup('kCFURLIsSymbolicLinkKey'); CFStringRef get kCFURLIsSymbolicLinkKey => _kCFURLIsSymbolicLinkKey.value; - set kCFURLIsSymbolicLinkKey(CFStringRef value) => - _kCFURLIsSymbolicLinkKey.value = value; - late final ffi.Pointer _kCFURLIsVolumeKey = _lookup('kCFURLIsVolumeKey'); CFStringRef get kCFURLIsVolumeKey => _kCFURLIsVolumeKey.value; - set kCFURLIsVolumeKey(CFStringRef value) => _kCFURLIsVolumeKey.value = value; - late final ffi.Pointer _kCFURLIsPackageKey = _lookup('kCFURLIsPackageKey'); CFStringRef get kCFURLIsPackageKey => _kCFURLIsPackageKey.value; - set kCFURLIsPackageKey(CFStringRef value) => - _kCFURLIsPackageKey.value = value; - late final ffi.Pointer _kCFURLIsApplicationKey = _lookup('kCFURLIsApplicationKey'); CFStringRef get kCFURLIsApplicationKey => _kCFURLIsApplicationKey.value; - set kCFURLIsApplicationKey(CFStringRef value) => - _kCFURLIsApplicationKey.value = value; - late final ffi.Pointer _kCFURLApplicationIsScriptableKey = _lookup('kCFURLApplicationIsScriptableKey'); CFStringRef get kCFURLApplicationIsScriptableKey => _kCFURLApplicationIsScriptableKey.value; - set kCFURLApplicationIsScriptableKey(CFStringRef value) => - _kCFURLApplicationIsScriptableKey.value = value; - late final ffi.Pointer _kCFURLIsSystemImmutableKey = _lookup('kCFURLIsSystemImmutableKey'); CFStringRef get kCFURLIsSystemImmutableKey => _kCFURLIsSystemImmutableKey.value; - set kCFURLIsSystemImmutableKey(CFStringRef value) => - _kCFURLIsSystemImmutableKey.value = value; - late final ffi.Pointer _kCFURLIsUserImmutableKey = _lookup('kCFURLIsUserImmutableKey'); CFStringRef get kCFURLIsUserImmutableKey => _kCFURLIsUserImmutableKey.value; - set kCFURLIsUserImmutableKey(CFStringRef value) => - _kCFURLIsUserImmutableKey.value = value; - late final ffi.Pointer _kCFURLIsHiddenKey = _lookup('kCFURLIsHiddenKey'); CFStringRef get kCFURLIsHiddenKey => _kCFURLIsHiddenKey.value; - set kCFURLIsHiddenKey(CFStringRef value) => _kCFURLIsHiddenKey.value = value; - late final ffi.Pointer _kCFURLHasHiddenExtensionKey = _lookup('kCFURLHasHiddenExtensionKey'); CFStringRef get kCFURLHasHiddenExtensionKey => _kCFURLHasHiddenExtensionKey.value; - set kCFURLHasHiddenExtensionKey(CFStringRef value) => - _kCFURLHasHiddenExtensionKey.value = value; - late final ffi.Pointer _kCFURLCreationDateKey = _lookup('kCFURLCreationDateKey'); CFStringRef get kCFURLCreationDateKey => _kCFURLCreationDateKey.value; - set kCFURLCreationDateKey(CFStringRef value) => - _kCFURLCreationDateKey.value = value; - late final ffi.Pointer _kCFURLContentAccessDateKey = _lookup('kCFURLContentAccessDateKey'); CFStringRef get kCFURLContentAccessDateKey => _kCFURLContentAccessDateKey.value; - set kCFURLContentAccessDateKey(CFStringRef value) => - _kCFURLContentAccessDateKey.value = value; - late final ffi.Pointer _kCFURLContentModificationDateKey = _lookup('kCFURLContentModificationDateKey'); CFStringRef get kCFURLContentModificationDateKey => _kCFURLContentModificationDateKey.value; - set kCFURLContentModificationDateKey(CFStringRef value) => - _kCFURLContentModificationDateKey.value = value; - late final ffi.Pointer _kCFURLAttributeModificationDateKey = _lookup('kCFURLAttributeModificationDateKey'); CFStringRef get kCFURLAttributeModificationDateKey => _kCFURLAttributeModificationDateKey.value; - set kCFURLAttributeModificationDateKey(CFStringRef value) => - _kCFURLAttributeModificationDateKey.value = value; - late final ffi.Pointer _kCFURLFileIdentifierKey = _lookup('kCFURLFileIdentifierKey'); CFStringRef get kCFURLFileIdentifierKey => _kCFURLFileIdentifierKey.value; - set kCFURLFileIdentifierKey(CFStringRef value) => - _kCFURLFileIdentifierKey.value = value; - late final ffi.Pointer _kCFURLFileContentIdentifierKey = _lookup('kCFURLFileContentIdentifierKey'); CFStringRef get kCFURLFileContentIdentifierKey => _kCFURLFileContentIdentifierKey.value; - set kCFURLFileContentIdentifierKey(CFStringRef value) => - _kCFURLFileContentIdentifierKey.value = value; - late final ffi.Pointer _kCFURLMayShareFileContentKey = _lookup('kCFURLMayShareFileContentKey'); CFStringRef get kCFURLMayShareFileContentKey => _kCFURLMayShareFileContentKey.value; - set kCFURLMayShareFileContentKey(CFStringRef value) => - _kCFURLMayShareFileContentKey.value = value; - late final ffi.Pointer _kCFURLMayHaveExtendedAttributesKey = _lookup('kCFURLMayHaveExtendedAttributesKey'); CFStringRef get kCFURLMayHaveExtendedAttributesKey => _kCFURLMayHaveExtendedAttributesKey.value; - set kCFURLMayHaveExtendedAttributesKey(CFStringRef value) => - _kCFURLMayHaveExtendedAttributesKey.value = value; - late final ffi.Pointer _kCFURLIsPurgeableKey = _lookup('kCFURLIsPurgeableKey'); CFStringRef get kCFURLIsPurgeableKey => _kCFURLIsPurgeableKey.value; - set kCFURLIsPurgeableKey(CFStringRef value) => - _kCFURLIsPurgeableKey.value = value; - late final ffi.Pointer _kCFURLIsSparseKey = _lookup('kCFURLIsSparseKey'); CFStringRef get kCFURLIsSparseKey => _kCFURLIsSparseKey.value; - set kCFURLIsSparseKey(CFStringRef value) => _kCFURLIsSparseKey.value = value; - late final ffi.Pointer _kCFURLLinkCountKey = _lookup('kCFURLLinkCountKey'); CFStringRef get kCFURLLinkCountKey => _kCFURLLinkCountKey.value; - set kCFURLLinkCountKey(CFStringRef value) => - _kCFURLLinkCountKey.value = value; - late final ffi.Pointer _kCFURLParentDirectoryURLKey = _lookup('kCFURLParentDirectoryURLKey'); CFStringRef get kCFURLParentDirectoryURLKey => _kCFURLParentDirectoryURLKey.value; - set kCFURLParentDirectoryURLKey(CFStringRef value) => - _kCFURLParentDirectoryURLKey.value = value; - late final ffi.Pointer _kCFURLVolumeURLKey = _lookup('kCFURLVolumeURLKey'); CFStringRef get kCFURLVolumeURLKey => _kCFURLVolumeURLKey.value; - set kCFURLVolumeURLKey(CFStringRef value) => - _kCFURLVolumeURLKey.value = value; - late final ffi.Pointer _kCFURLTypeIdentifierKey = _lookup('kCFURLTypeIdentifierKey'); CFStringRef get kCFURLTypeIdentifierKey => _kCFURLTypeIdentifierKey.value; - set kCFURLTypeIdentifierKey(CFStringRef value) => - _kCFURLTypeIdentifierKey.value = value; - late final ffi.Pointer _kCFURLLocalizedTypeDescriptionKey = _lookup('kCFURLLocalizedTypeDescriptionKey'); CFStringRef get kCFURLLocalizedTypeDescriptionKey => _kCFURLLocalizedTypeDescriptionKey.value; - set kCFURLLocalizedTypeDescriptionKey(CFStringRef value) => - _kCFURLLocalizedTypeDescriptionKey.value = value; - late final ffi.Pointer _kCFURLLabelNumberKey = _lookup('kCFURLLabelNumberKey'); CFStringRef get kCFURLLabelNumberKey => _kCFURLLabelNumberKey.value; - set kCFURLLabelNumberKey(CFStringRef value) => - _kCFURLLabelNumberKey.value = value; - late final ffi.Pointer _kCFURLLabelColorKey = _lookup('kCFURLLabelColorKey'); CFStringRef get kCFURLLabelColorKey => _kCFURLLabelColorKey.value; - set kCFURLLabelColorKey(CFStringRef value) => - _kCFURLLabelColorKey.value = value; - late final ffi.Pointer _kCFURLLocalizedLabelKey = _lookup('kCFURLLocalizedLabelKey'); CFStringRef get kCFURLLocalizedLabelKey => _kCFURLLocalizedLabelKey.value; - set kCFURLLocalizedLabelKey(CFStringRef value) => - _kCFURLLocalizedLabelKey.value = value; - late final ffi.Pointer _kCFURLEffectiveIconKey = _lookup('kCFURLEffectiveIconKey'); CFStringRef get kCFURLEffectiveIconKey => _kCFURLEffectiveIconKey.value; - set kCFURLEffectiveIconKey(CFStringRef value) => - _kCFURLEffectiveIconKey.value = value; - late final ffi.Pointer _kCFURLCustomIconKey = _lookup('kCFURLCustomIconKey'); CFStringRef get kCFURLCustomIconKey => _kCFURLCustomIconKey.value; - set kCFURLCustomIconKey(CFStringRef value) => - _kCFURLCustomIconKey.value = value; - late final ffi.Pointer _kCFURLFileResourceIdentifierKey = _lookup('kCFURLFileResourceIdentifierKey'); CFStringRef get kCFURLFileResourceIdentifierKey => _kCFURLFileResourceIdentifierKey.value; - set kCFURLFileResourceIdentifierKey(CFStringRef value) => - _kCFURLFileResourceIdentifierKey.value = value; - late final ffi.Pointer _kCFURLVolumeIdentifierKey = _lookup('kCFURLVolumeIdentifierKey'); CFStringRef get kCFURLVolumeIdentifierKey => _kCFURLVolumeIdentifierKey.value; - set kCFURLVolumeIdentifierKey(CFStringRef value) => - _kCFURLVolumeIdentifierKey.value = value; - late final ffi.Pointer _kCFURLPreferredIOBlockSizeKey = _lookup('kCFURLPreferredIOBlockSizeKey'); CFStringRef get kCFURLPreferredIOBlockSizeKey => _kCFURLPreferredIOBlockSizeKey.value; - set kCFURLPreferredIOBlockSizeKey(CFStringRef value) => - _kCFURLPreferredIOBlockSizeKey.value = value; - late final ffi.Pointer _kCFURLIsReadableKey = _lookup('kCFURLIsReadableKey'); CFStringRef get kCFURLIsReadableKey => _kCFURLIsReadableKey.value; - set kCFURLIsReadableKey(CFStringRef value) => - _kCFURLIsReadableKey.value = value; - late final ffi.Pointer _kCFURLIsWritableKey = _lookup('kCFURLIsWritableKey'); CFStringRef get kCFURLIsWritableKey => _kCFURLIsWritableKey.value; - set kCFURLIsWritableKey(CFStringRef value) => - _kCFURLIsWritableKey.value = value; - late final ffi.Pointer _kCFURLIsExecutableKey = _lookup('kCFURLIsExecutableKey'); CFStringRef get kCFURLIsExecutableKey => _kCFURLIsExecutableKey.value; - set kCFURLIsExecutableKey(CFStringRef value) => - _kCFURLIsExecutableKey.value = value; - late final ffi.Pointer _kCFURLFileSecurityKey = _lookup('kCFURLFileSecurityKey'); CFStringRef get kCFURLFileSecurityKey => _kCFURLFileSecurityKey.value; - set kCFURLFileSecurityKey(CFStringRef value) => - _kCFURLFileSecurityKey.value = value; - late final ffi.Pointer _kCFURLIsExcludedFromBackupKey = _lookup('kCFURLIsExcludedFromBackupKey'); CFStringRef get kCFURLIsExcludedFromBackupKey => _kCFURLIsExcludedFromBackupKey.value; - set kCFURLIsExcludedFromBackupKey(CFStringRef value) => - _kCFURLIsExcludedFromBackupKey.value = value; - late final ffi.Pointer _kCFURLTagNamesKey = _lookup('kCFURLTagNamesKey'); CFStringRef get kCFURLTagNamesKey => _kCFURLTagNamesKey.value; - set kCFURLTagNamesKey(CFStringRef value) => _kCFURLTagNamesKey.value = value; - late final ffi.Pointer _kCFURLPathKey = _lookup('kCFURLPathKey'); CFStringRef get kCFURLPathKey => _kCFURLPathKey.value; - set kCFURLPathKey(CFStringRef value) => _kCFURLPathKey.value = value; - late final ffi.Pointer _kCFURLCanonicalPathKey = _lookup('kCFURLCanonicalPathKey'); CFStringRef get kCFURLCanonicalPathKey => _kCFURLCanonicalPathKey.value; - set kCFURLCanonicalPathKey(CFStringRef value) => - _kCFURLCanonicalPathKey.value = value; - late final ffi.Pointer _kCFURLIsMountTriggerKey = _lookup('kCFURLIsMountTriggerKey'); CFStringRef get kCFURLIsMountTriggerKey => _kCFURLIsMountTriggerKey.value; - set kCFURLIsMountTriggerKey(CFStringRef value) => - _kCFURLIsMountTriggerKey.value = value; - late final ffi.Pointer _kCFURLGenerationIdentifierKey = _lookup('kCFURLGenerationIdentifierKey'); CFStringRef get kCFURLGenerationIdentifierKey => _kCFURLGenerationIdentifierKey.value; - set kCFURLGenerationIdentifierKey(CFStringRef value) => - _kCFURLGenerationIdentifierKey.value = value; - late final ffi.Pointer _kCFURLDocumentIdentifierKey = _lookup('kCFURLDocumentIdentifierKey'); CFStringRef get kCFURLDocumentIdentifierKey => _kCFURLDocumentIdentifierKey.value; - set kCFURLDocumentIdentifierKey(CFStringRef value) => - _kCFURLDocumentIdentifierKey.value = value; - late final ffi.Pointer _kCFURLAddedToDirectoryDateKey = _lookup('kCFURLAddedToDirectoryDateKey'); CFStringRef get kCFURLAddedToDirectoryDateKey => _kCFURLAddedToDirectoryDateKey.value; - set kCFURLAddedToDirectoryDateKey(CFStringRef value) => - _kCFURLAddedToDirectoryDateKey.value = value; - late final ffi.Pointer _kCFURLQuarantinePropertiesKey = _lookup('kCFURLQuarantinePropertiesKey'); CFStringRef get kCFURLQuarantinePropertiesKey => _kCFURLQuarantinePropertiesKey.value; - set kCFURLQuarantinePropertiesKey(CFStringRef value) => - _kCFURLQuarantinePropertiesKey.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeKey = _lookup('kCFURLFileResourceTypeKey'); CFStringRef get kCFURLFileResourceTypeKey => _kCFURLFileResourceTypeKey.value; - set kCFURLFileResourceTypeKey(CFStringRef value) => - _kCFURLFileResourceTypeKey.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeNamedPipe = _lookup('kCFURLFileResourceTypeNamedPipe'); CFStringRef get kCFURLFileResourceTypeNamedPipe => _kCFURLFileResourceTypeNamedPipe.value; - set kCFURLFileResourceTypeNamedPipe(CFStringRef value) => - _kCFURLFileResourceTypeNamedPipe.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeCharacterSpecial = _lookup('kCFURLFileResourceTypeCharacterSpecial'); CFStringRef get kCFURLFileResourceTypeCharacterSpecial => _kCFURLFileResourceTypeCharacterSpecial.value; - set kCFURLFileResourceTypeCharacterSpecial(CFStringRef value) => - _kCFURLFileResourceTypeCharacterSpecial.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeDirectory = _lookup('kCFURLFileResourceTypeDirectory'); CFStringRef get kCFURLFileResourceTypeDirectory => _kCFURLFileResourceTypeDirectory.value; - set kCFURLFileResourceTypeDirectory(CFStringRef value) => - _kCFURLFileResourceTypeDirectory.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeBlockSpecial = _lookup('kCFURLFileResourceTypeBlockSpecial'); CFStringRef get kCFURLFileResourceTypeBlockSpecial => _kCFURLFileResourceTypeBlockSpecial.value; - set kCFURLFileResourceTypeBlockSpecial(CFStringRef value) => - _kCFURLFileResourceTypeBlockSpecial.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeRegular = _lookup('kCFURLFileResourceTypeRegular'); CFStringRef get kCFURLFileResourceTypeRegular => _kCFURLFileResourceTypeRegular.value; - set kCFURLFileResourceTypeRegular(CFStringRef value) => - _kCFURLFileResourceTypeRegular.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeSymbolicLink = _lookup('kCFURLFileResourceTypeSymbolicLink'); CFStringRef get kCFURLFileResourceTypeSymbolicLink => _kCFURLFileResourceTypeSymbolicLink.value; - set kCFURLFileResourceTypeSymbolicLink(CFStringRef value) => - _kCFURLFileResourceTypeSymbolicLink.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeSocket = _lookup('kCFURLFileResourceTypeSocket'); CFStringRef get kCFURLFileResourceTypeSocket => _kCFURLFileResourceTypeSocket.value; - set kCFURLFileResourceTypeSocket(CFStringRef value) => - _kCFURLFileResourceTypeSocket.value = value; - late final ffi.Pointer _kCFURLFileResourceTypeUnknown = _lookup('kCFURLFileResourceTypeUnknown'); CFStringRef get kCFURLFileResourceTypeUnknown => _kCFURLFileResourceTypeUnknown.value; - set kCFURLFileResourceTypeUnknown(CFStringRef value) => - _kCFURLFileResourceTypeUnknown.value = value; - late final ffi.Pointer _kCFURLFileSizeKey = _lookup('kCFURLFileSizeKey'); CFStringRef get kCFURLFileSizeKey => _kCFURLFileSizeKey.value; - set kCFURLFileSizeKey(CFStringRef value) => _kCFURLFileSizeKey.value = value; - late final ffi.Pointer _kCFURLFileAllocatedSizeKey = _lookup('kCFURLFileAllocatedSizeKey'); CFStringRef get kCFURLFileAllocatedSizeKey => _kCFURLFileAllocatedSizeKey.value; - set kCFURLFileAllocatedSizeKey(CFStringRef value) => - _kCFURLFileAllocatedSizeKey.value = value; - late final ffi.Pointer _kCFURLTotalFileSizeKey = _lookup('kCFURLTotalFileSizeKey'); CFStringRef get kCFURLTotalFileSizeKey => _kCFURLTotalFileSizeKey.value; - set kCFURLTotalFileSizeKey(CFStringRef value) => - _kCFURLTotalFileSizeKey.value = value; - late final ffi.Pointer _kCFURLTotalFileAllocatedSizeKey = _lookup('kCFURLTotalFileAllocatedSizeKey'); CFStringRef get kCFURLTotalFileAllocatedSizeKey => _kCFURLTotalFileAllocatedSizeKey.value; - set kCFURLTotalFileAllocatedSizeKey(CFStringRef value) => - _kCFURLTotalFileAllocatedSizeKey.value = value; - late final ffi.Pointer _kCFURLIsAliasFileKey = _lookup('kCFURLIsAliasFileKey'); CFStringRef get kCFURLIsAliasFileKey => _kCFURLIsAliasFileKey.value; - set kCFURLIsAliasFileKey(CFStringRef value) => - _kCFURLIsAliasFileKey.value = value; - late final ffi.Pointer _kCFURLFileProtectionKey = _lookup('kCFURLFileProtectionKey'); CFStringRef get kCFURLFileProtectionKey => _kCFURLFileProtectionKey.value; - set kCFURLFileProtectionKey(CFStringRef value) => - _kCFURLFileProtectionKey.value = value; - late final ffi.Pointer _kCFURLFileProtectionNone = _lookup('kCFURLFileProtectionNone'); CFStringRef get kCFURLFileProtectionNone => _kCFURLFileProtectionNone.value; - set kCFURLFileProtectionNone(CFStringRef value) => - _kCFURLFileProtectionNone.value = value; - late final ffi.Pointer _kCFURLFileProtectionComplete = _lookup('kCFURLFileProtectionComplete'); CFStringRef get kCFURLFileProtectionComplete => _kCFURLFileProtectionComplete.value; - set kCFURLFileProtectionComplete(CFStringRef value) => - _kCFURLFileProtectionComplete.value = value; - late final ffi.Pointer _kCFURLFileProtectionCompleteUnlessOpen = _lookup('kCFURLFileProtectionCompleteUnlessOpen'); CFStringRef get kCFURLFileProtectionCompleteUnlessOpen => _kCFURLFileProtectionCompleteUnlessOpen.value; - set kCFURLFileProtectionCompleteUnlessOpen(CFStringRef value) => - _kCFURLFileProtectionCompleteUnlessOpen.value = value; - late final ffi.Pointer _kCFURLFileProtectionCompleteUntilFirstUserAuthentication = _lookup( @@ -29627,9 +29884,18 @@ class NativeCupertinoHttp { CFStringRef get kCFURLFileProtectionCompleteUntilFirstUserAuthentication => _kCFURLFileProtectionCompleteUntilFirstUserAuthentication.value; - set kCFURLFileProtectionCompleteUntilFirstUserAuthentication( - CFStringRef value) => - _kCFURLFileProtectionCompleteUntilFirstUserAuthentication.value = value; + late final ffi.Pointer + _kCFURLFileProtectionCompleteWhenUserInactive = + _lookup('kCFURLFileProtectionCompleteWhenUserInactive'); + + CFStringRef get kCFURLFileProtectionCompleteWhenUserInactive => + _kCFURLFileProtectionCompleteWhenUserInactive.value; + + late final ffi.Pointer _kCFURLDirectoryEntryCountKey = + _lookup('kCFURLDirectoryEntryCountKey'); + + CFStringRef get kCFURLDirectoryEntryCountKey => + _kCFURLDirectoryEntryCountKey.value; late final ffi.Pointer _kCFURLVolumeLocalizedFormatDescriptionKey = @@ -29638,27 +29904,18 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeLocalizedFormatDescriptionKey => _kCFURLVolumeLocalizedFormatDescriptionKey.value; - set kCFURLVolumeLocalizedFormatDescriptionKey(CFStringRef value) => - _kCFURLVolumeLocalizedFormatDescriptionKey.value = value; - late final ffi.Pointer _kCFURLVolumeTotalCapacityKey = _lookup('kCFURLVolumeTotalCapacityKey'); CFStringRef get kCFURLVolumeTotalCapacityKey => _kCFURLVolumeTotalCapacityKey.value; - set kCFURLVolumeTotalCapacityKey(CFStringRef value) => - _kCFURLVolumeTotalCapacityKey.value = value; - late final ffi.Pointer _kCFURLVolumeAvailableCapacityKey = _lookup('kCFURLVolumeAvailableCapacityKey'); CFStringRef get kCFURLVolumeAvailableCapacityKey => _kCFURLVolumeAvailableCapacityKey.value; - set kCFURLVolumeAvailableCapacityKey(CFStringRef value) => - _kCFURLVolumeAvailableCapacityKey.value = value; - late final ffi.Pointer _kCFURLVolumeAvailableCapacityForImportantUsageKey = _lookup('kCFURLVolumeAvailableCapacityForImportantUsageKey'); @@ -29666,9 +29923,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeAvailableCapacityForImportantUsageKey => _kCFURLVolumeAvailableCapacityForImportantUsageKey.value; - set kCFURLVolumeAvailableCapacityForImportantUsageKey(CFStringRef value) => - _kCFURLVolumeAvailableCapacityForImportantUsageKey.value = value; - late final ffi.Pointer _kCFURLVolumeAvailableCapacityForOpportunisticUsageKey = _lookup( @@ -29677,82 +29931,54 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeAvailableCapacityForOpportunisticUsageKey => _kCFURLVolumeAvailableCapacityForOpportunisticUsageKey.value; - set kCFURLVolumeAvailableCapacityForOpportunisticUsageKey( - CFStringRef value) => - _kCFURLVolumeAvailableCapacityForOpportunisticUsageKey.value = value; - late final ffi.Pointer _kCFURLVolumeResourceCountKey = _lookup('kCFURLVolumeResourceCountKey'); CFStringRef get kCFURLVolumeResourceCountKey => _kCFURLVolumeResourceCountKey.value; - set kCFURLVolumeResourceCountKey(CFStringRef value) => - _kCFURLVolumeResourceCountKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsPersistentIDsKey = _lookup('kCFURLVolumeSupportsPersistentIDsKey'); CFStringRef get kCFURLVolumeSupportsPersistentIDsKey => _kCFURLVolumeSupportsPersistentIDsKey.value; - set kCFURLVolumeSupportsPersistentIDsKey(CFStringRef value) => - _kCFURLVolumeSupportsPersistentIDsKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsSymbolicLinksKey = _lookup('kCFURLVolumeSupportsSymbolicLinksKey'); CFStringRef get kCFURLVolumeSupportsSymbolicLinksKey => _kCFURLVolumeSupportsSymbolicLinksKey.value; - set kCFURLVolumeSupportsSymbolicLinksKey(CFStringRef value) => - _kCFURLVolumeSupportsSymbolicLinksKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsHardLinksKey = _lookup('kCFURLVolumeSupportsHardLinksKey'); CFStringRef get kCFURLVolumeSupportsHardLinksKey => _kCFURLVolumeSupportsHardLinksKey.value; - set kCFURLVolumeSupportsHardLinksKey(CFStringRef value) => - _kCFURLVolumeSupportsHardLinksKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsJournalingKey = _lookup('kCFURLVolumeSupportsJournalingKey'); CFStringRef get kCFURLVolumeSupportsJournalingKey => _kCFURLVolumeSupportsJournalingKey.value; - set kCFURLVolumeSupportsJournalingKey(CFStringRef value) => - _kCFURLVolumeSupportsJournalingKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsJournalingKey = _lookup('kCFURLVolumeIsJournalingKey'); CFStringRef get kCFURLVolumeIsJournalingKey => _kCFURLVolumeIsJournalingKey.value; - set kCFURLVolumeIsJournalingKey(CFStringRef value) => - _kCFURLVolumeIsJournalingKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsSparseFilesKey = _lookup('kCFURLVolumeSupportsSparseFilesKey'); CFStringRef get kCFURLVolumeSupportsSparseFilesKey => _kCFURLVolumeSupportsSparseFilesKey.value; - set kCFURLVolumeSupportsSparseFilesKey(CFStringRef value) => - _kCFURLVolumeSupportsSparseFilesKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsZeroRunsKey = _lookup('kCFURLVolumeSupportsZeroRunsKey'); CFStringRef get kCFURLVolumeSupportsZeroRunsKey => _kCFURLVolumeSupportsZeroRunsKey.value; - set kCFURLVolumeSupportsZeroRunsKey(CFStringRef value) => - _kCFURLVolumeSupportsZeroRunsKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsCaseSensitiveNamesKey = _lookup('kCFURLVolumeSupportsCaseSensitiveNamesKey'); @@ -29760,9 +29986,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeSupportsCaseSensitiveNamesKey => _kCFURLVolumeSupportsCaseSensitiveNamesKey.value; - set kCFURLVolumeSupportsCaseSensitiveNamesKey(CFStringRef value) => - _kCFURLVolumeSupportsCaseSensitiveNamesKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsCasePreservedNamesKey = _lookup('kCFURLVolumeSupportsCasePreservedNamesKey'); @@ -29770,9 +29993,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeSupportsCasePreservedNamesKey => _kCFURLVolumeSupportsCasePreservedNamesKey.value; - set kCFURLVolumeSupportsCasePreservedNamesKey(CFStringRef value) => - _kCFURLVolumeSupportsCasePreservedNamesKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsRootDirectoryDatesKey = _lookup('kCFURLVolumeSupportsRootDirectoryDatesKey'); @@ -29780,27 +30000,18 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeSupportsRootDirectoryDatesKey => _kCFURLVolumeSupportsRootDirectoryDatesKey.value; - set kCFURLVolumeSupportsRootDirectoryDatesKey(CFStringRef value) => - _kCFURLVolumeSupportsRootDirectoryDatesKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsVolumeSizesKey = _lookup('kCFURLVolumeSupportsVolumeSizesKey'); CFStringRef get kCFURLVolumeSupportsVolumeSizesKey => _kCFURLVolumeSupportsVolumeSizesKey.value; - set kCFURLVolumeSupportsVolumeSizesKey(CFStringRef value) => - _kCFURLVolumeSupportsVolumeSizesKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsRenamingKey = _lookup('kCFURLVolumeSupportsRenamingKey'); CFStringRef get kCFURLVolumeSupportsRenamingKey => _kCFURLVolumeSupportsRenamingKey.value; - set kCFURLVolumeSupportsRenamingKey(CFStringRef value) => - _kCFURLVolumeSupportsRenamingKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsAdvisoryFileLockingKey = _lookup('kCFURLVolumeSupportsAdvisoryFileLockingKey'); @@ -29808,175 +30019,115 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeSupportsAdvisoryFileLockingKey => _kCFURLVolumeSupportsAdvisoryFileLockingKey.value; - set kCFURLVolumeSupportsAdvisoryFileLockingKey(CFStringRef value) => - _kCFURLVolumeSupportsAdvisoryFileLockingKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsExtendedSecurityKey = _lookup('kCFURLVolumeSupportsExtendedSecurityKey'); CFStringRef get kCFURLVolumeSupportsExtendedSecurityKey => _kCFURLVolumeSupportsExtendedSecurityKey.value; - set kCFURLVolumeSupportsExtendedSecurityKey(CFStringRef value) => - _kCFURLVolumeSupportsExtendedSecurityKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsBrowsableKey = _lookup('kCFURLVolumeIsBrowsableKey'); CFStringRef get kCFURLVolumeIsBrowsableKey => _kCFURLVolumeIsBrowsableKey.value; - set kCFURLVolumeIsBrowsableKey(CFStringRef value) => - _kCFURLVolumeIsBrowsableKey.value = value; - late final ffi.Pointer _kCFURLVolumeMaximumFileSizeKey = _lookup('kCFURLVolumeMaximumFileSizeKey'); CFStringRef get kCFURLVolumeMaximumFileSizeKey => _kCFURLVolumeMaximumFileSizeKey.value; - set kCFURLVolumeMaximumFileSizeKey(CFStringRef value) => - _kCFURLVolumeMaximumFileSizeKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsEjectableKey = _lookup('kCFURLVolumeIsEjectableKey'); CFStringRef get kCFURLVolumeIsEjectableKey => _kCFURLVolumeIsEjectableKey.value; - set kCFURLVolumeIsEjectableKey(CFStringRef value) => - _kCFURLVolumeIsEjectableKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsRemovableKey = _lookup('kCFURLVolumeIsRemovableKey'); CFStringRef get kCFURLVolumeIsRemovableKey => _kCFURLVolumeIsRemovableKey.value; - set kCFURLVolumeIsRemovableKey(CFStringRef value) => - _kCFURLVolumeIsRemovableKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsInternalKey = _lookup('kCFURLVolumeIsInternalKey'); CFStringRef get kCFURLVolumeIsInternalKey => _kCFURLVolumeIsInternalKey.value; - set kCFURLVolumeIsInternalKey(CFStringRef value) => - _kCFURLVolumeIsInternalKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsAutomountedKey = _lookup('kCFURLVolumeIsAutomountedKey'); CFStringRef get kCFURLVolumeIsAutomountedKey => _kCFURLVolumeIsAutomountedKey.value; - set kCFURLVolumeIsAutomountedKey(CFStringRef value) => - _kCFURLVolumeIsAutomountedKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsLocalKey = _lookup('kCFURLVolumeIsLocalKey'); CFStringRef get kCFURLVolumeIsLocalKey => _kCFURLVolumeIsLocalKey.value; - set kCFURLVolumeIsLocalKey(CFStringRef value) => - _kCFURLVolumeIsLocalKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsReadOnlyKey = _lookup('kCFURLVolumeIsReadOnlyKey'); CFStringRef get kCFURLVolumeIsReadOnlyKey => _kCFURLVolumeIsReadOnlyKey.value; - set kCFURLVolumeIsReadOnlyKey(CFStringRef value) => - _kCFURLVolumeIsReadOnlyKey.value = value; - late final ffi.Pointer _kCFURLVolumeCreationDateKey = _lookup('kCFURLVolumeCreationDateKey'); CFStringRef get kCFURLVolumeCreationDateKey => _kCFURLVolumeCreationDateKey.value; - set kCFURLVolumeCreationDateKey(CFStringRef value) => - _kCFURLVolumeCreationDateKey.value = value; - late final ffi.Pointer _kCFURLVolumeURLForRemountingKey = _lookup('kCFURLVolumeURLForRemountingKey'); CFStringRef get kCFURLVolumeURLForRemountingKey => _kCFURLVolumeURLForRemountingKey.value; - set kCFURLVolumeURLForRemountingKey(CFStringRef value) => - _kCFURLVolumeURLForRemountingKey.value = value; - late final ffi.Pointer _kCFURLVolumeUUIDStringKey = _lookup('kCFURLVolumeUUIDStringKey'); CFStringRef get kCFURLVolumeUUIDStringKey => _kCFURLVolumeUUIDStringKey.value; - set kCFURLVolumeUUIDStringKey(CFStringRef value) => - _kCFURLVolumeUUIDStringKey.value = value; - late final ffi.Pointer _kCFURLVolumeNameKey = _lookup('kCFURLVolumeNameKey'); CFStringRef get kCFURLVolumeNameKey => _kCFURLVolumeNameKey.value; - set kCFURLVolumeNameKey(CFStringRef value) => - _kCFURLVolumeNameKey.value = value; - late final ffi.Pointer _kCFURLVolumeLocalizedNameKey = _lookup('kCFURLVolumeLocalizedNameKey'); CFStringRef get kCFURLVolumeLocalizedNameKey => _kCFURLVolumeLocalizedNameKey.value; - set kCFURLVolumeLocalizedNameKey(CFStringRef value) => - _kCFURLVolumeLocalizedNameKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsEncryptedKey = _lookup('kCFURLVolumeIsEncryptedKey'); CFStringRef get kCFURLVolumeIsEncryptedKey => _kCFURLVolumeIsEncryptedKey.value; - set kCFURLVolumeIsEncryptedKey(CFStringRef value) => - _kCFURLVolumeIsEncryptedKey.value = value; - late final ffi.Pointer _kCFURLVolumeIsRootFileSystemKey = _lookup('kCFURLVolumeIsRootFileSystemKey'); CFStringRef get kCFURLVolumeIsRootFileSystemKey => _kCFURLVolumeIsRootFileSystemKey.value; - set kCFURLVolumeIsRootFileSystemKey(CFStringRef value) => - _kCFURLVolumeIsRootFileSystemKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsCompressionKey = _lookup('kCFURLVolumeSupportsCompressionKey'); CFStringRef get kCFURLVolumeSupportsCompressionKey => _kCFURLVolumeSupportsCompressionKey.value; - set kCFURLVolumeSupportsCompressionKey(CFStringRef value) => - _kCFURLVolumeSupportsCompressionKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsFileCloningKey = _lookup('kCFURLVolumeSupportsFileCloningKey'); CFStringRef get kCFURLVolumeSupportsFileCloningKey => _kCFURLVolumeSupportsFileCloningKey.value; - set kCFURLVolumeSupportsFileCloningKey(CFStringRef value) => - _kCFURLVolumeSupportsFileCloningKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsSwapRenamingKey = _lookup('kCFURLVolumeSupportsSwapRenamingKey'); CFStringRef get kCFURLVolumeSupportsSwapRenamingKey => _kCFURLVolumeSupportsSwapRenamingKey.value; - set kCFURLVolumeSupportsSwapRenamingKey(CFStringRef value) => - _kCFURLVolumeSupportsSwapRenamingKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsExclusiveRenamingKey = _lookup('kCFURLVolumeSupportsExclusiveRenamingKey'); @@ -29984,18 +30135,12 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeSupportsExclusiveRenamingKey => _kCFURLVolumeSupportsExclusiveRenamingKey.value; - set kCFURLVolumeSupportsExclusiveRenamingKey(CFStringRef value) => - _kCFURLVolumeSupportsExclusiveRenamingKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsImmutableFilesKey = _lookup('kCFURLVolumeSupportsImmutableFilesKey'); CFStringRef get kCFURLVolumeSupportsImmutableFilesKey => _kCFURLVolumeSupportsImmutableFilesKey.value; - set kCFURLVolumeSupportsImmutableFilesKey(CFStringRef value) => - _kCFURLVolumeSupportsImmutableFilesKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsAccessPermissionsKey = _lookup('kCFURLVolumeSupportsAccessPermissionsKey'); @@ -30003,51 +30148,33 @@ class NativeCupertinoHttp { CFStringRef get kCFURLVolumeSupportsAccessPermissionsKey => _kCFURLVolumeSupportsAccessPermissionsKey.value; - set kCFURLVolumeSupportsAccessPermissionsKey(CFStringRef value) => - _kCFURLVolumeSupportsAccessPermissionsKey.value = value; - late final ffi.Pointer _kCFURLVolumeSupportsFileProtectionKey = _lookup('kCFURLVolumeSupportsFileProtectionKey'); CFStringRef get kCFURLVolumeSupportsFileProtectionKey => _kCFURLVolumeSupportsFileProtectionKey.value; - set kCFURLVolumeSupportsFileProtectionKey(CFStringRef value) => - _kCFURLVolumeSupportsFileProtectionKey.value = value; - late final ffi.Pointer _kCFURLVolumeTypeNameKey = _lookup('kCFURLVolumeTypeNameKey'); CFStringRef get kCFURLVolumeTypeNameKey => _kCFURLVolumeTypeNameKey.value; - set kCFURLVolumeTypeNameKey(CFStringRef value) => - _kCFURLVolumeTypeNameKey.value = value; - late final ffi.Pointer _kCFURLVolumeSubtypeKey = _lookup('kCFURLVolumeSubtypeKey'); CFStringRef get kCFURLVolumeSubtypeKey => _kCFURLVolumeSubtypeKey.value; - set kCFURLVolumeSubtypeKey(CFStringRef value) => - _kCFURLVolumeSubtypeKey.value = value; - late final ffi.Pointer _kCFURLVolumeMountFromLocationKey = _lookup('kCFURLVolumeMountFromLocationKey'); CFStringRef get kCFURLVolumeMountFromLocationKey => _kCFURLVolumeMountFromLocationKey.value; - set kCFURLVolumeMountFromLocationKey(CFStringRef value) => - _kCFURLVolumeMountFromLocationKey.value = value; - late final ffi.Pointer _kCFURLIsUbiquitousItemKey = _lookup('kCFURLIsUbiquitousItemKey'); CFStringRef get kCFURLIsUbiquitousItemKey => _kCFURLIsUbiquitousItemKey.value; - set kCFURLIsUbiquitousItemKey(CFStringRef value) => - _kCFURLIsUbiquitousItemKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemHasUnresolvedConflictsKey = _lookup('kCFURLUbiquitousItemHasUnresolvedConflictsKey'); @@ -30055,45 +30182,30 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemHasUnresolvedConflictsKey => _kCFURLUbiquitousItemHasUnresolvedConflictsKey.value; - set kCFURLUbiquitousItemHasUnresolvedConflictsKey(CFStringRef value) => - _kCFURLUbiquitousItemHasUnresolvedConflictsKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemIsDownloadedKey = _lookup('kCFURLUbiquitousItemIsDownloadedKey'); CFStringRef get kCFURLUbiquitousItemIsDownloadedKey => _kCFURLUbiquitousItemIsDownloadedKey.value; - set kCFURLUbiquitousItemIsDownloadedKey(CFStringRef value) => - _kCFURLUbiquitousItemIsDownloadedKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemIsDownloadingKey = _lookup('kCFURLUbiquitousItemIsDownloadingKey'); CFStringRef get kCFURLUbiquitousItemIsDownloadingKey => _kCFURLUbiquitousItemIsDownloadingKey.value; - set kCFURLUbiquitousItemIsDownloadingKey(CFStringRef value) => - _kCFURLUbiquitousItemIsDownloadingKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemIsUploadedKey = _lookup('kCFURLUbiquitousItemIsUploadedKey'); CFStringRef get kCFURLUbiquitousItemIsUploadedKey => _kCFURLUbiquitousItemIsUploadedKey.value; - set kCFURLUbiquitousItemIsUploadedKey(CFStringRef value) => - _kCFURLUbiquitousItemIsUploadedKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemIsUploadingKey = _lookup('kCFURLUbiquitousItemIsUploadingKey'); CFStringRef get kCFURLUbiquitousItemIsUploadingKey => _kCFURLUbiquitousItemIsUploadingKey.value; - set kCFURLUbiquitousItemIsUploadingKey(CFStringRef value) => - _kCFURLUbiquitousItemIsUploadingKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemPercentDownloadedKey = _lookup('kCFURLUbiquitousItemPercentDownloadedKey'); @@ -30101,18 +30213,12 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemPercentDownloadedKey => _kCFURLUbiquitousItemPercentDownloadedKey.value; - set kCFURLUbiquitousItemPercentDownloadedKey(CFStringRef value) => - _kCFURLUbiquitousItemPercentDownloadedKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemPercentUploadedKey = _lookup('kCFURLUbiquitousItemPercentUploadedKey'); CFStringRef get kCFURLUbiquitousItemPercentUploadedKey => _kCFURLUbiquitousItemPercentUploadedKey.value; - set kCFURLUbiquitousItemPercentUploadedKey(CFStringRef value) => - _kCFURLUbiquitousItemPercentUploadedKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemDownloadingStatusKey = _lookup('kCFURLUbiquitousItemDownloadingStatusKey'); @@ -30120,27 +30226,18 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemDownloadingStatusKey => _kCFURLUbiquitousItemDownloadingStatusKey.value; - set kCFURLUbiquitousItemDownloadingStatusKey(CFStringRef value) => - _kCFURLUbiquitousItemDownloadingStatusKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemDownloadingErrorKey = _lookup('kCFURLUbiquitousItemDownloadingErrorKey'); CFStringRef get kCFURLUbiquitousItemDownloadingErrorKey => _kCFURLUbiquitousItemDownloadingErrorKey.value; - set kCFURLUbiquitousItemDownloadingErrorKey(CFStringRef value) => - _kCFURLUbiquitousItemDownloadingErrorKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemUploadingErrorKey = _lookup('kCFURLUbiquitousItemUploadingErrorKey'); CFStringRef get kCFURLUbiquitousItemUploadingErrorKey => _kCFURLUbiquitousItemUploadingErrorKey.value; - set kCFURLUbiquitousItemUploadingErrorKey(CFStringRef value) => - _kCFURLUbiquitousItemUploadingErrorKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemIsExcludedFromSyncKey = _lookup('kCFURLUbiquitousItemIsExcludedFromSyncKey'); @@ -30148,9 +30245,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemIsExcludedFromSyncKey => _kCFURLUbiquitousItemIsExcludedFromSyncKey.value; - set kCFURLUbiquitousItemIsExcludedFromSyncKey(CFStringRef value) => - _kCFURLUbiquitousItemIsExcludedFromSyncKey.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemDownloadingStatusNotDownloaded = _lookup( @@ -30159,9 +30253,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemDownloadingStatusNotDownloaded => _kCFURLUbiquitousItemDownloadingStatusNotDownloaded.value; - set kCFURLUbiquitousItemDownloadingStatusNotDownloaded(CFStringRef value) => - _kCFURLUbiquitousItemDownloadingStatusNotDownloaded.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemDownloadingStatusDownloaded = _lookup('kCFURLUbiquitousItemDownloadingStatusDownloaded'); @@ -30169,9 +30260,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemDownloadingStatusDownloaded => _kCFURLUbiquitousItemDownloadingStatusDownloaded.value; - set kCFURLUbiquitousItemDownloadingStatusDownloaded(CFStringRef value) => - _kCFURLUbiquitousItemDownloadingStatusDownloaded.value = value; - late final ffi.Pointer _kCFURLUbiquitousItemDownloadingStatusCurrent = _lookup('kCFURLUbiquitousItemDownloadingStatusCurrent'); @@ -30179,9 +30267,6 @@ class NativeCupertinoHttp { CFStringRef get kCFURLUbiquitousItemDownloadingStatusCurrent => _kCFURLUbiquitousItemDownloadingStatusCurrent.value; - set kCFURLUbiquitousItemDownloadingStatusCurrent(CFStringRef value) => - _kCFURLUbiquitousItemDownloadingStatusCurrent.value = value; - CFDataRef CFURLCreateBookmarkData( CFAllocatorRef allocator, CFURLRef url, @@ -30381,17 +30466,11 @@ class NativeCupertinoHttp { CFRunLoopMode get kCFRunLoopDefaultMode => _kCFRunLoopDefaultMode.value; - set kCFRunLoopDefaultMode(CFRunLoopMode value) => - _kCFRunLoopDefaultMode.value = value; - late final ffi.Pointer _kCFRunLoopCommonModes = _lookup('kCFRunLoopCommonModes'); CFRunLoopMode get kCFRunLoopCommonModes => _kCFRunLoopCommonModes.value; - set kCFRunLoopCommonModes(CFRunLoopMode value) => - _kCFRunLoopCommonModes.value = value; - int CFRunLoopGetTypeID() { return _CFRunLoopGetTypeID(); } @@ -30553,12 +30632,12 @@ class NativeCupertinoHttp { void CFRunLoopPerformBlock( CFRunLoopRef rl, CFTypeRef mode, - ffi.Pointer<_ObjCBlock> block, + ObjCBlock_ffiVoid block, ) { return _CFRunLoopPerformBlock( rl, mode, - block, + block._id, ); } @@ -30891,17 +30970,17 @@ class NativeCupertinoHttp { CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler( CFAllocatorRef allocator, - int activities, - int repeats, - int order, - ffi.Pointer<_ObjCBlock> block, + DartCFOptionFlags activities, + DartBoolean repeats, + DartCFIndex order, + ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity block, ) { return _CFRunLoopObserverCreateWithHandler( allocator, activities, repeats, order, - block, + block._id, ); } @@ -31055,11 +31134,11 @@ class NativeCupertinoHttp { CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler( CFAllocatorRef allocator, - double fireDate, - double interval, - int flags, - int order, - ffi.Pointer<_ObjCBlock> block, + DartCFTimeInterval fireDate, + DartCFTimeInterval interval, + DartCFOptionFlags flags, + DartCFIndex order, + ObjCBlock_ffiVoid_CFRunLoopTimerRef block, ) { return _CFRunLoopTimerCreateWithHandler( allocator, @@ -31067,7 +31146,7 @@ class NativeCupertinoHttp { interval, flags, order, - block, + block._id, ); } @@ -31749,54 +31828,36 @@ class NativeCupertinoHttp { CFStringRef get kCFSocketCommandKey => _kCFSocketCommandKey.value; - set kCFSocketCommandKey(CFStringRef value) => - _kCFSocketCommandKey.value = value; - late final ffi.Pointer _kCFSocketNameKey = _lookup('kCFSocketNameKey'); CFStringRef get kCFSocketNameKey => _kCFSocketNameKey.value; - set kCFSocketNameKey(CFStringRef value) => _kCFSocketNameKey.value = value; - late final ffi.Pointer _kCFSocketValueKey = _lookup('kCFSocketValueKey'); CFStringRef get kCFSocketValueKey => _kCFSocketValueKey.value; - set kCFSocketValueKey(CFStringRef value) => _kCFSocketValueKey.value = value; - late final ffi.Pointer _kCFSocketResultKey = _lookup('kCFSocketResultKey'); CFStringRef get kCFSocketResultKey => _kCFSocketResultKey.value; - set kCFSocketResultKey(CFStringRef value) => - _kCFSocketResultKey.value = value; - late final ffi.Pointer _kCFSocketErrorKey = _lookup('kCFSocketErrorKey'); CFStringRef get kCFSocketErrorKey => _kCFSocketErrorKey.value; - set kCFSocketErrorKey(CFStringRef value) => _kCFSocketErrorKey.value = value; - late final ffi.Pointer _kCFSocketRegisterCommand = _lookup('kCFSocketRegisterCommand'); CFStringRef get kCFSocketRegisterCommand => _kCFSocketRegisterCommand.value; - set kCFSocketRegisterCommand(CFStringRef value) => - _kCFSocketRegisterCommand.value = value; - late final ffi.Pointer _kCFSocketRetrieveCommand = _lookup('kCFSocketRetrieveCommand'); CFStringRef get kCFSocketRetrieveCommand => _kCFSocketRetrieveCommand.value; - set kCFSocketRetrieveCommand(CFStringRef value) => - _kCFSocketRetrieveCommand.value = value; - int getattrlistbulk( int arg0, ffi.Pointer arg1, @@ -32426,9 +32487,8 @@ class NativeCupertinoHttp { } late final _pathconfPtr = _lookup< - ffi - .NativeFunction, ffi.Int)>>( - 'pathconf'); + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Int)>>('pathconf'); late final _pathconf = _pathconfPtr.asFunction, int)>(); @@ -32769,9 +32829,8 @@ class NativeCupertinoHttp { } late final _encryptPtr = _lookup< - ffi - .NativeFunction, ffi.Int)>>( - 'encrypt'); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int)>>('encrypt'); late final _encrypt = _encryptPtr.asFunction, int)>(); @@ -33098,9 +33157,8 @@ class NativeCupertinoHttp { } late final _getlogin_rPtr = _lookup< - ffi - .NativeFunction, ffi.Size)>>( - 'getlogin_r'); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Size)>>('getlogin_r'); late final _getlogin_r = _getlogin_rPtr.asFunction, int)>(); @@ -33132,9 +33190,8 @@ class NativeCupertinoHttp { } late final _gethostnamePtr = _lookup< - ffi - .NativeFunction, ffi.Size)>>( - 'gethostname'); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Size)>>('gethostname'); late final _gethostname = _gethostnamePtr.asFunction, int)>(); @@ -34766,7 +34823,6 @@ class NativeCupertinoHttp { late final _filesec_unset_property = _filesec_unset_propertyPtr.asFunction(); - late final _class_OS_os_workgroup1 = _getClass1("OS_os_workgroup"); int os_workgroup_copy_port( os_workgroup_t wg, ffi.Pointer mach_port_out, @@ -34943,8 +34999,6 @@ class NativeCupertinoHttp { _os_workgroup_max_parallel_threadsPtr .asFunction(); - late final _class_OS_os_workgroup_interval1 = - _getClass1("OS_os_workgroup_interval"); int os_workgroup_interval_start( os_workgroup_interval_t wg, int start, @@ -35008,8 +35062,6 @@ class NativeCupertinoHttp { int Function( os_workgroup_interval_t, os_workgroup_interval_data_t)>(); - late final _class_OS_os_workgroup_parallel1 = - _getClass1("OS_os_workgroup_parallel"); os_workgroup_parallel_t os_workgroup_parallel_create( ffi.Pointer name, os_workgroup_attr_t attr, @@ -35237,12 +35289,12 @@ class NativeCupertinoHttp { void dispatch_notify( ffi.Pointer object, dispatch_object_t queue, - dispatch_block_t notification_block, + Dartdispatch_block_t notification_block, ) { return _dispatch_notify( object, queue, - notification_block, + notification_block._id, ); } @@ -35320,11 +35372,11 @@ class NativeCupertinoHttp { void dispatch_async( dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_async( queue, - block, + block._id, ); } @@ -35357,11 +35409,11 @@ class NativeCupertinoHttp { void dispatch_sync( dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_sync( queue, - block, + block._id, ); } @@ -35394,11 +35446,11 @@ class NativeCupertinoHttp { void dispatch_async_and_wait( dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_async_and_wait( queue, - block, + block._id, ); } @@ -35433,12 +35485,12 @@ class NativeCupertinoHttp { void dispatch_apply( int iterations, dispatch_queue_t queue, - ffi.Pointer<_ObjCBlock> block, + ObjCBlock_ffiVoid_ffiSize block, ) { return _dispatch_apply( iterations, queue, - block, + block._id, ); } @@ -35679,14 +35731,14 @@ class NativeCupertinoHttp { late final _dispatch_main = _dispatch_mainPtr.asFunction(); void dispatch_after( - int when, + Dartdispatch_time_t when, dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_after( when, queue, - block, + block._id, ); } @@ -35721,11 +35773,11 @@ class NativeCupertinoHttp { void dispatch_barrier_async( dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_barrier_async( queue, - block, + block._id, ); } @@ -35759,11 +35811,11 @@ class NativeCupertinoHttp { void dispatch_barrier_sync( dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_barrier_sync( queue, - block, + block._id, ); } @@ -35796,11 +35848,11 @@ class NativeCupertinoHttp { void dispatch_barrier_async_and_wait( dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_barrier_async_and_wait( queue, - block, + block._id, ); } @@ -35935,14 +35987,18 @@ class NativeCupertinoHttp { late final _dispatch_assert_queue_not = _dispatch_assert_queue_notPtr .asFunction(); - dispatch_block_t dispatch_block_create( + Dartdispatch_block_t dispatch_block_create( int flags, - dispatch_block_t block, + Dartdispatch_block_t block, ) { - return _dispatch_block_create( - flags, - block, - ); + return ObjCBlock_ffiVoid._( + _dispatch_block_create( + flags, + block._id, + ), + this, + retain: false, + release: true); } late final _dispatch_block_createPtr = _lookup< @@ -35952,18 +36008,22 @@ class NativeCupertinoHttp { late final _dispatch_block_create = _dispatch_block_createPtr .asFunction(); - dispatch_block_t dispatch_block_create_with_qos_class( + Dartdispatch_block_t dispatch_block_create_with_qos_class( int flags, int qos_class, int relative_priority, - dispatch_block_t block, + Dartdispatch_block_t block, ) { - return _dispatch_block_create_with_qos_class( - flags, - qos_class, - relative_priority, - block, - ); + return ObjCBlock_ffiVoid._( + _dispatch_block_create_with_qos_class( + flags, + qos_class, + relative_priority, + block._id, + ), + this, + retain: false, + release: true); } late final _dispatch_block_create_with_qos_classPtr = _lookup< @@ -35976,11 +36036,11 @@ class NativeCupertinoHttp { void dispatch_block_perform( int flags, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_block_perform( flags, - block, + block._id, ); } @@ -35991,11 +36051,11 @@ class NativeCupertinoHttp { .asFunction(); int dispatch_block_wait( - dispatch_block_t block, - int timeout, + Dartdispatch_block_t block, + Dartdispatch_time_t timeout, ) { return _dispatch_block_wait( - block, + block._id, timeout, ); } @@ -36008,14 +36068,14 @@ class NativeCupertinoHttp { _dispatch_block_waitPtr.asFunction(); void dispatch_block_notify( - dispatch_block_t block, + Dartdispatch_block_t block, dispatch_queue_t queue, - dispatch_block_t notification_block, + Dartdispatch_block_t notification_block, ) { return _dispatch_block_notify( - block, + block._id, queue, - notification_block, + notification_block._id, ); } @@ -36027,10 +36087,10 @@ class NativeCupertinoHttp { void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t)>(); void dispatch_block_cancel( - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_block_cancel( - block, + block._id, ); } @@ -36041,10 +36101,10 @@ class NativeCupertinoHttp { _dispatch_block_cancelPtr.asFunction(); int dispatch_block_testcancel( - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_block_testcancel( - block, + block._id, ); } @@ -36255,11 +36315,11 @@ class NativeCupertinoHttp { void dispatch_source_set_event_handler( dispatch_source_t source, - dispatch_block_t handler, + Dartdispatch_block_t handler, ) { return _dispatch_source_set_event_handler( source, - handler, + handler._id, ); } @@ -36291,11 +36351,11 @@ class NativeCupertinoHttp { void dispatch_source_set_cancel_handler( dispatch_source_t source, - dispatch_block_t handler, + Dartdispatch_block_t handler, ) { return _dispatch_source_set_cancel_handler( source, - handler, + handler._id, ); } @@ -36435,11 +36495,11 @@ class NativeCupertinoHttp { void dispatch_source_set_registration_handler( dispatch_source_t source, - dispatch_block_t handler, + Dartdispatch_block_t handler, ) { return _dispatch_source_set_registration_handler( source, - handler, + handler._id, ); } @@ -36482,12 +36542,12 @@ class NativeCupertinoHttp { void dispatch_group_async( dispatch_group_t group, dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_group_async( group, queue, - block, + block._id, ); } @@ -36543,12 +36603,12 @@ class NativeCupertinoHttp { void dispatch_group_notify( dispatch_group_t group, dispatch_queue_t queue, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_group_notify( group, queue, - block, + block._id, ); } @@ -36659,11 +36719,11 @@ class NativeCupertinoHttp { void dispatch_once( ffi.Pointer predicate, - dispatch_block_t block, + Dartdispatch_block_t block, ) { return _dispatch_once( predicate, - block, + block._id, ); } @@ -36722,13 +36782,13 @@ class NativeCupertinoHttp { ffi.Pointer buffer, int size, dispatch_queue_t queue, - dispatch_block_t destructor, + Dartdispatch_block_t destructor, ) { return _dispatch_data_create( buffer, size, queue, - destructor, + destructor._id, ); } @@ -36815,11 +36875,11 @@ class NativeCupertinoHttp { bool dispatch_data_apply( dispatch_data_t data, - dispatch_data_applier_t applier, + Dartdispatch_data_applier_t applier, ) { return _dispatch_data_apply( data, - applier, + applier._id, ); } @@ -36852,16 +36912,16 @@ class NativeCupertinoHttp { dispatch_data_t, int, ffi.Pointer)>(); void dispatch_read( - int fd, + Dartdispatch_fd_t fd, int length, dispatch_queue_t queue, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_dispatchdatat_ffiInt handler, ) { return _dispatch_read( fd, length, queue, - handler, + handler._id, ); } @@ -36873,16 +36933,16 @@ class NativeCupertinoHttp { void Function(int, int, dispatch_queue_t, ffi.Pointer<_ObjCBlock>)>(); void dispatch_write( - int fd, + Dartdispatch_fd_t fd, dispatch_data_t data, dispatch_queue_t queue, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_dispatchdatat_ffiInt handler, ) { return _dispatch_write( fd, data, queue, - handler, + handler._id, ); } @@ -36895,16 +36955,16 @@ class NativeCupertinoHttp { int, dispatch_data_t, dispatch_queue_t, ffi.Pointer<_ObjCBlock>)>(); dispatch_io_t dispatch_io_create( - int type, - int fd, + Dartdispatch_io_type_t type, + Dartdispatch_fd_t fd, dispatch_queue_t queue, - ffi.Pointer<_ObjCBlock> cleanup_handler, + ObjCBlock_ffiVoid_ffiInt cleanup_handler, ) { return _dispatch_io_create( type, fd, queue, - cleanup_handler, + cleanup_handler._id, ); } @@ -36920,12 +36980,12 @@ class NativeCupertinoHttp { int, int, dispatch_queue_t, ffi.Pointer<_ObjCBlock>)>(); dispatch_io_t dispatch_io_create_with_path( - int type, + Dartdispatch_io_type_t type, ffi.Pointer path, int oflag, - int mode, + Dart__uint16_t mode, dispatch_queue_t queue, - ffi.Pointer<_ObjCBlock> cleanup_handler, + ObjCBlock_ffiVoid_ffiInt cleanup_handler, ) { return _dispatch_io_create_with_path( type, @@ -36933,7 +36993,7 @@ class NativeCupertinoHttp { oflag, mode, queue, - cleanup_handler, + cleanup_handler._id, ); } @@ -36952,16 +37012,16 @@ class NativeCupertinoHttp { dispatch_queue_t, ffi.Pointer<_ObjCBlock>)>(); dispatch_io_t dispatch_io_create_with_io( - int type, + Dartdispatch_io_type_t type, dispatch_io_t io, dispatch_queue_t queue, - ffi.Pointer<_ObjCBlock> cleanup_handler, + ObjCBlock_ffiVoid_ffiInt cleanup_handler, ) { return _dispatch_io_create_with_io( type, io, queue, - cleanup_handler, + cleanup_handler._id, ); } @@ -36979,17 +37039,17 @@ class NativeCupertinoHttp { void dispatch_io_read( dispatch_io_t channel, - int offset, + Dart__int64_t offset, int length, dispatch_queue_t queue, - dispatch_io_handler_t io_handler, + Dartdispatch_io_handler_t io_handler, ) { return _dispatch_io_read( channel, offset, length, queue, - io_handler, + io_handler._id, ); } @@ -37003,17 +37063,17 @@ class NativeCupertinoHttp { void dispatch_io_write( dispatch_io_t channel, - int offset, + Dart__int64_t offset, dispatch_data_t data, dispatch_queue_t queue, - dispatch_io_handler_t io_handler, + Dartdispatch_io_handler_t io_handler, ) { return _dispatch_io_write( channel, offset, data, queue, - io_handler, + io_handler._id, ); } @@ -37044,11 +37104,11 @@ class NativeCupertinoHttp { void dispatch_io_barrier( dispatch_io_t channel, - dispatch_block_t barrier, + Dartdispatch_block_t barrier, ) { return _dispatch_io_barrier( channel, - barrier, + barrier._id, ); } @@ -37216,9 +37276,6 @@ class NativeCupertinoHttp { CFStreamPropertyKey get kCFStreamPropertyDataWritten => _kCFStreamPropertyDataWritten.value; - set kCFStreamPropertyDataWritten(CFStreamPropertyKey value) => - _kCFStreamPropertyDataWritten.value = value; - CFReadStreamRef CFReadStreamCreateWithBytesNoCopy( CFAllocatorRef alloc, ffi.Pointer bytes, @@ -37345,9 +37402,6 @@ class NativeCupertinoHttp { CFStreamPropertyKey get kCFStreamPropertyAppendToFile => _kCFStreamPropertyAppendToFile.value; - set kCFStreamPropertyAppendToFile(CFStreamPropertyKey value) => - _kCFStreamPropertyAppendToFile.value = value; - late final ffi.Pointer _kCFStreamPropertyFileCurrentOffset = _lookup('kCFStreamPropertyFileCurrentOffset'); @@ -37355,9 +37409,6 @@ class NativeCupertinoHttp { CFStreamPropertyKey get kCFStreamPropertyFileCurrentOffset => _kCFStreamPropertyFileCurrentOffset.value; - set kCFStreamPropertyFileCurrentOffset(CFStreamPropertyKey value) => - _kCFStreamPropertyFileCurrentOffset.value = value; - late final ffi.Pointer _kCFStreamPropertySocketNativeHandle = _lookup('kCFStreamPropertySocketNativeHandle'); @@ -37365,9 +37416,6 @@ class NativeCupertinoHttp { CFStreamPropertyKey get kCFStreamPropertySocketNativeHandle => _kCFStreamPropertySocketNativeHandle.value; - set kCFStreamPropertySocketNativeHandle(CFStreamPropertyKey value) => - _kCFStreamPropertySocketNativeHandle.value = value; - late final ffi.Pointer _kCFStreamPropertySocketRemoteHostName = _lookup('kCFStreamPropertySocketRemoteHostName'); @@ -37375,9 +37423,6 @@ class NativeCupertinoHttp { CFStreamPropertyKey get kCFStreamPropertySocketRemoteHostName => _kCFStreamPropertySocketRemoteHostName.value; - set kCFStreamPropertySocketRemoteHostName(CFStreamPropertyKey value) => - _kCFStreamPropertySocketRemoteHostName.value = value; - late final ffi.Pointer _kCFStreamPropertySocketRemotePortNumber = _lookup('kCFStreamPropertySocketRemotePortNumber'); @@ -37385,17 +37430,11 @@ class NativeCupertinoHttp { CFStreamPropertyKey get kCFStreamPropertySocketRemotePortNumber => _kCFStreamPropertySocketRemotePortNumber.value; - set kCFStreamPropertySocketRemotePortNumber(CFStreamPropertyKey value) => - _kCFStreamPropertySocketRemotePortNumber.value = value; - late final ffi.Pointer _kCFStreamErrorDomainSOCKS = _lookup('kCFStreamErrorDomainSOCKS'); int get kCFStreamErrorDomainSOCKS => _kCFStreamErrorDomainSOCKS.value; - set kCFStreamErrorDomainSOCKS(int value) => - _kCFStreamErrorDomainSOCKS.value = value; - late final ffi.Pointer _kCFStreamPropertySOCKSProxy = _lookup('kCFStreamPropertySOCKSProxy'); @@ -37473,9 +37512,6 @@ class NativeCupertinoHttp { int get kCFStreamErrorDomainSSL => _kCFStreamErrorDomainSSL.value; - set kCFStreamErrorDomainSSL(int value) => - _kCFStreamErrorDomainSSL.value = value; - late final ffi.Pointer _kCFStreamPropertySocketSecurityLevel = _lookup('kCFStreamPropertySocketSecurityLevel'); @@ -39037,64 +39073,43 @@ class NativeCupertinoHttp { CFStringRef get kCFURLFileExists => _kCFURLFileExists.value; - set kCFURLFileExists(CFStringRef value) => _kCFURLFileExists.value = value; - late final ffi.Pointer _kCFURLFileDirectoryContents = _lookup('kCFURLFileDirectoryContents'); CFStringRef get kCFURLFileDirectoryContents => _kCFURLFileDirectoryContents.value; - set kCFURLFileDirectoryContents(CFStringRef value) => - _kCFURLFileDirectoryContents.value = value; - late final ffi.Pointer _kCFURLFileLength = _lookup('kCFURLFileLength'); CFStringRef get kCFURLFileLength => _kCFURLFileLength.value; - set kCFURLFileLength(CFStringRef value) => _kCFURLFileLength.value = value; - late final ffi.Pointer _kCFURLFileLastModificationTime = _lookup('kCFURLFileLastModificationTime'); CFStringRef get kCFURLFileLastModificationTime => _kCFURLFileLastModificationTime.value; - set kCFURLFileLastModificationTime(CFStringRef value) => - _kCFURLFileLastModificationTime.value = value; - late final ffi.Pointer _kCFURLFilePOSIXMode = _lookup('kCFURLFilePOSIXMode'); CFStringRef get kCFURLFilePOSIXMode => _kCFURLFilePOSIXMode.value; - set kCFURLFilePOSIXMode(CFStringRef value) => - _kCFURLFilePOSIXMode.value = value; - late final ffi.Pointer _kCFURLFileOwnerID = _lookup('kCFURLFileOwnerID'); CFStringRef get kCFURLFileOwnerID => _kCFURLFileOwnerID.value; - set kCFURLFileOwnerID(CFStringRef value) => _kCFURLFileOwnerID.value = value; - late final ffi.Pointer _kCFURLHTTPStatusCode = _lookup('kCFURLHTTPStatusCode'); CFStringRef get kCFURLHTTPStatusCode => _kCFURLHTTPStatusCode.value; - set kCFURLHTTPStatusCode(CFStringRef value) => - _kCFURLHTTPStatusCode.value = value; - late final ffi.Pointer _kCFURLHTTPStatusLine = _lookup('kCFURLHTTPStatusLine'); CFStringRef get kCFURLHTTPStatusLine => _kCFURLHTTPStatusLine.value; - set kCFURLHTTPStatusLine(CFStringRef value) => - _kCFURLHTTPStatusLine.value = value; - int CFUUIDGetTypeID() { return _CFUUIDGetTypeID(); } @@ -39325,57 +39340,37 @@ class NativeCupertinoHttp { CFStringRef get kCFBundleInfoDictionaryVersionKey => _kCFBundleInfoDictionaryVersionKey.value; - set kCFBundleInfoDictionaryVersionKey(CFStringRef value) => - _kCFBundleInfoDictionaryVersionKey.value = value; - late final ffi.Pointer _kCFBundleExecutableKey = _lookup('kCFBundleExecutableKey'); CFStringRef get kCFBundleExecutableKey => _kCFBundleExecutableKey.value; - set kCFBundleExecutableKey(CFStringRef value) => - _kCFBundleExecutableKey.value = value; - late final ffi.Pointer _kCFBundleIdentifierKey = _lookup('kCFBundleIdentifierKey'); CFStringRef get kCFBundleIdentifierKey => _kCFBundleIdentifierKey.value; - set kCFBundleIdentifierKey(CFStringRef value) => - _kCFBundleIdentifierKey.value = value; - late final ffi.Pointer _kCFBundleVersionKey = _lookup('kCFBundleVersionKey'); CFStringRef get kCFBundleVersionKey => _kCFBundleVersionKey.value; - set kCFBundleVersionKey(CFStringRef value) => - _kCFBundleVersionKey.value = value; - late final ffi.Pointer _kCFBundleDevelopmentRegionKey = _lookup('kCFBundleDevelopmentRegionKey'); CFStringRef get kCFBundleDevelopmentRegionKey => _kCFBundleDevelopmentRegionKey.value; - set kCFBundleDevelopmentRegionKey(CFStringRef value) => - _kCFBundleDevelopmentRegionKey.value = value; - late final ffi.Pointer _kCFBundleNameKey = _lookup('kCFBundleNameKey'); CFStringRef get kCFBundleNameKey => _kCFBundleNameKey.value; - set kCFBundleNameKey(CFStringRef value) => _kCFBundleNameKey.value = value; - late final ffi.Pointer _kCFBundleLocalizationsKey = _lookup('kCFBundleLocalizationsKey'); CFStringRef get kCFBundleLocalizationsKey => _kCFBundleLocalizationsKey.value; - set kCFBundleLocalizationsKey(CFStringRef value) => - _kCFBundleLocalizationsKey.value = value; - CFBundleRef CFBundleGetMainBundle() { return _CFBundleGetMainBundle(); } @@ -40519,42 +40514,28 @@ class NativeCupertinoHttp { CFStringRef get kCFPlugInDynamicRegistrationKey => _kCFPlugInDynamicRegistrationKey.value; - set kCFPlugInDynamicRegistrationKey(CFStringRef value) => - _kCFPlugInDynamicRegistrationKey.value = value; - late final ffi.Pointer _kCFPlugInDynamicRegisterFunctionKey = _lookup('kCFPlugInDynamicRegisterFunctionKey'); CFStringRef get kCFPlugInDynamicRegisterFunctionKey => _kCFPlugInDynamicRegisterFunctionKey.value; - set kCFPlugInDynamicRegisterFunctionKey(CFStringRef value) => - _kCFPlugInDynamicRegisterFunctionKey.value = value; - late final ffi.Pointer _kCFPlugInUnloadFunctionKey = _lookup('kCFPlugInUnloadFunctionKey'); CFStringRef get kCFPlugInUnloadFunctionKey => _kCFPlugInUnloadFunctionKey.value; - set kCFPlugInUnloadFunctionKey(CFStringRef value) => - _kCFPlugInUnloadFunctionKey.value = value; - late final ffi.Pointer _kCFPlugInFactoriesKey = _lookup('kCFPlugInFactoriesKey'); CFStringRef get kCFPlugInFactoriesKey => _kCFPlugInFactoriesKey.value; - set kCFPlugInFactoriesKey(CFStringRef value) => - _kCFPlugInFactoriesKey.value = value; - late final ffi.Pointer _kCFPlugInTypesKey = _lookup('kCFPlugInTypesKey'); CFStringRef get kCFPlugInTypesKey => _kCFPlugInTypesKey.value; - set kCFPlugInTypesKey(CFStringRef value) => _kCFPlugInTypesKey.value = value; - int CFPlugInGetTypeID() { return _CFPlugInGetTypeID(); } @@ -43169,45 +43150,30 @@ class NativeCupertinoHttp { CFStringRef get kCFUserNotificationIconURLKey => _kCFUserNotificationIconURLKey.value; - set kCFUserNotificationIconURLKey(CFStringRef value) => - _kCFUserNotificationIconURLKey.value = value; - late final ffi.Pointer _kCFUserNotificationSoundURLKey = _lookup('kCFUserNotificationSoundURLKey'); CFStringRef get kCFUserNotificationSoundURLKey => _kCFUserNotificationSoundURLKey.value; - set kCFUserNotificationSoundURLKey(CFStringRef value) => - _kCFUserNotificationSoundURLKey.value = value; - late final ffi.Pointer _kCFUserNotificationLocalizationURLKey = _lookup('kCFUserNotificationLocalizationURLKey'); CFStringRef get kCFUserNotificationLocalizationURLKey => _kCFUserNotificationLocalizationURLKey.value; - set kCFUserNotificationLocalizationURLKey(CFStringRef value) => - _kCFUserNotificationLocalizationURLKey.value = value; - late final ffi.Pointer _kCFUserNotificationAlertHeaderKey = _lookup('kCFUserNotificationAlertHeaderKey'); CFStringRef get kCFUserNotificationAlertHeaderKey => _kCFUserNotificationAlertHeaderKey.value; - set kCFUserNotificationAlertHeaderKey(CFStringRef value) => - _kCFUserNotificationAlertHeaderKey.value = value; - late final ffi.Pointer _kCFUserNotificationAlertMessageKey = _lookup('kCFUserNotificationAlertMessageKey'); CFStringRef get kCFUserNotificationAlertMessageKey => _kCFUserNotificationAlertMessageKey.value; - set kCFUserNotificationAlertMessageKey(CFStringRef value) => - _kCFUserNotificationAlertMessageKey.value = value; - late final ffi.Pointer _kCFUserNotificationDefaultButtonTitleKey = _lookup('kCFUserNotificationDefaultButtonTitleKey'); @@ -43215,9 +43181,6 @@ class NativeCupertinoHttp { CFStringRef get kCFUserNotificationDefaultButtonTitleKey => _kCFUserNotificationDefaultButtonTitleKey.value; - set kCFUserNotificationDefaultButtonTitleKey(CFStringRef value) => - _kCFUserNotificationDefaultButtonTitleKey.value = value; - late final ffi.Pointer _kCFUserNotificationAlternateButtonTitleKey = _lookup('kCFUserNotificationAlternateButtonTitleKey'); @@ -43225,18 +43188,12 @@ class NativeCupertinoHttp { CFStringRef get kCFUserNotificationAlternateButtonTitleKey => _kCFUserNotificationAlternateButtonTitleKey.value; - set kCFUserNotificationAlternateButtonTitleKey(CFStringRef value) => - _kCFUserNotificationAlternateButtonTitleKey.value = value; - late final ffi.Pointer _kCFUserNotificationOtherButtonTitleKey = _lookup('kCFUserNotificationOtherButtonTitleKey'); CFStringRef get kCFUserNotificationOtherButtonTitleKey => _kCFUserNotificationOtherButtonTitleKey.value; - set kCFUserNotificationOtherButtonTitleKey(CFStringRef value) => - _kCFUserNotificationOtherButtonTitleKey.value = value; - late final ffi.Pointer _kCFUserNotificationProgressIndicatorValueKey = _lookup('kCFUserNotificationProgressIndicatorValueKey'); @@ -43244,72 +43201,48 @@ class NativeCupertinoHttp { CFStringRef get kCFUserNotificationProgressIndicatorValueKey => _kCFUserNotificationProgressIndicatorValueKey.value; - set kCFUserNotificationProgressIndicatorValueKey(CFStringRef value) => - _kCFUserNotificationProgressIndicatorValueKey.value = value; - late final ffi.Pointer _kCFUserNotificationPopUpTitlesKey = _lookup('kCFUserNotificationPopUpTitlesKey'); CFStringRef get kCFUserNotificationPopUpTitlesKey => _kCFUserNotificationPopUpTitlesKey.value; - set kCFUserNotificationPopUpTitlesKey(CFStringRef value) => - _kCFUserNotificationPopUpTitlesKey.value = value; - late final ffi.Pointer _kCFUserNotificationTextFieldTitlesKey = _lookup('kCFUserNotificationTextFieldTitlesKey'); CFStringRef get kCFUserNotificationTextFieldTitlesKey => _kCFUserNotificationTextFieldTitlesKey.value; - set kCFUserNotificationTextFieldTitlesKey(CFStringRef value) => - _kCFUserNotificationTextFieldTitlesKey.value = value; - late final ffi.Pointer _kCFUserNotificationCheckBoxTitlesKey = _lookup('kCFUserNotificationCheckBoxTitlesKey'); CFStringRef get kCFUserNotificationCheckBoxTitlesKey => _kCFUserNotificationCheckBoxTitlesKey.value; - set kCFUserNotificationCheckBoxTitlesKey(CFStringRef value) => - _kCFUserNotificationCheckBoxTitlesKey.value = value; - late final ffi.Pointer _kCFUserNotificationTextFieldValuesKey = _lookup('kCFUserNotificationTextFieldValuesKey'); CFStringRef get kCFUserNotificationTextFieldValuesKey => _kCFUserNotificationTextFieldValuesKey.value; - set kCFUserNotificationTextFieldValuesKey(CFStringRef value) => - _kCFUserNotificationTextFieldValuesKey.value = value; - late final ffi.Pointer _kCFUserNotificationPopUpSelectionKey = _lookup('kCFUserNotificationPopUpSelectionKey'); CFStringRef get kCFUserNotificationPopUpSelectionKey => _kCFUserNotificationPopUpSelectionKey.value; - set kCFUserNotificationPopUpSelectionKey(CFStringRef value) => - _kCFUserNotificationPopUpSelectionKey.value = value; - late final ffi.Pointer _kCFUserNotificationAlertTopMostKey = _lookup('kCFUserNotificationAlertTopMostKey'); CFStringRef get kCFUserNotificationAlertTopMostKey => _kCFUserNotificationAlertTopMostKey.value; - set kCFUserNotificationAlertTopMostKey(CFStringRef value) => - _kCFUserNotificationAlertTopMostKey.value = value; - late final ffi.Pointer _kCFUserNotificationKeyboardTypesKey = _lookup('kCFUserNotificationKeyboardTypesKey'); CFStringRef get kCFUserNotificationKeyboardTypesKey => _kCFUserNotificationKeyboardTypesKey.value; - set kCFUserNotificationKeyboardTypesKey(CFStringRef value) => - _kCFUserNotificationKeyboardTypesKey.value = value; - int CFXMLNodeGetTypeID() { return _CFXMLNodeGetTypeID(); } @@ -43821,32 +43754,117 @@ class NativeCupertinoHttp { CFStringRef get kCFXMLTreeErrorDescription => _kCFXMLTreeErrorDescription.value; - set kCFXMLTreeErrorDescription(CFStringRef value) => - _kCFXMLTreeErrorDescription.value = value; - late final ffi.Pointer _kCFXMLTreeErrorLineNumber = _lookup('kCFXMLTreeErrorLineNumber'); CFStringRef get kCFXMLTreeErrorLineNumber => _kCFXMLTreeErrorLineNumber.value; - set kCFXMLTreeErrorLineNumber(CFStringRef value) => - _kCFXMLTreeErrorLineNumber.value = value; - late final ffi.Pointer _kCFXMLTreeErrorLocation = _lookup('kCFXMLTreeErrorLocation'); CFStringRef get kCFXMLTreeErrorLocation => _kCFXMLTreeErrorLocation.value; - set kCFXMLTreeErrorLocation(CFStringRef value) => - _kCFXMLTreeErrorLocation.value = value; - late final ffi.Pointer _kCFXMLTreeErrorStatusCode = _lookup('kCFXMLTreeErrorStatusCode'); CFStringRef get kCFXMLTreeErrorStatusCode => _kCFXMLTreeErrorStatusCode.value; - set kCFXMLTreeErrorStatusCode(CFStringRef value) => - _kCFXMLTreeErrorStatusCode.value = value; + late final ffi.Pointer _gGuidCssm = + _lookup('gGuidCssm'); + + CSSM_GUID get gGuidCssm => _gGuidCssm.ref; + + late final ffi.Pointer _gGuidAppleFileDL = + _lookup('gGuidAppleFileDL'); + + CSSM_GUID get gGuidAppleFileDL => _gGuidAppleFileDL.ref; + + late final ffi.Pointer _gGuidAppleCSP = + _lookup('gGuidAppleCSP'); + + CSSM_GUID get gGuidAppleCSP => _gGuidAppleCSP.ref; + + late final ffi.Pointer _gGuidAppleCSPDL = + _lookup('gGuidAppleCSPDL'); + + CSSM_GUID get gGuidAppleCSPDL => _gGuidAppleCSPDL.ref; + + late final ffi.Pointer _gGuidAppleX509CL = + _lookup('gGuidAppleX509CL'); + + CSSM_GUID get gGuidAppleX509CL => _gGuidAppleX509CL.ref; + + late final ffi.Pointer _gGuidAppleX509TP = + _lookup('gGuidAppleX509TP'); + + CSSM_GUID get gGuidAppleX509TP => _gGuidAppleX509TP.ref; + + late final ffi.Pointer _gGuidAppleLDAPDL = + _lookup('gGuidAppleLDAPDL'); + + CSSM_GUID get gGuidAppleLDAPDL => _gGuidAppleLDAPDL.ref; + + late final ffi.Pointer _gGuidAppleDotMacTP = + _lookup('gGuidAppleDotMacTP'); + + CSSM_GUID get gGuidAppleDotMacTP => _gGuidAppleDotMacTP.ref; + + late final ffi.Pointer _gGuidAppleSdCSPDL = + _lookup('gGuidAppleSdCSPDL'); + + CSSM_GUID get gGuidAppleSdCSPDL => _gGuidAppleSdCSPDL.ref; + + late final ffi.Pointer _gGuidAppleDotMacDL = + _lookup('gGuidAppleDotMacDL'); + + CSSM_GUID get gGuidAppleDotMacDL => _gGuidAppleDotMacDL.ref; + + void cssmPerror( + ffi.Pointer how, + int error, + ) { + return _cssmPerror( + how, + error, + ); + } + + late final _cssmPerrorPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, CSSM_RETURN)>>('cssmPerror'); + late final _cssmPerror = + _cssmPerrorPtr.asFunction, int)>(); + + bool cssmOidToAlg( + ffi.Pointer oid, + ffi.Pointer alg, + ) { + return _cssmOidToAlg( + oid, + alg, + ); + } + + late final _cssmOidToAlgPtr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, + ffi.Pointer)>>('cssmOidToAlg'); + late final _cssmOidToAlg = _cssmOidToAlgPtr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer cssmAlgToOid( + int algId, + ) { + return _cssmAlgToOid( + algId, + ); + } + + late final _cssmAlgToOidPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CSSM_ALGORITHMS)>>('cssmAlgToOid'); + late final _cssmAlgToOid = + _cssmAlgToOidPtr.asFunction Function(int)>(); late final ffi.Pointer _kSecPropertyTypeTitle = _lookup('kSecPropertyTypeTitle'); @@ -44129,15 +44147,15 @@ class NativeCupertinoHttp { late final _SecTrustEvaluate = _SecTrustEvaluatePtr.asFunction< int Function(SecTrustRef, ffi.Pointer)>(); - int SecTrustEvaluateAsync( + DartSInt32 SecTrustEvaluateAsync( SecTrustRef trust, dispatch_queue_t queue, - SecTrustCallback result, + DartSecTrustCallback result, ) { return _SecTrustEvaluateAsync( trust, queue, - result, + result._id, ); } @@ -44165,15 +44183,15 @@ class NativeCupertinoHttp { late final _SecTrustEvaluateWithError = _SecTrustEvaluateWithErrorPtr .asFunction)>(); - int SecTrustEvaluateAsyncWithError( + DartSInt32 SecTrustEvaluateAsyncWithError( SecTrustRef trust, dispatch_queue_t queue, - SecTrustWithErrorCallback result, + DartSecTrustWithErrorCallback result, ) { return _SecTrustEvaluateAsyncWithError( trust, queue, - result, + result._id, ); } @@ -44366,104 +44384,6 @@ class NativeCupertinoHttp { late final _SecTrustCopyCertificateChain = _SecTrustCopyCertificateChainPtr .asFunction(); - late final ffi.Pointer _gGuidCssm = - _lookup('gGuidCssm'); - - CSSM_GUID get gGuidCssm => _gGuidCssm.ref; - - late final ffi.Pointer _gGuidAppleFileDL = - _lookup('gGuidAppleFileDL'); - - CSSM_GUID get gGuidAppleFileDL => _gGuidAppleFileDL.ref; - - late final ffi.Pointer _gGuidAppleCSP = - _lookup('gGuidAppleCSP'); - - CSSM_GUID get gGuidAppleCSP => _gGuidAppleCSP.ref; - - late final ffi.Pointer _gGuidAppleCSPDL = - _lookup('gGuidAppleCSPDL'); - - CSSM_GUID get gGuidAppleCSPDL => _gGuidAppleCSPDL.ref; - - late final ffi.Pointer _gGuidAppleX509CL = - _lookup('gGuidAppleX509CL'); - - CSSM_GUID get gGuidAppleX509CL => _gGuidAppleX509CL.ref; - - late final ffi.Pointer _gGuidAppleX509TP = - _lookup('gGuidAppleX509TP'); - - CSSM_GUID get gGuidAppleX509TP => _gGuidAppleX509TP.ref; - - late final ffi.Pointer _gGuidAppleLDAPDL = - _lookup('gGuidAppleLDAPDL'); - - CSSM_GUID get gGuidAppleLDAPDL => _gGuidAppleLDAPDL.ref; - - late final ffi.Pointer _gGuidAppleDotMacTP = - _lookup('gGuidAppleDotMacTP'); - - CSSM_GUID get gGuidAppleDotMacTP => _gGuidAppleDotMacTP.ref; - - late final ffi.Pointer _gGuidAppleSdCSPDL = - _lookup('gGuidAppleSdCSPDL'); - - CSSM_GUID get gGuidAppleSdCSPDL => _gGuidAppleSdCSPDL.ref; - - late final ffi.Pointer _gGuidAppleDotMacDL = - _lookup('gGuidAppleDotMacDL'); - - CSSM_GUID get gGuidAppleDotMacDL => _gGuidAppleDotMacDL.ref; - - void cssmPerror( - ffi.Pointer how, - int error, - ) { - return _cssmPerror( - how, - error, - ); - } - - late final _cssmPerrorPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, CSSM_RETURN)>>('cssmPerror'); - late final _cssmPerror = - _cssmPerrorPtr.asFunction, int)>(); - - bool cssmOidToAlg( - ffi.Pointer oid, - ffi.Pointer alg, - ) { - return _cssmOidToAlg( - oid, - alg, - ); - } - - late final _cssmOidToAlgPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>('cssmOidToAlg'); - late final _cssmOidToAlg = _cssmOidToAlgPtr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); - - ffi.Pointer cssmAlgToOid( - int algId, - ) { - return _cssmAlgToOid( - algId, - ); - } - - late final _cssmAlgToOidPtr = _lookup< - ffi - .NativeFunction Function(CSSM_ALGORITHMS)>>( - 'cssmAlgToOid'); - late final _cssmAlgToOid = - _cssmAlgToOidPtr.asFunction Function(int)>(); - int SecTrustSetOptions( SecTrustRef trustRef, int options, @@ -45496,11 +45416,11 @@ class NativeCupertinoHttp { bool sec_identity_access_certificates( sec_identity_t identity, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_seccertificatet handler, ) { return _sec_identity_access_certificates( identity, - handler, + handler._id, ); } @@ -45678,11 +45598,11 @@ class NativeCupertinoHttp { bool sec_protocol_metadata_access_peer_certificate_chain( sec_protocol_metadata_t metadata, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_seccertificatet handler, ) { return _sec_protocol_metadata_access_peer_certificate_chain( metadata, - handler, + handler._id, ); } @@ -45697,11 +45617,11 @@ class NativeCupertinoHttp { bool sec_protocol_metadata_access_ocsp_response( sec_protocol_metadata_t metadata, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_dispatchdatat handler, ) { return _sec_protocol_metadata_access_ocsp_response( metadata, - handler, + handler._id, ); } @@ -45716,11 +45636,11 @@ class NativeCupertinoHttp { bool sec_protocol_metadata_access_supported_signature_algorithms( sec_protocol_metadata_t metadata, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_Uint16 handler, ) { return _sec_protocol_metadata_access_supported_signature_algorithms( metadata, - handler, + handler._id, ); } @@ -45738,11 +45658,11 @@ class NativeCupertinoHttp { bool sec_protocol_metadata_access_distinguished_names( sec_protocol_metadata_t metadata, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_dispatchdatat handler, ) { return _sec_protocol_metadata_access_distinguished_names( metadata, - handler, + handler._id, ); } @@ -45757,11 +45677,11 @@ class NativeCupertinoHttp { bool sec_protocol_metadata_access_pre_shared_keys( sec_protocol_metadata_t metadata, - ffi.Pointer<_ObjCBlock> handler, + ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat handler, ) { return _sec_protocol_metadata_access_pre_shared_keys( metadata, - handler, + handler._id, ); } @@ -46239,12 +46159,12 @@ class NativeCupertinoHttp { void sec_protocol_options_set_pre_shared_key_selection_block( sec_protocol_options_t options, - sec_protocol_pre_shared_key_selection_t psk_selection_block, + Dartsec_protocol_pre_shared_key_selection_t psk_selection_block, dispatch_queue_t psk_selection_queue, ) { return _sec_protocol_options_set_pre_shared_key_selection_block( options, - psk_selection_block, + psk_selection_block._id, psk_selection_queue, ); } @@ -46465,12 +46385,12 @@ class NativeCupertinoHttp { void sec_protocol_options_set_key_update_block( sec_protocol_options_t options, - sec_protocol_key_update_t key_update_block, + Dartsec_protocol_key_update_t key_update_block, dispatch_queue_t key_update_queue, ) { return _sec_protocol_options_set_key_update_block( options, - key_update_block, + key_update_block._id, key_update_queue, ); } @@ -46486,12 +46406,12 @@ class NativeCupertinoHttp { void sec_protocol_options_set_challenge_block( sec_protocol_options_t options, - sec_protocol_challenge_t challenge_block, + Dartsec_protocol_challenge_t challenge_block, dispatch_queue_t challenge_queue, ) { return _sec_protocol_options_set_challenge_block( options, - challenge_block, + challenge_block._id, challenge_queue, ); } @@ -46507,12 +46427,12 @@ class NativeCupertinoHttp { void sec_protocol_options_set_verify_block( sec_protocol_options_t options, - sec_protocol_verify_t verify_block, + Dartsec_protocol_verify_t verify_block, dispatch_queue_t verify_block_queue, ) { return _sec_protocol_options_set_verify_block( options, - verify_block, + verify_block._id, verify_block_queue, ); } @@ -47883,26 +47803,23 @@ class NativeCupertinoHttp { int get NSURLSessionTransferSizeUnknown => _NSURLSessionTransferSizeUnknown.value; - set NSURLSessionTransferSizeUnknown(int value) => - _NSURLSessionTransferSizeUnknown.value = value; - late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_408( + ffi.Pointer _objc_msgSend_438( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_408( + return __objc_msgSend_438( obj, sel, ); } - late final __objc_msgSend_408Ptr = _lookup< + late final __objc_msgSend_438Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -47910,21 +47827,21 @@ class NativeCupertinoHttp { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_409( + ffi.Pointer _objc_msgSend_439( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_409( + return __objc_msgSend_439( obj, sel, ); } - late final __objc_msgSend_409Ptr = _lookup< + late final __objc_msgSend_439Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -47932,23 +47849,23 @@ class NativeCupertinoHttp { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_410( + ffi.Pointer _objc_msgSend_440( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_410( + return __objc_msgSend_440( obj, sel, identifier, ); } - late final __objc_msgSend_410Ptr = _lookup< + late final __objc_msgSend_440Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -47984,42 +47901,42 @@ class NativeCupertinoHttp { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_411( + int _objc_msgSend_441( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_411( + return __objc_msgSend_441( obj, sel, ); } - late final __objc_msgSend_411Ptr = _lookup< + late final __objc_msgSend_441Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_412( + void _objc_msgSend_442( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_412( + return __objc_msgSend_442( obj, sel, value, ); } - late final __objc_msgSend_412Ptr = _lookup< + late final __objc_msgSend_442Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -48028,42 +47945,42 @@ class NativeCupertinoHttp { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_413( + int _objc_msgSend_443( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_413( + return __objc_msgSend_443( obj, sel, ); } - late final __objc_msgSend_413Ptr = _lookup< + late final __objc_msgSend_443Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_414( + void _objc_msgSend_444( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_414( + return __objc_msgSend_444( obj, sel, value, ); } - late final __objc_msgSend_414Ptr = _lookup< + late final __objc_msgSend_444Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -48087,25 +48004,43 @@ class NativeCupertinoHttp { late final _sel_setHTTPMaximumConnectionsPerHost_1 = _registerName1("setHTTPMaximumConnectionsPerHost:"); late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); + ffi.Pointer _objc_msgSend_445( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_445( + obj, + sel, + ); + } + + late final __objc_msgSend_445Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_415( + void _objc_msgSend_446( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_415( + return __objc_msgSend_446( obj, sel, value, ); } - late final __objc_msgSend_415Ptr = _lookup< + late final __objc_msgSend_446Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -48113,148 +48048,186 @@ class NativeCupertinoHttp { _getClass1("NSURLCredentialStorage"); late final _sel_URLCredentialStorage1 = _registerName1("URLCredentialStorage"); - ffi.Pointer _objc_msgSend_416( + ffi.Pointer _objc_msgSend_447( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_416( + return __objc_msgSend_447( obj, sel, ); } - late final __objc_msgSend_416Ptr = _lookup< + late final __objc_msgSend_447Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_417( + void _objc_msgSend_448( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_417( + return __objc_msgSend_448( obj, sel, value, ); } - late final __objc_msgSend_417Ptr = _lookup< + late final __objc_msgSend_448Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_URLCache1 = _registerName1("URLCache"); + ffi.Pointer _objc_msgSend_449( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_449( + obj, + sel, + ); + } + + late final __objc_msgSend_449Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setURLCache_1 = _registerName1("setURLCache:"); + void _objc_msgSend_450( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_450( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_450Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _sel_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_418( + void _objc_msgSend_451( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_418( + return __objc_msgSend_451( obj, sel, value, ); } - late final __objc_msgSend_418Ptr = _lookup< + late final __objc_msgSend_451Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_419( + int _objc_msgSend_452( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_419( + return __objc_msgSend_452( obj, sel, ); } - late final __objc_msgSend_419Ptr = _lookup< + late final __objc_msgSend_452Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_420( + void _objc_msgSend_453( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_420( + return __objc_msgSend_453( obj, sel, value, ); } - late final __objc_msgSend_420Ptr = _lookup< + late final __objc_msgSend_453Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.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_421( + ffi.Pointer _objc_msgSend_454( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_421( + return __objc_msgSend_454( obj, sel, configuration, ); } - late final __objc_msgSend_421Ptr = _lookup< + late final __objc_msgSend_454Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.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_422( + ffi.Pointer _objc_msgSend_455( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_422( + return __objc_msgSend_455( obj, sel, configuration, @@ -48263,7 +48236,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_422Ptr = _lookup< + late final __objc_msgSend_455Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -48271,7 +48244,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48293,102 +48266,124 @@ class NativeCupertinoHttp { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_423( + void _objc_msgSend_456( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_423( + return __objc_msgSend_456( obj, sel, completionHandler, ); } - late final __objc_msgSend_423Ptr = _lookup< + late final __objc_msgSend_456Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_424( + void _objc_msgSend_457( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_424( + return __objc_msgSend_457( obj, sel, completionHandler, ); } - late final __objc_msgSend_424Ptr = _lookup< + late final __objc_msgSend_457Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_425( + ffi.Pointer _objc_msgSend_458( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_425( + return __objc_msgSend_458( obj, sel, request, ); } - late final __objc_msgSend_425Ptr = _lookup< + late final __objc_msgSend_458Ptr = _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_458 = __objc_msgSend_458Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_426( + ffi.Pointer _objc_msgSend_459( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_426( + return __objc_msgSend_459( obj, sel, url, ); } - late final __objc_msgSend_426Ptr = _lookup< + late final __objc_msgSend_459Ptr = _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_459 = __objc_msgSend_459Ptr.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_460( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_460( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_460Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_427( + ffi.Pointer _objc_msgSend_461( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_427( + return __objc_msgSend_461( obj, sel, request, @@ -48396,14 +48391,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_427Ptr = _lookup< + late final __objc_msgSend_461Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48412,13 +48407,13 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_428( + ffi.Pointer _objc_msgSend_462( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_428( + return __objc_msgSend_462( obj, sel, request, @@ -48426,129 +48421,129 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_428Ptr = _lookup< + late final __objc_msgSend_462Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_uploadTaskWithStreamedRequest_1 = - _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_429( + late final _sel_uploadTaskWithResumeData_1 = + _registerName1("uploadTaskWithResumeData:"); + ffi.Pointer _objc_msgSend_463( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer resumeData, ) { - return __objc_msgSend_429( + return __objc_msgSend_463( obj, sel, - request, + resumeData, ); } - late final __objc_msgSend_429Ptr = _lookup< + late final __objc_msgSend_463Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.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_430( + late final _sel_uploadTaskWithStreamedRequest_1 = + _registerName1("uploadTaskWithStreamedRequest:"); + ffi.Pointer _objc_msgSend_464( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer request, ) { - return __objc_msgSend_430( + return __objc_msgSend_464( obj, sel, - completionHandler, + request, ); } - late final __objc_msgSend_430Ptr = _lookup< + late final __objc_msgSend_464Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.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_464 = __objc_msgSend_464Ptr.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_431( + ffi.Pointer _objc_msgSend_465( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_431( + return __objc_msgSend_465( obj, sel, request, ); } - late final __objc_msgSend_431Ptr = _lookup< + late final __objc_msgSend_465Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_432( + ffi.Pointer _objc_msgSend_466( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_432( + return __objc_msgSend_466( obj, sel, url, ); } - late final __objc_msgSend_432Ptr = _lookup< + late final __objc_msgSend_466Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_433( + ffi.Pointer _objc_msgSend_467( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_433( + return __objc_msgSend_467( obj, sel, resumeData, ); } - late final __objc_msgSend_433Ptr = _lookup< + late final __objc_msgSend_467Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -48557,7 +48552,7 @@ class NativeCupertinoHttp { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_434( + void _objc_msgSend_468( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -48565,7 +48560,7 @@ class NativeCupertinoHttp { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_434( + return __objc_msgSend_468( obj, sel, minBytes, @@ -48575,7 +48570,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_434Ptr = _lookup< + late final __objc_msgSend_468Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -48584,20 +48579,20 @@ class NativeCupertinoHttp { NSUInteger, NSTimeInterval, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.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_435( + void _objc_msgSend_469( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_435( + return __objc_msgSend_469( obj, sel, data, @@ -48606,7 +48601,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_435Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -48614,7 +48609,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSTimeInterval, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -48627,13 +48622,13 @@ class NativeCupertinoHttp { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_436( + ffi.Pointer _objc_msgSend_470( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_436( + return __objc_msgSend_470( obj, sel, hostname, @@ -48641,37 +48636,37 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_436Ptr = _lookup< + late final __objc_msgSend_470Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSNetService1 = _getClass1("NSNetService"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_437( + ffi.Pointer _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_437( + return __objc_msgSend_471( obj, sel, service, ); } - late final __objc_msgSend_437Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -48680,32 +48675,32 @@ class NativeCupertinoHttp { late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); late final _sel_type1 = _registerName1("type"); - int _objc_msgSend_438( + int _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_438( + return __objc_msgSend_472( obj, sel, ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_472Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_439( + void _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_439( + return __objc_msgSend_473( obj, sel, message, @@ -48713,70 +48708,70 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_440( + void _objc_msgSend_474( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_440( + return __objc_msgSend_474( obj, sel, completionHandler, ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_474Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_441( + void _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_441( + return __objc_msgSend_475( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_442( + void _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_442( + return __objc_msgSend_476( obj, sel, closeCode, @@ -48784,11 +48779,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -48796,55 +48791,55 @@ class NativeCupertinoHttp { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_443( + int _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_443( + return __objc_msgSend_477( obj, sel, ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_444( + ffi.Pointer _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_444( + return __objc_msgSend_478( obj, sel, url, ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_445( + ffi.Pointer _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_445( + return __objc_msgSend_479( obj, sel, url, @@ -48852,14 +48847,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48868,35 +48863,35 @@ class NativeCupertinoHttp { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_446( + ffi.Pointer _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_446( + return __objc_msgSend_480( obj, sel, request, ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_447( + ffi.Pointer _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_447( + return __objc_msgSend_481( obj, sel, request, @@ -48904,14 +48899,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48920,13 +48915,13 @@ class NativeCupertinoHttp { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_448( + ffi.Pointer _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_448( + return __objc_msgSend_482( obj, sel, url, @@ -48934,14 +48929,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48950,14 +48945,14 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_449( + ffi.Pointer _objc_msgSend_483( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_449( + return __objc_msgSend_483( obj, sel, request, @@ -48966,7 +48961,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_483Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -48974,7 +48969,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -48984,14 +48979,14 @@ class NativeCupertinoHttp { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_450( + ffi.Pointer _objc_msgSend_484( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_450( + return __objc_msgSend_484( obj, sel, request, @@ -49000,7 +48995,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_484Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -49008,7 +49003,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49016,15 +49011,45 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_uploadTaskWithResumeData_completionHandler_1 = + _registerName1("uploadTaskWithResumeData:completionHandler:"); + ffi.Pointer _objc_msgSend_485( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer resumeData, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_485( + obj, + sel, + resumeData, + completionHandler, + ); + } + + late final __objc_msgSend_485Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.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_451( + ffi.Pointer _objc_msgSend_486( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_451( + return __objc_msgSend_486( obj, sel, request, @@ -49032,14 +49057,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_486Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49048,13 +49073,13 @@ class NativeCupertinoHttp { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_452( + ffi.Pointer _objc_msgSend_487( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_452( + return __objc_msgSend_487( obj, sel, url, @@ -49062,14 +49087,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_487Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49078,13 +49103,13 @@ class NativeCupertinoHttp { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_453( + ffi.Pointer _objc_msgSend_488( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_453( + return __objc_msgSend_488( obj, sel, resumeData, @@ -49092,14 +49117,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_488Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49112,26 +49137,17 @@ class NativeCupertinoHttp { double get NSURLSessionTaskPriorityDefault => _NSURLSessionTaskPriorityDefault.value; - set NSURLSessionTaskPriorityDefault(double value) => - _NSURLSessionTaskPriorityDefault.value = value; - late final ffi.Pointer _NSURLSessionTaskPriorityLow = _lookup('NSURLSessionTaskPriorityLow'); double get NSURLSessionTaskPriorityLow => _NSURLSessionTaskPriorityLow.value; - set NSURLSessionTaskPriorityLow(double value) => - _NSURLSessionTaskPriorityLow.value = value; - late final ffi.Pointer _NSURLSessionTaskPriorityHigh = _lookup('NSURLSessionTaskPriorityHigh'); double get NSURLSessionTaskPriorityHigh => _NSURLSessionTaskPriorityHigh.value; - set NSURLSessionTaskPriorityHigh(double value) => - _NSURLSessionTaskPriorityHigh.value = value; - /// Key in the userInfo dictionary of an NSError received during a failed download. late final ffi.Pointer> _NSURLSessionDownloadTaskResumeData = @@ -49143,9 +49159,38 @@ class NativeCupertinoHttp { set NSURLSessionDownloadTaskResumeData(ffi.Pointer value) => _NSURLSessionDownloadTaskResumeData.value = value; + /// Key in the userInfo dictionary of an NSError received during a failed upload. + late final ffi.Pointer> + _NSURLSessionUploadTaskResumeData = + _lookup>('NSURLSessionUploadTaskResumeData'); + + ffi.Pointer get NSURLSessionUploadTaskResumeData => + _NSURLSessionUploadTaskResumeData.value; + + set NSURLSessionUploadTaskResumeData(ffi.Pointer value) => + _NSURLSessionUploadTaskResumeData.value = value; + late final _class_NSURLSessionTaskTransactionMetrics1 = _getClass1("NSURLSessionTaskTransactionMetrics"); late final _sel_request1 = _registerName1("request"); + ffi.Pointer _objc_msgSend_489( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_489( + obj, + sel, + ); + } + + late final __objc_msgSend_489Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_fetchStartDate1 = _registerName1("fetchStartDate"); late final _sel_domainLookupStartDate1 = _registerName1("domainLookupStartDate"); @@ -49164,21 +49209,21 @@ class NativeCupertinoHttp { late final _sel_isProxyConnection1 = _registerName1("isProxyConnection"); late final _sel_isReusedConnection1 = _registerName1("isReusedConnection"); late final _sel_resourceFetchType1 = _registerName1("resourceFetchType"); - int _objc_msgSend_454( + int _objc_msgSend_490( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_454( + return __objc_msgSend_490( obj, sel, ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_490Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_countOfRequestHeaderBytesSent1 = @@ -49207,21 +49252,21 @@ class NativeCupertinoHttp { late final _sel_isMultipath1 = _registerName1("isMultipath"); late final _sel_domainResolutionProtocol1 = _registerName1("domainResolutionProtocol"); - int _objc_msgSend_455( + int _objc_msgSend_491( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_455( + return __objc_msgSend_491( obj, sel, ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_491Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLSessionTaskMetrics1 = @@ -49229,21 +49274,21 @@ class NativeCupertinoHttp { late final _sel_transactionMetrics1 = _registerName1("transactionMetrics"); late final _class_NSDateInterval1 = _getClass1("NSDateInterval"); late final _sel_taskInterval1 = _registerName1("taskInterval"); - ffi.Pointer _objc_msgSend_456( + ffi.Pointer _objc_msgSend_492( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_456( + return __objc_msgSend_492( obj, sel, ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_492Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -49252,14 +49297,14 @@ class NativeCupertinoHttp { late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_457( + void _objc_msgSend_493( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_457( + return __objc_msgSend_493( obj, sel, typeIdentifier, @@ -49268,7 +49313,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_493Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -49276,14 +49321,14 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.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_458( + void _objc_msgSend_494( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -49291,7 +49336,7 @@ class NativeCupertinoHttp { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_458( + return __objc_msgSend_494( obj, sel, typeIdentifier, @@ -49301,7 +49346,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_494Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -49310,7 +49355,7 @@ class NativeCupertinoHttp { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -49318,23 +49363,23 @@ class NativeCupertinoHttp { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_459( + ffi.Pointer _objc_msgSend_495( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_459( + return __objc_msgSend_495( obj, sel, fileOptions, ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_495Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -49343,13 +49388,13 @@ class NativeCupertinoHttp { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_460( + bool _objc_msgSend_496( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_460( + return __objc_msgSend_496( obj, sel, typeIdentifier, @@ -49357,24 +49402,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_496Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_461( + ffi.Pointer _objc_msgSend_497( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_461( + return __objc_msgSend_497( obj, sel, typeIdentifier, @@ -49382,14 +49427,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_497Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49399,13 +49444,13 @@ class NativeCupertinoHttp { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_462( + ffi.Pointer _objc_msgSend_498( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_462( + return __objc_msgSend_498( obj, sel, typeIdentifier, @@ -49413,14 +49458,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_498Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49430,13 +49475,13 @@ class NativeCupertinoHttp { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_463( + ffi.Pointer _objc_msgSend_499( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_463( + return __objc_msgSend_499( obj, sel, typeIdentifier, @@ -49444,14 +49489,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_499Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49463,13 +49508,13 @@ class NativeCupertinoHttp { late final _sel_initWithObject_1 = _registerName1("initWithObject:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_464( + void _objc_msgSend_500( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_464( + return __objc_msgSend_500( obj, sel, object, @@ -49477,24 +49522,24 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_500Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_465( + void _objc_msgSend_501( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_465( + return __objc_msgSend_501( obj, sel, aClass, @@ -49503,7 +49548,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_501Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -49511,7 +49556,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -49519,13 +49564,13 @@ class NativeCupertinoHttp { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_466( + ffi.Pointer _objc_msgSend_502( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_466( + return __objc_msgSend_502( obj, sel, aClass, @@ -49533,14 +49578,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_502Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -49549,13 +49594,13 @@ class NativeCupertinoHttp { late final _sel_initWithItem_typeIdentifier_1 = _registerName1("initWithItem:typeIdentifier:"); - instancetype _objc_msgSend_467( + instancetype _objc_msgSend_503( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer item, ffi.Pointer typeIdentifier, ) { - return __objc_msgSend_467( + return __objc_msgSend_503( obj, sel, item, @@ -49563,26 +49608,26 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_503Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_468( + void _objc_msgSend_504( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, NSItemProviderLoadHandler loadHandler, ) { - return __objc_msgSend_468( + return __objc_msgSend_504( obj, sel, typeIdentifier, @@ -49590,27 +49635,27 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_504Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_469( + void _objc_msgSend_505( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, NSItemProviderCompletionHandler completionHandler, ) { - return __objc_msgSend_469( + return __objc_msgSend_505( obj, sel, typeIdentifier, @@ -49619,7 +49664,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_505Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -49627,7 +49672,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -49636,55 +49681,55 @@ class NativeCupertinoHttp { NSItemProviderCompletionHandler)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - NSItemProviderLoadHandler _objc_msgSend_470( + NSItemProviderLoadHandler _objc_msgSend_506( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_470( + return __objc_msgSend_506( obj, sel, ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_506Ptr = _lookup< ffi.NativeFunction< NSItemProviderLoadHandler Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< NSItemProviderLoadHandler Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_471( + void _objc_msgSend_507( ffi.Pointer obj, ffi.Pointer sel, NSItemProviderLoadHandler value, ) { - return __objc_msgSend_471( + return __objc_msgSend_507( obj, sel, value, ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_507Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSItemProviderLoadHandler)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_472( + void _objc_msgSend_508( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, NSItemProviderCompletionHandler completionHandler, ) { - return __objc_msgSend_472( + return __objc_msgSend_508( obj, sel, options, @@ -49692,14 +49737,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_508Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderCompletionHandler)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSItemProviderCompletionHandler)>(); @@ -49986,13 +50031,13 @@ class NativeCupertinoHttp { late final _class_NSMutableString1 = _getClass1("NSMutableString"); late final _sel_replaceCharactersInRange_withString_1 = _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_473( + void _objc_msgSend_509( ffi.Pointer obj, ffi.Pointer sel, NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_473( + return __objc_msgSend_509( obj, sel, range, @@ -50000,23 +50045,23 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_509Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_474( + void _objc_msgSend_510( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_474( + return __objc_msgSend_510( obj, sel, aString, @@ -50024,11 +50069,11 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_510Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -50039,7 +50084,7 @@ class NativeCupertinoHttp { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_475( + int _objc_msgSend_511( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -50047,7 +50092,7 @@ class NativeCupertinoHttp { int options, NSRange searchRange, ) { - return __objc_msgSend_475( + return __objc_msgSend_511( obj, sel, target, @@ -50057,7 +50102,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_511Ptr = _lookup< ffi.NativeFunction< NSUInteger Function( ffi.Pointer, @@ -50066,13 +50111,13 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, NSRange)>(); late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_476( + bool _objc_msgSend_512( ffi.Pointer obj, ffi.Pointer sel, NSStringTransform transform, @@ -50080,7 +50125,7 @@ class NativeCupertinoHttp { NSRange range, NSRangePointer resultingRange, ) { - return __objc_msgSend_476( + return __objc_msgSend_512( obj, sel, transform, @@ -50090,7 +50135,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_512Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -50099,27 +50144,27 @@ class NativeCupertinoHttp { ffi.Bool, NSRange, NSRangePointer)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSStringTransform, bool, NSRange, NSRangePointer)>(); - ffi.Pointer _objc_msgSend_477( + ffi.Pointer _objc_msgSend_513( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_477( + return __objc_msgSend_513( obj, sel, capacity, ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_513Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSUInteger)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -50155,86 +50200,106 @@ class NativeCupertinoHttp { _registerName1("removeCharactersInString:"); late final _sel_formUnionWithCharacterSet_1 = _registerName1("formUnionWithCharacterSet:"); - void _objc_msgSend_478( + void _objc_msgSend_514( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_478( + return __objc_msgSend_514( obj, sel, otherSet, ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_514Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_formIntersectionWithCharacterSet_1 = _registerName1("formIntersectionWithCharacterSet:"); late final _sel_invert1 = _registerName1("invert"); - ffi.Pointer _objc_msgSend_479( + ffi.Pointer _objc_msgSend_515( ffi.Pointer obj, ffi.Pointer sel, NSRange aRange, ) { - return __objc_msgSend_479( + return __objc_msgSend_515( obj, sel, aRange, ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_515Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSRange)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, NSRange)>(); - ffi.Pointer _objc_msgSend_480( + ffi.Pointer _objc_msgSend_516( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, ) { - return __objc_msgSend_480( + return __objc_msgSend_516( obj, sel, aString, ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_516Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_481( + ffi.Pointer _objc_msgSend_517( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_481( + return __objc_msgSend_517( obj, sel, data, ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_517Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_518( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fName, + ) { + return __objc_msgSend_518( + obj, + sel, + fName, + ); + } + + late final __objc_msgSend_518Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -50244,9 +50309,6 @@ class NativeCupertinoHttp { ffi.Pointer get NSHTTPPropertyStatusCodeKey => _NSHTTPPropertyStatusCodeKey.value; - set NSHTTPPropertyStatusCodeKey(ffi.Pointer value) => - _NSHTTPPropertyStatusCodeKey.value = value; - late final ffi.Pointer> _NSHTTPPropertyStatusReasonKey = _lookup>('NSHTTPPropertyStatusReasonKey'); @@ -50254,9 +50316,6 @@ class NativeCupertinoHttp { ffi.Pointer get NSHTTPPropertyStatusReasonKey => _NSHTTPPropertyStatusReasonKey.value; - set NSHTTPPropertyStatusReasonKey(ffi.Pointer value) => - _NSHTTPPropertyStatusReasonKey.value = value; - late final ffi.Pointer> _NSHTTPPropertyServerHTTPVersionKey = _lookup>('NSHTTPPropertyServerHTTPVersionKey'); @@ -50264,9 +50323,6 @@ class NativeCupertinoHttp { ffi.Pointer get NSHTTPPropertyServerHTTPVersionKey => _NSHTTPPropertyServerHTTPVersionKey.value; - set NSHTTPPropertyServerHTTPVersionKey(ffi.Pointer value) => - _NSHTTPPropertyServerHTTPVersionKey.value = value; - late final ffi.Pointer> _NSHTTPPropertyRedirectionHeadersKey = _lookup>('NSHTTPPropertyRedirectionHeadersKey'); @@ -50274,9 +50330,6 @@ class NativeCupertinoHttp { ffi.Pointer get NSHTTPPropertyRedirectionHeadersKey => _NSHTTPPropertyRedirectionHeadersKey.value; - set NSHTTPPropertyRedirectionHeadersKey(ffi.Pointer value) => - _NSHTTPPropertyRedirectionHeadersKey.value = value; - late final ffi.Pointer> _NSHTTPPropertyErrorPageDataKey = _lookup>('NSHTTPPropertyErrorPageDataKey'); @@ -50284,27 +50337,18 @@ class NativeCupertinoHttp { ffi.Pointer get NSHTTPPropertyErrorPageDataKey => _NSHTTPPropertyErrorPageDataKey.value; - set NSHTTPPropertyErrorPageDataKey(ffi.Pointer value) => - _NSHTTPPropertyErrorPageDataKey.value = value; - late final ffi.Pointer> _NSHTTPPropertyHTTPProxy = _lookup>('NSHTTPPropertyHTTPProxy'); ffi.Pointer get NSHTTPPropertyHTTPProxy => _NSHTTPPropertyHTTPProxy.value; - set NSHTTPPropertyHTTPProxy(ffi.Pointer value) => - _NSHTTPPropertyHTTPProxy.value = value; - late final ffi.Pointer> _NSFTPPropertyUserLoginKey = _lookup>('NSFTPPropertyUserLoginKey'); ffi.Pointer get NSFTPPropertyUserLoginKey => _NSFTPPropertyUserLoginKey.value; - set NSFTPPropertyUserLoginKey(ffi.Pointer value) => - _NSFTPPropertyUserLoginKey.value = value; - late final ffi.Pointer> _NSFTPPropertyUserPasswordKey = _lookup>('NSFTPPropertyUserPasswordKey'); @@ -50312,9 +50356,6 @@ class NativeCupertinoHttp { ffi.Pointer get NSFTPPropertyUserPasswordKey => _NSFTPPropertyUserPasswordKey.value; - set NSFTPPropertyUserPasswordKey(ffi.Pointer value) => - _NSFTPPropertyUserPasswordKey.value = value; - late final ffi.Pointer> _NSFTPPropertyActiveTransferModeKey = _lookup>('NSFTPPropertyActiveTransferModeKey'); @@ -50322,27 +50363,18 @@ class NativeCupertinoHttp { ffi.Pointer get NSFTPPropertyActiveTransferModeKey => _NSFTPPropertyActiveTransferModeKey.value; - set NSFTPPropertyActiveTransferModeKey(ffi.Pointer value) => - _NSFTPPropertyActiveTransferModeKey.value = value; - late final ffi.Pointer> _NSFTPPropertyFileOffsetKey = _lookup>('NSFTPPropertyFileOffsetKey'); ffi.Pointer get NSFTPPropertyFileOffsetKey => _NSFTPPropertyFileOffsetKey.value; - set NSFTPPropertyFileOffsetKey(ffi.Pointer value) => - _NSFTPPropertyFileOffsetKey.value = value; - late final ffi.Pointer> _NSFTPPropertyFTPProxy = _lookup>('NSFTPPropertyFTPProxy'); ffi.Pointer get NSFTPPropertyFTPProxy => _NSFTPPropertyFTPProxy.value; - set NSFTPPropertyFTPProxy(ffi.Pointer value) => - _NSFTPPropertyFTPProxy.value = value; - /// A string constant for the "file" URL scheme. If you are using this to compare to a URL's scheme to see if it is a file URL, you should instead use the NSURL fileURL property -- the fileURL property is much faster. late final ffi.Pointer> _NSURLFileScheme = _lookup>('NSURLFileScheme'); @@ -51049,6 +51081,29 @@ class NativeCupertinoHttp { NSURLFileProtectionType value) => _NSURLFileProtectionCompleteUntilFirstUserAuthentication.value = value; + /// The file is stored in an encrypted format on disk and cannot be accessed until after first unlock after the device has booted. After this first unlock, your app can access the file even while the device is locked until access expiry. Access is renewed once the user unlocks the device again. + late final ffi.Pointer + _NSURLFileProtectionCompleteWhenUserInactive = + _lookup( + 'NSURLFileProtectionCompleteWhenUserInactive'); + + NSURLFileProtectionType get NSURLFileProtectionCompleteWhenUserInactive => + _NSURLFileProtectionCompleteWhenUserInactive.value; + + set NSURLFileProtectionCompleteWhenUserInactive( + NSURLFileProtectionType value) => + _NSURLFileProtectionCompleteWhenUserInactive.value = value; + + /// Returns the count of file system objects contained in the directory. This is a count of objects actually stored in the file system, so excludes virtual items like "." and "..". The property is useful for quickly identifying an empty directory for backup and syncing. If the URL is not a directory or the file system cannot cheaply compute the value, `nil` is returned. (Read-only, value type NSNumber) + late final ffi.Pointer _NSURLDirectoryEntryCountKey = + _lookup('NSURLDirectoryEntryCountKey'); + + NSURLResourceKey get NSURLDirectoryEntryCountKey => + _NSURLDirectoryEntryCountKey.value; + + set NSURLDirectoryEntryCountKey(NSURLResourceKey value) => + _NSURLDirectoryEntryCountKey.value = value; + /// The user-visible volume format (Read-only, value type NSString) late final ffi.Pointer _NSURLVolumeLocalizedFormatDescriptionKey = @@ -51820,13 +51875,13 @@ class NativeCupertinoHttp { late final _class_NSURLQueryItem1 = _getClass1("NSURLQueryItem"); late final _sel_initWithName_value_1 = _registerName1("initWithName:value:"); - instancetype _objc_msgSend_482( + instancetype _objc_msgSend_519( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer value, ) { - return __objc_msgSend_482( + return __objc_msgSend_519( obj, sel, name, @@ -51834,14 +51889,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_519Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -51855,24 +51910,26 @@ class NativeCupertinoHttp { _registerName1("componentsWithURL:resolvingAgainstBaseURL:"); late final _sel_componentsWithString_1 = _registerName1("componentsWithString:"); + late final _sel_componentsWithString_encodingInvalidCharacters_1 = + _registerName1("componentsWithString:encodingInvalidCharacters:"); late final _sel_URLRelativeToURL_1 = _registerName1("URLRelativeToURL:"); - ffi.Pointer _objc_msgSend_483( + ffi.Pointer _objc_msgSend_520( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer baseURL, ) { - return __objc_msgSend_483( + return __objc_msgSend_520( obj, sel, baseURL, ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_520Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -51924,7 +51981,7 @@ class NativeCupertinoHttp { late final _class_NSHTTPURLResponse1 = _getClass1("NSHTTPURLResponse"); late final _sel_initWithURL_statusCode_HTTPVersion_headerFields_1 = _registerName1("initWithURL:statusCode:HTTPVersion:headerFields:"); - instancetype _objc_msgSend_484( + instancetype _objc_msgSend_521( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -51932,7 +51989,7 @@ class NativeCupertinoHttp { ffi.Pointer HTTPVersion, ffi.Pointer headerFields, ) { - return __objc_msgSend_484( + return __objc_msgSend_521( obj, sel, url, @@ -51942,7 +51999,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_521Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -51951,7 +52008,7 @@ class NativeCupertinoHttp { NSInteger, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -51964,23 +52021,23 @@ class NativeCupertinoHttp { late final _sel_allHeaderFields1 = _registerName1("allHeaderFields"); late final _sel_localizedStringForStatusCode_1 = _registerName1("localizedStringForStatusCode:"); - ffi.Pointer _objc_msgSend_485( + ffi.Pointer _objc_msgSend_522( ffi.Pointer obj, ffi.Pointer sel, int statusCode, ) { - return __objc_msgSend_485( + return __objc_msgSend_522( obj, sel, statusCode, ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_522Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, NSInteger)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -52115,14 +52172,14 @@ class NativeCupertinoHttp { late final _class_NSException1 = _getClass1("NSException"); late final _sel_exceptionWithName_reason_userInfo_1 = _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_486( + ffi.Pointer _objc_msgSend_523( ffi.Pointer obj, ffi.Pointer sel, NSExceptionName name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_486( + return __objc_msgSend_523( obj, sel, name, @@ -52131,7 +52188,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_523Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -52139,7 +52196,7 @@ class NativeCupertinoHttp { NSExceptionName, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -52149,14 +52206,14 @@ class NativeCupertinoHttp { late final _sel_initWithName_reason_userInfo_1 = _registerName1("initWithName:reason:userInfo:"); - instancetype _objc_msgSend_487( + instancetype _objc_msgSend_524( ffi.Pointer obj, ffi.Pointer sel, NSExceptionName aName, ffi.Pointer aReason, ffi.Pointer aUserInfo, ) { - return __objc_msgSend_487( + return __objc_msgSend_524( obj, sel, aName, @@ -52165,7 +52222,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_524Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -52173,7 +52230,7 @@ class NativeCupertinoHttp { NSExceptionName, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, NSExceptionName, ffi.Pointer, ffi.Pointer)>(); @@ -52185,14 +52242,14 @@ class NativeCupertinoHttp { late final _sel_raise_format_1 = _registerName1("raise:format:"); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_488( + void _objc_msgSend_525( ffi.Pointer obj, ffi.Pointer sel, NSExceptionName name, ffi.Pointer format, va_list argList, ) { - return __objc_msgSend_488( + return __objc_msgSend_525( obj, sel, name, @@ -52201,7 +52258,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_525Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -52209,7 +52266,7 @@ class NativeCupertinoHttp { NSExceptionName, ffi.Pointer, va_list)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, NSExceptionName, ffi.Pointer, va_list)>(); @@ -52250,28 +52307,28 @@ class NativeCupertinoHttp { late final _class_NSAssertionHandler1 = _getClass1("NSAssertionHandler"); late final _sel_currentHandler1 = _registerName1("currentHandler"); - ffi.Pointer _objc_msgSend_489( + ffi.Pointer _objc_msgSend_526( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_489( + return __objc_msgSend_526( obj, sel, ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_526Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_handleFailureInMethod_object_file_lineNumber_description_1 = _registerName1( "handleFailureInMethod:object:file:lineNumber:description:"); - void _objc_msgSend_490( + void _objc_msgSend_527( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, @@ -52280,7 +52337,7 @@ class NativeCupertinoHttp { int line, ffi.Pointer format, ) { - return __objc_msgSend_490( + return __objc_msgSend_527( obj, sel, selector, @@ -52291,7 +52348,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_527Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -52301,7 +52358,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -52313,7 +52370,7 @@ class NativeCupertinoHttp { late final _sel_handleFailureInFunction_file_lineNumber_description_1 = _registerName1("handleFailureInFunction:file:lineNumber:description:"); - void _objc_msgSend_491( + void _objc_msgSend_528( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functionName, @@ -52321,7 +52378,7 @@ class NativeCupertinoHttp { int line, ffi.Pointer format, ) { - return __objc_msgSend_491( + return __objc_msgSend_528( obj, sel, functionName, @@ -52331,7 +52388,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_491Ptr = _lookup< + late final __objc_msgSend_528Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -52340,7 +52397,7 @@ class NativeCupertinoHttp { ffi.Pointer, NSInteger, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -52352,23 +52409,23 @@ class NativeCupertinoHttp { late final _class_NSBlockOperation1 = _getClass1("NSBlockOperation"); late final _sel_blockOperationWithBlock_1 = _registerName1("blockOperationWithBlock:"); - instancetype _objc_msgSend_492( + instancetype _objc_msgSend_529( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_492( + return __objc_msgSend_529( obj, sel, block, ); } - late final __objc_msgSend_492Ptr = _lookup< + late final __objc_msgSend_529Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -52378,14 +52435,14 @@ class NativeCupertinoHttp { _getClass1("NSInvocationOperation"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_493( + instancetype _objc_msgSend_530( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer sel1, ffi.Pointer arg, ) { - return __objc_msgSend_493( + return __objc_msgSend_530( obj, sel, target, @@ -52394,7 +52451,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_493Ptr = _lookup< + late final __objc_msgSend_530Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -52402,7 +52459,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -52411,42 +52468,42 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_initWithInvocation_1 = _registerName1("initWithInvocation:"); - instancetype _objc_msgSend_494( + instancetype _objc_msgSend_531( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer inv, ) { - return __objc_msgSend_494( + return __objc_msgSend_531( obj, sel, inv, ); } - late final __objc_msgSend_494Ptr = _lookup< + late final __objc_msgSend_531Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_invocation1 = _registerName1("invocation"); - ffi.Pointer _objc_msgSend_495( + ffi.Pointer _objc_msgSend_532( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_495( + return __objc_msgSend_532( obj, sel, ); } - late final __objc_msgSend_495Ptr = _lookup< + late final __objc_msgSend_532Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -52478,9 +52535,6 @@ class NativeCupertinoHttp { int get NSOperationQueueDefaultMaxConcurrentOperationCount => _NSOperationQueueDefaultMaxConcurrentOperationCount.value; - set NSOperationQueueDefaultMaxConcurrentOperationCount(int value) => - _NSOperationQueueDefaultMaxConcurrentOperationCount.value = value; - /// Predefined domain for errors from most AppKit and Foundation APIs. late final ffi.Pointer _NSCocoaErrorDomain = _lookup('NSCocoaErrorDomain'); @@ -58886,23 +58940,23 @@ class NativeCupertinoHttp { late final _class_CUPHTTPTaskConfiguration1 = _getClass1("CUPHTTPTaskConfiguration"); late final _sel_initWithPort_1 = _registerName1("initWithPort:"); - ffi.Pointer _objc_msgSend_496( + ffi.Pointer _objc_msgSend_533( ffi.Pointer obj, ffi.Pointer sel, int sendPort, ) { - return __objc_msgSend_496( + return __objc_msgSend_533( obj, sel, sendPort, ); } - late final __objc_msgSend_496Ptr = _lookup< + late final __objc_msgSend_533Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Dart_Port)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -58911,13 +58965,13 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPClientDelegate"); late final _sel_registerTask_withConfiguration_1 = _registerName1("registerTask:withConfiguration:"); - void _objc_msgSend_497( + void _objc_msgSend_534( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer config, ) { - return __objc_msgSend_497( + return __objc_msgSend_534( obj, sel, task, @@ -58925,14 +58979,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_497Ptr = _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_497 = __objc_msgSend_497Ptr.asFunction< + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -58940,13 +58994,13 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedDelegate"); late final _sel_initWithSession_task_1 = _registerName1("initWithSession:task:"); - ffi.Pointer _objc_msgSend_498( + ffi.Pointer _objc_msgSend_535( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ) { - return __objc_msgSend_498( + return __objc_msgSend_535( obj, sel, session, @@ -58954,14 +59008,14 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_498Ptr = _lookup< + late final __objc_msgSend_535Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -58971,41 +59025,41 @@ class NativeCupertinoHttp { late final _sel_finish1 = _registerName1("finish"); late final _sel_session1 = _registerName1("session"); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_499( + ffi.Pointer _objc_msgSend_536( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_499( + return __objc_msgSend_536( obj, sel, ); } - late final __objc_msgSend_499Ptr = _lookup< + late final __objc_msgSend_536Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSLock1 = _getClass1("NSLock"); late final _sel_lock1 = _registerName1("lock"); - ffi.Pointer _objc_msgSend_500( + ffi.Pointer _objc_msgSend_537( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_500( + return __objc_msgSend_537( obj, sel, ); } - late final __objc_msgSend_500Ptr = _lookup< + late final __objc_msgSend_537Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -59013,7 +59067,7 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedRedirect"); late final _sel_initWithSession_task_response_request_1 = _registerName1("initWithSession:task:response:request:"); - ffi.Pointer _objc_msgSend_501( + ffi.Pointer _objc_msgSend_538( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, @@ -59021,7 +59075,7 @@ class NativeCupertinoHttp { ffi.Pointer response, ffi.Pointer request, ) { - return __objc_msgSend_501( + return __objc_msgSend_538( obj, sel, session, @@ -59031,7 +59085,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_501Ptr = _lookup< + late final __objc_msgSend_538Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59040,7 +59094,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59050,21 +59104,41 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_finishWithRequest_1 = _registerName1("finishWithRequest:"); - ffi.Pointer _objc_msgSend_502( + void _objc_msgSend_539( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer request, ) { - return __objc_msgSend_502( + return __objc_msgSend_539( obj, sel, + request, ); } - late final __objc_msgSend_502Ptr = _lookup< + late final __objc_msgSend_539Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_540( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_540( + obj, + sel, + ); + } + + late final __objc_msgSend_540Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -59073,14 +59147,14 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedResponse"); late final _sel_initWithSession_task_response_1 = _registerName1("initWithSession:task:response:"); - ffi.Pointer _objc_msgSend_503( + ffi.Pointer _objc_msgSend_541( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ffi.Pointer response, ) { - return __objc_msgSend_503( + return __objc_msgSend_541( obj, sel, session, @@ -59089,7 +59163,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_503Ptr = _lookup< + late final __objc_msgSend_541Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59097,7 +59171,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59107,54 +59181,54 @@ class NativeCupertinoHttp { late final _sel_finishWithDisposition_1 = _registerName1("finishWithDisposition:"); - void _objc_msgSend_504( + void _objc_msgSend_542( ffi.Pointer obj, ffi.Pointer sel, int disposition, ) { - return __objc_msgSend_504( + return __objc_msgSend_542( obj, sel, disposition, ); } - late final __objc_msgSend_504Ptr = _lookup< + late final __objc_msgSend_542Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_disposition1 = _registerName1("disposition"); - int _objc_msgSend_505( + int _objc_msgSend_543( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_505( + return __objc_msgSend_543( obj, sel, ); } - late final __objc_msgSend_505Ptr = _lookup< + late final __objc_msgSend_543Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _class_CUPHTTPForwardedData1 = _getClass1("CUPHTTPForwardedData"); late final _sel_initWithSession_task_data_1 = _registerName1("initWithSession:task:data:"); - ffi.Pointer _objc_msgSend_506( + ffi.Pointer _objc_msgSend_544( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ffi.Pointer data, ) { - return __objc_msgSend_506( + return __objc_msgSend_544( obj, sel, session, @@ -59163,7 +59237,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_506Ptr = _lookup< + late final __objc_msgSend_544Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59171,7 +59245,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59183,14 +59257,14 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedComplete"); late final _sel_initWithSession_task_error_1 = _registerName1("initWithSession:task:error:"); - ffi.Pointer _objc_msgSend_507( + ffi.Pointer _objc_msgSend_545( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer task, ffi.Pointer error, ) { - return __objc_msgSend_507( + return __objc_msgSend_545( obj, sel, session, @@ -59199,7 +59273,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_507Ptr = _lookup< + late final __objc_msgSend_545Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59207,7 +59281,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59219,14 +59293,14 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedFinishedDownloading"); late final _sel_initWithSession_downloadTask_url_1 = _registerName1("initWithSession:downloadTask:url:"); - ffi.Pointer _objc_msgSend_508( + ffi.Pointer _objc_msgSend_546( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer downloadTask, ffi.Pointer location, ) { - return __objc_msgSend_508( + return __objc_msgSend_546( obj, sel, session, @@ -59235,7 +59309,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_508Ptr = _lookup< + late final __objc_msgSend_546Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59243,7 +59317,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59252,18 +59326,36 @@ class NativeCupertinoHttp { ffi.Pointer)>(); late final _sel_location1 = _registerName1("location"); + ffi.Pointer _objc_msgSend_547( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_547( + obj, + sel, + ); + } + + late final __objc_msgSend_547Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _class_CUPHTTPForwardedWebSocketOpened1 = _getClass1("CUPHTTPForwardedWebSocketOpened"); late final _sel_initWithSession_webSocketTask_didOpenWithProtocol_1 = _registerName1("initWithSession:webSocketTask:didOpenWithProtocol:"); - ffi.Pointer _objc_msgSend_509( + ffi.Pointer _objc_msgSend_548( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, ffi.Pointer webSocketTask, ffi.Pointer protocol, ) { - return __objc_msgSend_509( + return __objc_msgSend_548( obj, sel, session, @@ -59272,7 +59364,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_509Ptr = _lookup< + late final __objc_msgSend_548Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59280,7 +59372,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59293,7 +59385,7 @@ class NativeCupertinoHttp { _getClass1("CUPHTTPForwardedWebSocketClosed"); late final _sel_initWithSession_webSocketTask_code_reason_1 = _registerName1("initWithSession:webSocketTask:code:reason:"); - ffi.Pointer _objc_msgSend_510( + ffi.Pointer _objc_msgSend_549( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer session, @@ -59301,7 +59393,7 @@ class NativeCupertinoHttp { int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_510( + return __objc_msgSend_549( obj, sel, session, @@ -59311,7 +59403,7 @@ class NativeCupertinoHttp { ); } - late final __objc_msgSend_510Ptr = _lookup< + late final __objc_msgSend_549Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -59320,7 +59412,7 @@ class NativeCupertinoHttp { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -59331,10 +59423,10 @@ class NativeCupertinoHttp { /// Creates a `Dart_CObject` containing the given `NSObject` pointer as an int. Dart_CObject NSObjectToCObject( - ffi.Pointer n, + NSObject n, ) { return _NSObjectToCObject( - n, + n._id, ); } @@ -59347,13 +59439,13 @@ class NativeCupertinoHttp { /// Executes [NSURLSessionWebSocketTask sendMessage:completionHandler:] and /// sends the results of the completion handler to the given `Dart_Port`. void CUPHTTPSendMessage( - ffi.Pointer task, - ffi.Pointer message, - int sendPort, + NSURLSessionWebSocketTask task, + NSURLSessionWebSocketMessage message, + DartDart_Port sendPort, ) { return _CUPHTTPSendMessage( - task, - message, + task._id, + message._id, sendPort, ); } @@ -59368,11 +59460,11 @@ class NativeCupertinoHttp { /// Executes [NSURLSessionWebSocketTask receiveMessageWithCompletionHandler:] /// and sends the results of the completion handler to the given `Dart_Port`. void CUPHTTPReceiveMessage( - ffi.Pointer task, - int sendPort, + NSURLSessionWebSocketTask task, + DartDart_Port sendPort, ) { return _CUPHTTPReceiveMessage( - task, + task._id, sendPort, ); } @@ -59631,45 +59723,45 @@ class NativeCupertinoHttp { late final _class_CUPHTTPStreamToNSInputStreamAdapter1 = _getClass1("CUPHTTPStreamToNSInputStreamAdapter"); late final _sel_addData_1 = _registerName1("addData:"); - int _objc_msgSend_511( + int _objc_msgSend_550( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_511( + return __objc_msgSend_550( obj, sel, data, ); } - late final __objc_msgSend_511Ptr = _lookup< + late final __objc_msgSend_550Ptr = _lookup< ffi.NativeFunction< NSUInteger Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setDone1 = _registerName1("setDone"); late final _sel_setError_1 = _registerName1("setError:"); - void _objc_msgSend_512( + void _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer error, ) { - return __objc_msgSend_512( + return __objc_msgSend_551( obj, sel, error, ); } - late final __objc_msgSend_512Ptr = _lookup< + late final __objc_msgSend_551Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); } @@ -59784,6 +59876,7 @@ final class __darwin_arm_exception_state extends ffi.Struct { } typedef __uint32_t = ffi.UnsignedInt; +typedef Dart__uint32_t = int; final class __darwin_arm_exception_state64 extends ffi.Struct { @__uint64_t() @@ -59797,6 +59890,7 @@ final class __darwin_arm_exception_state64 extends ffi.Struct { } typedef __uint64_t = ffi.UnsignedLongLong; +typedef Dart__uint64_t = int; final class __darwin_arm_thread_state extends ffi.Struct { @ffi.Array.multi([13]) @@ -59929,6 +60023,7 @@ final class __darwin_sigaltstack extends ffi.Struct { } typedef __darwin_size_t = ffi.UnsignedLong; +typedef Dart__darwin_size_t = int; final class __darwin_ucontext extends ffi.Struct { @ffi.Int() @@ -60007,6 +60102,7 @@ final class __siginfo extends ffi.Struct { typedef pid_t = __darwin_pid_t; typedef __darwin_pid_t = __int32_t; typedef __int32_t = ffi.Int; +typedef Dart__int32_t = int; typedef uid_t = __darwin_uid_t; typedef __darwin_uid_t = __uint32_t; @@ -60076,6 +60172,7 @@ final class timeval extends ffi.Struct { } typedef __darwin_time_t = ffi.Long; +typedef Dart__darwin_time_t = int; typedef __darwin_suseconds_t = __int32_t; final class rusage extends ffi.Struct { @@ -60781,6 +60878,13 @@ final class lldiv_t extends ffi.Struct { external int rem; } +typedef malloc_type_id_t = ffi.UnsignedLongLong; +typedef Dartmalloc_type_id_t = int; + +final class _malloc_zone_t extends ffi.Opaque {} + +typedef malloc_zone_t = _malloc_zone_t; + class _ObjCBlockBase implements ffi.Finalizable { final ffi.Pointer<_ObjCBlock> _id; final NativeCupertinoHttp _lib; @@ -60820,61 +60924,101 @@ class _ObjCBlockBase implements ffi.Finalizable { /// Return a pointer to this object. ffi.Pointer<_ObjCBlock> get pointer => _id; -} -void _ObjCBlock_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); + ffi.Pointer<_ObjCBlock> _retainAndReturnId() { + _lib._Block_copy(_id.cast()); + return _id; + } } -final _ObjCBlock_closureRegistry = {}; -int _ObjCBlock_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_registerClosure(Function fn) { - final id = ++_ObjCBlock_closureRegistryIndex; - _ObjCBlock_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 _ObjCBlock_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return _ObjCBlock_closureRegistry[block.ref.target.address]!(); -} +void _ObjCBlock_ffiVoid_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, +) => + _ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address]!(); -class ObjCBlock extends _ObjCBlockBase { - ObjCBlock._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock.fromFunctionPointer(NativeCupertinoHttp 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(NativeCupertinoHttp lib, ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock.fromFunction(NativeCupertinoHttp 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(NativeCupertinoHttp lib, void Function() fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_ffiVoid_closureTrampoline) .cast(), - _ObjCBlock_registerClosure(fn)), + _ObjCBlock_ffiVoid_registerClosure(() => fn())), lib); static ffi.Pointer? _dartFuncTrampoline; - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); - } + + /// 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(NativeCupertinoHttp 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; + + void call() => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>>() + .asFunction)>()( + _id, + ); } final class _ObjCBlockDesc extends ffi.Struct { @@ -60907,37 +61051,47 @@ final class _ObjCBlock extends ffi.Struct { external ffi.Pointer target; } -int _ObjCBlock1_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer 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; +int _ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +final _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureRegistry = + , ffi.Pointer)>{}; +int _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiInt_ffiVoid_ffiVoid_registerClosure( + int Function(ffi.Pointer, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureRegistryIndex; + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -int _ObjCBlock1_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +int _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock1 extends _ObjCBlockBase { - ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiInt_ffiVoid_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiInt_ffiVoid_ffiVoid._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiInt_ffiVoid_ffiVoid.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -60947,43 +61101,43 @@ class ObjCBlock1 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline, 0) + ffi.Int Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_fnPtrTrampoline, 0) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock1.fromFunction(NativeCupertinoHttp 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_ffiInt_ffiVoid_ffiVoid.fromFunction(NativeCupertinoHttp lib, + int Function(ffi.Pointer, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline, 0) + ffi.Int Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_closureTrampoline, 0) .cast(), - _ObjCBlock1_registerClosure(fn)), + _ObjCBlock_ffiInt_ffiVoid_ffiVoid_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int 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); - } + + int call(ffi.Pointer arg0, ffi.Pointer arg1) => _id + .ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0, arg1); } typedef dev_t = __darwin_dev_t; @@ -60991,6 +61145,7 @@ typedef __darwin_dev_t = __int32_t; typedef mode_t = __darwin_mode_t; typedef __darwin_mode_t = __uint16_t; typedef __uint16_t = ffi.UnsignedShort; +typedef Dart__uint16_t = int; final class fd_set extends ffi.Struct { @ffi.Array.multi([32]) @@ -61007,8 +61162,6 @@ final class ObjCObject extends ffi.Opaque {} final class objc_selector extends ffi.Opaque {} -final class _malloc_zone_t extends ffi.Opaque {} - final class ObjCSel extends ffi.Opaque {} typedef objc_objectptr_t = ffi.Pointer; @@ -61054,6 +61207,11 @@ class _ObjCWrapper implements ffi.Finalizable { /// 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 { @@ -61080,11 +61238,11 @@ class NSObject extends _ObjCWrapper { } static void load(NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } NSObject init() { @@ -61110,11 +61268,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() { @@ -61147,10 +61305,9 @@ class NSObject extends _ObjCWrapper { _lib._sel_instancesRespondToSelector_1, aSelector); } - static bool conformsToProtocol_( - NativeCupertinoHttp _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + static bool conformsToProtocol_(NativeCupertinoHttp _lib, Protocol protocol) { + return _lib._objc_msgSend_5( + _lib._class_NSObject1, _lib._sel_conformsToProtocol_1, protocol._id); } IMP methodForSelector_(ffi.Pointer aSelector) { @@ -61164,8 +61321,7 @@ class NSObject extends _ObjCWrapper { } 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) { @@ -61174,9 +61330,8 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - void forwardInvocation_(NSInvocation? anInvocation) { - return _lib._objc_msgSend_9( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation anInvocation) { + _lib._objc_msgSend_9(_id, _lib._sel_forwardInvocation_1, anInvocation._id); } NSMethodSignature methodSignatureForSelector_( @@ -61218,7 +61373,7 @@ class NSObject extends _ObjCWrapper { _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); } - static int hash(NativeCupertinoHttp _lib) { + static DartNSUInteger hash(NativeCupertinoHttp _lib) { return _lib._objc_msgSend_12(_lib._class_NSObject1, _lib._sel_hash1); } @@ -61245,12 +61400,12 @@ class NSObject extends _ObjCWrapper { return NSString._(_ret, _lib, retain: true, release: true); } - static int version(NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_81(_lib._class_NSObject1, _lib._sel_version1); + static DartNSInteger version(NativeCupertinoHttp _lib) { + return _lib._objc_msgSend_86(_lib._class_NSObject1, _lib._sel_version1); } - static void setVersion_(NativeCupertinoHttp _lib, int aVersion) { - return _lib._objc_msgSend_279( + static void setVersion_(NativeCupertinoHttp _lib, DartNSInteger aVersion) { + _lib._objc_msgSend_296( _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); } @@ -61259,20 +61414,24 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject replacementObjectForCoder_(NSCoder? coder) { + NSObject? replacementObjectForCoder_(NSCoder coder) { final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + _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_14( - _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_14(_id, _lib._sel_awakeAfterUsingCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: false, release: true); } static void poseAsClass_(NativeCupertinoHttp _lib, NSObject aClass) { - return _lib._objc_msgSend_200( + _lib._objc_msgSend_210( _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); } @@ -61282,30 +61441,27 @@ class NSObject extends _ObjCWrapper { return NSObject._(_ret, _lib, retain: true, release: true); } - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - return _lib._objc_msgSend_280( - _id, - _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, - newBytes?._id ?? ffi.nullptr); + void URL_resourceDataDidBecomeAvailable_(NSURL sender, NSData newBytes) { + _lib._objc_msgSend_297(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender._id, newBytes._id); } - void URLResourceDidFinishLoading_(NSURL? sender) { - return _lib._objc_msgSend_281(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); + void URLResourceDidFinishLoading_(NSURL sender) { + _lib._objc_msgSend_298( + _id, _lib._sel_URLResourceDidFinishLoading_1, sender._id); } - void URLResourceDidCancelLoading_(NSURL? sender) { - return _lib._objc_msgSend_281(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); + void URLResourceDidCancelLoading_(NSURL sender) { + _lib._objc_msgSend_298( + _id, _lib._sel_URLResourceDidCancelLoading_1, sender._id); } - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - return _lib._objc_msgSend_282( + void URL_resourceDidFailLoadingWithReason_(NSURL sender, NSString reason) { + _lib._objc_msgSend_299( _id, _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); + sender._id, + reason._id); } /// Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and send the selected message to the specified delegate. The option index is an index into the error's array of localized recovery options. The method selected by didRecoverSelector must have the same signature as: @@ -61315,33 +61471,34 @@ class NSObject extends _ObjCWrapper { /// The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. void attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, - int recoveryOptionIndex, - NSObject delegate, + NSError error, + DartNSUInteger recoveryOptionIndex, + NSObject? delegate, ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo) { - return _lib._objc_msgSend_283( + _lib._objc_msgSend_300( _id, _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, + error._id, recoveryOptionIndex, - delegate._id, + delegate?._id ?? ffi.nullptr, didRecoverSelector, contextInfo); } /// Given that an error alert has been presented applicaton-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and return YES if error recovery was completely successful, NO otherwise. The recovery option index is an index into the error's array of localized recovery options. bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_284( + NSError error, DartNSUInteger recoveryOptionIndex) { + return _lib._objc_msgSend_301( _id, _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, + error._id, recoveryOptionIndex); } } typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = NSObject; class Protocol extends _ObjCWrapper { Protocol._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -61367,7 +61524,9 @@ class Protocol extends _ObjCWrapper { } } -typedef IMP = ffi.Pointer>; +typedef IMP = ffi.Pointer>; +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); class NSInvocation extends _ObjCWrapper { NSInvocation._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -61419,6 +61578,7 @@ class NSMethodSignature extends _ObjCWrapper { } typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; class NSString extends NSObject { NSString._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -61454,14 +61614,14 @@ class NSString extends NSObject { String toString() { final data = dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); - return data.bytes.cast().toDartString(length: length); + return data!.bytes.cast().toDartString(length: length); } - int get length { + DartNSUInteger get length { return _lib._objc_msgSend_12(_id, _lib._sel_length1); } - int characterAtIndex_(int index) { + Dartunichar characterAtIndex_(DartNSUInteger index) { return _lib._objc_msgSend_13(_id, _lib._sel_characterAtIndex_1, index); } @@ -61471,19 +61631,21 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _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_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString substringFromIndex_(int from) { + NSString substringFromIndex_(DartNSUInteger from) { final _ret = _lib._objc_msgSend_15(_id, _lib._sel_substringFromIndex_1, from); return NSString._(_ret, _lib, retain: true, release: true); } - NSString substringToIndex_(int to) { + NSString substringToIndex_(DartNSUInteger to) { final _ret = _lib._objc_msgSend_15(_id, _lib._sel_substringToIndex_1, to); return NSString._(_ret, _lib, retain: true, release: true); } @@ -61495,256 +61657,230 @@ class NSString extends NSObject { } void getCharacters_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_17( - _id, _lib._sel_getCharacters_range_1, buffer, range); + _lib._objc_msgSend_17(_id, _lib._sel_getCharacters_range_1, buffer, range); } - int compare_(NSString? string) { - return _lib._objc_msgSend_18( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + int compare_(NSString string) { + return _lib._objc_msgSend_18(_id, _lib._sel_compare_1, string._id); } - int compare_options_(NSString? string, int mask) { + int compare_options_(NSString string, int mask) { return _lib._objc_msgSend_19( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + _id, _lib._sel_compare_options_1, string._id, mask); } int compare_options_range_( - NSString? string, int mask, NSRange rangeOfReceiverToCompare) { + NSString string, int mask, NSRange rangeOfReceiverToCompare) { return _lib._objc_msgSend_20(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + string._id, mask, rangeOfReceiverToCompare); } - int compare_options_range_locale_(NSString? string, int mask, - NSRange rangeOfReceiverToCompare, NSObject locale) { + int compare_options_range_locale_(NSString string, int mask, + NSRange rangeOfReceiverToCompare, NSObject? locale) { return _lib._objc_msgSend_21(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + string._id, mask, rangeOfReceiverToCompare, locale?._id ?? ffi.nullptr); } - int caseInsensitiveCompare_(NSString? string) { + int caseInsensitiveCompare_(NSString string) { return _lib._objc_msgSend_18( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + _id, _lib._sel_caseInsensitiveCompare_1, string._id); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_18( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + int localizedCompare_(NSString string) { + return _lib._objc_msgSend_18(_id, _lib._sel_localizedCompare_1, string._id); } - int localizedCaseInsensitiveCompare_(NSString? string) { + int localizedCaseInsensitiveCompare_(NSString string) { return _lib._objc_msgSend_18( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + _id, _lib._sel_localizedCaseInsensitiveCompare_1, string._id); } - int localizedStandardCompare_(NSString? string) { + int localizedStandardCompare_(NSString string) { return _lib._objc_msgSend_18( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + _id, _lib._sel_localizedStandardCompare_1, string._id); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_22( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + bool isEqualToString_(NSString aString) { + return _lib._objc_msgSend_22(_id, _lib._sel_isEqualToString_1, aString._id); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_22( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + bool hasPrefix_(NSString str) { + return _lib._objc_msgSend_22(_id, _lib._sel_hasPrefix_1, str._id); } - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_22( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + bool hasSuffix_(NSString str) { + return _lib._objc_msgSend_22(_id, _lib._sel_hasSuffix_1, str._id); } - NSString commonPrefixWithString_options_(NSString? str, int mask) { + NSString commonPrefixWithString_options_(NSString str, int mask) { final _ret = _lib._objc_msgSend_23( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); + _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_22( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + bool containsString_(NSString str) { + return _lib._objc_msgSend_22(_id, _lib._sel_containsString_1, str._id); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { + bool localizedCaseInsensitiveContainsString_(NSString str) { return _lib._objc_msgSend_22( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + _id, _lib._sel_localizedCaseInsensitiveContainsString_1, str._id); } - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_22(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + bool localizedStandardContainsString_(NSString str) { + return _lib._objc_msgSend_22( + _id, _lib._sel_localizedStandardContainsString_1, str._id); } - NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_24(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + NSRange localizedStandardRangeOfString_(NSString str) { + return _lib._objc_msgSend_24( + _id, _lib._sel_localizedStandardRangeOfString_1, str._id); } - NSRange rangeOfString_(NSString? searchString) { + NSRange rangeOfString_(NSString searchString) { return _lib._objc_msgSend_24( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + _id, _lib._sel_rangeOfString_1, searchString._id); } - NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_25(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + NSRange rangeOfString_options_(NSString searchString, int mask) { + return _lib._objc_msgSend_25( + _id, _lib._sel_rangeOfString_options_1, searchString._id, mask); } NSRange rangeOfString_options_range_( - NSString? searchString, int mask, NSRange rangeOfReceiverToSearch) { + NSString searchString, int mask, NSRange rangeOfReceiverToSearch) { return _lib._objc_msgSend_26(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + searchString._id, mask, rangeOfReceiverToSearch); } - NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, + NSRange rangeOfString_options_range_locale_(NSString searchString, int mask, NSRange rangeOfReceiverToSearch, NSLocale? locale) { return _lib._objc_msgSend_27( _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_228(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + NSRange rangeOfCharacterFromSet_(NSCharacterSet searchSet) { + return _lib._objc_msgSend_241( + _id, _lib._sel_rangeOfCharacterFromSet_1, searchSet._id); } - NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { - return _lib._objc_msgSend_229( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + NSRange rangeOfCharacterFromSet_options_(NSCharacterSet searchSet, int mask) { + return _lib._objc_msgSend_242( + _id, _lib._sel_rangeOfCharacterFromSet_options_1, searchSet._id, mask); } NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_230( + NSCharacterSet searchSet, int mask, NSRange rangeOfReceiverToSearch) { + return _lib._objc_msgSend_243( _id, _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, + searchSet._id, mask, rangeOfReceiverToSearch); } - NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { - return _lib._objc_msgSend_231( + NSRange rangeOfComposedCharacterSequenceAtIndex_(DartNSUInteger index) { + return _lib._objc_msgSend_244( _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); } NSRange rangeOfComposedCharacterSequencesForRange_(NSRange range) { - return _lib._objc_msgSend_232( + return _lib._objc_msgSend_245( _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); } - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_98( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + NSString stringByAppendingString_(NSString aString) { + final _ret = _lib._objc_msgSend_103( + _id, _lib._sel_stringByAppendingString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_98( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + NSString stringByAppendingFormat_(NSString format) { + final _ret = _lib._objc_msgSend_103( + _id, _lib._sel_stringByAppendingFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } double get doubleValue { - return _lib._objc_msgSend_85(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_doubleValue1) + : _lib._objc_msgSend_90(_id, _lib._sel_doubleValue1); } double get floatValue { - return _lib._objc_msgSend_84(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_89_fpret(_id, _lib._sel_floatValue1) + : _lib._objc_msgSend_89(_id, _lib._sel_floatValue1); } int get intValue { - return _lib._objc_msgSend_79(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_84(_id, _lib._sel_intValue1); } - int get integerValue { - return _lib._objc_msgSend_81(_id, _lib._sel_integerValue1); + DartNSInteger get integerValue { + return _lib._objc_msgSend_86(_id, _lib._sel_integerValue1); } int get longLongValue { - return _lib._objc_msgSend_82(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_87(_id, _lib._sel_longLongValue1); } bool get boolValue { return _lib._objc_msgSend_11(_id, _lib._sel_boolValue1); } - NSString? get uppercaseString { + NSString get uppercaseString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_uppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get lowercaseString { + NSString get lowercaseString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_lowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get capitalizedString { + NSString get capitalizedString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_capitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedUppercaseString { + NSString get localizedUppercaseString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedUppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedLowercaseString { + NSString get localizedLowercaseString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedLowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedCapitalizedString { + NSString get localizedCapitalizedString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedCapitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_233( + final _ret = _lib._objc_msgSend_246( _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_233( + final _ret = _lib._objc_msgSend_246( _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_233(_id, + final _ret = _lib._objc_msgSend_246(_id, _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } @@ -61754,7 +61890,7 @@ class NSString extends NSObject { ffi.Pointer lineEndPtr, ffi.Pointer contentsEndPtr, NSRange range) { - return _lib._objc_msgSend_234( + _lib._objc_msgSend_247( _id, _lib._sel_getLineStart_end_contentsEnd_forRange_1, startPtr, @@ -61764,7 +61900,7 @@ class NSString extends NSObject { } NSRange lineRangeForRange_(NSRange range) { - return _lib._objc_msgSend_232(_id, _lib._sel_lineRangeForRange_1, range); + return _lib._objc_msgSend_245(_id, _lib._sel_lineRangeForRange_1, range); } void getParagraphStart_end_contentsEnd_forRange_( @@ -61772,7 +61908,7 @@ class NSString extends NSObject { ffi.Pointer parEndPtr, ffi.Pointer contentsEndPtr, NSRange range) { - return _lib._objc_msgSend_234( + _lib._objc_msgSend_247( _id, _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, startPtr, @@ -61782,13 +61918,13 @@ class NSString extends NSObject { } NSRange paragraphRangeForRange_(NSRange range) { - return _lib._objc_msgSend_232( + return _lib._objc_msgSend_245( _id, _lib._sel_paragraphRangeForRange_1, range); } - void enumerateSubstringsInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock15 block) { - return _lib._objc_msgSend_235( + void enumerateSubstringsInRange_options_usingBlock_(NSRange range, int opts, + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { + _lib._objc_msgSend_248( _id, _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, range, @@ -61796,48 +61932,53 @@ class NSString extends NSObject { block._id); } - void enumerateLinesUsingBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_236( + void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { + _lib._objc_msgSend_249( _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); } ffi.Pointer get UTF8String { - return _lib._objc_msgSend_53(_id, _lib._sel_UTF8String1); + return _lib._objc_msgSend_57(_id, _lib._sel_UTF8String1); } - int get fastestEncoding { + DartNSUInteger get fastestEncoding { return _lib._objc_msgSend_12(_id, _lib._sel_fastestEncoding1); } - int get smallestEncoding { + DartNSUInteger get smallestEncoding { return _lib._objc_msgSend_12(_id, _lib._sel_smallestEncoding1); } - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_237(_id, + NSData? dataUsingEncoding_allowLossyConversion_( + DartNSUInteger encoding, bool lossy) { + final _ret = _lib._objc_msgSend_250(_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_(DartNSUInteger encoding) { final _ret = - _lib._objc_msgSend_238(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_251(_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_117( + bool canBeConvertedToEncoding_(DartNSUInteger encoding) { + return _lib._objc_msgSend_122( _id, _lib._sel_canBeConvertedToEncoding_1, encoding); } - ffi.Pointer cStringUsingEncoding_(int encoding) { - return _lib._objc_msgSend_239( + ffi.Pointer cStringUsingEncoding_(DartNSUInteger encoding) { + return _lib._objc_msgSend_252( _id, _lib._sel_cStringUsingEncoding_1, encoding); } - bool getCString_maxLength_encoding_( - ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_240( + bool getCString_maxLength_encoding_(ffi.Pointer buffer, + DartNSUInteger maxBufferCount, DartNSUInteger encoding) { + return _lib._objc_msgSend_253( _id, _lib._sel_getCString_maxLength_encoding_1, buffer, @@ -61847,13 +61988,13 @@ class NSString extends NSObject { bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( ffi.Pointer buffer, - int maxBufferCount, + DartNSUInteger maxBufferCount, ffi.Pointer usedBufferCount, - int encoding, + DartNSUInteger encoding, int options, NSRange range, NSRangePointer leftover) { - return _lib._objc_msgSend_241( + return _lib._objc_msgSend_254( _id, _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, buffer, @@ -61865,99 +62006,89 @@ class NSString extends NSObject { leftover); } - int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_114( + DartNSUInteger maximumLengthOfBytesUsingEncoding_(DartNSUInteger enc) { + return _lib._objc_msgSend_119( _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); } - int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_114( + DartNSUInteger lengthOfBytesUsingEncoding_(DartNSUInteger enc) { + return _lib._objc_msgSend_119( _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); } static ffi.Pointer getAvailableStringEncodings( NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( + return _lib._objc_msgSend_255( _lib._class_NSString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { + NativeCupertinoHttp _lib, DartNSUInteger encoding) { final _ret = _lib._objc_msgSend_15(_lib._class_NSString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + static DartNSUInteger getDefaultCStringEncoding(NativeCupertinoHttp _lib) { return _lib._objc_msgSend_12( _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); } - NSString? get decomposedStringWithCanonicalMapping { + NSString get decomposedStringWithCanonicalMapping { final _ret = _lib._objc_msgSend_32( _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 { + NSString get precomposedStringWithCanonicalMapping { final _ret = _lib._objc_msgSend_32( _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 { + NSString get decomposedStringWithCompatibilityMapping { final _ret = _lib._objc_msgSend_32( _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 { + NSString get precomposedStringWithCompatibilityMapping { final _ret = _lib._objc_msgSend_32( _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_159(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_256( + _id, _lib._sel_componentsSeparatedByString_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_243( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet separator) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_componentsSeparatedByCharactersInSet_1, separator._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_244(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + NSString stringByTrimmingCharactersInSet_(NSCharacterSet set) { + final _ret = _lib._objc_msgSend_258( + _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_245( + DartNSUInteger newLength, NSString padString, DartNSUInteger padIndex) { + final _ret = _lib._objc_msgSend_259( _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_246( + final _ret = _lib._objc_msgSend_260( _id, _lib._sel_stringByFoldingWithOptions_locale_1, options, @@ -61966,86 +62097,83 @@ class NSString extends NSObject { } NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, - int options, - NSRange searchRange) { - final _ret = _lib._objc_msgSend_247( + NSString target, NSString replacement, int options, NSRange searchRange) { + final _ret = _lib._objc_msgSend_261( _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_248( + NSString target, NSString replacement) { + final _ret = _lib._objc_msgSend_262( _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_249( + NSRange range, NSString replacement) { + final _ret = _lib._objc_msgSend_263( _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_250( - _id, _lib._sel_stringByApplyingTransform_reverse_1, transform, reverse); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? stringByApplyingTransform_reverse_( + DartNSStringTransform transform, bool reverse) { + final _ret = _lib._objc_msgSend_264(_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, - int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_251( + bool writeToURL_atomically_encoding_error_(NSURL url, bool useAuxiliaryFile, + DartNSUInteger enc, ffi.Pointer> error) { + return _lib._objc_msgSend_265( _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, + DartNSUInteger enc, ffi.Pointer> error) { - return _lib._objc_msgSend_252( + return _lib._objc_msgSend_266( _id, _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, useAuxiliaryFile, enc, error); } - NSString? get description { + NSString get description { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - int get hash { + DartNSUInteger get hash { return _lib._objc_msgSend_12(_id, _lib._sel_hash1); } NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_253( + ffi.Pointer characters, DartNSUInteger length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_267( _id, _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, characters, @@ -62055,166 +62183,186 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock17 deallocator) { - final _ret = _lib._objc_msgSend_254( + ffi.Pointer chars, + DartNSUInteger len, + ObjCBlock_ffiVoid_unichar_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_268( _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_255( + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269( _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_256( + NSString? initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_270( _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_42( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + NSString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithString_1, aString._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + NSString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithFormat_arguments_(NSString? format, va_list argList) { - final _ret = _lib._objc_msgSend_257( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); + NSString initWithFormat_arguments_(NSString format, va_list argList) { + final _ret = _lib._objc_msgSend_271( + _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_258(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); + NSString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_272(_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, va_list argList) { - final _ret = _lib._objc_msgSend_259( + NSString format, NSObject? locale, va_list argList) { + final _ret = _lib._objc_msgSend_273( _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 initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, + NSString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, + NSString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_261( + final _ret = _lib._objc_msgSend_275( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, + NSString? initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, va_list argList, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262( + final _ret = _lib._objc_msgSend_276( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, argList, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString + NSString? initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, va_list argList, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_263( + final _ret = _lib._objc_msgSend_277( _id, _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, argList, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_264(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? initWithData_encoding_(NSData data, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_278( + _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_265( + NSString? initWithBytes_length_encoding_(ffi.Pointer bytes, + DartNSUInteger len, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_279( _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_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_266( + NSString? initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, + DartNSUInteger len, + DartNSUInteger encoding, + bool freeBuffer) { + final _ret = _lib._objc_msgSend_280( _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, - ObjCBlock14 deallocator) { - final _ret = _lib._objc_msgSend_267( + DartNSUInteger len, + DartNSUInteger encoding, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_281( _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(NativeCupertinoHttp _lib) { @@ -62222,199 +62370,219 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + static NSString stringWithString_(NativeCupertinoHttp _lib, NSString string) { + final _ret = _lib._objc_msgSend_42( + _lib._class_NSString1, _lib._sel_stringWithString_1, string._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSString1, + static NSString stringWithCharacters_length_(NativeCupertinoHttp _lib, + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269(_lib._class_NSString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithUTF8String_( + static NSString? stringWithUTF8String_( NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSString1, + final _ret = _lib._objc_msgSend_270(_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_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + static NSString stringWithFormat_(NativeCupertinoHttp _lib, NSString format) { + final _ret = _lib._objc_msgSend_42( + _lib._class_NSString1, _lib._sel_stringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } static NSString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { + NativeCupertinoHttp _lib, NSString format) { final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + _lib._sel_localizedStringWithFormat_1, format._id); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( + static NSString? stringWithValidatedFormat_validFormatSpecifiers_error_( NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _lib._class_NSString1, _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString + static NSString? localizedStringWithValidatedFormat_validFormatSpecifiers_error_( NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _lib._class_NSString1, _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSString._(_ret, _lib, retain: true, release: true); + 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_268(_id, + NSString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_282(_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_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSString1, + static NSString? stringWithCString_encoding_(NativeCupertinoHttp _lib, + ffi.Pointer cString, DartNSUInteger enc) { + final _ret = _lib._objc_msgSend_282(_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_269( - _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, DartNSUInteger enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_283(_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_270( + NSString? initWithContentsOfFile_encoding_error_(NSString path, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284( _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_( + static NSString? stringWithContentsOfURL_encoding_error_( NativeCupertinoHttp _lib, - NSURL? url, - int enc, + NSURL url, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( + final _ret = _lib._objc_msgSend_283( _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_( + static NSString? stringWithContentsOfFile_encoding_error_( NativeCupertinoHttp _lib, - NSString? path, - int enc, + NSString path, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( + final _ret = _lib._objc_msgSend_284( _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, + NSString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( + final _ret = _lib._objc_msgSend_285( _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, + NSString? initWithContentsOfFile_usedEncoding_error_( + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_286( _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_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( + final _ret = _lib._objc_msgSend_285( _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_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_286( _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 + static DartNSUInteger stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( NativeCupertinoHttp _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( + return _lib._objc_msgSend_287( _lib._class_NSString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); @@ -62425,36 +62593,39 @@ class NSString extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_180( + NSDictionary? propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_288( _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() { - return _lib._objc_msgSend_53(_id, _lib._sel_cString1); + return _lib._objc_msgSend_57(_id, _lib._sel_cString1); } ffi.Pointer lossyCString() { - return _lib._objc_msgSend_53(_id, _lib._sel_lossyCString1); + return _lib._objc_msgSend_57(_id, _lib._sel_lossyCString1); } - int cStringLength() { + DartNSUInteger cStringLength() { return _lib._objc_msgSend_12(_id, _lib._sel_cStringLength1); } void getCString_(ffi.Pointer bytes) { - return _lib._objc_msgSend_274(_id, _lib._sel_getCString_1, bytes); + _lib._objc_msgSend_289(_id, _lib._sel_getCString_1, bytes); } - void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - return _lib._objc_msgSend_275( + void getCString_maxLength_( + ffi.Pointer bytes, DartNSUInteger maxLength) { + _lib._objc_msgSend_290( _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_276( + DartNSUInteger maxLength, NSRange aRange, NSRangePointer leftoverRange) { + _lib._objc_msgSend_291( _id, _lib._sel_getCString_maxLength_range_remainingRange_1, bytes, @@ -62463,112 +62634,137 @@ class NSString extends NSObject { leftoverRange); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_168( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } - NSObject initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_42( - _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_49( + _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_201( - _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_226(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49( + _lib._class_NSString1, _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226( + _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_( - ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_277( + NSObject? initWithCStringNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, DartNSUInteger length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_292( _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_268( + NSObject? initWithCString_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_282( _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_256(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_270(_id, _lib._sel_initWithCString_1, bytes); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSString1, + static NSObject? stringWithCString_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_282(_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_( NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( + final _ret = _lib._objc_msgSend_270( _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_278(_id, _lib._sel_getCharacters_1, buffer); + _lib._objc_msgSend_293(_id, _lib._sel_getCharacters_1, buffer); } /// Returns a new string made from the receiver by replacing all characters not in the allowedCharacters set with percent encoded characters. UTF-8 encoding is used to determine the correct percent encoded characters. Entire URL strings cannot be percent-encoded. This method is intended to percent-encode a URL component or subcomponent string, NOT the entire URL string. Any characters in allowedCharacters outside of the 7-bit ASCII range are ignored. - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_244( + NSString? stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet allowedCharacters) { + final _ret = _lib._objc_msgSend_294( _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); } /// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. NSString? get stringByRemovingPercentEncoding { final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_stringByRemovingPercentEncoding1); + _lib._objc_msgSend_55(_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_15( + NSString? stringByAddingPercentEscapesUsingEncoding_(DartNSUInteger enc) { + final _ret = _lib._objc_msgSend_295( _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_15( + NSString? stringByReplacingPercentEscapesUsingEncoding_(DartNSUInteger enc) { + final _ret = _lib._objc_msgSend_295( _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); } static NSString new1(NativeCupertinoHttp _lib) { @@ -62576,6 +62772,13 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: false, release: true); } + static NSString allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); return NSString._(_ret, _lib, retain: false, release: true); @@ -62587,6 +62790,7 @@ extension StringToNSString on String { } typedef unichar = ffi.UnsignedShort; +typedef Dartunichar = int; class NSCoder extends _ObjCWrapper { NSCoder._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -62687,128 +62891,98 @@ class NSCharacterSet extends NSObject { obj._lib._class_NSCharacterSet1); } - static NSCharacterSet? getControlCharacterSet(NativeCupertinoHttp _lib) { + static NSCharacterSet getControlCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getWhitespaceCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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( + static NSCharacterSet getWhitespaceAndNewlineCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_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(NativeCupertinoHttp _lib) { + static NSCharacterSet getDecimalDigitCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getLetterCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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( + static NSCharacterSet getLowercaseLetterCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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( + static NSCharacterSet getUppercaseLetterCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getNonBaseCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getAlphanumericCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getDecomposableCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getIllegalCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getPunctuationCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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( + static NSCharacterSet getCapitalizedLetterCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getSymbolCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getNewlineCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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_( @@ -62819,127 +62993,115 @@ class NSCharacterSet extends NSObject { } static NSCharacterSet characterSetWithCharactersInString_( - NativeCupertinoHttp _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString aString) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, aString._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } static NSCharacterSet characterSetWithBitmapRepresentation_( - NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_223( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_234(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, data._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet characterSetWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); + static NSCharacterSet? characterSetWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString fName) { + final _ret = _lib._objc_msgSend_235(_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_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSCharacterSet initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_236(_id, _lib._sel_initWithCoder_1, coder._id); return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_224( + bool characterIsMember_(Dartunichar aCharacter) { + return _lib._objc_msgSend_237( _id, _lib._sel_characterIsMember_1, aCharacter); } - NSData? get bitmapRepresentation { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_bitmapRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get bitmapRepresentation { + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_bitmapRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } - NSCharacterSet? get invertedSet { + NSCharacterSet get invertedSet { final _ret = _lib._objc_msgSend_28(_id, _lib._sel_invertedSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_225( + bool longCharacterIsMember_(DartUInt32 theLongChar) { + return _lib._objc_msgSend_238( _id, _lib._sel_longCharacterIsMember_1, theLongChar); } - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_226( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + bool isSupersetOfSet_(NSCharacterSet theOtherSet) { + return _lib._objc_msgSend_239( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet._id); } bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_227(_id, _lib._sel_hasMemberInPlane_1, thePlane); + return _lib._objc_msgSend_240(_id, _lib._sel_hasMemberInPlane_1, thePlane); } /// Returns a character set containing the characters allowed in a URL's user subcomponent. - static NSCharacterSet? getURLUserAllowedCharacterSet( + static NSCharacterSet getURLUserAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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); } /// Returns a character set containing the characters allowed in a URL's password subcomponent. - static NSCharacterSet? getURLPasswordAllowedCharacterSet( + static NSCharacterSet getURLPasswordAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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); } /// Returns a character set containing the characters allowed in a URL's host subcomponent. - static NSCharacterSet? getURLHostAllowedCharacterSet( + static NSCharacterSet getURLHostAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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); } /// Returns a character set containing the characters allowed in a URL's path component. ';' is a legal path character, but it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). - static NSCharacterSet? getURLPathAllowedCharacterSet( + static NSCharacterSet getURLPathAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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); } /// Returns a character set containing the characters allowed in a URL's query component. - static NSCharacterSet? getURLQueryAllowedCharacterSet( + static NSCharacterSet getURLQueryAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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); } /// Returns a character set containing the characters allowed in a URL's fragment component. - static NSCharacterSet? getURLFragmentAllowedCharacterSet( + static NSCharacterSet getURLFragmentAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _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(NativeCupertinoHttp _lib) { @@ -62948,6 +63110,13 @@ class NSCharacterSet extends NSObject { return NSCharacterSet._(_ret, _lib, retain: false, release: true); } + static NSCharacterSet allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); @@ -62978,7 +63147,7 @@ class NSData extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); } - int get length { + DartNSUInteger get length { return _lib._objc_msgSend_12(_id, _lib._sel_length1); } @@ -62989,26 +63158,21 @@ class NSData extends NSObject { return _lib._objc_msgSend_31(_id, _lib._sel_bytes1); } - NSString? get description { + NSString get description { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - void getBytes_length_(ffi.Pointer buffer, int length) { - return _lib._objc_msgSend_33( - _id, _lib._sel_getBytes_length_1, buffer, length); + void getBytes_length_(ffi.Pointer buffer, DartNSUInteger length) { + _lib._objc_msgSend_33(_id, _lib._sel_getBytes_length_1, buffer, length); } void getBytes_range_(ffi.Pointer buffer, NSRange range) { - return _lib._objc_msgSend_34( - _id, _lib._sel_getBytes_range_1, buffer, range); + _lib._objc_msgSend_34(_id, _lib._sel_getBytes_range_1, buffer, range); } - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_35( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + bool isEqualToData_(NSData other) { + return _lib._objc_msgSend_35(_id, _lib._sel_isEqualToData_1, other._id); } NSData subdataWithRange_(NSRange range) { @@ -63017,38 +63181,39 @@ class NSData extends NSObject { return NSData._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } /// the atomically flag is ignored if the url is not of a type the supports atomic writes - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_168( + _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_208(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_218(_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_209(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + return _lib._objc_msgSend_219(_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_210(_id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); + NSData dataToFind, int mask, NSRange searchRange) { + return _lib._objc_msgSend_220(_id, _lib._sel_rangeOfData_options_range_1, + dataToFind._id, mask, searchRange); } /// 'block' is called once for each contiguous region of memory in the receiver (once total for contiguous NSDatas), until either all bytes have been enumerated, or the 'stop' parameter is set to YES. - void enumerateByteRangesUsingBlock_(ObjCBlock13 block) { - return _lib._objc_msgSend_211( + void enumerateByteRangesUsingBlock_( + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_221( _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); } @@ -63057,16 +63222,16 @@ class NSData extends NSObject { return NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithBytes_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212( + static NSData dataWithBytes_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithBytesNoCopy_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSData1, + static NSData dataWithBytesNoCopy_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222(_lib._class_NSData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSData._(_ret, _lib, retain: false, release: true); } @@ -63074,202 +63239,233 @@ class NSData extends NSObject { static NSData dataWithBytesNoCopy_length_freeWhenDone_( NativeCupertinoHttp _lib, ffi.Pointer bytes, - int length, + DartNSUInteger length, bool b) { - final _ret = _lib._objc_msgSend_213(_lib._class_NSData1, + final _ret = _lib._objc_msgSend_223(_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_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( + final _ret = _lib._objc_msgSend_224( _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_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( + final _ret = _lib._objc_msgSend_225( _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_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49( + _lib._class_NSData1, _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + static NSData? dataWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226( + _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_212( + NSData initWithBytes_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( _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_212( + NSData initWithBytesNoCopy_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( _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_213(_id, + ffi.Pointer bytes, DartNSUInteger length, bool b) { + final _ret = _lib._objc_msgSend_223(_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, ObjCBlock14 deallocator) { - final _ret = _lib._objc_msgSend_216( + ffi.Pointer bytes, + DartNSUInteger length, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_227( _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_214( + final _ret = _lib._objc_msgSend_224( _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_215( + final _ret = _lib._objc_msgSend_225( _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_42( - _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_49( + _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_201( - _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_226(_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_217( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_228(_id, _lib._sel_initWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } - static NSData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSData dataWithData_(NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSData1, _lib._sel_dataWithData_1, data._id); return NSData._(_ret, _lib, retain: true, release: true); } /// Create an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64. - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_218( + NSData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_229( _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); } /// Create a Base-64 encoded NSString from the receiver's contents using the given options. NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_219( + final _ret = _lib._objc_msgSend_230( _id, _lib._sel_base64EncodedStringWithOptions_1, options); return NSString._(_ret, _lib, retain: true, release: true); } /// Create an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64. - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_220( - _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_231(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } /// Create a Base-64, UTF-8 encoded NSData from the receiver's contents using the given options. NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_221( + final _ret = _lib._objc_msgSend_232( _id, _lib._sel_base64EncodedDataWithOptions_1, options); return NSData._(_ret, _lib, retain: true, release: true); } /// These methods return a compressed or decompressed version of the receiver using the specified algorithm. - NSData decompressedDataUsingAlgorithm_error_( + NSData? decompressedDataUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_222(_id, + final _ret = _lib._objc_msgSend_233(_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_222( + final _ret = _lib._objc_msgSend_233( _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_59(_id, _lib._sel_getBytes_1, buffer); + _lib._objc_msgSend_64(_id, _lib._sel_getBytes_1, buffer); } - static NSObject dataWithContentsOfMappedFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? dataWithContentsOfMappedFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_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_42(_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_49( + _id, _lib._sel_initWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } /// These methods first appeared in NSData.h on OS X 10.9 and iOS 7.0. They are deprecated in the same releases in favor of the methods in the NSDataBase64Encoding category. However, these methods have existed for several releases, so they may be used for applications targeting releases prior to OS X 10.9 and iOS 7.0. - NSObject initWithBase64Encoding_(NSString? base64String) { - final _ret = _lib._objc_msgSend_42(_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_49( + _id, _lib._sel_initWithBase64Encoding_1, base64String._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSString base64Encoding() { @@ -63277,11 +63473,24 @@ class NSData extends NSObject { 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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); return NSData._(_ret, _lib, retain: false, release: true); } + static NSData allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); return NSData._(_ret, _lib, retain: false, release: true); @@ -63312,62 +63521,61 @@ class NSURL extends NSObject { } /// this call percent-encodes both the host and path, so this cannot be used to set a username/password or port in the hostname part or with a IPv6 '[...]' type address. NSURLComponents handles IPv6 addresses correctly. - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { + NSURL? initWithScheme_host_path_( + NSString scheme, NSString? host, NSString path) { final _ret = _lib._objc_msgSend_38( _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); } /// Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL. NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { + NSString path, bool isDir, NSURL? baseURL) { final _ret = _lib._objc_msgSend_39( _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); } /// Better to use initFileURLWithPath:isDirectory:relativeToURL: if you know if the path is a directory vs non-directory, as it saves an I/O. - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { + NSURL initFileURLWithPath_relativeToURL_(NSString path, NSURL? baseURL) { final _ret = _lib._objc_msgSend_40( _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) { + NSURL initFileURLWithPath_isDirectory_(NSString path, bool isDir) { final _ret = _lib._objc_msgSend_41( - _id, - _lib._sel_initFileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + _id, _lib._sel_initFileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } /// Better to use initFileURLWithPath:isDirectory: if you know if the path is a directory vs non-directory, as it saves an i/o. - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + NSURL initFileURLWithPath_(NSString path) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initFileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } /// Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL. static NSURL fileURLWithPath_isDirectory_relativeToURL_( - NativeCupertinoHttp _lib, NSString? path, bool isDir, NSURL? baseURL) { + NativeCupertinoHttp _lib, NSString path, bool isDir, NSURL? baseURL) { final _ret = _lib._objc_msgSend_43( _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); @@ -63375,29 +63583,26 @@ class NSURL extends NSObject { /// Better to use fileURLWithPath:isDirectory:relativeToURL: if you know if the path is a directory vs non-directory, as it saves an I/O. static NSURL fileURLWithPath_relativeToURL_( - NativeCupertinoHttp _lib, NSString? path, NSURL? baseURL) { + NativeCupertinoHttp _lib, NSString path, NSURL? baseURL) { final _ret = _lib._objc_msgSend_44( _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_( - NativeCupertinoHttp _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_45( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); + NativeCupertinoHttp _lib, NSString path, bool isDir) { + final _ret = _lib._objc_msgSend_45(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, path._id, isDir); return NSURL._(_ret, _lib, retain: true, release: true); } /// Better to use fileURLWithPath:isDirectory: if you know if the path is a directory vs non-directory, as it saves an i/o. - static NSURL fileURLWithPath_(NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_46(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + static NSURL fileURLWithPath_(NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_46( + _lib._class_NSURL1, _lib._sel_fileURLWithPath_1, path._id); return NSURL._(_ret, _lib, retain: true, release: true); } @@ -63429,107 +63634,152 @@ class NSURL extends NSObject { } /// These methods expect their string arguments to contain any percent escape codes that are necessary. It is an error for URLString to be nil. - NSURL initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_42( - _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_49(_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_40( + NSURL? initWithString_relativeToURL_(NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_50( _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_(NativeCupertinoHttp _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSURL1, - _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? URLWithString_(NativeCupertinoHttp _lib, NSString URLString) { + final _ret = _lib._objc_msgSend_49( + _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_( - NativeCupertinoHttp _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_40( + static NSURL? URLWithString_relativeToURL_( + NativeCupertinoHttp _lib, NSString URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_50( _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); + } + + /// Initializes an `NSURL` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. + /// If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. + /// If `encodingInvalidCharacters` is true, `NSURL` will try to encode the string to create a valid URL. + /// If the URL string is still invalid after encoding, `nil` is returned. + /// + /// - Parameter URLString: The URL string. + /// - Parameter encodingInvalidCharacters: True if `NSURL` should try to encode an invalid URL string, false otherwise. + /// - Returns: An `NSURL` instance for a valid URL, or `nil` if the URL is invalid. + NSURL? initWithString_encodingInvalidCharacters_( + NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_51( + _id, + _lib._sel_initWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + /// Initializes and returns a newly created `NSURL` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. + /// If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. + /// If `encodingInvalidCharacters` is true, `NSURL` will try to encode the string to create a valid URL. + /// If the URL string is still invalid after encoding, `nil` is returned. + /// + /// - Parameter URLString: The URL string. + /// - Parameter encodingInvalidCharacters: True if `NSURL` should try to encode an invalid URL string, false otherwise. + /// - Returns: An `NSURL` instance for a valid URL, or `nil` if the URL is invalid. + static NSURL? URLWithString_encodingInvalidCharacters_( + NativeCupertinoHttp _lib, + NSString URLString, + bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_51( + _lib._class_NSURL1, + _lib._sel_URLWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } /// Initializes a newly created NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_49( + NSURL initWithDataRepresentation_relativeToURL_(NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_52( _id, _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } /// Initializes and returns a newly created NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. static NSURL URLWithDataRepresentation_relativeToURL_( - NativeCupertinoHttp _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_50( + NativeCupertinoHttp _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_53( _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); } /// Initializes a newly created absolute NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_49( + NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_52( _id, _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, + data._id, baseURL?._id ?? ffi.nullptr); return NSURL._(_ret, _lib, retain: true, release: true); } /// Initializes and returns a newly created absolute NSURL using the contents of the given data, relative to a base URL. If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected. static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - NativeCupertinoHttp _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_50( + NativeCupertinoHttp _lib, NSData data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_53( _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); } /// Returns the data representation of the URL's relativeString. If the URL was initialized with -initWithData:relativeToURL:, the data representation returned are the same bytes as those used at initialization; otherwise, the data representation returned are the bytes of the relativeString encoded with NSUTF8StringEncoding. - NSData? get dataRepresentation { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_dataRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get dataRepresentation { + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_dataRepresentation1); + return NSData._(_ret, _lib, retain: true, release: true); } NSString? get absoluteString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_absoluteString1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_absoluteString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } /// The relative portion of a URL. If baseURL is nil, or if the receiver is itself absolute, this is the same as absoluteString - NSString? get relativeString { + NSString get relativeString { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_relativeString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } /// may be nil. NSURL? get baseURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_baseURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_baseURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -63537,7 +63787,7 @@ class NSURL extends NSObject { /// if the receiver is itself absolute, this will return self. NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_absoluteURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_absoluteURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -63545,14 +63795,14 @@ class NSURL extends NSObject { /// Any URL is composed of these two basic pieces. The full URL would be the concatenation of [myURL scheme], ':', [myURL resourceSpecifier] NSString? get scheme { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_scheme1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_scheme1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_resourceSpecifier1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_resourceSpecifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -63560,56 +63810,56 @@ class NSURL extends NSObject { /// If the URL conforms to rfc 1808 (the most common form of URL), the following accessors will return the various components; otherwise they return nil. The litmus test for conformance is as recommended in RFC 1808 - whether the first two characters of resourceSpecifier is @"//". In all cases, they return the component's value after resolving the receiver against its base URL. NSString? get host { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_host1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_host1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSNumber? get port { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_port1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_port1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } NSString? get user { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get password { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get path { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_path1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_path1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get fragment { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fragment1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_fragment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get parameterString { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_parameterString1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_parameterString1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get query { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_query1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_query1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -63617,7 +63867,7 @@ class NSURL extends NSObject { /// The same as path if baseURL is nil NSString? get relativePath { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_relativePath1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_relativePath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -63630,8 +63880,8 @@ class NSURL extends NSObject { /// Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. bool getFileSystemRepresentation_maxLength_( - ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_90( + ffi.Pointer buffer, DartNSUInteger maxBufferLength) { + return _lib._objc_msgSend_95( _id, _lib._sel_getFileSystemRepresentation_maxLength_1, buffer, @@ -63640,7 +63890,7 @@ class NSURL extends NSObject { /// Returns the URL's path in file system representation. File system representation is a null-terminated C string with canonical UTF-8 encoding. The returned C string will be automatically freed just as a returned object would be released; your code should copy the representation or use getFileSystemRepresentation:maxLength: if it needs to store the representation outside of the autorelease context in which the representation is created. ffi.Pointer get fileSystemRepresentation { - return _lib._objc_msgSend_53(_id, _lib._sel_fileSystemRepresentation1); + return _lib._objc_msgSend_57(_id, _lib._sel_fileSystemRepresentation1); } /// Whether the scheme is file:; if [myURL isFileURL] is YES, then [myURL path] is suitable for input into NSFileManager or NSPathUtilities. @@ -63649,33 +63899,28 @@ class NSURL extends NSObject { } NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_standardizedURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_standardizedURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - /// Returns whether the URL's resource exists and is reachable. This method synchronously checks if the resource's backing store is reachable. Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file or copying resource properties, it is more efficient to simply try the operation and handle failures. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. For other URL types, NO is returned. Symbol is present in iOS 4, but performs no operation. - bool checkResourceIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_183( - _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); - } - /// Returns whether the URL is a file reference URL. Symbol is present in iOS 4, but performs no operation. bool isFileReferenceURL() { return _lib._objc_msgSend_11(_id, _lib._sel_isFileReferenceURL1); } /// Returns a file reference URL that refers to the same resource as a specified file URL. File reference URLs use a URL path syntax that identifies a file system object by reference, not by path. This form of file URL remains valid when the file system path of the URL’s underlying resource changes. An error will occur if the url parameter is not a file URL. File reference URLs cannot be created to file system objects which do not exist or are not reachable. In some areas of the file system hierarchy, file reference URLs cannot be generated to the leaf node of the URL path. A file reference URL's path should never be persistently stored because is not valid across system restarts, and across remounts of volumes -- if you want to create a persistent reference to a file system object, use a bookmark (see -bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:). Symbol is present in iOS 4, but performs no operation. - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); + NSURL? fileReferenceURL() { + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_fileReferenceURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } /// Returns a file path URL that refers to the same resource as a specified URL. File path URLs use a file system style path. An error will occur if the url parameter is not a file URL. A file reference URL's resource must exist and be reachable to be converted to a file path URL. Symbol is present in iOS 4, but performs no operation. NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_filePathURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_filePathURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -63684,173 +63929,188 @@ class NSURL extends NSObject { /// Returns the resource value identified by a given resource key. This method first checks if the URL object already caches the resource value. If so, it returns the cached resource value to the caller. If not, then this method synchronously obtains the resource value from the backing store, adds the resource value to the URL object's cache, and returns the resource value to the caller. The type of the resource value varies by resource property (see resource key definitions). If this method returns YES and value is populated with nil, it means the resource property is not available for the specified resource and no errors occurred when determining the resource property was not available. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. bool getResourceValue_forKey_error_( ffi.Pointer> value, - NSURLResourceKey key, + DartNSURLResourceKey key, ffi.Pointer> error) { - return _lib._objc_msgSend_184( - _id, _lib._sel_getResourceValue_forKey_error_1, value, key, error); + return _lib._objc_msgSend_191( + _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); } /// Returns the resource values identified by specified array of resource keys. This method first checks if the URL object already caches the resource values. If so, it returns the cached resource values to the caller. If not, then this method synchronously obtains the resource values from the backing store, adds the resource values to the URL object's cache, and returns the resource values to the caller. The type of the resource values vary by property (see resource key definitions). If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available for the specified resource and no errors occurred when determining those resource properties were not available. If this method returns NULL, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. - NSDictionary resourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_185( - _id, - _lib._sel_resourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary? resourceValuesForKeys_error_( + NSArray keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_192( + _id, _lib._sel_resourceValuesForKeys_error_1, keys._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } /// Sets the resource value identified by a given resource key. This method writes the new resource value out to the backing store. Attempts to set a read-only resource property or to set a resource property not supported by the resource are ignored and are not considered errors. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. - bool setResourceValue_forKey_error_(NSObject value, NSURLResourceKey key, + bool setResourceValue_forKey_error_(NSObject? value, DartNSURLResourceKey key, ffi.Pointer> error) { - return _lib._objc_msgSend_186( - _id, _lib._sel_setResourceValue_forKey_error_1, value._id, key, error); + return _lib._objc_msgSend_193( + _id, + _lib._sel_setResourceValue_forKey_error_1, + value?._id ?? ffi.nullptr, + key._id, + error); } /// Sets any number of resource values of a URL's resource. This method writes the new resource values out to the backing store. Attempts to set read-only resource properties or to set resource properties not supported by the resource are ignored and are not considered errors. If an error occurs after some resource properties have been successfully changed, the userInfo dictionary in the returned error contains an array of resource keys that were not set with the key kCFURLKeysOfUnsetValuesKey. The order in which the resource values are set is not defined. If you need to guarantee the order resource values are set, you should make multiple requests to this method or to -setResourceValue:forKey:error: to guarantee the order. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation. bool setResourceValues_error_( - NSDictionary? keyedValues, ffi.Pointer> error) { - return _lib._objc_msgSend_187(_id, _lib._sel_setResourceValues_error_1, - keyedValues?._id ?? ffi.nullptr, error); + NSDictionary keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_194( + _id, _lib._sel_setResourceValues_error_1, keyedValues._id, error); } /// Removes the cached resource value identified by a given resource value key from the URL object. Removing a cached resource value may remove other cached resource values because some resource values are cached as a set of values, and because some resource values depend on other resource values (temporary resource values have no dependencies). This method is currently applicable only to URLs for file system resources. - void removeCachedResourceValueForKey_(NSURLResourceKey key) { - return _lib._objc_msgSend_188( - _id, _lib._sel_removeCachedResourceValueForKey_1, key); + void removeCachedResourceValueForKey_(DartNSURLResourceKey key) { + _lib._objc_msgSend_195( + _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); } /// Removes all cached resource values and all temporary resource values from the URL object. This method is currently applicable only to URLs for file system resources. void removeAllCachedResourceValues() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); } - /// NS_SWIFT_SENDABLE - void setTemporaryResourceValue_forKey_(NSObject value, NSURLResourceKey key) { - return _lib._objc_msgSend_189( - _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key); + /// Sets a temporary resource value on the URL object. Temporary resource values are for client use. Temporary resource values exist only in memory and are never written to the resource's backing store. Once set, a temporary resource value can be copied from the URL object with -getResourceValue:forKey:error: or -resourceValuesForKeys:error:. To remove a temporary resource value from the URL object, use -removeCachedResourceValueForKey:. Care should be taken to ensure the key that identifies a temporary resource value is unique and does not conflict with system defined keys (using reverse domain name notation in your temporary resource value keys is recommended). This method is currently applicable only to URLs for file system resources. + void setTemporaryResourceValue_forKey_( + NSObject? value, DartNSURLResourceKey key) { + _lib._objc_msgSend_196(_id, _lib._sel_setTemporaryResourceValue_forKey_1, + value?._id ?? ffi.nullptr, key._id); } /// Returns bookmark data for the URL, created with specified options and resource values. If this method returns nil, the optional error is populated. - NSData + NSData? bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( int options, NSArray? keys, NSURL? relativeURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_190( + final _ret = _lib._objc_msgSend_197( _id, _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, options, keys?._id ?? ffi.nullptr, relativeURL?._id ?? ffi.nullptr, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } /// Initializes a newly created NSURL that refers to a location specified by resolving bookmark data. If this method returns nil, the optional error is populated. - NSURL + NSURL? initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData? bookmarkData, + NSData bookmarkData, int options, NSURL? relativeURL, ffi.Pointer isStale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_191( + final _ret = _lib._objc_msgSend_198( _id, _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, + bookmarkData._id, options, relativeURL?._id ?? ffi.nullptr, isStale, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } /// Creates and Initializes an NSURL that refers to a location specified by resolving bookmark data. If this method returns nil, the optional error is populated. - static NSURL + static NSURL? URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( NativeCupertinoHttp _lib, - NSData? bookmarkData, + NSData bookmarkData, int options, NSURL? relativeURL, ffi.Pointer isStale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_191( + final _ret = _lib._objc_msgSend_198( _lib._class_NSURL1, _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, + bookmarkData._id, options, relativeURL?._id ?? ffi.nullptr, isStale, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } /// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available in the bookmark data. - static NSDictionary resourceValuesForKeys_fromBookmarkData_( - NativeCupertinoHttp _lib, NSArray? keys, NSData? bookmarkData) { - final _ret = _lib._objc_msgSend_192( + static NSDictionary? resourceValuesForKeys_fromBookmarkData_( + NativeCupertinoHttp _lib, NSArray keys, NSData bookmarkData) { + final _ret = _lib._objc_msgSend_199( _lib._class_NSURL1, _lib._sel_resourceValuesForKeys_fromBookmarkData_1, - keys?._id ?? ffi.nullptr, - bookmarkData?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + keys._id, + bookmarkData._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } /// Creates an alias file on disk at a specified location with specified bookmark data. bookmarkData must have been created with the NSURLBookmarkCreationSuitableForBookmarkFile option. bookmarkFileURL must either refer to an existing file (which will be overwritten), or to location in an existing directory. If this method returns NO, the optional error is populated. static bool writeBookmarkData_toURL_options_error_( NativeCupertinoHttp _lib, - NSData? bookmarkData, - NSURL? bookmarkFileURL, - int options, + NSData bookmarkData, + NSURL bookmarkFileURL, + DartNSUInteger options, ffi.Pointer> error) { - return _lib._objc_msgSend_193( + return _lib._objc_msgSend_200( _lib._class_NSURL1, _lib._sel_writeBookmarkData_toURL_options_error_1, - bookmarkData?._id ?? ffi.nullptr, - bookmarkFileURL?._id ?? ffi.nullptr, + bookmarkData._id, + bookmarkFileURL._id, options, error); } /// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. If bookmarkFileURL refers to an alias file created prior to OS X v10.6 that contains Alias Manager information but no bookmark data, this method synthesizes bookmark data for the file. If this method returns nil, the optional error is populated. - static NSData bookmarkDataWithContentsOfURL_error_(NativeCupertinoHttp _lib, - NSURL? bookmarkFileURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_194( + static NSData? bookmarkDataWithContentsOfURL_error_(NativeCupertinoHttp _lib, + NSURL bookmarkFileURL, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_201( _lib._class_NSURL1, _lib._sel_bookmarkDataWithContentsOfURL_error_1, - bookmarkFileURL?._id ?? ffi.nullptr, + bookmarkFileURL._id, error); - return NSData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } /// Creates and initializes a NSURL that refers to the location specified by resolving the alias file at url. If the url argument does not refer to an alias file as defined by the NSURLIsAliasFileKey property, the NSURL returned is the same as url argument. This method fails and returns nil if the url argument is unreachable, or if the original file or directory could not be located or is not reachable, or if the original file or directory is on a volume that could not be located or mounted. If this method fails, the optional error is populated. The NSURLBookmarkResolutionWithSecurityScope option is not supported by this method. - static NSURL URLByResolvingAliasFileAtURL_options_error_( + static NSURL? URLByResolvingAliasFileAtURL_options_error_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_195( + final _ret = _lib._objc_msgSend_202( _lib._class_NSURL1, _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, options, error); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - /// Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted). + /// Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. Each call to startAccessingSecurityScopedResource that returns YES must be balanced with a call to stopAccessingSecurityScopedResource when access to this resource is no longer needed by the client. Calls to start and stop accessing the resource are reference counted and may be nested, which allows the pair of calls to be logically scoped. bool startAccessingSecurityScopedResource() { return _lib._objc_msgSend_11( _id, _lib._sel_startAccessingSecurityScopedResource1); } - /// Revokes the access granted to the url by a prior successful call to startAccessingSecurityScopedResource. + /// Removes one "accessing" reference to the security scope. When all references are removed, it revokes the access granted to the url by the initial prior successful call to startAccessingSecurityScopedResource. void stopAccessingSecurityScopedResource() { - return _lib._objc_msgSend_1( - _id, _lib._sel_stopAccessingSecurityScopedResource1); + _lib._objc_msgSend_1(_id, _lib._sel_stopAccessingSecurityScopedResource1); } /// Get resource values from URLs of 'promised' items. A promised item is not guaranteed to have its contents in the file system until you use NSFileCoordinator to perform a coordinated read on its URL, which causes the contents to be downloaded or otherwise generated. Promised item URLs are returned by various APIs, including currently: @@ -63865,106 +64125,115 @@ class NSURL extends NSObject { /// Most of the NSURL resource value keys will work with these APIs. However, there are some that are tied to the item's contents that will not work, such as NSURLContentAccessDateKey or NSURLGenerationIdentifierKey. If one of these keys is used, the method will return YES, but the value for the key will be nil. bool getPromisedItemResourceValue_forKey_error_( ffi.Pointer> value, - NSURLResourceKey key, + DartNSURLResourceKey key, ffi.Pointer> error) { - return _lib._objc_msgSend_184( + return _lib._objc_msgSend_191( _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_185( - _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_192(_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_183( + return _lib._objc_msgSend_203( _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); } /// The following methods work on the path portion of a URL in the same manner that the NSPathUtilities methods on NSString do. - static NSURL fileURLWithPathComponents_( - NativeCupertinoHttp _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_196(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSURL? fileURLWithPathComponents_( + NativeCupertinoHttp _lib, NSArray components) { + final _ret = _lib._objc_msgSend_204(_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_162(_id, _lib._sel_pathComponents1); + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_pathComponents1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_lastPathComponent1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_lastPathComponent1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get pathExtension { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_pathExtension1); + final _ret = _lib._objc_msgSend_55(_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_46( - _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_205( + _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_45( + NSURL? URLByAppendingPathComponent_isDirectory_( + NSString pathComponent, bool isDirectory) { + final _ret = _lib._objc_msgSend_206( _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_52(_id, _lib._sel_URLByDeletingLastPathComponent1); + _lib._objc_msgSend_56(_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_46( - _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_205( + _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_52(_id, _lib._sel_URLByDeletingPathExtension1); + _lib._objc_msgSend_56(_id, _lib._sel_URLByDeletingPathExtension1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } - /// The following methods work only on `file:` scheme URLs; for non-`file:` scheme URLs, these methods return the URL unchanged. + /// Returns whether the URL's resource exists and is reachable. This method synchronously checks if the resource's backing store is reachable. Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file or copying resource properties, it is more efficient to simply try the operation and handle failures. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. For other URL types, NO is returned. Symbol is present in iOS 4, but performs no operation. + bool checkResourceIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_203( + _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); + } + NSURL? get URLByStandardizingPath { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URLByStandardizingPath1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_URLByStandardizingPath1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -63972,51 +64241,62 @@ class NSURL extends NSObject { NSURL? get URLByResolvingSymlinksInPath { final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_URLByResolvingSymlinksInPath1); + _lib._objc_msgSend_56(_id, _lib._sel_URLByResolvingSymlinksInPath1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } /// Blocks to load the data if necessary. If shouldUseCache is YES, then if an equivalent URL has already been loaded and cached, its resource data will be returned immediately. If shouldUseCache is NO, a new load will be started - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_197( + NSData? resourceDataUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_207( _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); } /// Starts an asynchronous load of the data, registering delegate to receive notification. Only one such background load can proceed at a time. void loadResourceDataNotifyingClient_usingCache_( NSObject client, bool shouldUseCache) { - return _lib._objc_msgSend_198( + _lib._objc_msgSend_208( _id, _lib._sel_loadResourceDataNotifyingClient_usingCache_1, client._id, shouldUseCache); } - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_42( - _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_49(_id, _lib._sel_propertyForKey_1, propertyKey._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } /// These attempt to write the given arguments for the resource specified by the URL; they return success or failure - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_35( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); + bool setResourceData_(NSData data) { + return _lib._objc_msgSend_35(_id, _lib._sel_setResourceData_1, data._id); } - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_199(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); + bool setProperty_forKey_(NSObject property, NSString propertyKey) { + return _lib._objc_msgSend_209( + _id, _lib._sel_setProperty_forKey_1, property._id, propertyKey._id); } /// Sophisticated clients will want to ask for this, then message the handle directly. If shouldUseCache is NO, a newly instantiated handle is returned, even if an equivalent URL has been loaded - NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_207( + NSURLHandle? URLHandleUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_217( _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(NativeCupertinoHttp _lib) { @@ -64024,6 +64304,13 @@ class NSURL extends NSObject { return NSURL._(_ret, _lib, retain: false, release: true); } + static NSURL allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); return NSURL._(_ret, _lib, retain: false, release: true); @@ -64054,120 +64341,122 @@ class NSNumber extends NSValue { } @override - NSNumber initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _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_14(_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_62(_id, _lib._sel_initWithChar_1, value); + final _ret = _lib._objc_msgSend_67(_id, _lib._sel_initWithChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedChar_(int value) { final _ret = - _lib._objc_msgSend_63(_id, _lib._sel_initWithUnsignedChar_1, value); + _lib._objc_msgSend_68(_id, _lib._sel_initWithUnsignedChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_initWithShort_1, value); + final _ret = _lib._objc_msgSend_69(_id, _lib._sel_initWithShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedShort_(int value) { final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_initWithUnsignedShort_1, value); + _lib._objc_msgSend_70(_id, _lib._sel_initWithUnsignedShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_66(_id, _lib._sel_initWithInt_1, value); + final _ret = _lib._objc_msgSend_71(_id, _lib._sel_initWithInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedInt_(int value) { final _ret = - _lib._objc_msgSend_67(_id, _lib._sel_initWithUnsignedInt_1, value); + _lib._objc_msgSend_72(_id, _lib._sel_initWithUnsignedInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_68(_id, _lib._sel_initWithLong_1, value); + final _ret = _lib._objc_msgSend_73(_id, _lib._sel_initWithLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLong_(int value) { final _ret = - _lib._objc_msgSend_69(_id, _lib._sel_initWithUnsignedLong_1, value); + _lib._objc_msgSend_74(_id, _lib._sel_initWithUnsignedLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLongLong_(int value) { final _ret = - _lib._objc_msgSend_70(_id, _lib._sel_initWithLongLong_1, value); + _lib._objc_msgSend_75(_id, _lib._sel_initWithLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLongLong_(int value) { final _ret = - _lib._objc_msgSend_71(_id, _lib._sel_initWithUnsignedLongLong_1, value); + _lib._objc_msgSend_76(_id, _lib._sel_initWithUnsignedLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_initWithFloat_1, value); + final _ret = _lib._objc_msgSend_77(_id, _lib._sel_initWithFloat_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_73(_id, _lib._sel_initWithDouble_1, value); + final _ret = _lib._objc_msgSend_78(_id, _lib._sel_initWithDouble_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_74(_id, _lib._sel_initWithBool_1, value); + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_initWithBool_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } - NSNumber initWithInteger_(int value) { - final _ret = _lib._objc_msgSend_68(_id, _lib._sel_initWithInteger_1, value); + NSNumber initWithInteger_(DartNSInteger value) { + final _ret = _lib._objc_msgSend_73(_id, _lib._sel_initWithInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } - NSNumber initWithUnsignedInteger_(int value) { + NSNumber initWithUnsignedInteger_(DartNSUInteger value) { final _ret = - _lib._objc_msgSend_69(_id, _lib._sel_initWithUnsignedInteger_1, value); + _lib._objc_msgSend_74(_id, _lib._sel_initWithUnsignedInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } int get charValue { - return _lib._objc_msgSend_75(_id, _lib._sel_charValue1); + return _lib._objc_msgSend_80(_id, _lib._sel_charValue1); } int get unsignedCharValue { - return _lib._objc_msgSend_76(_id, _lib._sel_unsignedCharValue1); + return _lib._objc_msgSend_81(_id, _lib._sel_unsignedCharValue1); } int get shortValue { - return _lib._objc_msgSend_77(_id, _lib._sel_shortValue1); + return _lib._objc_msgSend_82(_id, _lib._sel_shortValue1); } int get unsignedShortValue { - return _lib._objc_msgSend_78(_id, _lib._sel_unsignedShortValue1); + return _lib._objc_msgSend_83(_id, _lib._sel_unsignedShortValue1); } int get intValue { - return _lib._objc_msgSend_79(_id, _lib._sel_intValue1); + return _lib._objc_msgSend_84(_id, _lib._sel_intValue1); } int get unsignedIntValue { - return _lib._objc_msgSend_80(_id, _lib._sel_unsignedIntValue1); + return _lib._objc_msgSend_85(_id, _lib._sel_unsignedIntValue1); } int get longValue { - return _lib._objc_msgSend_81(_id, _lib._sel_longValue1); + return _lib._objc_msgSend_86(_id, _lib._sel_longValue1); } int get unsignedLongValue { @@ -64175,188 +64464,210 @@ class NSNumber extends NSValue { } int get longLongValue { - return _lib._objc_msgSend_82(_id, _lib._sel_longLongValue1); + return _lib._objc_msgSend_87(_id, _lib._sel_longLongValue1); } int get unsignedLongLongValue { - return _lib._objc_msgSend_83(_id, _lib._sel_unsignedLongLongValue1); + return _lib._objc_msgSend_88(_id, _lib._sel_unsignedLongLongValue1); } double get floatValue { - return _lib._objc_msgSend_84(_id, _lib._sel_floatValue1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_89_fpret(_id, _lib._sel_floatValue1) + : _lib._objc_msgSend_89(_id, _lib._sel_floatValue1); } double get doubleValue { - return _lib._objc_msgSend_85(_id, _lib._sel_doubleValue1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_doubleValue1) + : _lib._objc_msgSend_90(_id, _lib._sel_doubleValue1); } bool get boolValue { return _lib._objc_msgSend_11(_id, _lib._sel_boolValue1); } - int get integerValue { - return _lib._objc_msgSend_81(_id, _lib._sel_integerValue1); + DartNSInteger get integerValue { + return _lib._objc_msgSend_86(_id, _lib._sel_integerValue1); } - int get unsignedIntegerValue { + DartNSUInteger get unsignedIntegerValue { return _lib._objc_msgSend_12(_id, _lib._sel_unsignedIntegerValue1); } - NSString? get stringValue { + NSString get stringValue { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_86( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + int compare_(NSNumber otherNumber) { + return _lib._objc_msgSend_91(_id, _lib._sel_compare_1, otherNumber._id); } - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_87( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + bool isEqualToNumber_(NSNumber number) { + return _lib._objc_msgSend_92(_id, _lib._sel_isEqualToNumber_1, number._id); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_93( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithChar_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_62( + final _ret = _lib._objc_msgSend_67( _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedChar_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_63( + final _ret = _lib._objc_msgSend_68( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithShort_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_64( + final _ret = _lib._objc_msgSend_69( _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedShort_( NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_65( + final _ret = _lib._objc_msgSend_70( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInt_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_66( + final _ret = _lib._objc_msgSend_71( _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInt_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_67( + final _ret = _lib._objc_msgSend_72( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLong_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_68( + final _ret = _lib._objc_msgSend_73( _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLong_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_69( + final _ret = _lib._objc_msgSend_74( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLongLong_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_70( + final _ret = _lib._objc_msgSend_75( _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLongLong_( NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_71( + final _ret = _lib._objc_msgSend_76( _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithFloat_(NativeCupertinoHttp _lib, double value) { - final _ret = _lib._objc_msgSend_72( + final _ret = _lib._objc_msgSend_77( _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithDouble_(NativeCupertinoHttp _lib, double value) { - final _ret = _lib._objc_msgSend_73( + final _ret = _lib._objc_msgSend_78( _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithBool_(NativeCupertinoHttp _lib, bool value) { - final _ret = _lib._objc_msgSend_74( + final _ret = _lib._objc_msgSend_79( _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSNumber numberWithInteger_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_68( + static NSNumber numberWithInteger_( + NativeCupertinoHttp _lib, DartNSInteger value) { + final _ret = _lib._objc_msgSend_73( _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInteger_( - NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_69( + NativeCupertinoHttp _lib, DartNSUInteger value) { + final _ret = _lib._objc_msgSend_74( _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_58( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + static NSValue valueWithBytes_objCType_(NativeCupertinoHttp _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55(_lib._class_NSNumber1, + final _ret = _lib._objc_msgSend_59(_lib._class_NSNumber1, _lib._sel_valueWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue value_withObjCType_(NativeCupertinoHttp _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55( + final _ret = _lib._objc_msgSend_59( _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithNonretainedObject_( - NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_56(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + NativeCupertinoHttp _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, anObject?._id ?? ffi.nullptr); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( NativeCupertinoHttp _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_57( + final _ret = _lib._objc_msgSend_62( _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithRange_(NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); 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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); return NSNumber._(_ret, _lib, retain: false, release: true); } + static NSNumber allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); return NSNumber._(_ret, _lib, retain: false, release: true); @@ -64386,56 +64697,60 @@ class NSValue extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); } - void getValue_size_(ffi.Pointer value, int size) { - return _lib._objc_msgSend_33(_id, _lib._sel_getValue_size_1, value, size); + void getValue_size_(ffi.Pointer value, DartNSUInteger size) { + _lib._objc_msgSend_33(_id, _lib._sel_getValue_size_1, value, size); } ffi.Pointer get objCType { - return _lib._objc_msgSend_53(_id, _lib._sel_objCType1); + return _lib._objc_msgSend_57(_id, _lib._sel_objCType1); } NSValue initWithBytes_objCType_( ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_54( + final _ret = _lib._objc_msgSend_58( _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_14( - _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_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithBytes_objCType_(NativeCupertinoHttp _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55( + final _ret = _lib._objc_msgSend_59( _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue value_withObjCType_(NativeCupertinoHttp _lib, ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_55( + final _ret = _lib._objc_msgSend_59( _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithNonretainedObject_( - NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_56(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + NativeCupertinoHttp _lib, NSObject? anObject) { + final _ret = _lib._objc_msgSend_60(_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_61(_id, _lib._sel_nonretainedObjectValue1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( NativeCupertinoHttp _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_57( + final _ret = _lib._objc_msgSend_62( _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); return NSValue._(_ret, _lib, retain: true, release: true); } @@ -64444,23 +64759,28 @@ class NSValue extends NSObject { return _lib._objc_msgSend_31(_id, _lib._sel_pointerValue1); } - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_58( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + bool isEqualToValue_(NSValue value) { + return _lib._objc_msgSend_63(_id, _lib._sel_isEqualToValue_1, value._id); } void getValue_(ffi.Pointer value) { - return _lib._objc_msgSend_59(_id, _lib._sel_getValue_1, value); + _lib._objc_msgSend_64(_id, _lib._sel_getValue_1, value); } static NSValue valueWithRange_(NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_60( + final _ret = _lib._objc_msgSend_65( _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); return NSValue._(_ret, _lib, retain: true, release: true); } NSRange get rangeValue { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeValue1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeValue1); + } + + @override + NSValue init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue new1(NativeCupertinoHttp _lib) { @@ -64468,6 +64788,13 @@ class NSValue extends NSObject { return NSValue._(_ret, _lib, retain: false, release: true); } + static NSValue allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); return NSValue._(_ret, _lib, retain: false, release: true); @@ -64475,6 +64802,9 @@ class NSValue extends NSObject { } typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; +typedef NSURLResourceKey = ffi.Pointer; +typedef DartNSURLResourceKey = NSString; class NSError extends NSObject { NSError._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -64501,42 +64831,41 @@ class NSError extends NSObject { /// Domain cannot be nil; dict may be nil if no userInfo desired. NSError initWithDomain_code_userInfo_( - NSErrorDomain domain, int code, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_179( + DartNSErrorDomain domain, DartNSInteger code, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_186( _id, _lib._sel_initWithDomain_code_userInfo_1, - domain, + domain._id, code, dict?._id ?? ffi.nullptr); return NSError._(_ret, _lib, retain: true, release: true); } static NSError errorWithDomain_code_userInfo_(NativeCupertinoHttp _lib, - NSErrorDomain domain, int code, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_179( + DartNSErrorDomain domain, DartNSInteger code, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_186( _lib._class_NSError1, _lib._sel_errorWithDomain_code_userInfo_1, - domain, + domain._id, code, dict?._id ?? ffi.nullptr); return NSError._(_ret, _lib, retain: true, release: true); } /// These define the error. Domains are described by names that are arbitrary strings used to differentiate groups of codes; for custom domain using reverse-DNS naming will help avoid conflicts. Codes are domain-specific. - NSErrorDomain get domain { - return _lib._objc_msgSend_32(_id, _lib._sel_domain1); + DartNSErrorDomain get domain { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); } - int get code { - return _lib._objc_msgSend_81(_id, _lib._sel_code1); + DartNSInteger get code { + return _lib._objc_msgSend_86(_id, _lib._sel_code1); } /// Additional info which may be used to describe the error further. Examples of keys that might be included in here are "Line Number", "Failed URL", etc. Embedding other errors in here can also be used as a way to communicate underlying reasons for failures; for instance "File System Error" embedded in the userInfo of an NSError returned from a higher level document object. If the embedded error information is itself NSError, the standard key NSUnderlyingErrorKey can be used. - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get userInfo { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_userInfo1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } /// The primary user-presentable message for the error, for instance for NSFileReadNoPermissionError: "The file "File Name" couldn't be opened because you don't have permission to view it.". This message should ideally indicate what failed and why it failed. This value either comes from NSLocalizedDescriptionKey, or NSLocalizedFailureErrorKey+NSLocalizedFailureReasonErrorKey, or NSLocalizedFailureErrorKey. The steps this takes to construct the description include: @@ -64546,16 +64875,14 @@ class NSError extends NSObject { /// 4. Fetch NSLocalizedFailureErrorKey from userInfoValueProvider. If present, use, combining with value for NSLocalizedFailureReasonErrorKey if available. /// 5. Look for NSLocalizedFailureReasonErrorKey in userInfo or from userInfoValueProvider; combine with generic "Operation failed" message. /// 6. Last resort localized but barely-presentable string manufactured from domain and code. The result is never nil. - NSString? get localizedDescription { + NSString get localizedDescription { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } /// Return a complete sentence which describes why the operation failed. For instance, for NSFileReadNoPermissionError: "You don't have permission.". In many cases this will be just the "because" part of the error message (but as a complete sentence, which makes localization easier). Default implementation of this picks up the value of NSLocalizedFailureReasonErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. NSString? get localizedFailureReason { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedFailureReason1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_localizedFailureReason1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -64564,7 +64891,7 @@ class NSError extends NSObject { /// Return the string that can be displayed as the "informative" (aka "secondary") message on an alert panel. For instance, for NSFileReadNoPermissionError: "To view or change permissions, select the item in the Finder and choose File > Get Info.". Default implementation of this picks up the value of NSLocalizedRecoverySuggestionErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. NSString? get localizedRecoverySuggestion { final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_localizedRecoverySuggestion1); + _lib._objc_msgSend_55(_id, _lib._sel_localizedRecoverySuggestion1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -64573,32 +64900,32 @@ class NSError extends NSObject { /// Return titles of buttons that are appropriate for displaying in an alert. These should match the string provided as a part of localizedRecoverySuggestion. The first string would be the title of the right-most and default button, the second one next to it, and so on. If used in an alert the corresponding default return values are NSAlertFirstButtonReturn + n. Default implementation of this picks up the value of NSLocalizedRecoveryOptionsErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain, and if that returns nil, this also returns nil. nil return usually implies no special suggestion, which would imply a single "OK" button. NSArray? get localizedRecoveryOptions { final _ret = - _lib._objc_msgSend_162(_id, _lib._sel_localizedRecoveryOptions1); + _lib._objc_msgSend_188(_id, _lib._sel_localizedRecoveryOptions1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } /// Return an object that conforms to the NSErrorRecoveryAttempting informal protocol. The recovery attempter must be an object that can correctly interpret an index into the array returned by localizedRecoveryOptions. The default implementation of this picks up the value of NSRecoveryAttempterErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain. If that returns nil, this also returns nil. - NSObject get recoveryAttempter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_recoveryAttempter1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? get recoveryAttempter { + final _ret = _lib._objc_msgSend_61(_id, _lib._sel_recoveryAttempter1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } /// Return the help anchor that can be used to create a help button to accompany the error when it's displayed to the user. This is done automatically by +[NSAlert alertWithError:], which the presentError: variants in NSApplication go through. The default implementation of this picks up the value of the NSHelpAnchorErrorKey from the userInfo dictionary. If not present, it consults the userInfoValueProvider for the domain. If that returns nil, this also returns nil. NSString? get helpAnchor { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_helpAnchor1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_helpAnchor1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } /// Return a list of underlying errors, if any. It includes the values of both NSUnderlyingErrorKey and NSMultipleUnderlyingErrorsKey. If there are no underlying errors, returns an empty array. - NSArray? get underlyingErrors { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_underlyingErrors1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get underlyingErrors { + final _ret = _lib._objc_msgSend_169(_id, _lib._sel_underlyingErrors1); + return NSArray._(_ret, _lib, retain: true, release: true); } /// Specify a block which will be called from the implementations of localizedDescription, localizedFailureReason, localizedRecoverySuggestion, localizedRecoveryOptions, recoveryAttempter, helpAnchor, and debugDescription when the underlying value for these is not present in the userInfo dictionary of NSError instances with the specified domain. The provider will be called with the userInfo key corresponding to the queried property: For instance, NSLocalizedDescriptionKey for localizedDescription. The provider should return nil for any keys it is not able to provide and, very importantly, any keys it does not recognize (since we may extend the list of keys in future releases). @@ -64612,24 +64939,34 @@ class NSError extends NSObject { /// If an appropriate result for the requested key cannot be provided, return nil rather than choosing to manufacture a generic fallback response such as "Operation could not be completed, error 42." NSError will take care of the fallback cases. static void setUserInfoValueProviderForDomain_provider_( NativeCupertinoHttp _lib, - NSErrorDomain errorDomain, - ObjCBlock12 provider) { - return _lib._objc_msgSend_181( + DartNSErrorDomain errorDomain, + ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey? provider) { + _lib._objc_msgSend_189( _lib._class_NSError1, _lib._sel_setUserInfoValueProviderForDomain_provider_1, - errorDomain, - provider._id); + errorDomain._id, + provider?._id ?? ffi.nullptr); } - static ObjCBlock12 userInfoValueProviderForDomain_(NativeCupertinoHttp _lib, - NSError? err, NSErrorUserInfoKey userInfoKey, NSErrorDomain errorDomain) { - final _ret = _lib._objc_msgSend_182( + static ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey? + userInfoValueProviderForDomain_(NativeCupertinoHttp _lib, NSError err, + DartNSErrorUserInfoKey userInfoKey, DartNSErrorDomain errorDomain) { + final _ret = _lib._objc_msgSend_190( _lib._class_NSError1, _lib._sel_userInfoValueProviderForDomain_1, - err?._id ?? ffi.nullptr, - userInfoKey, - errorDomain); - return ObjCBlock12._(_ret, _lib); + err._id, + userInfoKey._id, + errorDomain._id); + return _ret.address == 0 + ? null + : ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey._(_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(NativeCupertinoHttp _lib) { @@ -64637,6 +64974,13 @@ class NSError extends NSObject { return NSError._(_ret, _lib, retain: false, release: true); } + static NSError allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); return NSError._(_ret, _lib, retain: false, release: true); @@ -64644,6 +64988,7 @@ class NSError extends NSObject { } typedef NSErrorDomain = ffi.Pointer; +typedef DartNSErrorDomain = NSString; /// Immutable Dictionary class NSDictionary extends NSObject { @@ -64669,17 +65014,19 @@ class NSDictionary extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); } - int get count { + DartNSUInteger get count { return _lib._objc_msgSend_12(_id, _lib._sel_count1); } - NSObject objectForKey_(NSObject aKey) { - final _ret = _lib._objc_msgSend_91(_id, _lib._sel_objectForKey_1, aKey._id); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? objectForKey_(NSObject aKey) { + final _ret = _lib._objc_msgSend_96(_id, _lib._sel_objectForKey_1, aKey._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_keyEnumerator1); + final _ret = _lib._objc_msgSend_97(_id, _lib._sel_keyEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -64692,146 +65039,148 @@ class NSDictionary extends NSObject { NSDictionary initWithObjects_forKeys_count_( ffi.Pointer> objects, ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_93( + DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_98( _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_14( - _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_162(_id, _lib._sel_allKeys1); + NSDictionary? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_14(_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_169(_id, _lib._sel_allKeys1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSArray allKeysForObject_(NSObject anObject) { final _ret = - _lib._objc_msgSend_96(_id, _lib._sel_allKeysForObject_1, anObject._id); + _lib._objc_msgSend_101(_id, _lib._sel_allKeysForObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get allValues { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_allValues1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get allValues { + final _ret = _lib._objc_msgSend_169(_id, _lib._sel_allValues1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { + NSString get description { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get descriptionInStringsFileFormat { + NSString get descriptionInStringsFileFormat { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_descriptionInStringsFileFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_93( + _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_99( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_( + NSObject? locale, DartNSUInteger level) { + final _ret = _lib._objc_msgSend_104( + _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_163(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + bool isEqualToDictionary_(NSDictionary otherDictionary) { + return _lib._objc_msgSend_170( + _id, _lib._sel_isEqualToDictionary_1, otherDictionary._id); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_97(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_164( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); + NSArray objectsForKeys_notFoundMarker_(NSArray keys, NSObject marker) { + final _ret = _lib._objc_msgSend_171( + _id, _lib._sel_objectsForKeys_notFoundMarker_1, keys._id, marker._id); return NSArray._(_ret, _lib, retain: true, release: true); } /// Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly. bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_109( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_114( + _id, _lib._sel_writeToURL_error_1, url._id, error); } NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_107( + final _ret = _lib._objc_msgSend_112( _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); return NSArray._(_ret, _lib, retain: true, release: true); } /// count refers to the number of elements in the dictionary void getObjects_andKeys_count_(ffi.Pointer> objects, - ffi.Pointer> keys, int count) { - return _lib._objc_msgSend_165( + ffi.Pointer> keys, DartNSUInteger count) { + _lib._objc_msgSend_172( _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); } - NSObject objectForKeyedSubscript_(NSObject key) { - final _ret = _lib._objc_msgSend_91( + NSObject? objectForKeyedSubscript_(NSObject key) { + final _ret = _lib._objc_msgSend_96( _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_(ObjCBlock10 block) { - return _lib._objc_msgSend_166( + void enumerateKeysAndObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_173( _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); } void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock10 block) { - return _lib._objc_msgSend_167( + int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { + _lib._objc_msgSend_174( _id, _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, opts, block._id); } - NSArray keysSortedByValueUsingComparator_(NSComparator cmptr) { - final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr); + NSArray keysSortedByValueUsingComparator_(DartNSComparator cmptr) { + final _ret = _lib._objc_msgSend_146( + _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_142(_id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, opts, cmptr); + int opts, DartNSComparator cmptr) { + final _ret = _lib._objc_msgSend_147( + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject keysOfEntriesPassingTest_(ObjCBlock11 predicate) { - final _ret = _lib._objc_msgSend_168( + NSObject keysOfEntriesPassingTest_( + ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_175( _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock11 predicate) { - final _ret = _lib._objc_msgSend_169(_id, + int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_176(_id, _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -64839,46 +65188,53 @@ class NSDictionary extends NSObject { /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: void getObjects_andKeys_(ffi.Pointer> objects, ffi.Pointer> keys) { - return _lib._objc_msgSend_170( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); + _lib._objc_msgSend_177(_id, _lib._sel_getObjects_andKeys_1, objects, keys); } /// These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead. - static NSDictionary dictionaryWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_171(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_178(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_172(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSDictionary? dictionaryWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_179(_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_171( - _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_178( + _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_172( - _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_179(_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_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } /// the atomically flag is ignored if url of a type that cannot be written atomically. - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_168( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } static NSDictionary dictionary(NativeCupertinoHttp _lib) { @@ -64889,7 +65245,7 @@ class NSDictionary extends NSObject { static NSDictionary dictionaryWithObject_forKey_( NativeCupertinoHttp _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_173(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_180(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -64898,89 +65254,78 @@ class NSDictionary extends NSObject { NativeCupertinoHttp _lib, ffi.Pointer> objects, ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_93(_lib._class_NSDictionary1, + DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_98(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjectsAndKeys_( NativeCupertinoHttp _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_91(_lib._class_NSDictionary1, + final _ret = _lib._objc_msgSend_149(_lib._class_NSDictionary1, _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithDictionary_( - NativeCupertinoHttp _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_174(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_181(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjects_forKeys_( - NativeCupertinoHttp _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_175( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_182(_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_91( + final _ret = _lib._objc_msgSend_149( _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + NSDictionary initWithDictionary_(NSDictionary otherDictionary) { + final _ret = _lib._objc_msgSend_181( + _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_176( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); + NSDictionary otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_183(_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_175( - _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_182( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); return NSDictionary._(_ret, _lib, retain: true, release: true); } /// Reads dictionary stored in NSPropertyList format from the specified url. - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_177( - _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_184( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } /// Reads dictionary stored in NSPropertyList format from the specified url. - static NSDictionary dictionaryWithContentsOfURL_error_( + static NSDictionary? dictionaryWithContentsOfURL_error_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_177( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + final _ret = _lib._objc_msgSend_184(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } /// Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. @@ -64990,18 +65335,17 @@ class NSDictionary extends NSObject { /// The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). /// As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. /// Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage. - static NSObject sharedKeySetForKeys_( - NativeCupertinoHttp _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + static NSObject sharedKeySetForKeys_(NativeCupertinoHttp _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSDictionary1, _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } - int countByEnumeratingWithState_objects_count_( + DartNSUInteger countByEnumeratingWithState_objects_count_( ffi.Pointer state, ffi.Pointer> buffer, - int len) { - return _lib._objc_msgSend_178( + DartNSUInteger len) { + return _lib._objc_msgSend_185( _id, _lib._sel_countByEnumeratingWithState_objects_count_1, state, @@ -65015,6 +65359,13 @@ class NSDictionary extends NSObject { return NSDictionary._(_ret, _lib, retain: false, release: true); } + static NSDictionary allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); @@ -65045,24 +65396,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); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject? get allObjects { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); + NSObject? nextObject() { + final _ret = _lib._objc_msgSend_61(_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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); return NSEnumerator._(_ret, _lib, retain: false, release: true); } + static NSEnumerator allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); @@ -65094,12 +65458,12 @@ class NSArray extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); } - int get count { + DartNSUInteger get count { return _lib._objc_msgSend_12(_id, _lib._sel_count1); } - NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_94(_id, _lib._sel_objectAtIndex_1, index); + NSObject objectAtIndex_(DartNSUInteger index) { + final _ret = _lib._objc_msgSend_99(_id, _lib._sel_objectAtIndex_1, index); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -65110,35 +65474,35 @@ class NSArray extends NSObject { } NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_95( + ffi.Pointer> objects, DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_100( _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_14( - _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_14(_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_96( + final _ret = _lib._objc_msgSend_101( _id, _lib._sel_arrayByAddingObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_97( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); + NSArray arrayByAddingObjectsFromArray_(NSArray otherArray) { + final _ret = _lib._objc_msgSend_102( + _id, _lib._sel_arrayByAddingObjectsFromArray_1, otherArray._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_98(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + NSString componentsJoinedByString_(NSString separator) { + final _ret = _lib._objc_msgSend_103( + _id, _lib._sel_componentsJoinedByString_1, separator._id); return NSString._(_ret, _lib, retain: true, release: true); } @@ -65146,86 +65510,92 @@ class NSArray extends NSObject { return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - NSString? get description { + NSString get description { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_93( + _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_99( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + NSString descriptionWithLocale_indent_( + NSObject? locale, DartNSUInteger level) { + final _ret = _lib._objc_msgSend_104( + _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_100(_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_105( + _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_101( - _id, _lib._sel_getObjects_range_1, objects, range); + _lib._objc_msgSend_106(_id, _lib._sel_getObjects_range_1, objects, range); } - int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_102(_id, _lib._sel_indexOfObject_1, anObject._id); + DartNSUInteger indexOfObject_(NSObject anObject) { + return _lib._objc_msgSend_107(_id, _lib._sel_indexOfObject_1, anObject._id); } - int indexOfObject_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_103( + DartNSUInteger indexOfObject_inRange_(NSObject anObject, NSRange range) { + return _lib._objc_msgSend_108( _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); } - int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_102( + DartNSUInteger indexOfObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_107( _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); } - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_103( + DartNSUInteger indexOfObjectIdenticalTo_inRange_( + NSObject anObject, NSRange range) { + return _lib._objc_msgSend_108( _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); } - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_104( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + bool isEqualToArray_(NSArray otherArray) { + return _lib._objc_msgSend_109( + _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_61(_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_61(_id, _lib._sel_lastObject1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_objectEnumerator1); + final _ret = _lib._objc_msgSend_97(_id, _lib._sel_objectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_92(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_97(_id, _lib._sel_reverseObjectEnumerator1); return NSEnumerator._(_ret, _lib, retain: true, release: true); } - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_sortedArrayHint1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get sortedArrayHint { + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_sortedArrayHint1); + return NSData._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayUsingFunction_context_( @@ -65235,7 +65605,7 @@ class NSArray extends NSObject { ffi.Pointer, ffi.Pointer)>> comparator, ffi.Pointer context) { - final _ret = _lib._objc_msgSend_105( + final _ret = _lib._objc_msgSend_110( _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -65248,7 +65618,7 @@ class NSArray extends NSObject { comparator, ffi.Pointer context, NSData? hint) { - final _ret = _lib._objc_msgSend_106( + final _ret = _lib._objc_msgSend_111( _id, _lib._sel_sortedArrayUsingFunction_context_hint_1, comparator, @@ -65258,99 +65628,104 @@ class NSArray extends NSObject { } NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_107( + final _ret = _lib._objc_msgSend_112( _id, _lib._sel_sortedArrayUsingSelector_1, comparator); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray subarrayWithRange_(NSRange range) { final _ret = - _lib._objc_msgSend_108(_id, _lib._sel_subarrayWithRange_1, range); + _lib._objc_msgSend_113(_id, _lib._sel_subarrayWithRange_1, range); return NSArray._(_ret, _lib, retain: true, release: true); } /// Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly. bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_109( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + NSURL url, ffi.Pointer> error) { + return _lib._objc_msgSend_114( + _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_110( + ffi.Pointer aSelector, NSObject? argument) { + _lib._objc_msgSend_115( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, - argument._id); + argument?._id ?? ffi.nullptr); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_131( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + NSArray objectsAtIndexes_(NSIndexSet indexes) { + final _ret = + _lib._objc_msgSend_136(_id, _lib._sel_objectsAtIndexes_1, indexes._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject objectAtIndexedSubscript_(int idx) { + NSObject objectAtIndexedSubscript_(DartNSUInteger idx) { final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + _lib._objc_msgSend_99(_id, _lib._sel_objectAtIndexedSubscript_1, idx); return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock5 block) { - return _lib._objc_msgSend_132( + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool block) { + _lib._objc_msgSend_137( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock5 block) { - return _lib._objc_msgSend_133(_id, + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool block) { + _lib._objc_msgSend_138(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock5 block) { - return _lib._objc_msgSend_134( + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet s, int opts, + ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool block) { + _lib._objc_msgSend_139( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, + s._id, opts, block._id); } - int indexOfObjectPassingTest_(ObjCBlock6 predicate) { - return _lib._objc_msgSend_135( + DartNSUInteger indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_NSUInteger_bool predicate) { + return _lib._objc_msgSend_140( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock6 predicate) { - return _lib._objc_msgSend_136(_id, + DartNSUInteger indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_NSUInteger_bool predicate) { + return _lib._objc_msgSend_141(_id, _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); } - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock6 predicate) { - return _lib._objc_msgSend_137( + DartNSUInteger indexOfObjectAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_NSUInteger_bool predicate) { + return _lib._objc_msgSend_142( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, + s._id, opts, predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock6 predicate) { - final _ret = _lib._objc_msgSend_138( + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_NSUInteger_bool predicate) { + final _ret = _lib._objc_msgSend_143( _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock6 predicate) { - final _ret = _lib._objc_msgSend_139( + int opts, ObjCBlock_bool_ObjCObject_NSUInteger_bool predicate) { + final _ret = _lib._objc_msgSend_144( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, opts, @@ -65358,40 +65733,40 @@ class NSArray extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock6 predicate) { - final _ret = _lib._objc_msgSend_140( + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet s, + int opts, ObjCBlock_bool_ObjCObject_NSUInteger_bool predicate) { + final _ret = _lib._objc_msgSend_145( _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_141( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr); + NSArray sortedArrayUsingComparator_(DartNSComparator cmptr) { + final _ret = _lib._objc_msgSend_146( + _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_142( - _id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr); + int opts, DartNSComparator cmptr) { + final _ret = _lib._objc_msgSend_147(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } /// binary search - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, NSRange r, int opts, NSComparator cmp) { - return _lib._objc_msgSend_143( + DartNSUInteger indexOfObject_inSortedRange_options_usingComparator_( + NSObject obj, NSRange r, int opts, DartNSComparator cmp) { + return _lib._objc_msgSend_148( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, obj._id, r, opts, - cmp); + cmp._id); } static NSArray array(NativeCupertinoHttp _lib) { @@ -65400,78 +65775,76 @@ class NSArray extends NSObject { } static NSArray arrayWithObject_(NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_91( + final _ret = _lib._objc_msgSend_149( _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_count_(NativeCupertinoHttp _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_95( + ffi.Pointer> objects, DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_100( _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_( NativeCupertinoHttp _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_91( + final _ret = _lib._objc_msgSend_149( _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithArray_(NativeCupertinoHttp _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + static NSArray arrayWithArray_(NativeCupertinoHttp _lib, NSArray array) { + final _ret = _lib._objc_msgSend_150( + _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_91(_id, _lib._sel_initWithObjects_1, firstObj._id); + _lib._objc_msgSend_149(_id, _lib._sel_initWithObjects_1, firstObj._id); return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_100( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + NSArray initWithArray_(NSArray array) { + final _ret = + _lib._objc_msgSend_150(_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_144(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + NSArray initWithArray_copyItems_(NSArray array, bool flag) { + final _ret = _lib._objc_msgSend_151( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); return NSArray._(_ret, _lib, retain: false, release: true); } /// Reads array stored in NSPropertyList format from the specified url. - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_145( - _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_152( + _id, _lib._sel_initWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } /// Reads array stored in NSPropertyList format from the specified url. - static NSArray arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_145( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } NSOrderedCollectionDifference - differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock9 block) { - final _ret = _lib._objc_msgSend_154( + differenceFromArray_withOptions_usingEquivalenceTest_(NSArray other, + int options, ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_161( _id, _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, + other._id, options, block._id); return NSOrderedCollectionDifference._(_ret, _lib, @@ -65479,70 +65852,77 @@ class NSArray extends NSObject { } NSOrderedCollectionDifference differenceFromArray_withOptions_( - NSArray? other, int options) { - final _ret = _lib._objc_msgSend_155( - _id, - _lib._sel_differenceFromArray_withOptions_1, - other?._id ?? ffi.nullptr, - options); + NSArray other, int options) { + final _ret = _lib._objc_msgSend_162( + _id, _lib._sel_differenceFromArray_withOptions_1, other._id, options); return NSOrderedCollectionDifference._(_ret, _lib, retain: true, release: true); } /// Uses isEqual: to determine the difference between the parameter and the receiver - NSOrderedCollectionDifference differenceFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); + NSOrderedCollectionDifference differenceFromArray_(NSArray other) { + final _ret = + _lib._objc_msgSend_163(_id, _lib._sel_differenceFromArray_1, other._id); return NSOrderedCollectionDifference._(_ret, _lib, retain: true, release: true); } - NSArray arrayByApplyingDifference_( - NSOrderedCollectionDifference? difference) { - final _ret = _lib._objc_msgSend_157(_id, - _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSArray? arrayByApplyingDifference_( + NSOrderedCollectionDifference difference) { + final _ret = _lib._objc_msgSend_164( + _id, _lib._sel_arrayByApplyingDifference_1, difference._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } /// This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead. void getObjects_(ffi.Pointer> objects) { - return _lib._objc_msgSend_158(_id, _lib._sel_getObjects_1, objects); + _lib._objc_msgSend_165(_id, _lib._sel_getObjects_1, objects); } /// These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead. - static NSArray arrayWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_159(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_166( + _lib._class_NSArray1, _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_160(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfURL_(NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_167( + _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_159( - _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_166( + _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_160( - _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_167(_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_37(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_37( + _id, _lib._sel_writeToFile_atomically_1, path._id, useAuxiliaryFile); } - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_161(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + bool writeToURL_atomically_(NSURL url, bool atomically) { + return _lib._objc_msgSend_168( + _id, _lib._sel_writeToURL_atomically_1, url._id, atomically); } static NSArray new1(NativeCupertinoHttp _lib) { @@ -65550,6 +65930,13 @@ class NSArray extends NSObject { return NSArray._(_ret, _lib, retain: false, release: true); } + static NSArray allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); return NSArray._(_ret, _lib, retain: false, release: true); @@ -65585,75 +65972,78 @@ class NSIndexSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - static NSIndexSet indexSetWithIndex_(NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_94( + static NSIndexSet indexSetWithIndex_( + NativeCupertinoHttp _lib, DartNSUInteger value) { + final _ret = _lib._objc_msgSend_99( _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); return NSIndexSet._(_ret, _lib, retain: true, release: true); } static NSIndexSet indexSetWithIndexesInRange_( NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_111( + final _ret = _lib._objc_msgSend_116( _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet initWithIndexesInRange_(NSRange range) { final _ret = - _lib._objc_msgSend_111(_id, _lib._sel_initWithIndexesInRange_1, range); + _lib._objc_msgSend_116(_id, _lib._sel_initWithIndexesInRange_1, range); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_112( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + NSIndexSet initWithIndexSet_(NSIndexSet indexSet) { + final _ret = + _lib._objc_msgSend_117(_id, _lib._sel_initWithIndexSet_1, indexSet._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_94(_id, _lib._sel_initWithIndex_1, value); + NSIndexSet initWithIndex_(DartNSUInteger value) { + final _ret = _lib._objc_msgSend_99(_id, _lib._sel_initWithIndex_1, value); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_113( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + bool isEqualToIndexSet_(NSIndexSet indexSet) { + return _lib._objc_msgSend_118( + _id, _lib._sel_isEqualToIndexSet_1, indexSet._id); } - int get count { + DartNSUInteger get count { return _lib._objc_msgSend_12(_id, _lib._sel_count1); } - int get firstIndex { + DartNSUInteger get firstIndex { return _lib._objc_msgSend_12(_id, _lib._sel_firstIndex1); } - int get lastIndex { + DartNSUInteger get lastIndex { return _lib._objc_msgSend_12(_id, _lib._sel_lastIndex1); } - int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_114( + DartNSUInteger indexGreaterThanIndex_(DartNSUInteger value) { + return _lib._objc_msgSend_119( _id, _lib._sel_indexGreaterThanIndex_1, value); } - int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_114(_id, _lib._sel_indexLessThanIndex_1, value); + DartNSUInteger indexLessThanIndex_(DartNSUInteger value) { + return _lib._objc_msgSend_119(_id, _lib._sel_indexLessThanIndex_1, value); } - int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_114( + DartNSUInteger indexGreaterThanOrEqualToIndex_(DartNSUInteger value) { + return _lib._objc_msgSend_119( _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); } - int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_114( + DartNSUInteger indexLessThanOrEqualToIndex_(DartNSUInteger value) { + return _lib._objc_msgSend_119( _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); } - int getIndexes_maxCount_inIndexRange_(ffi.Pointer indexBuffer, - int bufferSize, NSRangePointer range) { - return _lib._objc_msgSend_115( + DartNSUInteger getIndexes_maxCount_inIndexRange_( + ffi.Pointer indexBuffer, + DartNSUInteger bufferSize, + NSRangePointer range) { + return _lib._objc_msgSend_120( _id, _lib._sel_getIndexes_maxCount_inIndexRange_1, indexBuffer, @@ -65661,43 +66051,44 @@ class NSIndexSet extends NSObject { range); } - int countOfIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_116( + DartNSUInteger countOfIndexesInRange_(NSRange range) { + return _lib._objc_msgSend_121( _id, _lib._sel_countOfIndexesInRange_1, range); } - bool containsIndex_(int value) { - return _lib._objc_msgSend_117(_id, _lib._sel_containsIndex_1, value); + bool containsIndex_(DartNSUInteger value) { + return _lib._objc_msgSend_122(_id, _lib._sel_containsIndex_1, value); } bool containsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_118( + return _lib._objc_msgSend_123( _id, _lib._sel_containsIndexesInRange_1, range); } - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_113( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + bool containsIndexes_(NSIndexSet indexSet) { + return _lib._objc_msgSend_118( + _id, _lib._sel_containsIndexes_1, indexSet._id); } bool intersectsIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_118( + return _lib._objc_msgSend_123( _id, _lib._sel_intersectsIndexesInRange_1, range); } - void enumerateIndexesUsingBlock_(ObjCBlock2 block) { - return _lib._objc_msgSend_119( + void enumerateIndexesUsingBlock_(ObjCBlock_ffiVoid_NSUInteger_bool block) { + _lib._objc_msgSend_124( _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); } - void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_120(_id, + void enumerateIndexesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_NSUInteger_bool block) { + _lib._objc_msgSend_125(_id, _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); } void enumerateIndexesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_121( + NSRange range, int opts, ObjCBlock_ffiVoid_NSUInteger_bool block) { + _lib._objc_msgSend_126( _id, _lib._sel_enumerateIndexesInRange_options_usingBlock_1, range, @@ -65705,19 +66096,20 @@ class NSIndexSet extends NSObject { block._id); } - int indexPassingTest_(ObjCBlock3 predicate) { - return _lib._objc_msgSend_122( + DartNSUInteger indexPassingTest_(ObjCBlock_bool_NSUInteger_bool predicate) { + return _lib._objc_msgSend_127( _id, _lib._sel_indexPassingTest_1, predicate._id); } - int indexWithOptions_passingTest_(int opts, ObjCBlock3 predicate) { - return _lib._objc_msgSend_123( + DartNSUInteger indexWithOptions_passingTest_( + int opts, ObjCBlock_bool_NSUInteger_bool predicate) { + return _lib._objc_msgSend_128( _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); } - int indexInRange_options_passingTest_( - NSRange range, int opts, ObjCBlock3 predicate) { - return _lib._objc_msgSend_124( + DartNSUInteger indexInRange_options_passingTest_( + NSRange range, int opts, ObjCBlock_bool_NSUInteger_bool predicate) { + return _lib._objc_msgSend_129( _id, _lib._sel_indexInRange_options_passingTest_1, range, @@ -65725,21 +66117,22 @@ class NSIndexSet extends NSObject { predicate._id); } - NSIndexSet indexesPassingTest_(ObjCBlock3 predicate) { - final _ret = _lib._objc_msgSend_125( + NSIndexSet indexesPassingTest_(ObjCBlock_bool_NSUInteger_bool predicate) { + final _ret = _lib._objc_msgSend_130( _id, _lib._sel_indexesPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock3 predicate) { - final _ret = _lib._objc_msgSend_126( + NSIndexSet indexesWithOptions_passingTest_( + int opts, ObjCBlock_bool_NSUInteger_bool predicate) { + final _ret = _lib._objc_msgSend_131( _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, ObjCBlock3 predicate) { - final _ret = _lib._objc_msgSend_127( + NSRange range, int opts, ObjCBlock_bool_NSUInteger_bool predicate) { + final _ret = _lib._objc_msgSend_132( _id, _lib._sel_indexesInRange_options_passingTest_1, range, @@ -65748,19 +66141,20 @@ class NSIndexSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesUsingBlock_(ObjCBlock4 block) { - return _lib._objc_msgSend_128( + void enumerateRangesUsingBlock_(ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_133( _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); } - void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_129(_id, + void enumerateRangesWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_134(_id, _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); } void enumerateRangesInRange_options_usingBlock_( - NSRange range, int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_130( + NSRange range, int opts, ObjCBlock_ffiVoid_NSRange_bool block) { + _lib._objc_msgSend_135( _id, _lib._sel_enumerateRangesInRange_options_usingBlock_1, range, @@ -65768,11 +66162,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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); return NSIndexSet._(_ret, _lib, retain: false, release: true); } + static NSIndexSet allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); @@ -65781,35 +66188,41 @@ class NSIndexSet extends NSObject { } typedef NSRangePointer = ffi.Pointer; -void _ObjCBlock2_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 _ObjCBlock2_closureRegistry = {}; -int _ObjCBlock2_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { - final id = ++_ObjCBlock2_closureRegistryIndex; - _ObjCBlock2_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSUInteger arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_NSUInteger_bool_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSUInteger_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_registerClosure( + void Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSUInteger_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSUInteger_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_ffiVoid_NSUInteger_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock2 extends _ObjCBlockBase { - ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSUInteger_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSUInteger_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSUInteger_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -65819,142 +66232,198 @@ class ObjCBlock2 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + NSUInteger, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock2.fromFunction(NativeCupertinoHttp 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_NSUInteger_bool.fromFunction(NativeCupertinoHttp lib, + void Function(DartNSUInteger, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + NSUInteger, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline) .cast(), - _ObjCBlock2_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSUInteger_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} -abstract class NSEnumerationOptions { - static const int NSEnumerationConcurrent = 1; - static const int NSEnumerationReverse = 2; -} + /// 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_NSUInteger_bool.listener(NativeCupertinoHttp lib, + void Function(DartNSUInteger, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + NSUInteger, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSUInteger_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, NSUInteger, ffi.Pointer)>? + _dartFuncListenerTrampoline; -bool _ObjCBlock3_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target + void call(DartNSUInteger arg0, ffi.Pointer arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Bool Function(NSUInteger arg0, ffi.Pointer arg1)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, NSUInteger arg0, + ffi.Pointer arg1)>>() .asFunction< - bool Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer<_ObjCBlock>, int, + 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; - return ffi.Pointer.fromAddress(id); +abstract class NSEnumerationOptions { + static const int NSEnumerationConcurrent = 1; + static const int NSEnumerationReverse = 2; } -bool _ObjCBlock3_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock3_closureRegistry[block.ref.target.address]!(arg0, arg1); +bool _ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + NSUInteger arg0, ffi.Pointer arg1)>>() + .asFunction)>()(arg0, arg1); +final _ObjCBlock_bool_NSUInteger_bool_closureRegistry = + )>{}; +int _ObjCBlock_bool_NSUInteger_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_registerClosure( + bool Function(int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_NSUInteger_bool_closureRegistryIndex; + _ObjCBlock_bool_NSUInteger_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class ObjCBlock3 extends _ObjCBlockBase { - ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_NSUInteger_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) => + _ObjCBlock_bool_NSUInteger_bool_closureRegistry[block.ref.target.address]!( + arg0, arg1); + +class ObjCBlock_bool_NSUInteger_bool extends _ObjCBlockBase { + ObjCBlock_bool_NSUInteger_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool_NSUInteger_bool.fromFunctionPointer( NativeCupertinoHttp lib, - ffi.Pointer arg1)>> + ffi.Pointer< + ffi + .NativeFunction< + ffi.Bool Function(NSUInteger arg0, + ffi.Pointer arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock3_fnPtrTrampoline, false) + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + NSUInteger, ffi.Pointer)>( + _ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock3.fromFunction(NativeCupertinoHttp 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_NSUInteger_bool.fromFunction(NativeCupertinoHttp lib, + bool Function(DartNSUInteger, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>( - _ObjCBlock3_closureTrampoline, false) + ffi.Bool Function(ffi.Pointer<_ObjCBlock>, + NSUInteger, ffi.Pointer)>( + _ObjCBlock_bool_NSUInteger_bool_closureTrampoline, + false) .cast(), - _ObjCBlock3_registerClosure(fn)), + _ObjCBlock_bool_NSUInteger_bool_registerClosure( + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - NSUInteger arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} -void _ObjCBlock4_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return block.ref.target + bool call(DartNSUInteger 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, NSUInteger 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 _ObjCBlock4_closureRegistry = {}; -int _ObjCBlock4_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { - final id = ++_ObjCBlock4_closureRegistryIndex; - _ObjCBlock4_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 _ObjCBlock4_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, NSRange arg0, ffi.Pointer arg1) { - return _ObjCBlock4_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 ObjCBlock4 extends _ObjCBlockBase { - ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiVoid_NSRange_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -65963,71 +66432,118 @@ class ObjCBlock4 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock4_fnPtrTrampoline) + 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. - ObjCBlock4.fromFunction(NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock4_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock4_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( + (NSRange arg0, ffi.Pointer arg1) => + fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(NSRange arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} -void _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target + /// 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( + NativeCupertinoHttp 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 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 _ObjCBlock5_closureRegistry = {}; -int _ObjCBlock5_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { - final id = ++_ObjCBlock5_closureRegistryIndex; - _ObjCBlock5_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_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, NSUInteger arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_registerClosure( + void Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = + ++_ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock5_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); -class ObjCBlock5 extends _ObjCBlockBase { - ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiVoid_ObjCObject_NSUInteger_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66038,86 +66554,131 @@ class ObjCBlock5 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSUInteger, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock5.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_ObjCObject_NSUInteger_bool.fromFunction( NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + void Function(NSObject, DartNSUInteger, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSUInteger, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureTrampoline) .cast(), - _ObjCBlock5_registerClosure(fn)), + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke + + /// 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_NSUInteger_bool.listener(NativeCupertinoHttp lib, + void Function(NSObject, DartNSUInteger, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSUInteger, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSUInteger_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, + NSUInteger, ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(NSObject arg0, DartNSUInteger arg1, ffi.Pointer arg2) => + _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>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); +} + +bool _ObjCBlock_bool_ObjCObject_NSUInteger_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<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, + ffi.Bool Function(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); - } -} - -bool _ObjCBlock6_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); -} - -final _ObjCBlock6_closureRegistry = {}; -int _ObjCBlock6_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { - final id = ++_ObjCBlock6_closureRegistryIndex; - _ObjCBlock6_closureRegistry[id] = fn; + bool Function(ffi.Pointer, int, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureRegistry = + , int, ffi.Pointer)>{}; +int _ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_bool_ObjCObject_NSUInteger_bool_registerClosure( + bool Function(ffi.Pointer, int, ffi.Pointer) fn) { + final id = ++_ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureRegistryIndex; + _ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock6_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +bool _ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) => + _ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); -class ObjCBlock6 extends _ObjCBlockBase { - ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ObjCObject_NSUInteger_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_NSUInteger_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSUInteger_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66128,86 +66689,103 @@ class ObjCBlock6 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock6_fnPtrTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSUInteger, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSUInteger_bool_fnPtrTrampoline, + false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock6.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_bool_ObjCObject_NSUInteger_bool.fromFunction( NativeCupertinoHttp lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) + bool Function(NSObject, DartNSUInteger, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>( - _ObjCBlock6_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSUInteger, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_NSUInteger_bool_closureTrampoline, false) .cast(), - _ObjCBlock6_registerClosure(fn)), + _ObjCBlock_bool_ObjCObject_NSUInteger_bool_registerClosure( + (ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) => + fn(NSObject._(arg0, lib, retain: true, release: true), arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} -typedef NSComparator = ffi.Pointer<_ObjCBlock>; -int _ObjCBlock7_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, DartNSUInteger arg1, ffi.Pointer arg2) => + _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>, ffi.Pointer, + int, ffi.Pointer)>()(_id, arg0._id, arg1, arg2); } -final _ObjCBlock7_closureRegistry = {}; -int _ObjCBlock7_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { - final id = ++_ObjCBlock7_closureRegistryIndex; - _ObjCBlock7_closureRegistry[id] = fn; +typedef NSComparator = ffi.Pointer<_ObjCBlock>; +typedef DartNSComparator = ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject; +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 _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock7_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +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 ObjCBlock7 extends _ObjCBlockBase { - ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject + extends _ObjCBlockBase { + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66218,46 +66796,46 @@ class ObjCBlock7 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_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. - ObjCBlock7.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, int Function(NSObject, NSObject) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_closureTrampoline, 0) + ffi.Int32 Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, 0) .cast(), - _ObjCBlock7_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); static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + + 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 NSSortOptions { @@ -66298,61 +66876,57 @@ class NSOrderedCollectionDifference extends NSObject { obj._lib._class_NSOrderedCollectionDifference1); } - NSOrderedCollectionDifference initWithChanges_(NSObject? changes) { - final _ret = _lib._objc_msgSend_91( - _id, _lib._sel_initWithChanges_1, changes?._id ?? ffi.nullptr); + NSOrderedCollectionDifference initWithChanges_(NSObject changes) { + final _ret = + _lib._objc_msgSend_149(_id, _lib._sel_initWithChanges_1, changes._id); return NSOrderedCollectionDifference._(_ret, _lib, retain: true, release: true); } NSOrderedCollectionDifference initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_( - NSIndexSet? inserts, + NSIndexSet inserts, NSObject? insertedObjects, - NSIndexSet? removes, + NSIndexSet removes, NSObject? removedObjects, - NSObject? changes) { - final _ret = _lib._objc_msgSend_146( + NSObject changes) { + final _ret = _lib._objc_msgSend_153( _id, _lib._sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_1, - inserts?._id ?? ffi.nullptr, + inserts._id, insertedObjects?._id ?? ffi.nullptr, - removes?._id ?? ffi.nullptr, + removes._id, removedObjects?._id ?? ffi.nullptr, - changes?._id ?? ffi.nullptr); + changes._id); return NSOrderedCollectionDifference._(_ret, _lib, retain: true, release: true); } NSOrderedCollectionDifference initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_( - NSIndexSet? inserts, + NSIndexSet inserts, NSObject? insertedObjects, - NSIndexSet? removes, + NSIndexSet removes, NSObject? removedObjects) { - final _ret = _lib._objc_msgSend_147( + final _ret = _lib._objc_msgSend_154( _id, _lib._sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_1, - inserts?._id ?? ffi.nullptr, + inserts._id, insertedObjects?._id ?? ffi.nullptr, - removes?._id ?? ffi.nullptr, + removes._id, removedObjects?._id ?? ffi.nullptr); return NSOrderedCollectionDifference._(_ret, _lib, retain: true, release: true); } - NSObject? get insertions { + NSObject get insertions { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_insertions1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject? get removals { + NSObject get removals { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_removals1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + return NSObject._(_ret, _lib, retain: true, release: true); } bool get hasChanges { @@ -66360,8 +66934,8 @@ class NSOrderedCollectionDifference extends NSObject { } NSOrderedCollectionDifference differenceByTransformingChangesWithBlock_( - ObjCBlock8 block) { - final _ret = _lib._objc_msgSend_153( + ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange block) { + final _ret = _lib._objc_msgSend_160( _id, _lib._sel_differenceByTransformingChangesWithBlock_1, block._id); return NSOrderedCollectionDifference._(_ret, _lib, retain: true, release: true); @@ -66373,6 +66947,13 @@ class NSOrderedCollectionDifference extends NSObject { retain: true, release: true); } + @override + NSOrderedCollectionDifference init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: true, release: true); + } + static NSOrderedCollectionDifference new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSOrderedCollectionDifference1, _lib._sel_new1); @@ -66380,6 +66961,16 @@ class NSOrderedCollectionDifference extends NSObject { retain: false, release: true); } + static NSOrderedCollectionDifference allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSOrderedCollectionDifference1, + _lib._sel_allocWithZone_1, + zone); + return NSOrderedCollectionDifference._(_ret, _lib, + retain: false, release: true); + } + static NSOrderedCollectionDifference alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSOrderedCollectionDifference1, _lib._sel_alloc1); @@ -66388,36 +66979,50 @@ class NSOrderedCollectionDifference extends NSObject { } } -ffi.Pointer _ObjCBlock8_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>()(arg0); -} - -final _ObjCBlock8_closureRegistry = {}; -int _ObjCBlock8_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { - final id = ++_ObjCBlock8_closureRegistryIndex; - _ObjCBlock8_closureRegistry[id] = fn; +ffi.Pointer + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); +final _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureRegistry = + Function(ffi.Pointer)>{}; +int _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_registerClosure( + ffi.Pointer Function(ffi.Pointer) fn) { + final id = + ++_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureRegistryIndex; + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock8_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock8_closureRegistry[block.ref.target.address]!(arg0); -} +ffi.Pointer + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock8 extends _ObjCBlockBase { - ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange + extends _ObjCBlockBase { + ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSOrderedCollectionChange_NSOrderedCollectionChange.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66428,38 +67033,51 @@ class ObjCBlock8 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock8_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock8.fromFunction(NativeCupertinoHttp lib, - ffi.Pointer 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_NSOrderedCollectionChange_NSOrderedCollectionChange.fromFunction( + NativeCupertinoHttp lib, + NSOrderedCollectionChange Function(NSOrderedCollectionChange) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock8_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline) .cast(), - _ObjCBlock8_registerClosure(fn)), + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_registerClosure( + (ffi.Pointer arg0) => + fn(NSOrderedCollectionChange._(arg0, lib, retain: true, release: true)) + ._retainAndReturnId())), lib); static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + + NSOrderedCollectionChange call(NSOrderedCollectionChange arg0) => + NSOrderedCollectionChange._( + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } class NSOrderedCollectionChange extends NSObject { @@ -66489,42 +67107,51 @@ class NSOrderedCollectionChange extends NSObject { } static NSOrderedCollectionChange changeWithObject_type_index_( - NativeCupertinoHttp _lib, NSObject anObject, int type, int index) { - final _ret = _lib._objc_msgSend_148(_lib._class_NSOrderedCollectionChange1, - _lib._sel_changeWithObject_type_index_1, anObject._id, type, index); + NativeCupertinoHttp _lib, + NSObject? anObject, + int type, + DartNSUInteger index) { + final _ret = _lib._objc_msgSend_155( + _lib._class_NSOrderedCollectionChange1, + _lib._sel_changeWithObject_type_index_1, + anObject?._id ?? ffi.nullptr, + type, + index); return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); } static NSOrderedCollectionChange changeWithObject_type_index_associatedIndex_( NativeCupertinoHttp _lib, - NSObject anObject, + NSObject? anObject, int type, - int index, - int associatedIndex) { - final _ret = _lib._objc_msgSend_149( + DartNSUInteger index, + DartNSUInteger associatedIndex) { + final _ret = _lib._objc_msgSend_156( _lib._class_NSOrderedCollectionChange1, _lib._sel_changeWithObject_type_index_associatedIndex_1, - anObject._id, + anObject?._id ?? ffi.nullptr, type, index, associatedIndex); return NSOrderedCollectionChange._(_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_61(_id, _lib._sel_object1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } int get changeType { - return _lib._objc_msgSend_150(_id, _lib._sel_changeType1); + return _lib._objc_msgSend_157(_id, _lib._sel_changeType1); } - int get index { + DartNSUInteger get index { return _lib._objc_msgSend_12(_id, _lib._sel_index1); } - int get associatedIndex { + DartNSUInteger get associatedIndex { return _lib._objc_msgSend_12(_id, _lib._sel_associatedIndex1); } @@ -66535,18 +67162,25 @@ class NSOrderedCollectionChange extends NSObject { } NSOrderedCollectionChange initWithObject_type_index_( - NSObject anObject, int type, int index) { - final _ret = _lib._objc_msgSend_151( - _id, _lib._sel_initWithObject_type_index_1, anObject._id, type, index); + NSObject? anObject, int type, DartNSUInteger index) { + final _ret = _lib._objc_msgSend_158( + _id, + _lib._sel_initWithObject_type_index_1, + anObject?._id ?? ffi.nullptr, + type, + index); return NSOrderedCollectionChange._(_ret, _lib, retain: true, release: true); } NSOrderedCollectionChange initWithObject_type_index_associatedIndex_( - NSObject anObject, int type, int index, int associatedIndex) { - final _ret = _lib._objc_msgSend_152( + NSObject? anObject, + int type, + DartNSUInteger index, + DartNSUInteger associatedIndex) { + final _ret = _lib._objc_msgSend_159( _id, _lib._sel_initWithObject_type_index_associatedIndex_1, - anObject._id, + anObject?._id ?? ffi.nullptr, type, index, associatedIndex); @@ -66560,6 +67194,14 @@ class NSOrderedCollectionChange extends NSObject { retain: false, release: true); } + static NSOrderedCollectionChange allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSOrderedCollectionChange1, + _lib._sel_allocWithZone_1, zone); + return NSOrderedCollectionChange._(_ret, _lib, + retain: false, release: true); + } + static NSOrderedCollectionChange alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSOrderedCollectionChange1, _lib._sel_alloc1); @@ -66581,37 +67223,47 @@ abstract class NSOrderedCollectionDifferenceCalculationOptions { static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; } -bool _ObjCBlock9_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 _ObjCBlock9_closureRegistry = {}; -int _ObjCBlock9_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { - final id = ++_ObjCBlock9_closureRegistryIndex; - _ObjCBlock9_closureRegistry[id] = fn; +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 _ObjCBlock9_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock9_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +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 ObjCBlock9 extends _ObjCBlockBase { - ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool_ObjCObject_ObjCObject.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66622,88 +67274,101 @@ class ObjCBlock9 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock9_fnPtrTrampoline, false) + 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. - ObjCBlock9.fromFunction( - NativeCupertinoHttp 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_ObjCObject.fromFunction( + NativeCupertinoHttp lib, bool Function(NSObject, NSObject) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock9_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, + false) .cast(), - _ObjCBlock9_registerClosure(fn)), + _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(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); - } -} -void _ObjCBlock10_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target + bool call(NSObject arg0, NSObject arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + bool Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>()(_id, arg0._id, arg1._id); } -final _ObjCBlock10_closureRegistry = {}; -int _ObjCBlock10_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { - final id = ++_ObjCBlock10_closureRegistryIndex; - _ObjCBlock10_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 _ObjCBlock10_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock10_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock10 extends _ObjCBlockBase { - ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ObjCObject_ObjCObject_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66716,154 +67381,208 @@ class ObjCBlock10 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_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. - ObjCBlock10.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_ObjCObject_ObjCObject_bool.fromFunction( NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + void Function(NSObject, NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) .cast(), - _ObjCBlock10_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); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + + /// 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(NativeCupertinoHttp lib, + void Function(NSObject, NSObject, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .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.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 _ObjCBlock11_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock11_closureRegistry = {}; -int _ObjCBlock11_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { - final id = ++_ObjCBlock11_closureRegistryIndex; - _ObjCBlock11_closureRegistry[id] = fn; + 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); } -bool _ObjCBlock11_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock11_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock11 extends _ObjCBlockBase { - ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { + ObjCBlock_bool_ObjCObject_ObjCObject_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< - ffi - .NativeFunction< + ffi.NativeFunction< ffi.Bool Function( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) : this._( - lib - ._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_fnPtrTrampoline, false) - .cast(), - ptr.cast()), + 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. - ObjCBlock11.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_bool_ObjCObject_ObjCObject_bool.fromFunction( NativeCupertinoHttp lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + bool Function(NSObject, NSObject, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, false) .cast(), - _ObjCBlock11_registerClosure(fn)), + _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(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + + 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 { @@ -66878,41 +67597,55 @@ final class NSFastEnumerationState extends ffi.Struct { external ffi.Array extra; } -ffi.Pointer _ObjCBlock12_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>()(arg0, arg1); -} - -final _ObjCBlock12_closureRegistry = {}; -int _ObjCBlock12_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { - final id = ++_ObjCBlock12_closureRegistryIndex; - _ObjCBlock12_closureRegistry[id] = fn; +ffi.Pointer + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + NSErrorUserInfoKey arg1)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, NSErrorUserInfoKey)>()(arg0, arg1); +final _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureRegistry = Function( + ffi.Pointer, NSErrorUserInfoKey)>{}; +int _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_registerClosure( + ffi.Pointer Function( + ffi.Pointer, NSErrorUserInfoKey) + fn) { + final id = + ++_ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureRegistryIndex; + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer _ObjCBlock12_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1) { - return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +ffi.Pointer + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1) => + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock12 extends _ObjCBlockBase { - ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey extends _ObjCBlockBase { + ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ObjCObject_NSError_NSErrorUserInfoKey.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -66923,50 +67656,63 @@ class ObjCBlock12 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>( - _ObjCBlock12_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSErrorUserInfoKey)>( + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock12.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_ObjCObject_NSError_NSErrorUserInfoKey.fromFunction( NativeCupertinoHttp lib, - ffi.Pointer Function( - ffi.Pointer arg0, NSErrorUserInfoKey arg1) - fn) + NSObject? Function(NSError, DartNSErrorUserInfoKey) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>( - _ObjCBlock12_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSErrorUserInfoKey)>( + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline) .cast(), - _ObjCBlock12_registerClosure(fn)), + _ObjCBlock_ObjCObject_NSError_NSErrorUserInfoKey_registerClosure( + (ffi.Pointer arg0, NSErrorUserInfoKey arg1) => + fn(NSError._(arg0, lib, retain: true, release: true), NSString._(arg1, lib, retain: true, release: true)) + ?._retainAndReturnId() ?? + ffi.nullptr)), lib); static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call( - ffi.Pointer arg0, NSErrorUserInfoKey arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSErrorUserInfoKey arg1)>()(_id, arg0, arg1); - } + + NSObject? call(NSError arg0, DartNSErrorUserInfoKey arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + NSErrorUserInfoKey arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, NSErrorUserInfoKey)>() + (_id, arg0._id, arg1._id) + .address == + 0 + ? null + : NSObject._( + _id.ref.invoke + .cast Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, NSErrorUserInfoKey arg1)>>() + .asFunction Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, NSErrorUserInfoKey)>()(_id, arg0._id, arg1._id), + _lib, + retain: false, + release: true); } typedef NSErrorUserInfoKey = ffi.Pointer; -typedef NSURLResourceKey = ffi.Pointer; +typedef DartNSErrorUserInfoKey = NSString; /// Working with Bookmarks and alias (bookmark) files abstract class NSURLBookmarkCreationOptions { @@ -67031,19 +67777,18 @@ class NSURLHandle extends NSObject { static void registerURLHandleClass_( NativeCupertinoHttp _lib, NSObject anURLHandleSubclass) { - return _lib._objc_msgSend_200(_lib._class_NSURLHandle1, + _lib._objc_msgSend_210(_lib._class_NSURLHandle1, _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); } - static NSObject URLHandleClassForURL_( - NativeCupertinoHttp _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSURLHandle1, - _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); + static NSObject URLHandleClassForURL_(NativeCupertinoHttp _lib, NSURL anURL) { + final _ret = _lib._objc_msgSend_211( + _lib._class_NSURLHandle1, _lib._sel_URLHandleClassForURL_1, anURL._id); return NSObject._(_ret, _lib, retain: true, release: true); } int status() { - return _lib._objc_msgSend_202(_id, _lib._sel_status1); + return _lib._objc_msgSend_212(_id, _lib._sel_status1); } NSString failureReason() { @@ -67051,105 +67796,106 @@ class NSURLHandle extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - void addClient_(NSObject? client) { - return _lib._objc_msgSend_200( - _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + void addClient_(NSObject client) { + _lib._objc_msgSend_210(_id, _lib._sel_addClient_1, client._id); } - void removeClient_(NSObject? client) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + void removeClient_(NSObject client) { + _lib._objc_msgSend_210(_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_51(_id, _lib._sel_resourceData1); + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_resourceData1); return NSData._(_ret, _lib, retain: true, release: true); } NSData availableResourceData() { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_availableResourceData1); + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_availableResourceData1); return NSData._(_ret, _lib, retain: true, release: true); } int expectedResourceDataSize() { - return _lib._objc_msgSend_82(_id, _lib._sel_expectedResourceDataSize1); + return _lib._objc_msgSend_87(_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_188( - _id, - _lib._sel_backgroundLoadDidFailWithReason_1, - reason?._id ?? ffi.nullptr); + void backgroundLoadDidFailWithReason_(NSString reason) { + _lib._objc_msgSend_195( + _id, _lib._sel_backgroundLoadDidFailWithReason_1, reason._id); } - void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - return _lib._objc_msgSend_203(_id, _lib._sel_didLoadBytes_loadComplete_1, - newBytes?._id ?? ffi.nullptr, yorn); + void didLoadBytes_loadComplete_(NSData newBytes, bool yorn) { + _lib._objc_msgSend_213( + _id, _lib._sel_didLoadBytes_loadComplete_1, newBytes._id, yorn); } - static bool canInitWithURL_(NativeCupertinoHttp _lib, NSURL? anURL) { - return _lib._objc_msgSend_204(_lib._class_NSURLHandle1, - _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + static bool canInitWithURL_(NativeCupertinoHttp _lib, NSURL anURL) { + return _lib._objc_msgSend_214( + _lib._class_NSURLHandle1, _lib._sel_canInitWithURL_1, anURL._id); } static NSURLHandle cachedHandleForURL_( - NativeCupertinoHttp _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_205(_lib._class_NSURLHandle1, - _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSURL anURL) { + final _ret = _lib._objc_msgSend_215( + _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_206(_id, _lib._sel_initWithURL_cached_1, - anURL?._id ?? ffi.nullptr, willCache); + NSObject initWithURL_cached_(NSURL anURL, bool willCache) { + final _ret = _lib._objc_msgSend_216( + _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_42( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + NSObject propertyForKey_(NSString propertyKey) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_propertyForKey_1, propertyKey._id); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_42(_id, - _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + NSObject propertyForKeyIfAvailable_(NSString propertyKey) { + final _ret = _lib._objc_msgSend_42( + _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_199(_id, _lib._sel_writeProperty_forKey_1, - propertyValue._id, propertyKey?._id ?? ffi.nullptr); + bool writeProperty_forKey_(NSObject propertyValue, NSString propertyKey) { + return _lib._objc_msgSend_209(_id, _lib._sel_writeProperty_forKey_1, + propertyValue._id, propertyKey._id); } - bool writeData_(NSData? data) { - return _lib._objc_msgSend_35( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + bool writeData_(NSData data) { + return _lib._objc_msgSend_35(_id, _lib._sel_writeData_1, data._id); } NSData loadInForeground() { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_loadInForeground1); + final _ret = _lib._objc_msgSend_54(_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(NativeCupertinoHttp _lib) { @@ -67157,6 +67903,13 @@ class NSURLHandle extends NSObject { return NSURLHandle._(_ret, _lib, retain: false, release: true); } + static NSURLHandle allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); @@ -67183,6 +67936,8 @@ abstract class NSDataWritingOptions { static const int NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = 1073741824; + static const int NSDataWritingFileProtectionCompleteWhenUserInactive = + 1342177280; static const int NSDataWritingFileProtectionMask = 4026531840; /// Deprecated name for NSDataWritingAtomic @@ -67195,38 +67950,49 @@ abstract class NSDataSearchOptions { static const int NSDataSearchAnchored = 2; } -void _ObjCBlock13_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 _ObjCBlock13_closureRegistry = {}; -int _ObjCBlock13_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { - final id = ++_ObjCBlock13_closureRegistryIndex; - _ObjCBlock13_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 _ObjCBlock13_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock13_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock13 extends _ObjCBlockBase { - ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiVoid_NSRange_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -67234,55 +68000,88 @@ class ObjCBlock13 extends _ObjCBlockBase { ffi.Pointer arg2)>> ptr) : this._( - lib - ._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock13_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + 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. - ObjCBlock13.fromFunction( - NativeCupertinoHttp 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(NativeCupertinoHttp lib, + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock13_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock13_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( + (ffi.Pointer arg0, NSRange arg1, + ffi.Pointer arg2) => + fn(arg0, arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + + /// 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(NativeCupertinoHttp 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); } /// Read/Write Options @@ -67306,35 +68105,41 @@ abstract class NSDataReadingOptions { static const int NSUncachedRead = 2; } -void _ObjCBlock14_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 _ObjCBlock14_closureRegistry = {}; -int _ObjCBlock14_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { - final id = ++_ObjCBlock14_closureRegistryIndex; - _ObjCBlock14_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction, int)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock14_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock14 extends _ObjCBlockBase { - ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiVoid_NSUInteger extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiVoid_NSUInteger._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiVoid_ffiVoid_NSUInteger.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -67344,39 +68149,69 @@ class ObjCBlock14 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock14_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, NSUInteger)>( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock14.fromFunction(NativeCupertinoHttp 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_NSUInteger.fromFunction(NativeCupertinoHttp lib, + void Function(ffi.Pointer, DartNSUInteger) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock14_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, NSUInteger)>( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline) .cast(), - _ObjCBlock14_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } + + /// 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_NSUInteger.listener(NativeCupertinoHttp lib, + void Function(ffi.Pointer, DartNSUInteger) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, NSUInteger)>.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, NSUInteger)>? + _dartFuncListenerTrampoline; + + void call(ffi.Pointer arg0, DartNSUInteger arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } abstract class NSDataBase64DecodingOptions { @@ -67415,6 +68250,7 @@ abstract class NSDataCompressionAlgorithm { typedef UTF32Char = UInt32; typedef UInt32 = ffi.UnsignedInt; +typedef DartUInt32 = int; abstract class NSStringEnumerationOptions { static const int NSStringEnumerationByLines = 0; @@ -67429,49 +68265,56 @@ abstract class NSStringEnumerationOptions { static const int NSStringEnumerationLocalized = 1024; } -void _ObjCBlock15_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 _ObjCBlock15_closureRegistry = {}; -int _ObjCBlock15_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { - final id = ++_ObjCBlock15_closureRegistryIndex; - _ObjCBlock15_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 _ObjCBlock15_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3) { - return _ObjCBlock15_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} +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 ObjCBlock15 extends _ObjCBlockBase { - ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSString_NSRange_NSRange_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -67482,89 +68325,143 @@ class ObjCBlock15 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock15_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. - ObjCBlock15.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_NSString_NSRange_NSRange_bool.fromFunction( NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) - fn) + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock15_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) .cast(), - _ObjCBlock15_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); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, NSRange arg1, NSRange arg2, - ffi.Pointer arg3) { - return _id.ref.invoke + + /// 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( + NativeCupertinoHttp lib, + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .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.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); - } -} - -void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock16_closureRegistry = {}; -int _ObjCBlock16_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { - final id = ++_ObjCBlock16_closureRegistryIndex; - _ObjCBlock16_closureRegistry[id] = fn; + 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 _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock16_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 ObjCBlock16 extends _ObjCBlockBase { - ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString_bool._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSString_bool.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -67575,46 +68472,78 @@ class ObjCBlock16 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock16_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. - ObjCBlock16.fromFunction( - NativeCupertinoHttp 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(NativeCupertinoHttp lib, + void Function(NSString, ffi.Pointer) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock16_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) .cast(), - _ObjCBlock16_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSString_bool_registerClosure( + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSString._(arg0, lib, retain: true, release: true), + arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + + /// 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(NativeCupertinoHttp 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; + + 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; @@ -67625,35 +68554,42 @@ abstract class NSStringEncodingConversionOptions { } typedef NSStringTransform = ffi.Pointer; -void _ObjCBlock17_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 _ObjCBlock17_closureRegistry = {}; -int _ObjCBlock17_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { - final id = ++_ObjCBlock17_closureRegistryIndex; - _ObjCBlock17_closureRegistry[id] = fn; +typedef DartNSStringTransform = NSString; +void _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction, int)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_unichar_NSUInteger_closureRegistry = + , int)>{}; +int _ObjCBlock_ffiVoid_unichar_NSUInteger_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_registerClosure( + void Function(ffi.Pointer, int) fn) { + final id = ++_ObjCBlock_ffiVoid_unichar_NSUInteger_closureRegistryIndex; + _ObjCBlock_ffiVoid_unichar_NSUInteger_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock17_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) => + _ObjCBlock_ffiVoid_unichar_NSUInteger_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock17 extends _ObjCBlockBase { - ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_unichar_NSUInteger extends _ObjCBlockBase { + ObjCBlock_ffiVoid_unichar_NSUInteger._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_unichar_NSUInteger.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -67663,39 +68599,69 @@ class ObjCBlock17 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock17_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, NSUInteger)>( + _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock17.fromFunction(NativeCupertinoHttp 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_unichar_NSUInteger.fromFunction(NativeCupertinoHttp lib, + void Function(ffi.Pointer, DartNSUInteger) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - NSUInteger arg1)>(_ObjCBlock17_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, NSUInteger)>( + _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline) .cast(), - _ObjCBlock17_registerClosure(fn)), + _ObjCBlock_ffiVoid_unichar_NSUInteger_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, NSUInteger arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } + + /// 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_unichar_NSUInteger.listener(NativeCupertinoHttp lib, + void Function(ffi.Pointer, DartNSUInteger) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer, NSUInteger)>.listener( + _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_unichar_NSUInteger_registerClosure( + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Pointer, NSUInteger)>? + _dartFuncListenerTrampoline; + + void call(ffi.Pointer arg0, DartNSUInteger arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, NSUInteger arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + int)>()(_id, arg0, arg1); } typedef va_list = __builtin_va_list; @@ -67710,6 +68676,7 @@ abstract class NSQualityOfService { } abstract class ptrauth_key { + static const int ptrauth_key_none = -1; static const int ptrauth_key_asia = 0; static const int ptrauth_key_asib = 1; static const int ptrauth_key_asda = 2; @@ -67741,6 +68708,7 @@ final class wide extends ffi.Struct { } typedef SInt32 = ffi.Int; +typedef DartSInt32 = int; @ffi.Packed(2) final class UnsignedWide extends ffi.Struct { @@ -67760,7 +68728,9 @@ final class Float80 extends ffi.Struct { } typedef SInt16 = ffi.Short; +typedef DartSInt16 = int; typedef UInt16 = ffi.UnsignedShort; +typedef DartUInt16 = int; final class Float96 extends ffi.Struct { @ffi.Array.multi([2]) @@ -67780,6 +68750,7 @@ final class Float32Point extends ffi.Struct { } typedef Float32 = ffi.Float; +typedef DartFloat32 = double; @ffi.Packed(2) final class ProcessSerialNumber extends ffi.Struct { @@ -67869,6 +68840,7 @@ final class NumVersion extends ffi.Struct { } typedef UInt8 = ffi.UnsignedChar; +typedef DartUInt8 = int; final class NumVersionVariant extends ffi.Union { external NumVersion parts; @@ -67901,6 +68873,7 @@ abstract class CFComparisonResult { } typedef CFIndex = ffi.Long; +typedef DartCFIndex = int; final class CFRange extends ffi.Struct { @CFIndex() @@ -67913,6 +68886,7 @@ final class CFRange extends ffi.Struct { final class __CFNull extends ffi.Opaque {} typedef CFTypeID = ffi.UnsignedLong; +typedef DartCFTypeID = int; typedef CFNullRef = ffi.Pointer<__CFNull>; final class __CFAllocator extends ffi.Opaque {} @@ -67940,34 +68914,60 @@ final class CFAllocatorContext extends ffi.Struct { external CFAllocatorPreferredSizeCallBack preferredSize; } -typedef CFAllocatorRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>>; -typedef CFAllocatorReleaseCallBack = ffi - .Pointer info)>>; -typedef CFAllocatorCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction info)>>; +typedef CFAllocatorRetainCallBack + = ffi.Pointer>; +typedef CFAllocatorRetainCallBackFunction = ffi.Pointer Function( + ffi.Pointer info); +typedef CFAllocatorReleaseCallBack + = ffi.Pointer>; +typedef CFAllocatorReleaseCallBackFunction = ffi.Void Function( + ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = void Function( + ffi.Pointer info); +typedef CFAllocatorCopyDescriptionCallBack = ffi + .Pointer>; +typedef CFAllocatorCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer info); typedef CFStringRef = ffi.Pointer<__CFString>; -typedef CFAllocatorAllocateCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CFIndex allocSize, CFOptionFlags hint, - ffi.Pointer info)>>; +typedef CFAllocatorAllocateCallBack + = ffi.Pointer>; +typedef CFAllocatorAllocateCallBackFunction = ffi.Pointer Function( + CFIndex allocSize, CFOptionFlags hint, ffi.Pointer info); +typedef DartCFAllocatorAllocateCallBackFunction + = ffi.Pointer Function(DartCFIndex allocSize, + DartCFOptionFlags hint, ffi.Pointer info); typedef CFOptionFlags = ffi.UnsignedLong; -typedef CFAllocatorReallocateCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer ptr, - CFIndex newsize, CFOptionFlags hint, ffi.Pointer info)>>; -typedef CFAllocatorDeallocateCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer ptr, ffi.Pointer info)>>; -typedef CFAllocatorPreferredSizeCallBack = ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - CFIndex size, CFOptionFlags hint, ffi.Pointer info)>>; +typedef DartCFOptionFlags = int; +typedef CFAllocatorReallocateCallBack + = ffi.Pointer>; +typedef CFAllocatorReallocateCallBackFunction = ffi.Pointer Function( + ffi.Pointer ptr, + CFIndex newsize, + CFOptionFlags hint, + ffi.Pointer info); +typedef DartCFAllocatorReallocateCallBackFunction + = ffi.Pointer Function( + ffi.Pointer ptr, + DartCFIndex newsize, + DartCFOptionFlags hint, + ffi.Pointer info); +typedef CFAllocatorDeallocateCallBack + = ffi.Pointer>; +typedef CFAllocatorDeallocateCallBackFunction = ffi.Void Function( + ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = void Function( + ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBack + = ffi.Pointer>; +typedef CFAllocatorPreferredSizeCallBackFunction = CFIndex Function( + CFIndex size, CFOptionFlags hint, ffi.Pointer info); +typedef DartCFAllocatorPreferredSizeCallBackFunction = DartCFIndex Function( + DartCFIndex size, DartCFOptionFlags hint, ffi.Pointer info); typedef CFTypeRef = ffi.Pointer; typedef Boolean = ffi.UnsignedChar; +typedef DartBoolean = int; typedef CFHashCode = ffi.UnsignedLong; +typedef DartCFHashCode = int; typedef NSZone = _NSZone; class NSMutableIndexSet extends NSIndexSet { @@ -67994,38 +68994,37 @@ class NSMutableIndexSet extends NSIndexSet { obj._lib._class_NSMutableIndexSet1); } - void addIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_285( - _id, _lib._sel_addIndexes_1, indexSet?._id ?? ffi.nullptr); + void addIndexes_(NSIndexSet indexSet) { + _lib._objc_msgSend_302(_id, _lib._sel_addIndexes_1, indexSet._id); } - void removeIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_285( - _id, _lib._sel_removeIndexes_1, indexSet?._id ?? ffi.nullptr); + void removeIndexes_(NSIndexSet indexSet) { + _lib._objc_msgSend_302(_id, _lib._sel_removeIndexes_1, indexSet._id); } void removeAllIndexes() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllIndexes1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllIndexes1); } - void addIndex_(int value) { - return _lib._objc_msgSend_286(_id, _lib._sel_addIndex_1, value); + void addIndex_(DartNSUInteger value) { + _lib._objc_msgSend_303(_id, _lib._sel_addIndex_1, value); } - void removeIndex_(int value) { - return _lib._objc_msgSend_286(_id, _lib._sel_removeIndex_1, value); + void removeIndex_(DartNSUInteger value) { + _lib._objc_msgSend_303(_id, _lib._sel_removeIndex_1, value); } void addIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_addIndexesInRange_1, range); + _lib._objc_msgSend_304(_id, _lib._sel_addIndexesInRange_1, range); } void removeIndexesInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_removeIndexesInRange_1, range); + _lib._objc_msgSend_304(_id, _lib._sel_removeIndexesInRange_1, range); } - void shiftIndexesStartingAtIndex_by_(int index, int delta) { - return _lib._objc_msgSend_288( + void shiftIndexesStartingAtIndex_by_( + DartNSUInteger index, DartNSInteger delta) { + _lib._objc_msgSend_305( _id, _lib._sel_shiftIndexesStartingAtIndex_by_1, index, delta); } @@ -68036,25 +69035,58 @@ class NSMutableIndexSet extends NSIndexSet { } static NSMutableIndexSet indexSetWithIndex_( - NativeCupertinoHttp _lib, int value) { - final _ret = _lib._objc_msgSend_94( + NativeCupertinoHttp _lib, DartNSUInteger value) { + final _ret = _lib._objc_msgSend_99( _lib._class_NSMutableIndexSet1, _lib._sel_indexSetWithIndex_1, value); return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); } static NSMutableIndexSet indexSetWithIndexesInRange_( NativeCupertinoHttp _lib, NSRange range) { - final _ret = _lib._objc_msgSend_111(_lib._class_NSMutableIndexSet1, + final _ret = _lib._objc_msgSend_116(_lib._class_NSMutableIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); } + @override + NSMutableIndexSet initWithIndexesInRange_(NSRange range) { + final _ret = + _lib._objc_msgSend_116(_id, _lib._sel_initWithIndexesInRange_1, range); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableIndexSet initWithIndexSet_(NSIndexSet indexSet) { + final _ret = + _lib._objc_msgSend_117(_id, _lib._sel_initWithIndexSet_1, indexSet._id); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableIndexSet initWithIndex_(DartNSUInteger value) { + final _ret = _lib._objc_msgSend_99(_id, _lib._sel_initWithIndex_1, value); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableIndexSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableIndexSet._(_ret, _lib, retain: true, release: true); + } + static NSMutableIndexSet new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableIndexSet1, _lib._sel_new1); return NSMutableIndexSet._(_ret, _lib, retain: false, release: true); } + static NSMutableIndexSet allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableIndexSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableIndexSet._(_ret, _lib, retain: false, release: true); + } + static NSMutableIndexSet alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableIndexSet1, _lib._sel_alloc1); @@ -68087,24 +69119,25 @@ class NSMutableArray extends NSArray { } void addObject_(NSObject anObject) { - return _lib._objc_msgSend_200(_id, _lib._sel_addObject_1, anObject._id); + _lib._objc_msgSend_210(_id, _lib._sel_addObject_1, anObject._id); } - void insertObject_atIndex_(NSObject anObject, int index) { - return _lib._objc_msgSend_289( + void insertObject_atIndex_(NSObject anObject, DartNSUInteger index) { + _lib._objc_msgSend_306( _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_286(_id, _lib._sel_removeObjectAtIndex_1, index); + void removeObjectAtIndex_(DartNSUInteger index) { + _lib._objc_msgSend_303(_id, _lib._sel_removeObjectAtIndex_1, index); } - void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - return _lib._objc_msgSend_290( + void replaceObjectAtIndex_withObject_( + DartNSUInteger index, NSObject anObject) { + _lib._objc_msgSend_307( _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } @@ -68114,89 +69147,91 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithCapacity_(int numItems) { + NSMutableArray initWithCapacity_(DartNSUInteger numItems) { final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_99(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableArray._(_ret, _lib, retain: true, release: true); } @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _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_14(_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_291( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + void addObjectsFromArray_(NSArray otherArray) { + _lib._objc_msgSend_308( + _id, _lib._sel_addObjectsFromArray_1, otherArray._id); } - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_292( + void exchangeObjectAtIndex_withObjectAtIndex_( + DartNSUInteger idx1, DartNSUInteger idx2) { + _lib._objc_msgSend_309( _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_293( + _lib._objc_msgSend_310( _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } void removeObject_(NSObject anObject) { - return _lib._objc_msgSend_200(_id, _lib._sel_removeObject_1, anObject._id); + _lib._objc_msgSend_210(_id, _lib._sel_removeObject_1, anObject._id); } void removeObjectIdenticalTo_inRange_(NSObject anObject, NSRange range) { - return _lib._objc_msgSend_293( + _lib._objc_msgSend_310( _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } void removeObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_200( + _lib._objc_msgSend_210( _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - return _lib._objc_msgSend_294( + ffi.Pointer indices, DartNSUInteger cnt) { + _lib._objc_msgSend_311( _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } - void removeObjectsInArray_(NSArray? otherArray) { - return _lib._objc_msgSend_291( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray otherArray) { + _lib._objc_msgSend_308( + _id, _lib._sel_removeObjectsInArray_1, otherArray._id); } void removeObjectsInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_removeObjectsInRange_1, range); + _lib._objc_msgSend_304(_id, _lib._sel_removeObjectsInRange_1, range); } void replaceObjectsInRange_withObjectsFromArray_range_( - NSRange range, NSArray? otherArray, NSRange otherRange) { - return _lib._objc_msgSend_295( + NSRange range, NSArray otherArray, NSRange otherRange) { + _lib._objc_msgSend_312( _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_296( + NSRange range, NSArray otherArray) { + _lib._objc_msgSend_313( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, range, - otherArray?._id ?? ffi.nullptr); + otherArray._id); } - void setArray_(NSArray? otherArray) { - return _lib._objc_msgSend_291( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + void setArray_(NSArray otherArray) { + _lib._objc_msgSend_308(_id, _lib._sel_setArray_1, otherArray._id); } void sortUsingFunction_context_( @@ -68206,83 +69241,95 @@ class NSMutableArray extends NSArray { ffi.Pointer, ffi.Pointer)>> compare, ffi.Pointer context) { - return _lib._objc_msgSend_297( + _lib._objc_msgSend_314( _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_298(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { + _lib._objc_msgSend_315( + _id, _lib._sel_insertObjects_atIndexes_1, objects._id, indexes._id); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_285( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + void removeObjectsAtIndexes_(NSIndexSet indexes) { + _lib._objc_msgSend_302( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes._id); } void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_299( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + NSIndexSet indexes, NSArray objects) { + _lib._objc_msgSend_316(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes._id, objects._id); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_289( + void setObject_atIndexedSubscript_(NSObject obj, DartNSUInteger idx) { + _lib._objc_msgSend_306( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - void sortUsingComparator_(NSComparator cmptr) { - return _lib._objc_msgSend_300(_id, _lib._sel_sortUsingComparator_1, cmptr); + void sortUsingComparator_(DartNSComparator cmptr) { + _lib._objc_msgSend_317(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_(int opts, NSComparator cmptr) { - return _lib._objc_msgSend_301( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr); + void sortWithOptions_usingComparator_(int opts, DartNSComparator cmptr) { + _lib._objc_msgSend_318( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } static NSMutableArray arrayWithCapacity_( - NativeCupertinoHttp _lib, int numItems) { - final _ret = _lib._objc_msgSend_94( + NativeCupertinoHttp _lib, DartNSUInteger numItems) { + final _ret = _lib._objc_msgSend_99( _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_302(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_319(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_303(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSMutableArray? arrayWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_320(_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_302( - _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_319( + _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_303( - _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_320(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableArray._(_ret, _lib, retain: true, release: true); } - void applyDifference_(NSOrderedCollectionDifference? difference) { - return _lib._objc_msgSend_304( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + void applyDifference_(NSOrderedCollectionDifference difference) { + _lib._objc_msgSend_321(_id, _lib._sel_applyDifference_1, difference._id); + } + + @override + NSMutableArray initWithObjects_count_( + ffi.Pointer> objects, DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_100( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray array(NativeCupertinoHttp _lib) { @@ -68293,41 +69340,61 @@ class NSMutableArray extends NSArray { static NSMutableArray arrayWithObject_( NativeCupertinoHttp _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_91( + final _ret = _lib._objc_msgSend_149( _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_count_(NativeCupertinoHttp _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_95(_lib._class_NSMutableArray1, + ffi.Pointer> objects, DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_( NativeCupertinoHttp _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_91(_lib._class_NSMutableArray1, + final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableArray1, _lib._sel_arrayWithObjects_1, firstObj._id); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithArray_( - NativeCupertinoHttp _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSArray array) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSMutableArray1, _lib._sel_arrayWithArray_1, array._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_149(_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_150(_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_151( + _id, _lib._sel_initWithArray_copyItems_1, array._id, flag); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + /// Reads array stored in NSPropertyList format from the specified url. - static NSArray arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_145( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSArray? arrayWithContentsOfURL_error_(NativeCupertinoHttp _lib, + NSURL url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152(_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(NativeCupertinoHttp _lib) { @@ -68336,6 +69403,13 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: false, release: true); } + static NSMutableArray allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); @@ -68372,47 +69446,45 @@ class NSMutableData extends NSData { } @override - int get length { + DartNSUInteger get length { return _lib._objc_msgSend_12(_id, _lib._sel_length1); } - set length(int value) { - _lib._objc_msgSend_305(_id, _lib._sel_setLength_1, value); + set length(DartNSUInteger value) { + return _lib._objc_msgSend_322(_id, _lib._sel_setLength_1, value); } - void appendBytes_length_(ffi.Pointer bytes, int length) { - return _lib._objc_msgSend_33( - _id, _lib._sel_appendBytes_length_1, bytes, length); + void appendBytes_length_(ffi.Pointer bytes, DartNSUInteger length) { + _lib._objc_msgSend_33(_id, _lib._sel_appendBytes_length_1, bytes, length); } - void appendData_(NSData? other) { - return _lib._objc_msgSend_306( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + void appendData_(NSData other) { + _lib._objc_msgSend_323(_id, _lib._sel_appendData_1, other._id); } - void increaseLengthBy_(int extraLength) { - return _lib._objc_msgSend_286( - _id, _lib._sel_increaseLengthBy_1, extraLength); + void increaseLengthBy_(DartNSUInteger extraLength) { + _lib._objc_msgSend_303(_id, _lib._sel_increaseLengthBy_1, extraLength); } void replaceBytesInRange_withBytes_( NSRange range, ffi.Pointer bytes) { - return _lib._objc_msgSend_307( + _lib._objc_msgSend_324( _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } void resetBytesInRange_(NSRange range) { - return _lib._objc_msgSend_287(_id, _lib._sel_resetBytesInRange_1, range); + _lib._objc_msgSend_304(_id, _lib._sel_resetBytesInRange_1, range); } - void setData_(NSData? data) { - return _lib._objc_msgSend_306( - _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + void setData_(NSData data) { + _lib._objc_msgSend_323(_id, _lib._sel_setData_1, data._id); } - void replaceBytesInRange_withBytes_length_(NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { - return _lib._objc_msgSend_308( + void replaceBytesInRange_withBytes_length_( + NSRange range, + ffi.Pointer replacementBytes, + DartNSUInteger replacementLength) { + _lib._objc_msgSend_325( _id, _lib._sel_replaceBytesInRange_withBytes_length_1, range, @@ -68420,40 +69492,50 @@ class NSMutableData extends NSData { replacementLength); } - static NSMutableData dataWithCapacity_( - NativeCupertinoHttp _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_94( + static NSMutableData? dataWithCapacity_( + NativeCupertinoHttp _lib, DartNSUInteger aNumItems) { + final _ret = _lib._objc_msgSend_326( _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_(NativeCupertinoHttp _lib, int length) { - final _ret = _lib._objc_msgSend_94( + static NSMutableData? dataWithLength_( + NativeCupertinoHttp _lib, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_326( _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_(DartNSUInteger capacity) { final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_326(_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_94(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + NSMutableData? initWithLength_(DartNSUInteger length) { + final _ret = + _lib._objc_msgSend_326(_id, _lib._sel_initWithLength_1, length); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } /// These methods compress or decompress the receiver's contents in-place using the specified algorithm. If the operation is not successful, these methods leave the receiver unchanged.. bool decompressUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_309( + return _lib._objc_msgSend_327( _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); } bool compressUsingAlgorithm_error_( int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_309( + return _lib._objc_msgSend_327( _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); } @@ -68463,16 +69545,16 @@ class NSMutableData extends NSData { return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytes_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSMutableData1, + static NSMutableData dataWithBytes_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222(_lib._class_NSMutableData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytesNoCopy_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSMutableData1, + static NSMutableData dataWithBytesNoCopy_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222(_lib._class_NSMutableData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: false, release: true); } @@ -68480,66 +69562,219 @@ class NSMutableData extends NSData { static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( NativeCupertinoHttp _lib, ffi.Pointer bytes, - int length, + DartNSUInteger length, bool b) { - final _ret = _lib._objc_msgSend_213(_lib._class_NSMutableData1, + final _ret = _lib._objc_msgSend_223(_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_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( + final _ret = _lib._objc_msgSend_224( _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_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( + final _ret = _lib._objc_msgSend_225( _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_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData? dataWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226( + _lib._class_NSMutableData1, _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + @override + NSMutableData initWithBytes_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( + _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + @override + NSMutableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, DartNSUInteger length, bool b) { + final _ret = _lib._objc_msgSend_223(_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, + DartNSUInteger length, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_227( + _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_224( + _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_225( + _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_49( + _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_226(_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_228(_id, _lib._sel_initWithData_1, data._id); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSMutableData dataWithData_(NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSMutableData1, _lib._sel_dataWithData_1, data._id); return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Create an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64. + @override + NSMutableData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_229( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String._id, + options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + /// Create an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64. + @override + NSMutableData? initWithBase64EncodedData_options_( + NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_231(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + /// These methods return a compressed or decompressed version of the receiver using the specified algorithm. + @override + NSMutableData? decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_233(_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_233( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject? dataWithContentsOfMappedFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_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(NativeCupertinoHttp _lib) { @@ -68548,6 +69783,13 @@ class NSMutableData extends NSData { return NSMutableData._(_ret, _lib, retain: false, release: true); } + static NSMutableData allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); @@ -68580,17 +69822,40 @@ class NSPurgeableData extends NSMutableData { obj._lib._class_NSPurgeableData1); } - static NSPurgeableData dataWithCapacity_( - NativeCupertinoHttp _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_94( + static NSPurgeableData? dataWithCapacity_( + NativeCupertinoHttp _lib, DartNSUInteger aNumItems) { + final _ret = _lib._objc_msgSend_326( _lib._class_NSPurgeableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithLength_(NativeCupertinoHttp _lib, int length) { - final _ret = _lib._objc_msgSend_94( + static NSPurgeableData? dataWithLength_( + NativeCupertinoHttp _lib, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_326( _lib._class_NSPurgeableData1, _lib._sel_dataWithLength_1, length); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData? initWithCapacity_(DartNSUInteger capacity) { + final _ret = + _lib._objc_msgSend_326(_id, _lib._sel_initWithCapacity_1, capacity); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData? initWithLength_(DartNSUInteger length) { + final _ret = + _lib._objc_msgSend_326(_id, _lib._sel_initWithLength_1, length); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); } static NSPurgeableData data(NativeCupertinoHttp _lib) { @@ -68599,16 +69864,16 @@ class NSPurgeableData extends NSMutableData { return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithBytes_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSPurgeableData1, + static NSPurgeableData dataWithBytes_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222(_lib._class_NSPurgeableData1, _lib._sel_dataWithBytes_length_1, bytes, length); return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithBytesNoCopy_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_212(_lib._class_NSPurgeableData1, + static NSPurgeableData dataWithBytesNoCopy_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222(_lib._class_NSPurgeableData1, _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); return NSPurgeableData._(_ret, _lib, retain: false, release: true); } @@ -68616,66 +69881,219 @@ class NSPurgeableData extends NSMutableData { static NSPurgeableData dataWithBytesNoCopy_length_freeWhenDone_( NativeCupertinoHttp _lib, ffi.Pointer bytes, - int length, + DartNSUInteger length, bool b) { - final _ret = _lib._objc_msgSend_213(_lib._class_NSPurgeableData1, + final _ret = _lib._objc_msgSend_223(_lib._class_NSPurgeableData1, _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); return NSPurgeableData._(_ret, _lib, retain: false, release: true); } - static NSPurgeableData dataWithContentsOfFile_options_error_( + static NSPurgeableData? dataWithContentsOfFile_options_error_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_214( + final _ret = _lib._objc_msgSend_224( _lib._class_NSPurgeableData1, _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, + path._id, readOptionsMask, errorPtr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithContentsOfURL_options_error_( + static NSPurgeableData? dataWithContentsOfURL_options_error_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_215( + final _ret = _lib._objc_msgSend_225( _lib._class_NSPurgeableData1, _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, + url._id, readOptionsMask, errorPtr); - return NSPurgeableData._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + static NSPurgeableData? dataWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + static NSPurgeableData? dataWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226(_lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + @override + NSPurgeableData initWithBytes_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( + _id, _lib._sel_initWithBytes_length_1, bytes, length); return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + @override + NSPurgeableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_222( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSPurgeableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, DartNSUInteger length, bool b) { + final _ret = _lib._objc_msgSend_223(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSPurgeableData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, + DartNSUInteger length, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_227( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator?._id ?? ffi.nullptr); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSPurgeableData? initWithContentsOfFile_options_error_(NSString path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_224( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData? initWithContentsOfURL_options_error_(NSURL url, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_225( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url._id, + readOptionsMask, + errorPtr); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData? initWithContentsOfFile_(NSString path) { + final _ret = _lib._objc_msgSend_49( + _id, _lib._sel_initWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData? initWithContentsOfURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_226(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_228(_id, _lib._sel_initWithData_1, data._id); return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSPurgeableData dataWithData_(NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSPurgeableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + static NSPurgeableData dataWithData_(NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSPurgeableData1, _lib._sel_dataWithData_1, data._id); return NSPurgeableData._(_ret, _lib, retain: true, release: true); } - static NSObject dataWithContentsOfMappedFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSPurgeableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Create an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64. + @override + NSPurgeableData? initWithBase64EncodedString_options_( + NSString base64String, int options) { + final _ret = _lib._objc_msgSend_229( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String._id, + options); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + /// Create an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64. + @override + NSPurgeableData? initWithBase64EncodedData_options_( + NSData base64Data, int options) { + final _ret = _lib._objc_msgSend_231(_id, + _lib._sel_initWithBase64EncodedData_options_1, base64Data._id, options); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + /// These methods return a compressed or decompressed version of the receiver using the specified algorithm. + @override + NSPurgeableData? decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_233(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData? compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_233( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return _ret.address == 0 + ? null + : NSPurgeableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject? dataWithContentsOfMappedFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSPurgeableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSPurgeableData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPurgeableData._(_ret, _lib, retain: true, release: true); } static NSPurgeableData new1(NativeCupertinoHttp _lib) { @@ -68684,6 +70102,13 @@ class NSPurgeableData extends NSMutableData { return NSPurgeableData._(_ret, _lib, retain: false, release: true); } + static NSPurgeableData allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPurgeableData1, _lib._sel_allocWithZone_1, zone); + return NSPurgeableData._(_ret, _lib, retain: false, release: true); + } + static NSPurgeableData alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPurgeableData1, _lib._sel_alloc1); @@ -68717,12 +70142,11 @@ class NSMutableDictionary extends NSDictionary { } void removeObjectForKey_(NSObject aKey) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeObjectForKey_1, aKey._id); + _lib._objc_msgSend_210(_id, _lib._sel_removeObjectForKey_1, aKey._id); } void setObject_forKey_(NSObject anObject, NSObject aKey) { - return _lib._objc_msgSend_310( + _lib._objc_msgSend_328( _id, _lib._sel_setObject_forKey_1, anObject._id, aKey._id); } @@ -68732,74 +70156,82 @@ class NSMutableDictionary extends NSDictionary { return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithCapacity_(int numItems) { + NSMutableDictionary initWithCapacity_(DartNSUInteger numItems) { final _ret = - _lib._objc_msgSend_94(_id, _lib._sel_initWithCapacity_1, numItems); + _lib._objc_msgSend_99(_id, _lib._sel_initWithCapacity_1, numItems); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _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_14(_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_311(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + void addEntriesFromDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_329( + _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_291( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + void removeObjectsForKeys_(NSArray keyArray) { + _lib._objc_msgSend_308(_id, _lib._sel_removeObjectsForKeys_1, keyArray._id); } - void setDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_311( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + void setDictionary_(NSDictionary otherDictionary) { + _lib._objc_msgSend_329(_id, _lib._sel_setDictionary_1, otherDictionary._id); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject key) { - return _lib._objc_msgSend_310( - _id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key._id); + void setObject_forKeyedSubscript_(NSObject? obj, NSObject key) { + _lib._objc_msgSend_330(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj?._id ?? ffi.nullptr, key._id); } static NSMutableDictionary dictionaryWithCapacity_( - NativeCupertinoHttp _lib, int numItems) { - final _ret = _lib._objc_msgSend_94(_lib._class_NSMutableDictionary1, + NativeCupertinoHttp _lib, DartNSUInteger numItems) { + final _ret = _lib._objc_msgSend_99(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithCapacity_1, numItems); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_312(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary? dictionaryWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_331(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_313(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableDictionary? dictionaryWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_332(_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_312( - _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_331( + _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_313( - _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_332(_id, _lib._sel_initWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } /// Create a mutable dictionary which is optimized for dealing with a known set of keys. @@ -68809,11 +70241,21 @@ class NSMutableDictionary extends NSDictionary { /// If keyset is not an object returned by +sharedKeySetForKeys:, an exception is thrown. static NSMutableDictionary dictionaryWithSharedKeySet_( NativeCupertinoHttp _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_314(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_333(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } + @override + NSMutableDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_98( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + static NSMutableDictionary dictionary(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); @@ -68822,7 +70264,7 @@ class NSMutableDictionary extends NSDictionary { static NSMutableDictionary dictionaryWithObject_forKey_( NativeCupertinoHttp _lib, NSObject object, NSObject key) { - final _ret = _lib._objc_msgSend_173(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_180(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObject_forKey_1, object._id, key._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @@ -68831,47 +70273,72 @@ class NSMutableDictionary extends NSDictionary { NativeCupertinoHttp _lib, ffi.Pointer> objects, ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_93(_lib._class_NSMutableDictionary1, + DartNSUInteger cnt) { + final _ret = _lib._objc_msgSend_98(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjectsAndKeys_( NativeCupertinoHttp _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_91(_lib._class_NSMutableDictionary1, + final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithDictionary_( - NativeCupertinoHttp _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_174(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSDictionary dict) { + final _ret = _lib._objc_msgSend_181(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjects_forKeys_( - NativeCupertinoHttp _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_175( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSArray objects, NSArray keys) { + final _ret = _lib._objc_msgSend_182(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, objects._id, keys._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_149( + _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_181( + _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_183(_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_182( + _id, _lib._sel_initWithObjects_forKeys_1, objects._id, keys._id); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } /// Reads dictionary stored in NSPropertyList format from the specified url. - static NSDictionary dictionaryWithContentsOfURL_error_( + static NSDictionary? dictionaryWithContentsOfURL_error_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_177( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + final _ret = _lib._objc_msgSend_184(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, url._id, error); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } /// Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. @@ -68881,10 +70348,9 @@ class NSMutableDictionary extends NSDictionary { /// The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). /// As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. /// Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage. - static NSObject sharedKeySetForKeys_( - NativeCupertinoHttp _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_100(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + static NSObject sharedKeySetForKeys_(NativeCupertinoHttp _lib, NSArray keys) { + final _ret = _lib._objc_msgSend_150(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -68894,6 +70360,13 @@ class NSMutableDictionary extends NSDictionary { return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } + static NSMutableDictionary allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableDictionary1, _lib._sel_alloc1); @@ -68966,9 +70439,9 @@ class NSCachedURLResponse extends NSObject { /// corresponding to the given response. /// @result an initialized NSCachedURLResponse. NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_316(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + NSURLResponse response, NSData data) { + final _ret = _lib._objc_msgSend_335( + _id, _lib._sel_initWithResponse_data_1, response._id, data._id); return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } @@ -68984,15 +70457,15 @@ class NSCachedURLResponse extends NSObject { /// @param storagePolicy an NSURLCacheStoragePolicy constant. /// @result an initialized NSCachedURLResponse. NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, + NSURLResponse response, + NSData data, NSDictionary? userInfo, int storagePolicy) { - final _ret = _lib._objc_msgSend_317( + final _ret = _lib._objc_msgSend_336( _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); @@ -69001,28 +70474,24 @@ class NSCachedURLResponse extends NSObject { /// ! /// @abstract Returns the response wrapped by this instance. /// @result The response wrapped by this instance. - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_318(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + NSURLResponse get response { + final _ret = _lib._objc_msgSend_337(_id, _lib._sel_response1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } /// ! /// @abstract Returns the data of the receiver. /// @result The data of the receiver. - NSData? get data { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); } /// ! /// @abstract Returns the userInfo dictionary of the receiver. /// @result The userInfo dictionary of the receiver. NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_288(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -69032,7 +70501,13 @@ class NSCachedURLResponse extends NSObject { /// @abstract Returns the NSURLCacheStoragePolicy constant of the receiver. /// @result The NSURLCacheStoragePolicy constant of the receiver. int get storagePolicy { - return _lib._objc_msgSend_319(_id, _lib._sel_storagePolicy1); + return _lib._objc_msgSend_338(_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(NativeCupertinoHttp _lib) { @@ -69041,6 +70516,13 @@ class NSCachedURLResponse extends NSObject { return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } + static NSCachedURLResponse allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); @@ -69081,11 +70563,11 @@ class NSURLResponse extends NSObject { /// @result The initialized NSURLResponse. /// @discussion This is the designated initializer for NSURLResponse. NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_315( + NSURL URL, NSString? MIMEType, DartNSInteger length, NSString? name) { + final _ret = _lib._objc_msgSend_334( _id, _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, + URL._id, MIMEType?._id ?? ffi.nullptr, length, name?._id ?? ffi.nullptr); @@ -69096,7 +70578,7 @@ class NSURLResponse extends NSObject { /// @abstract Returns the URL of the receiver. /// @result The URL of the receiver. NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -69112,7 +70594,7 @@ class NSURLResponse extends NSObject { /// be made if the origin source did not report any such information. /// @result The MIME type of the receiver. NSString? get MIMEType { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_MIMEType1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_MIMEType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -69130,7 +70612,7 @@ class NSURLResponse extends NSObject { /// there is no expectation that can be arrived at regarding expected /// content length. int get expectedContentLength { - return _lib._objc_msgSend_82(_id, _lib._sel_expectedContentLength1); + return _lib._objc_msgSend_87(_id, _lib._sel_expectedContentLength1); } /// ! @@ -69143,7 +70625,7 @@ class NSURLResponse extends NSObject { /// @result The name of the text encoding of the receiver, or nil if no /// text encoding was specified. NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_textEncodingName1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_textEncodingName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -69160,18 +70642,31 @@ class NSURLResponse extends NSObject { /// This method always returns a valid filename. /// @result A suggested filename to use if saving the resource to disk. NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_suggestedFilename1); + final _ret = _lib._objc_msgSend_55(_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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); return NSURLResponse._(_ret, _lib, retain: false, release: true); } + static NSURLResponse allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); @@ -69226,12 +70721,10 @@ class NSURLCache extends NSObject { /// shared URL cache. This is to prevent storing cache data from /// becoming unexpectedly unretrievable. /// @result the shared NSURLCache instance. - static NSURLCache? getSharedURLCache(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_320( + static NSURLCache getSharedURLCache(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_339( _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); } /// ! @@ -69258,9 +70751,9 @@ class NSURLCache extends NSObject { /// shared URL cache. This is to prevent storing cache data from /// becoming unexpectedly unretrievable. /// @result the shared NSURLCache instance. - static void setSharedURLCache(NativeCupertinoHttp _lib, NSURLCache? value) { - _lib._objc_msgSend_321(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + static void setSharedURLCache(NativeCupertinoHttp _lib, NSURLCache value) { + return _lib._objc_msgSend_340( + _lib._class_NSURLCache1, _lib._sel_setSharedURLCache_1, value._id); } /// ! @@ -69277,8 +70770,10 @@ class NSURLCache extends NSObject { /// @result an initialized NSURLCache, with the given capacity, backed /// by disk. NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_322( + DartNSUInteger memoryCapacity, + DartNSUInteger diskCapacity, + NSString? path) { + final _ret = _lib._objc_msgSend_341( _id, _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, memoryCapacity, @@ -69295,8 +70790,10 @@ class NSURLCache extends NSObject { /// @param directoryURL the path to a directory on disk where the cache data is stored. Or nil for default directory. /// @result an initialized NSURLCache, with the given capacity, optionally backed by disk. NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( - int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_323( + DartNSUInteger memoryCapacity, + DartNSUInteger diskCapacity, + NSURL? directoryURL) { + final _ret = _lib._objc_msgSend_342( _id, _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, memoryCapacity, @@ -69315,10 +70812,12 @@ class NSURLCache extends NSObject { /// @result The NSCachedURLResponse stored in the cache with the given /// request, or nil if there is no NSCachedURLResponse stored with the /// given request. - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_339( - _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_363( + _id, _lib._sel_cachedResponseForRequest_1, request._id); + return _ret.address == 0 + ? null + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } /// ! @@ -69328,12 +70827,9 @@ class NSURLCache extends NSObject { /// @param cachedResponse The cached response to store. /// @param request the NSURLRequest to use as a key for the storage. void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - return _lib._objc_msgSend_340( - _id, - _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + NSCachedURLResponse cachedResponse, NSURLRequest request) { + _lib._objc_msgSend_364(_id, _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse._id, request._id); } /// ! @@ -69343,11 +70839,9 @@ class NSURLCache extends NSObject { /// @discussion No action is taken if there is no NSCachedURLResponse /// stored with the given request. /// @param request the NSURLRequest to use as a key for the lookup. - void removeCachedResponseForRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_341( - _id, - _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); + void removeCachedResponseForRequest_(NSURLRequest request) { + _lib._objc_msgSend_365( + _id, _lib._sel_removeCachedResponseForRequest_1, request._id); } /// ! @@ -69355,22 +70849,22 @@ class NSURLCache extends NSObject { /// @abstract Clears the given cache, removing all NSCachedURLResponse /// objects that it stores. void removeAllCachedResponses() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } /// ! /// @method removeCachedResponsesSince: /// @abstract Clears the given cache of any cached responses since the provided date. - void removeCachedResponsesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_349(_id, - _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); + void removeCachedResponsesSinceDate_(NSDate date) { + _lib._objc_msgSend_373( + _id, _lib._sel_removeCachedResponsesSinceDate_1, date._id); } /// ! /// @abstract In-memory capacity of the receiver. /// @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. /// @result The in-memory capacity, measured in bytes, for the receiver. - int get memoryCapacity { + DartNSUInteger get memoryCapacity { return _lib._objc_msgSend_12(_id, _lib._sel_memoryCapacity1); } @@ -69378,22 +70872,22 @@ class NSURLCache extends NSObject { /// @abstract In-memory capacity of the receiver. /// @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. /// @result The in-memory capacity, measured in bytes, for the receiver. - set memoryCapacity(int value) { - _lib._objc_msgSend_305(_id, _lib._sel_setMemoryCapacity_1, value); + set memoryCapacity(DartNSUInteger value) { + return _lib._objc_msgSend_322(_id, _lib._sel_setMemoryCapacity_1, value); } /// ! /// @abstract The on-disk capacity of the receiver. /// @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary. - int get diskCapacity { + DartNSUInteger get diskCapacity { return _lib._objc_msgSend_12(_id, _lib._sel_diskCapacity1); } /// ! /// @abstract The on-disk capacity of the receiver. /// @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary. - set diskCapacity(int value) { - _lib._objc_msgSend_305(_id, _lib._sel_setDiskCapacity_1, value); + set diskCapacity(DartNSUInteger value) { + return _lib._objc_msgSend_322(_id, _lib._sel_setDiskCapacity_1, value); } /// ! @@ -69402,7 +70896,7 @@ class NSURLCache extends NSObject { /// @discussion This size, measured in bytes, indicates the current /// usage of the in-memory cache. /// @result the current usage of the in-memory cache of the receiver. - int get currentMemoryUsage { + DartNSUInteger get currentMemoryUsage { return _lib._objc_msgSend_12(_id, _lib._sel_currentMemoryUsage1); } @@ -69412,33 +70906,35 @@ class NSURLCache extends NSObject { /// @discussion This size, measured in bytes, indicates the current /// usage of the on-disk cache. /// @result the current usage of the on-disk cache of the receiver. - int get currentDiskUsage { + DartNSUInteger get currentDiskUsage { return _lib._objc_msgSend_12(_id, _lib._sel_currentDiskUsage1); } void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_370( - _id, - _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, - dataTask?._id ?? ffi.nullptr); + NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_398(_id, _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse._id, dataTask._id); } void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, ObjCBlock19 completionHandler) { - return _lib._objc_msgSend_371( + NSURLSessionDataTask dataTask, + ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { + _lib._objc_msgSend_399( _id, _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, + dataTask._id, completionHandler._id); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_372( - _id, - _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + void removeCachedResponseForDataTask_(NSURLSessionDataTask dataTask) { + _lib._objc_msgSend_400( + _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(NativeCupertinoHttp _lib) { @@ -69446,6 +70942,13 @@ class NSURLCache extends NSObject { return NSURLCache._(_ret, _lib, retain: false, release: true); } + static NSURLCache allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); @@ -69485,9 +70988,9 @@ class NSURLRequest extends NSObject { /// seconds). /// @param URL The URL for the request. /// @result A newly-created and autoreleased NSURLRequest instance. - static NSURLRequest requestWithURL_(NativeCupertinoHttp _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + static NSURLRequest requestWithURL_(NativeCupertinoHttp _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_211( + _lib._class_NSURLRequest1, _lib._sel_requestWithURL_1, URL._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } @@ -69512,13 +71015,13 @@ class NSURLRequest extends NSObject { /// @result A newly-created and autoreleased NSURLRequest instance. static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( NativeCupertinoHttp _lib, - NSURL? URL, + NSURL URL, int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_324( + DartNSTimeInterval timeoutInterval) { + final _ret = _lib._objc_msgSend_343( _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); @@ -69532,9 +71035,8 @@ class NSURLRequest extends NSObject { /// seconds). /// @param URL The URL for the request. /// @result An initialized NSURLRequest. - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_201( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + NSURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_211(_id, _lib._sel_initWithURL_1, URL._id); return NSURLRequest._(_ret, _lib, retain: true, release: true); } @@ -69551,11 +71053,11 @@ class NSURLRequest extends NSObject { /// timeout intervals. /// @result An initialized NSURLRequest. NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_324( + NSURL URL, int cachePolicy, DartNSTimeInterval timeoutInterval) { + final _ret = _lib._objc_msgSend_343( _id, _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, + URL._id, cachePolicy, timeoutInterval); return NSURLRequest._(_ret, _lib, retain: true, release: true); @@ -69565,7 +71067,7 @@ class NSURLRequest extends NSObject { /// @abstract Returns the URL of the receiver. /// @result The URL of the receiver. NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -69575,7 +71077,7 @@ class NSURLRequest extends NSObject { /// @abstract Returns the cache policy of the receiver. /// @result The cache policy of the receiver. int get cachePolicy { - return _lib._objc_msgSend_325(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_344(_id, _lib._sel_cachePolicy1); } /// ! @@ -69591,8 +71093,10 @@ class NSURLRequest extends NSObject { /// is considered to have timed out. This timeout interval is measured /// in seconds. /// @result The timeout interval of the receiver. - double get timeoutInterval { - return _lib._objc_msgSend_85(_id, _lib._sel_timeoutInterval1); + DartNSTimeInterval get timeoutInterval { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_timeoutInterval1) + : _lib._objc_msgSend_90(_id, _lib._sel_timeoutInterval1); } /// ! @@ -69603,7 +71107,7 @@ class NSURLRequest extends NSObject { /// See setMainDocumentURL: /// @result The main document URL. NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_mainDocumentURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -69615,7 +71119,7 @@ class NSURLRequest extends NSObject { /// not explicitly set a networkServiceType (using the setNetworkServiceType method). /// @result The NSURLRequestNetworkServiceType associated with this request. int get networkServiceType { - return _lib._objc_msgSend_326(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_345(_id, _lib._sel_networkServiceType1); } /// ! @@ -69661,7 +71165,7 @@ class NSURLRequest extends NSObject { /// have not explicitly set an attribution. /// @result The NSURLRequestAttribution associated with this request. int get attribution { - return _lib._objc_msgSend_327(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_346(_id, _lib._sel_attribution1); } /// ! @@ -69676,7 +71180,7 @@ class NSURLRequest extends NSObject { /// @abstract Returns the HTTP request method of the receiver. /// @result the HTTP request method of the receiver. NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_HTTPMethod1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_HTTPMethod1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -69688,7 +71192,7 @@ class NSURLRequest extends NSObject { /// @result a dictionary containing all the HTTP header fields of the /// receiver. NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHTTPHeaderFields1); + final _ret = _lib._objc_msgSend_288(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -69703,10 +71207,12 @@ class NSURLRequest extends NSObject { /// (case-insensitive). /// @result the value associated with the given header field, or nil if /// there is no value associated with the given header field. - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_98( - _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_347( + _id, _lib._sel_valueForHTTPHeaderField_1, field._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } /// ! @@ -69715,7 +71221,7 @@ class NSURLRequest extends NSObject { /// in done in an HTTP POST request. /// @result The request body data of the receiver. NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_HTTPBody1); + final _ret = _lib._objc_msgSend_348(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -69732,7 +71238,7 @@ class NSURLRequest extends NSObject { /// NSCoding protocol /// @result The request body stream of the receiver. NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_338(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_362(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); @@ -69758,12 +71264,25 @@ class NSURLRequest extends NSObject { return _lib._objc_msgSend_11(_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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); return NSURLRequest._(_ret, _lib, retain: false, release: true); } + static NSURLRequest allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); @@ -69828,6 +71347,7 @@ abstract class NSURLRequestCachePolicy { } typedef NSTimeInterval = ffi.Double; +typedef DartNSTimeInterval = double; /// ! /// @enum NSURLRequestNetworkServiceType @@ -69926,13 +71446,14 @@ class NSInputStream extends NSStream { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); } - int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_332(_id, _lib._sel_read_maxLength_1, buffer, len); + DartNSInteger read_maxLength_( + ffi.Pointer buffer, DartNSUInteger len) { + return _lib._objc_msgSend_354(_id, _lib._sel_read_maxLength_1, buffer, len); } bool getBuffer_length_( ffi.Pointer> buffer, ffi.Pointer len) { - return _lib._objc_msgSend_337( + return _lib._objc_msgSend_360( _id, _lib._sel_getBuffer_length_1, buffer, len); } @@ -69940,55 +71461,64 @@ class NSInputStream extends NSStream { return _lib._objc_msgSend_11(_id, _lib._sel_hasBytesAvailable1); } - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_217( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSInputStream initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_228(_id, _lib._sel_initWithData_1, data._id); return NSInputStream._(_ret, _lib, retain: true, release: true); } - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_201( - _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_226(_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_42( - _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_49(_id, _lib._sel_initWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithData_( - NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithData_( + NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_361( + _lib._class_NSInputStream1, _lib._sel_inputStreamWithData_1, data._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithFileAtPath_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithFileAtPath_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream inputStreamWithURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); + static NSInputStream? inputStreamWithURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226( + _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_( NativeCupertinoHttp _lib, - NSString? hostname, - int port, + NSString hostname, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_334( + _lib._objc_msgSend_357( _lib._class_NSInputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -69996,14 +71526,14 @@ class NSInputStream extends NSStream { static void getStreamsToHost_port_inputStream_outputStream_( NativeCupertinoHttp _lib, - NSHost? host, - int port, + NSHost host, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_335( + _lib._objc_msgSend_358( _lib._class_NSInputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -70011,10 +71541,10 @@ class NSInputStream extends NSStream { static void getBoundStreamsWithBufferSize_inputStream_outputStream_( NativeCupertinoHttp _lib, - int bufferSize, + DartNSUInteger bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_336( + _lib._objc_msgSend_359( _lib._class_NSInputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -70022,12 +71552,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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); return NSInputStream._(_ret, _lib, retain: false, release: true); } + static NSInputStream allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); @@ -70059,51 +71602,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_61(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } set delegate(NSObject? value) { - _lib._objc_msgSend_328( + return _lib._objc_msgSend_349( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSObject propertyForKey_(NSStreamPropertyKey key) { - final _ret = _lib._objc_msgSend_42(_id, _lib._sel_propertyForKey_1, key); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject? propertyForKey_(DartNSStreamPropertyKey key) { + final _ret = + _lib._objc_msgSend_49(_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_199( - _id, _lib._sel_setProperty_forKey_1, property._id, key); + bool setProperty_forKey_(NSObject? property, DartNSStreamPropertyKey key) { + return _lib._objc_msgSend_350(_id, _lib._sel_setProperty_forKey_1, + property?._id ?? ffi.nullptr, key._id); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_329(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, DartNSRunLoopMode mode) { + _lib._objc_msgSend_351( + _id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop._id, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSRunLoopMode mode) { - return _lib._objc_msgSend_329(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode); + void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, DartNSRunLoopMode mode) { + _lib._objc_msgSend_351( + _id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop._id, mode._id); } int get streamStatus { - return _lib._objc_msgSend_330(_id, _lib._sel_streamStatus1); + return _lib._objc_msgSend_352(_id, _lib._sel_streamStatus1); } NSError? get streamError { - final _ret = _lib._objc_msgSend_331(_id, _lib._sel_streamError1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_streamError1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); @@ -70111,14 +71657,14 @@ class NSStream extends NSObject { static void getStreamsToHostWithName_port_inputStream_outputStream_( NativeCupertinoHttp _lib, - NSString? hostname, - int port, + NSString hostname, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_334( + _lib._objc_msgSend_357( _lib._class_NSStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -70126,14 +71672,14 @@ class NSStream extends NSObject { static void getStreamsToHost_port_inputStream_outputStream_( NativeCupertinoHttp _lib, - NSHost? host, - int port, + NSHost host, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_335( + _lib._objc_msgSend_358( _lib._class_NSStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -70141,10 +71687,10 @@ class NSStream extends NSObject { static void getBoundStreamsWithBufferSize_inputStream_outputStream_( NativeCupertinoHttp _lib, - int bufferSize, + DartNSUInteger bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_336( + _lib._objc_msgSend_359( _lib._class_NSStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -70152,11 +71698,24 @@ 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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); return NSStream._(_ret, _lib, retain: false, release: true); } + static NSStream allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); return NSStream._(_ret, _lib, retain: false, release: true); @@ -70164,6 +71723,7 @@ class NSStream extends NSObject { } typedef NSStreamPropertyKey = ffi.Pointer; +typedef DartNSStreamPropertyKey = NSString; class NSRunLoop extends _ObjCWrapper { NSRunLoop._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -70190,6 +71750,7 @@ class NSRunLoop extends _ObjCWrapper { } typedef NSRunLoopMode = ffi.Pointer; +typedef DartNSRunLoopMode = NSString; abstract class NSStreamStatus { static const int NSStreamStatusNotOpen = 0; @@ -70225,8 +71786,9 @@ class NSOutputStream extends NSStream { obj._lib._class_NSOutputStream1); } - int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_332( + DartNSInteger write_maxLength_( + ffi.Pointer buffer, DartNSUInteger len) { + return _lib._objc_msgSend_354( _id, _lib._sel_write_maxLength_1, buffer, len); } @@ -70240,22 +71802,26 @@ class NSOutputStream extends NSStream { } NSOutputStream initToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_333( + ffi.Pointer buffer, DartNSUInteger capacity) { + final _ret = _lib._objc_msgSend_355( _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_206(_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_356( + _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_41(_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_51( + _id, _lib._sel_initToFileAtPath_append_1, path._id, shouldAppend); + return _ret.address == 0 + ? null + : NSOutputStream._(_ret, _lib, retain: true, release: true); } static NSOutputStream outputStreamToMemory(NativeCupertinoHttp _lib) { @@ -70264,43 +71830,39 @@ class NSOutputStream extends NSStream { return NSOutputStream._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamToBuffer_capacity_( - NativeCupertinoHttp _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_333(_lib._class_NSOutputStream1, + static NSOutputStream outputStreamToBuffer_capacity_(NativeCupertinoHttp _lib, + ffi.Pointer buffer, DartNSUInteger capacity) { + final _ret = _lib._objc_msgSend_355(_lib._class_NSOutputStream1, _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } static NSOutputStream outputStreamToFileAtPath_append_( - NativeCupertinoHttp _lib, NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_41( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamToFileAtPath_append_1, - path?._id ?? ffi.nullptr, - shouldAppend); + NativeCupertinoHttp _lib, NSString path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_41(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToFileAtPath_append_1, path._id, shouldAppend); return NSOutputStream._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamWithURL_append_( - NativeCupertinoHttp _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_206( - _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_( + NativeCupertinoHttp _lib, NSURL url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_356(_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_( NativeCupertinoHttp _lib, - NSString? hostname, - int port, + NSString hostname, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_334( + _lib._objc_msgSend_357( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -70308,14 +71870,14 @@ class NSOutputStream extends NSStream { static void getStreamsToHost_port_inputStream_outputStream_( NativeCupertinoHttp _lib, - NSHost? host, - int port, + NSHost host, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_335( + _lib._objc_msgSend_358( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -70323,10 +71885,10 @@ class NSOutputStream extends NSStream { static void getBoundStreamsWithBufferSize_inputStream_outputStream_( NativeCupertinoHttp _lib, - int bufferSize, + DartNSUInteger bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_336( + _lib._objc_msgSend_359( _lib._class_NSOutputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -70334,12 +71896,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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); return NSOutputStream._(_ret, _lib, retain: false, release: true); } + static NSOutputStream allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); @@ -70394,9 +71969,11 @@ class NSDate extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); } - double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_85( - _id, _lib._sel_timeIntervalSinceReferenceDate1); + DartNSTimeInterval get timeIntervalSinceReferenceDate { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret( + _id, _lib._sel_timeIntervalSinceReferenceDate1) + : _lib._objc_msgSend_90(_id, _lib._sel_timeIntervalSinceReferenceDate1); } @override @@ -70405,75 +71982,78 @@ class NSDate extends NSObject { return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_342( + NSDate initWithTimeIntervalSinceReferenceDate_(DartNSTimeInterval ti) { + final _ret = _lib._objc_msgSend_366( _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _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_14(_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_343(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); + DartNSTimeInterval timeIntervalSinceDate_(NSDate anotherDate) { + return _lib._objc_msgSend_367( + _id, _lib._sel_timeIntervalSinceDate_1, anotherDate._id); } - double get timeIntervalSinceNow { - return _lib._objc_msgSend_85(_id, _lib._sel_timeIntervalSinceNow1); + DartNSTimeInterval get timeIntervalSinceNow { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_timeIntervalSinceNow1) + : _lib._objc_msgSend_90(_id, _lib._sel_timeIntervalSinceNow1); } - double get timeIntervalSince1970 { - return _lib._objc_msgSend_85(_id, _lib._sel_timeIntervalSince19701); + DartNSTimeInterval get timeIntervalSince1970 { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_timeIntervalSince19701) + : _lib._objc_msgSend_90(_id, _lib._sel_timeIntervalSince19701); } - NSObject addTimeInterval_(double seconds) { + NSObject addTimeInterval_(DartNSTimeInterval seconds) { final _ret = - _lib._objc_msgSend_342(_id, _lib._sel_addTimeInterval_1, seconds); + _lib._objc_msgSend_366(_id, _lib._sel_addTimeInterval_1, seconds); return NSObject._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingTimeInterval_(double ti) { + NSDate dateByAddingTimeInterval_(DartNSTimeInterval ti) { final _ret = - _lib._objc_msgSend_342(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + _lib._objc_msgSend_366(_id, _lib._sel_dateByAddingTimeInterval_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_344( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + NSDate earlierDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_368(_id, _lib._sel_earlierDate_1, anotherDate._id); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_344( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + NSDate laterDate_(NSDate anotherDate) { + final _ret = + _lib._objc_msgSend_368(_id, _lib._sel_laterDate_1, anotherDate._id); return NSDate._(_ret, _lib, retain: true, release: true); } - int compare_(NSDate? other) { - return _lib._objc_msgSend_345( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + int compare_(NSDate other) { + return _lib._objc_msgSend_369(_id, _lib._sel_compare_1, other._id); } - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_346( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + bool isEqualToDate_(NSDate otherDate) { + return _lib._objc_msgSend_370( + _id, _lib._sel_isEqualToDate_1, otherDate._id); } - NSString? get description { + NSString get description { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_88( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString descriptionWithLocale_(NSObject? locale) { + final _ret = _lib._objc_msgSend_93( + _id, _lib._sel_descriptionWithLocale_1, locale?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } @@ -70483,77 +72063,66 @@ class NSDate extends NSObject { } static NSDate dateWithTimeIntervalSinceNow_( - NativeCupertinoHttp _lib, double secs) { - final _ret = _lib._objc_msgSend_342( + NativeCupertinoHttp _lib, DartNSTimeInterval secs) { + final _ret = _lib._objc_msgSend_366( _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSinceReferenceDate_( - NativeCupertinoHttp _lib, double ti) { - final _ret = _lib._objc_msgSend_342(_lib._class_NSDate1, + NativeCupertinoHttp _lib, DartNSTimeInterval ti) { + final _ret = _lib._objc_msgSend_366(_lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSince1970_( - NativeCupertinoHttp _lib, double secs) { - final _ret = _lib._objc_msgSend_342( + NativeCupertinoHttp _lib, DartNSTimeInterval secs) { + final _ret = _lib._objc_msgSend_366( _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeInterval_sinceDate_( - NativeCupertinoHttp _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_347( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, DartNSTimeInterval secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantFuture(NativeCupertinoHttp _lib) { + static NSDate getDistantFuture(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_348(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_372(_lib._class_NSDate1, _lib._sel_distantFuture1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getDistantPast(NativeCupertinoHttp _lib) { + static NSDate getDistantPast(NativeCupertinoHttp _lib) { final _ret = - _lib._objc_msgSend_348(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_372(_lib._class_NSDate1, _lib._sel_distantPast1); + return NSDate._(_ret, _lib, retain: true, release: true); } - static NSDate? getNow(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_348(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + static NSDate getNow(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_372(_lib._class_NSDate1, _lib._sel_now1); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_342( + NSDate initWithTimeIntervalSinceNow_(DartNSTimeInterval secs) { + final _ret = _lib._objc_msgSend_366( _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); return NSDate._(_ret, _lib, retain: true, release: true); } - NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_342( + NSDate initWithTimeIntervalSince1970_(DartNSTimeInterval secs) { + final _ret = _lib._objc_msgSend_366( _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_347( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + NSDate initWithTimeInterval_sinceDate_( + DartNSTimeInterval secsToBeAdded, NSDate date) { + final _ret = _lib._objc_msgSend_371(_id, + _lib._sel_initWithTimeInterval_sinceDate_1, secsToBeAdded, date._id); return NSDate._(_ret, _lib, retain: true, release: true); } @@ -70562,6 +72131,13 @@ class NSDate extends NSObject { return NSDate._(_ret, _lib, retain: false, release: true); } + static NSDate allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); return NSDate._(_ret, _lib, retain: false, release: true); @@ -70604,6 +72180,13 @@ class NSURLSessionDataTask extends NSURLSessionTask { return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionDataTask allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); @@ -70638,13 +72221,13 @@ class NSURLSessionTask extends NSObject { } /// an identifier for this task, assigned by and unique to the owning session - int get taskIdentifier { + DartNSUInteger get taskIdentifier { return _lib._objc_msgSend_12(_id, _lib._sel_taskIdentifier1); } /// may be nil if this is a stream task NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_350(_id, _lib._sel_originalRequest1); + final _ret = _lib._objc_msgSend_374(_id, _lib._sel_originalRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); @@ -70652,7 +72235,7 @@ class NSURLSessionTask extends NSObject { /// may differ from originalRequest due to http server redirection NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_350(_id, _lib._sel_currentRequest1); + final _ret = _lib._objc_msgSend_374(_id, _lib._sel_currentRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); @@ -70660,7 +72243,7 @@ class NSURLSessionTask extends NSObject { /// may be nil if no response has been received NSURLResponse? get response { - final _ret = _lib._objc_msgSend_318(_id, _lib._sel_response1); + final _ret = _lib._objc_msgSend_375(_id, _lib._sel_response1); return _ret.address == 0 ? null : NSURLResponse._(_ret, _lib, retain: true, release: true); @@ -70674,7 +72257,7 @@ class NSURLSessionTask extends NSObject { /// Delegate is strongly referenced until the task completes, after which it is /// reset to `nil`. NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + final _ret = _lib._objc_msgSend_61(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); @@ -70688,17 +72271,15 @@ class NSURLSessionTask extends NSObject { /// Delegate is strongly referenced until the task completes, after which it is /// reset to `nil`. set delegate(NSObject? value) { - _lib._objc_msgSend_328( + return _lib._objc_msgSend_349( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } /// NSProgress object which represents the task progress. /// It can be used for task progress tracking. - NSProgress? get progress { - final _ret = _lib._objc_msgSend_351(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSProgress get progress { + final _ret = _lib._objc_msgSend_392(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } /// Start the network load for this task no earlier than the specified date. If @@ -70707,7 +72288,7 @@ class NSURLSessionTask extends NSObject { /// Only applies to tasks created from background NSURLSession instances; has no /// effect for tasks created from other session types. NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_earliestBeginDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_earliestBeginDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -70719,7 +72300,7 @@ class NSURLSessionTask extends NSObject { /// Only applies to tasks created from background NSURLSession instances; has no /// effect for tasks created from other session types. set earliestBeginDate(NSDate? value) { - _lib._objc_msgSend_367( + return _lib._objc_msgSend_394( _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } @@ -70727,7 +72308,7 @@ class NSURLSessionTask extends NSObject { /// be sent and received by this task. These values are used by system scheduling /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfBytesClientExpectsToSend1); } @@ -70735,45 +72316,45 @@ class NSURLSessionTask extends NSObject { /// be sent and received by this task. These values are used by system scheduling /// policy. If unspecified, NSURLSessionTransferSizeUnknown is used. set countOfBytesClientExpectsToSend(int value) { - _lib._objc_msgSend_359( + return _lib._objc_msgSend_384( _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfBytesClientExpectsToReceive1); } set countOfBytesClientExpectsToReceive(int value) { - _lib._objc_msgSend_359( + return _lib._objc_msgSend_384( _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } /// number of body bytes already sent int get countOfBytesSent { - return _lib._objc_msgSend_358(_id, _lib._sel_countOfBytesSent1); + return _lib._objc_msgSend_383(_id, _lib._sel_countOfBytesSent1); } /// number of body bytes already received int get countOfBytesReceived { - return _lib._objc_msgSend_358(_id, _lib._sel_countOfBytesReceived1); + return _lib._objc_msgSend_383(_id, _lib._sel_countOfBytesReceived1); } /// number of body bytes we expect to send, derived from the Content-Length of the HTTP request int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_358(_id, _lib._sel_countOfBytesExpectedToSend1); + return _lib._objc_msgSend_383(_id, _lib._sel_countOfBytesExpectedToSend1); } /// number of byte bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfBytesExpectedToReceive1); } /// The taskDescription property is available for the developer to /// provide a descriptive label for the task. NSString? get taskDescription { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_taskDescription1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_taskDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -70782,7 +72363,7 @@ class NSURLSessionTask extends NSObject { /// The taskDescription property is available for the developer to /// provide a descriptive label for the task. set taskDescription(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } @@ -70792,18 +72373,18 @@ class NSURLSessionTask extends NSObject { /// cases, the task may signal other work before it acknowledges the /// cancelation. -cancel may be sent to a task that has been suspended. void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } /// The current state of the task within the session. int get state { - return _lib._objc_msgSend_368(_id, _lib._sel_state1); + return _lib._objc_msgSend_396(_id, _lib._sel_state1); } /// The error, if any, delivered via -URLSession:task:didCompleteWithError: /// This property will be nil in the event that no error occurred. NSError? get error { - final _ret = _lib._objc_msgSend_331(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); @@ -70817,11 +72398,11 @@ class NSURLSessionTask extends NSObject { /// will be disabled while a task is suspended. -suspend and -resume are /// nestable. 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); } /// Sets a scaling factor for the priority of the task. The scaling factor is a @@ -70838,7 +72419,9 @@ class NSURLSessionTask extends NSObject { /// priority levels are provided: NSURLSessionTaskPriorityLow and /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. double get priority { - return _lib._objc_msgSend_84(_id, _lib._sel_priority1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_89_fpret(_id, _lib._sel_priority1) + : _lib._objc_msgSend_89(_id, _lib._sel_priority1); } /// Sets a scaling factor for the priority of the task. The scaling factor is a @@ -70855,7 +72438,7 @@ class NSURLSessionTask extends NSObject { /// priority levels are provided: NSURLSessionTaskPriorityLow and /// NSURLSessionTaskPriorityHigh, but use is not restricted to these. set priority(double value) { - _lib._objc_msgSend_369(_id, _lib._sel_setPriority_1, value); + return _lib._objc_msgSend_397(_id, _lib._sel_setPriority_1, value); } /// Provides a hint indicating if incremental delivery of a partial response body @@ -70879,7 +72462,7 @@ class NSURLSessionTask extends NSObject { /// Defaults to true unless this task is created with completion-handler based /// convenience methods, or if it is a download task. set prefersIncrementalDelivery(bool value) { - _lib._objc_msgSend_361( + return _lib._objc_msgSend_386( _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } @@ -70895,6 +72478,13 @@ class NSURLSessionTask extends NSObject { return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionTask allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); @@ -70925,22 +72515,24 @@ class NSProgress extends NSObject { obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); } - static NSProgress currentProgress(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_351( + static NSProgress? currentProgress(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_376( _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_( NativeCupertinoHttp _lib, int unitCount) { - final _ret = _lib._objc_msgSend_352(_lib._class_NSProgress1, + final _ret = _lib._objc_msgSend_377(_lib._class_NSProgress1, _lib._sel_progressWithTotalUnitCount_1, unitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress discreteProgressWithTotalUnitCount_( NativeCupertinoHttp _lib, int unitCount) { - final _ret = _lib._objc_msgSend_352(_lib._class_NSProgress1, + final _ret = _lib._objc_msgSend_377(_lib._class_NSProgress1, _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); return NSProgress._(_ret, _lib, retain: true, release: true); } @@ -70948,20 +72540,20 @@ class NSProgress extends NSObject { static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( NativeCupertinoHttp _lib, int unitCount, - NSProgress? parent, + NSProgress parent, int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_353( + final _ret = _lib._objc_msgSend_378( _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, NSDictionary? userInfoOrNil) { - final _ret = _lib._objc_msgSend_354( + final _ret = _lib._objc_msgSend_379( _id, _lib._sel_initWithParent_userInfo_1, parentProgressOrNil?._id ?? ffi.nullptr, @@ -70970,13 +72562,13 @@ class NSProgress extends NSObject { } void becomeCurrentWithPendingUnitCount_(int unitCount) { - return _lib._objc_msgSend_355( + _lib._objc_msgSend_380( _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); } void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock work) { - return _lib._objc_msgSend_356( + int unitCount, ObjCBlock_ffiVoid work) { + _lib._objc_msgSend_381( _id, _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, unitCount, @@ -70984,56 +72576,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_357( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); + void addChild_withPendingUnitCount_(NSProgress child, int inUnitCount) { + _lib._objc_msgSend_382( + _id, _lib._sel_addChild_withPendingUnitCount_1, child._id, inUnitCount); } int get totalUnitCount { - return _lib._objc_msgSend_358(_id, _lib._sel_totalUnitCount1); + return _lib._objc_msgSend_383(_id, _lib._sel_totalUnitCount1); } set totalUnitCount(int value) { - _lib._objc_msgSend_359(_id, _lib._sel_setTotalUnitCount_1, value); + return _lib._objc_msgSend_384(_id, _lib._sel_setTotalUnitCount_1, value); } int get completedUnitCount { - return _lib._objc_msgSend_358(_id, _lib._sel_completedUnitCount1); + return _lib._objc_msgSend_383(_id, _lib._sel_completedUnitCount1); } set completedUnitCount(int value) { - _lib._objc_msgSend_359(_id, _lib._sel_setCompletedUnitCount_1, value); + return _lib._objc_msgSend_384( + _id, _lib._sel_setCompletedUnitCount_1, value); } - NSString? get localizedDescription { + NSString get localizedDescription { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - set localizedDescription(NSString? value) { - _lib._objc_msgSend_360( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + set localizedDescription(NSString value) { + return _lib._objc_msgSend_385( + _id, _lib._sel_setLocalizedDescription_1, value._id); } - NSString? get localizedAdditionalDescription { + NSString get localizedAdditionalDescription { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localizedAdditionalDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } - set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); + set localizedAdditionalDescription(NSString value) { + return _lib._objc_msgSend_385( + _id, _lib._sel_setLocalizedAdditionalDescription_1, value._id); } bool get cancellable { @@ -71041,7 +72627,7 @@ class NSProgress extends NSObject { } set cancellable(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setCancellable_1, value); + return _lib._objc_msgSend_386(_id, _lib._sel_setCancellable_1, value); } bool get pausable { @@ -71049,7 +72635,7 @@ class NSProgress extends NSObject { } set pausable(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setPausable_1, value); + return _lib._objc_msgSend_386(_id, _lib._sel_setPausable_1, value); } bool get cancelled { @@ -71060,37 +72646,46 @@ class NSProgress extends NSObject { return _lib._objc_msgSend_11(_id, _lib._sel_isPaused1); } - ObjCBlock get cancellationHandler { - final _ret = _lib._objc_msgSend_362(_id, _lib._sel_cancellationHandler1); - return ObjCBlock._(_ret, _lib); + ObjCBlock_ffiVoid? get cancellationHandler { + final _ret = _lib._objc_msgSend_387(_id, _lib._sel_cancellationHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set cancellationHandler(ObjCBlock value) { - _lib._objc_msgSend_363(_id, _lib._sel_setCancellationHandler_1, value._id); + set cancellationHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_388( + _id, _lib._sel_setCancellationHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock get pausingHandler { - final _ret = _lib._objc_msgSend_362(_id, _lib._sel_pausingHandler1); - return ObjCBlock._(_ret, _lib); + ObjCBlock_ffiVoid? get pausingHandler { + final _ret = _lib._objc_msgSend_387(_id, _lib._sel_pausingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set pausingHandler(ObjCBlock value) { - _lib._objc_msgSend_363(_id, _lib._sel_setPausingHandler_1, value._id); + set pausingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_388( + _id, _lib._sel_setPausingHandler_1, value?._id ?? ffi.nullptr); } - ObjCBlock get resumingHandler { - final _ret = _lib._objc_msgSend_362(_id, _lib._sel_resumingHandler1); - return ObjCBlock._(_ret, _lib); + ObjCBlock_ffiVoid? get resumingHandler { + final _ret = _lib._objc_msgSend_387(_id, _lib._sel_resumingHandler1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set resumingHandler(ObjCBlock value) { - _lib._objc_msgSend_363(_id, _lib._sel_setResumingHandler_1, value._id); + set resumingHandler(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_388( + _id, _lib._sel_setResumingHandler_1, value?._id ?? ffi.nullptr); } void setUserInfoObject_forKey_( - NSObject objectOrNil, NSProgressUserInfoKey key) { - return _lib._objc_msgSend_189( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key); + NSObject? objectOrNil, DartNSProgressUserInfoKey key) { + _lib._objc_msgSend_196(_id, _lib._sel_setUserInfoObject_forKey_1, + objectOrNil?._id ?? ffi.nullptr, key._id); } bool get indeterminate { @@ -71098,7 +72693,9 @@ class NSProgress extends NSObject { } double get fractionCompleted { - return _lib._objc_msgSend_85(_id, _lib._sel_fractionCompleted1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_fractionCompleted1) + : _lib._objc_msgSend_90(_id, _lib._sel_fractionCompleted1); } bool get finished { @@ -71106,122 +72703,123 @@ 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); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get userInfo { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_userInfo1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - NSProgressKind get kind { - return _lib._objc_msgSend_32(_id, _lib._sel_kind1); + DartNSProgressKind get kind { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_kind1); + return NSString._(_ret, _lib, retain: true, release: true); } - set kind(NSProgressKind value) { - _lib._objc_msgSend_360(_id, _lib._sel_setKind_1, value); + set kind(DartNSProgressKind value) { + return _lib._objc_msgSend_385(_id, _lib._sel_setKind_1, value._id); } NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_estimatedTimeRemaining1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_estimatedTimeRemaining1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set estimatedTimeRemaining(NSNumber? value) { - _lib._objc_msgSend_364( + return _lib._objc_msgSend_389( _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); } NSNumber? get throughput { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_throughput1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_throughput1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set throughput(NSNumber? value) { - _lib._objc_msgSend_364( + return _lib._objc_msgSend_389( _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); } - NSProgressFileOperationKind get fileOperationKind { - return _lib._objc_msgSend_32(_id, _lib._sel_fileOperationKind1); + DartNSProgressFileOperationKind get fileOperationKind { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fileOperationKind1); + return NSString._(_ret, _lib, retain: true, release: true); } - set fileOperationKind(NSProgressFileOperationKind value) { - _lib._objc_msgSend_360(_id, _lib._sel_setFileOperationKind_1, value); + set fileOperationKind(DartNSProgressFileOperationKind value) { + return _lib._objc_msgSend_385( + _id, _lib._sel_setFileOperationKind_1, value._id); } NSURL? get fileURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_fileURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_fileURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } set fileURL(NSURL? value) { - _lib._objc_msgSend_365( + return _lib._objc_msgSend_390( _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); } NSNumber? get fileTotalCount { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_fileTotalCount1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_fileTotalCount1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set fileTotalCount(NSNumber? value) { - _lib._objc_msgSend_364( + return _lib._objc_msgSend_389( _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); } NSNumber? get fileCompletedCount { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_fileCompletedCount1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_fileCompletedCount1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); } set fileCompletedCount(NSNumber? value) { - _lib._objc_msgSend_364( + return _lib._objc_msgSend_389( _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); } void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } void unpublish() { - return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); } static NSObject addSubscriberForFileURL_withPublishingHandler_( NativeCupertinoHttp _lib, - NSURL? url, - NSProgressPublishingHandler publishingHandler) { - final _ret = _lib._objc_msgSend_366( + NSURL url, + DartNSProgressPublishingHandler publishingHandler) { + final _ret = _lib._objc_msgSend_391( _lib._class_NSProgress1, _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler); + url._id, + publishingHandler._id); return NSObject._(_ret, _lib, retain: true, release: true); } static void removeSubscriber_(NativeCupertinoHttp _lib, NSObject subscriber) { - return _lib._objc_msgSend_200( + _lib._objc_msgSend_210( _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); } @@ -71229,11 +72827,24 @@ class NSProgress extends NSObject { return _lib._objc_msgSend_11(_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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); return NSProgress._(_ret, _lib, retain: false, release: true); } + static NSProgress allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); @@ -71242,40 +72853,57 @@ class NSProgress extends NSObject { } typedef NSProgressUserInfoKey = ffi.Pointer; +typedef DartNSProgressUserInfoKey = NSString; typedef NSProgressKind = ffi.Pointer; +typedef DartNSProgressKind = NSString; typedef NSProgressFileOperationKind = ffi.Pointer; +typedef DartNSProgressFileOperationKind = NSString; typedef NSProgressPublishingHandler = ffi.Pointer<_ObjCBlock>; -NSProgressUnpublishingHandler _ObjCBlock18_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>>() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0)>()(arg0); -} - -final _ObjCBlock18_closureRegistry = {}; -int _ObjCBlock18_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { - final id = ++_ObjCBlock18_closureRegistryIndex; - _ObjCBlock18_closureRegistry[id] = fn; +typedef DartNSProgressPublishingHandler + = ObjCBlock_NSProgressUnpublishingHandler_NSProgress; +NSProgressUnpublishingHandler + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0)>>() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer)>()(arg0); +final _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureRegistry = + )>{}; +int _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_registerClosure( + NSProgressUnpublishingHandler Function(ffi.Pointer) fn) { + final id = + ++_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureRegistryIndex; + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -NSProgressUnpublishingHandler _ObjCBlock18_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); -} +NSProgressUnpublishingHandler + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock18 extends _ObjCBlockBase { - ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgressUnpublishingHandler_NSProgress + extends _ObjCBlockBase { + ObjCBlock_NSProgressUnpublishingHandler_NSProgress._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSProgressUnpublishingHandler_NSProgress.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -71286,43 +72914,56 @@ class ObjCBlock18 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock18.fromFunction(NativeCupertinoHttp lib, - NSProgressUnpublishingHandler 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_NSProgressUnpublishingHandler_NSProgress.fromFunction( + NativeCupertinoHttp lib, + DartNSProgressUnpublishingHandler Function(NSProgress) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline) .cast(), - _ObjCBlock18_registerClosure(fn)), + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_registerClosure( + (ffi.Pointer arg0) => + fn(NSProgress._(arg0, lib, retain: true, release: true)) + ._retainAndReturnId())), lib); static ffi.Pointer? _dartFuncTrampoline; - NSProgressUnpublishingHandler call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + + DartNSProgressUnpublishingHandler call(NSProgress arg0) => + ObjCBlock_ffiVoid._( + _id.ref.invoke + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>()(_id, arg0._id), + _lib, + retain: false, + release: true); } typedef NSProgressUnpublishingHandler = ffi.Pointer<_ObjCBlock>; +typedef DartNSProgressUnpublishingHandler = ObjCBlock_ffiVoid; abstract class NSURLSessionTaskState { /// The task is currently being serviced by the session @@ -71336,72 +72977,115 @@ abstract class NSURLSessionTaskState { static const int NSURLSessionTaskStateCompleted = 3; } -void _ObjCBlock19_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock19_closureRegistry = {}; -int _ObjCBlock19_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { - final id = ++_ObjCBlock19_closureRegistryIndex; - _ObjCBlock19_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 _ObjCBlock19_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock19_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 ObjCBlock19 extends _ObjCBlockBase { - ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSCachedURLResponse._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSCachedURLResponse.fromFunctionPointer( NativeCupertinoHttp lib, - ffi.Pointer< + ffi + .Pointer< ffi .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock19_fnPtrTrampoline) + 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. - ObjCBlock19.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSCachedURLResponse?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock19_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) .cast(), - _ObjCBlock19_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSCachedURLResponse._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + + /// 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( + NativeCupertinoHttp 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; + + 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 NSNotification extends NSObject { @@ -71427,56 +73111,64 @@ class NSNotification extends NSObject { obj._lib._class_NSNotification1); } - NSNotificationName get name { - return _lib._objc_msgSend_32(_id, _lib._sel_name1); + DartNSNotificationName get name { + final _ret = _lib._objc_msgSend_32(_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_61(_id, _lib._sel_object1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_288(_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_373( + DartNSNotificationName name, NSObject? object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_401( _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_14( - _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_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSNotification._(_ret, _lib, retain: true, release: true); } - static NSNotification notificationWithName_object_( - NativeCupertinoHttp _lib, NSNotificationName aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_258(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName, anObject._id); + static NSNotification notificationWithName_object_(NativeCupertinoHttp _lib, + DartNSNotificationName aName, NSObject? anObject) { + final _ret = _lib._objc_msgSend_272( + _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_( NativeCupertinoHttp _lib, - NSNotificationName aName, - NSObject anObject, + DartNSNotificationName aName, + NSObject? anObject, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_373( + final _ret = _lib._objc_msgSend_401( _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); } @@ -71493,6 +73185,13 @@ class NSNotification extends NSObject { return NSNotification._(_ret, _lib, retain: false, release: true); } + static NSNotification allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); @@ -71501,6 +73200,7 @@ class NSNotification extends NSObject { } typedef NSNotificationName = ffi.Pointer; +typedef DartNSNotificationName = NSString; class NSNotificationCenter extends NSObject { NSNotificationCenter._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -71526,78 +73226,85 @@ class NSNotificationCenter extends NSObject { obj._lib._class_NSNotificationCenter1); } - static NSNotificationCenter? getDefaultCenter(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_374( + static NSNotificationCenter getDefaultCenter(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_402( _lib._class_NSNotificationCenter1, _lib._sel_defaultCenter1); - return _ret.address == 0 - ? null - : NSNotificationCenter._(_ret, _lib, retain: true, release: true); + return NSNotificationCenter._(_ret, _lib, retain: true, release: true); } void addObserver_selector_name_object_( NSObject observer, ffi.Pointer aSelector, - NSNotificationName aName, - NSObject anObject) { - return _lib._objc_msgSend_375( - _id, - _lib._sel_addObserver_selector_name_object_1, - observer._id, - aSelector, - aName, - anObject._id); + DartNSNotificationName aName, + NSObject? anObject) { + _lib._objc_msgSend_403(_id, _lib._sel_addObserver_selector_name_object_1, + observer._id, aSelector, aName._id, anObject?._id ?? ffi.nullptr); } - void postNotification_(NSNotification? notification) { - return _lib._objc_msgSend_376( - _id, _lib._sel_postNotification_1, notification?._id ?? ffi.nullptr); + void postNotification_(NSNotification notification) { + _lib._objc_msgSend_404(_id, _lib._sel_postNotification_1, notification._id); } void postNotificationName_object_( - NSNotificationName aName, NSObject anObject) { - return _lib._objc_msgSend_377( - _id, _lib._sel_postNotificationName_object_1, aName, anObject._id); + DartNSNotificationName aName, NSObject? anObject) { + _lib._objc_msgSend_405(_id, _lib._sel_postNotificationName_object_1, + aName._id, anObject?._id ?? ffi.nullptr); } - void postNotificationName_object_userInfo_( - NSNotificationName aName, NSObject anObject, NSDictionary? aUserInfo) { - return _lib._objc_msgSend_378( + void postNotificationName_object_userInfo_(DartNSNotificationName aName, + NSObject? anObject, NSDictionary? aUserInfo) { + _lib._objc_msgSend_406( _id, _lib._sel_postNotificationName_object_userInfo_1, - aName, - anObject._id, + aName._id, + anObject?._id ?? ffi.nullptr, aUserInfo?._id ?? ffi.nullptr); } void removeObserver_(NSObject observer) { - return _lib._objc_msgSend_200( - _id, _lib._sel_removeObserver_1, observer._id); + _lib._objc_msgSend_210(_id, _lib._sel_removeObserver_1, observer._id); } void removeObserver_name_object_( - NSObject observer, NSNotificationName aName, NSObject anObject) { - return _lib._objc_msgSend_379(_id, _lib._sel_removeObserver_name_object_1, - observer._id, aName, anObject._id); + NSObject observer, DartNSNotificationName aName, NSObject? anObject) { + _lib._objc_msgSend_407(_id, _lib._sel_removeObserver_name_object_1, + observer._id, aName._id, anObject?._id ?? ffi.nullptr); } - NSObject addObserverForName_object_queue_usingBlock_(NSNotificationName name, - NSObject obj, NSOperationQueue? queue, ObjCBlock20 block) { - final _ret = _lib._objc_msgSend_392( + NSObject addObserverForName_object_queue_usingBlock_( + DartNSNotificationName name, + NSObject? obj, + NSOperationQueue? queue, + ObjCBlock_ffiVoid_NSNotification block) { + final _ret = _lib._objc_msgSend_421( _id, _lib._sel_addObserverForName_object_queue_usingBlock_1, - name, - obj._id, + name._id, + obj?._id ?? ffi.nullptr, queue?._id ?? ffi.nullptr, block._id); return NSObject._(_ret, _lib, retain: true, release: true); } + @override + NSNotificationCenter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNotificationCenter._(_ret, _lib, retain: true, release: true); + } + static NSNotificationCenter new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNotificationCenter1, _lib._sel_new1); return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } + static NSNotificationCenter allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNotificationCenter1, _lib._sel_allocWithZone_1, zone); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); + } + static NSNotificationCenter alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSNotificationCenter1, _lib._sel_alloc1); @@ -71645,29 +73352,22 @@ class NSOperationQueue extends NSObject { /// @example /// NSOperationQueue *queue = [[NSOperationQueue alloc] init]; /// queue.progress.totalUnitCount = 10; - NSProgress? get progress { - final _ret = _lib._objc_msgSend_351(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSProgress get progress { + final _ret = _lib._objc_msgSend_392(_id, _lib._sel_progress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - void addOperation_(NSOperation? op) { - return _lib._objc_msgSend_380( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + void addOperation_(NSOperation op) { + _lib._objc_msgSend_408(_id, _lib._sel_addOperation_1, op._id); } - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - return _lib._objc_msgSend_386( - _id, - _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, - wait); + void addOperations_waitUntilFinished_(NSArray ops, bool wait) { + _lib._objc_msgSend_414( + _id, _lib._sel_addOperations_waitUntilFinished_1, ops._id, wait); } - void addOperationWithBlock_(ObjCBlock block) { - return _lib._objc_msgSend_387( - _id, _lib._sel_addOperationWithBlock_1, block._id); + void addOperationWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_415(_id, _lib._sel_addOperationWithBlock_1, block._id); } /// @method addBarrierBlock: @@ -71675,17 +73375,16 @@ class NSOperationQueue extends NSObject { /// @discussion The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and /// prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the /// `dispatch_barrier_async` function. - void addBarrierBlock_(ObjCBlock barrier) { - return _lib._objc_msgSend_387( - _id, _lib._sel_addBarrierBlock_1, barrier._id); + void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { + _lib._objc_msgSend_415(_id, _lib._sel_addBarrierBlock_1, barrier._id); } - int get maxConcurrentOperationCount { - return _lib._objc_msgSend_81(_id, _lib._sel_maxConcurrentOperationCount1); + DartNSInteger get maxConcurrentOperationCount { + return _lib._objc_msgSend_86(_id, _lib._sel_maxConcurrentOperationCount1); } - set maxConcurrentOperationCount(int value) { - _lib._objc_msgSend_388( + set maxConcurrentOperationCount(DartNSInteger value) { + return _lib._objc_msgSend_416( _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } @@ -71694,81 +73393,90 @@ class NSOperationQueue extends NSObject { } set suspended(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setSuspended_1, value); + return _lib._objc_msgSend_386(_id, _lib._sel_setSuspended_1, value); } NSString? get name { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_395( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } int get qualityOfService { - return _lib._objc_msgSend_384(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_412(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_385(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_413(_id, _lib._sel_setQualityOfService_1, value); } /// actually retain dispatch_queue_t get underlyingQueue { - return _lib._objc_msgSend_389(_id, _lib._sel_underlyingQueue1); + return _lib._objc_msgSend_417(_id, _lib._sel_underlyingQueue1); } /// actually retain set underlyingQueue(dispatch_queue_t value) { - _lib._objc_msgSend_390(_id, _lib._sel_setUnderlyingQueue_1, value); + return _lib._objc_msgSend_418(_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(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_391( + final _ret = _lib._objc_msgSend_419( _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); return _ret.address == 0 ? null : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - static NSOperationQueue? getMainQueue(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_391( + static NSOperationQueue getMainQueue(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_420( _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); } /// These two functions are inherently a race condition and should be avoided if possible - NSArray? get operations { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get operations { + final _ret = _lib._objc_msgSend_169(_id, _lib._sel_operations1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get operationCount { + DartNSUInteger get operationCount { return _lib._objc_msgSend_12(_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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); return NSOperationQueue._(_ret, _lib, retain: false, release: true); } + static NSOperationQueue allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); @@ -71800,11 +73508,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 { @@ -71812,7 +73520,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 { @@ -71836,69 +73544,77 @@ class NSOperation extends NSObject { return _lib._objc_msgSend_11(_id, _lib._sel_isReady1); } - void addDependency_(NSOperation? op) { - return _lib._objc_msgSend_380( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + void addDependency_(NSOperation op) { + _lib._objc_msgSend_408(_id, _lib._sel_addDependency_1, op._id); } - void removeDependency_(NSOperation? op) { - return _lib._objc_msgSend_380( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + void removeDependency_(NSOperation op) { + _lib._objc_msgSend_408(_id, _lib._sel_removeDependency_1, op._id); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dependencies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get dependencies { + final _ret = _lib._objc_msgSend_169(_id, _lib._sel_dependencies1); + return NSArray._(_ret, _lib, retain: true, release: true); } int get queuePriority { - return _lib._objc_msgSend_381(_id, _lib._sel_queuePriority1); + return _lib._objc_msgSend_409(_id, _lib._sel_queuePriority1); } set queuePriority(int value) { - _lib._objc_msgSend_382(_id, _lib._sel_setQueuePriority_1, value); + return _lib._objc_msgSend_410(_id, _lib._sel_setQueuePriority_1, value); } - ObjCBlock get completionBlock { - final _ret = _lib._objc_msgSend_362(_id, _lib._sel_completionBlock1); - return ObjCBlock._(_ret, _lib); + ObjCBlock_ffiVoid? get completionBlock { + final _ret = _lib._objc_msgSend_387(_id, _lib._sel_completionBlock1); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid._(_ret, _lib, retain: true, release: true); } - set completionBlock(ObjCBlock value) { - _lib._objc_msgSend_363(_id, _lib._sel_setCompletionBlock_1, value._id); + set completionBlock(ObjCBlock_ffiVoid? value) { + return _lib._objc_msgSend_388( + _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_85(_id, _lib._sel_threadPriority1); + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_threadPriority1) + : _lib._objc_msgSend_90(_id, _lib._sel_threadPriority1); } set threadPriority(double value) { - _lib._objc_msgSend_383(_id, _lib._sel_setThreadPriority_1, value); + return _lib._objc_msgSend_411(_id, _lib._sel_setThreadPriority_1, value); } int get qualityOfService { - return _lib._objc_msgSend_384(_id, _lib._sel_qualityOfService1); + return _lib._objc_msgSend_412(_id, _lib._sel_qualityOfService1); } set qualityOfService(int value) { - _lib._objc_msgSend_385(_id, _lib._sel_setQualityOfService_1, value); + return _lib._objc_msgSend_413(_id, _lib._sel_setQualityOfService_1, value); } NSString? get name { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set name(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_395( + _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(NativeCupertinoHttp _lib) { @@ -71906,6 +73622,13 @@ class NSOperation extends NSObject { return NSOperation._(_ret, _lib, retain: false, release: true); } + static NSOperation allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); @@ -71921,34 +73644,44 @@ abstract class NSOperationQueuePriority { static const int NSOperationQueuePriorityVeryHigh = 8; } -typedef dispatch_queue_t = ffi.Pointer; -void _ObjCBlock20_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} +typedef dispatch_queue_t = ffi.Pointer; + +final class dispatch_queue_s extends ffi.Opaque {} -final _ObjCBlock20_closureRegistry = {}; -int _ObjCBlock20_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { - final id = ++_ObjCBlock20_closureRegistryIndex; - _ObjCBlock20_closureRegistry[id] = fn; +void _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +final _ObjCBlock_ffiVoid_NSNotification_closureRegistry = + )>{}; +int _ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSNotification_registerClosure( + void Function(ffi.Pointer) fn) { + final id = ++_ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSNotification_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock20_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_NSNotification_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) => + _ObjCBlock_ffiVoid_NSNotification_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock20 extends _ObjCBlockBase { - ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSNotification extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSNotification._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiVoid_NSNotification.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi @@ -71957,37 +73690,72 @@ class ObjCBlock20 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock20_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock20.fromFunction( - NativeCupertinoHttp 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_NSNotification.fromFunction( + NativeCupertinoHttp lib, void Function(NSNotification) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock20_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSNotification_closureTrampoline) .cast(), - _ObjCBlock20_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSNotification_registerClosure((ffi + .Pointer + arg0) => + fn(NSNotification._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + + /// 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_NSNotification.listener( + NativeCupertinoHttp lib, void Function(NSNotification) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSNotification_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSNotification_registerClosure( + (ffi.Pointer arg0) => fn(NSNotification._( + arg0, lib, + retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer)>? + _dartFuncListenerTrampoline; + + void call(NSNotification 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); } /// ! @@ -72046,7 +73814,7 @@ class NSMutableURLRequest extends NSURLRequest { /// @abstract The URL of the receiver. @override NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -72055,20 +73823,21 @@ class NSMutableURLRequest extends NSURLRequest { /// ! /// @abstract The URL of the receiver. set URL(NSURL? value) { - _lib._objc_msgSend_365(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_390( + _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } /// ! /// @abstract The cache policy of the receiver. @override int get cachePolicy { - return _lib._objc_msgSend_325(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_344(_id, _lib._sel_cachePolicy1); } /// ! /// @abstract The cache policy of the receiver. set cachePolicy(int value) { - _lib._objc_msgSend_393(_id, _lib._sel_setCachePolicy_1, value); + return _lib._objc_msgSend_422(_id, _lib._sel_setCachePolicy_1, value); } /// ! @@ -72084,8 +73853,10 @@ class NSMutableURLRequest extends NSURLRequest { /// is considered to have timed out. This timeout interval is measured /// in seconds. @override - double get timeoutInterval { - return _lib._objc_msgSend_85(_id, _lib._sel_timeoutInterval1); + DartNSTimeInterval get timeoutInterval { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_timeoutInterval1) + : _lib._objc_msgSend_90(_id, _lib._sel_timeoutInterval1); } /// ! @@ -72100,8 +73871,8 @@ class NSMutableURLRequest extends NSURLRequest { /// becomes greater than or equal to the timeout interval, the request /// is considered to have timed out. This timeout interval is measured /// in seconds. - set timeoutInterval(double value) { - _lib._objc_msgSend_383(_id, _lib._sel_setTimeoutInterval_1, value); + set timeoutInterval(DartNSTimeInterval value) { + return _lib._objc_msgSend_411(_id, _lib._sel_setTimeoutInterval_1, value); } /// ! @@ -72115,7 +73886,7 @@ class NSMutableURLRequest extends NSURLRequest { /// in the future. @override NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_mainDocumentURL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); @@ -72131,7 +73902,7 @@ class NSMutableURLRequest extends NSURLRequest { /// as a sub-resource of a user-specified URL, and possibly other things /// in the future. set mainDocumentURL(NSURL? value) { - _lib._objc_msgSend_365( + return _lib._objc_msgSend_390( _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } @@ -72141,7 +73912,7 @@ class NSMutableURLRequest extends NSURLRequest { /// of the request. Most clients should not need to use this method. @override int get networkServiceType { - return _lib._objc_msgSend_326(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_345(_id, _lib._sel_networkServiceType1); } /// ! @@ -72149,7 +73920,8 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion This method is used to provide the network layers with a hint as to the purpose /// of the request. Most clients should not need to use this method. set networkServiceType(int value) { - _lib._objc_msgSend_394(_id, _lib._sel_setNetworkServiceType_1, value); + return _lib._objc_msgSend_423( + _id, _lib._sel_setNetworkServiceType_1, value); } /// ! @@ -72168,7 +73940,8 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion NO if the receiver should not be allowed to use the built in /// cellular radios to satisfy the request, YES otherwise. The default is YES. set allowsCellularAccess(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setAllowsCellularAccess_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setAllowsCellularAccess_1, value); } /// ! @@ -72187,7 +73960,7 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion NO if the receiver should not be allowed to use an interface marked as expensive to /// satisfy the request, YES otherwise. set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_361( + return _lib._objc_msgSend_386( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -72208,7 +73981,7 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion NO if the receiver should not be allowed to use an interface marked as constrained to /// satisfy the request, YES otherwise. set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_361( + return _lib._objc_msgSend_386( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } @@ -72228,7 +74001,8 @@ class NSMutableURLRequest extends NSURLRequest { /// @result YES if server endpoint is known to support HTTP/3. Defaults to NO. /// The default may be YES in a future OS update. set assumesHTTP3Capable(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setAssumesHTTP3Capable_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setAssumesHTTP3Capable_1, value); } /// ! @@ -72237,7 +74011,7 @@ class NSMutableURLRequest extends NSURLRequest { /// user. Defaults to NSURLRequestAttributionDeveloper. @override int get attribution { - return _lib._objc_msgSend_327(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_346(_id, _lib._sel_attribution1); } /// ! @@ -72245,7 +74019,7 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion Set to NSURLRequestAttributionUser if the URL was specified by the /// user. Defaults to NSURLRequestAttributionDeveloper. set attribution(int value) { - _lib._objc_msgSend_395(_id, _lib._sel_setAttribution_1, value); + return _lib._objc_msgSend_424(_id, _lib._sel_setAttribution_1, value); } /// ! @@ -72262,24 +74036,21 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion YES, if the DNS lookup for this request should require DNSSEC validation, /// No otherwise. Defaults to NO. set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); } /// ! /// @abstract Sets the HTTP request method of the receiver. - @override - NSString? get HTTPMethod { + NSString get HTTPMethod { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } /// ! /// @abstract Sets the HTTP request method of the receiver. - set HTTPMethod(NSString? value) { - _lib._objc_msgSend_360( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + set HTTPMethod(NSString value) { + return _lib._objc_msgSend_385(_id, _lib._sel_setHTTPMethod_1, value._id); } /// ! @@ -72294,7 +74065,7 @@ class NSMutableURLRequest extends NSURLRequest { /// message, the key-value pair is skipped. @override NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHTTPHeaderFields1); + final _ret = _lib._objc_msgSend_288(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -72311,7 +74082,7 @@ class NSMutableURLRequest extends NSURLRequest { /// the key or value for a key-value pair answers NO when sent this /// message, the key-value pair is skipped. set allHTTPHeaderFields(NSDictionary? value) { - _lib._objc_msgSend_396( + return _lib._objc_msgSend_425( _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } @@ -72324,9 +74095,9 @@ class NSMutableURLRequest extends NSURLRequest { /// case-insensitive. /// @param value the header field value. /// @param field the header field name (case-insensitive). - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_397(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + void setValue_forHTTPHeaderField_(NSString? value, NSString field) { + _lib._objc_msgSend_426(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field._id); } /// ! @@ -72342,9 +74113,9 @@ class NSMutableURLRequest extends NSURLRequest { /// header field names are case-insensitive. /// @param value the header field value. /// @param field the header field name (case-insensitive). - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_397(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + void addValue_forHTTPHeaderField_(NSString value, NSString field) { + _lib._objc_msgSend_427( + _id, _lib._sel_addValue_forHTTPHeaderField_1, value._id, field._id); } /// ! @@ -72353,7 +74124,7 @@ class NSMutableURLRequest extends NSURLRequest { /// in done in an HTTP POST request. @override NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_HTTPBody1); + final _ret = _lib._objc_msgSend_348(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -72364,7 +74135,7 @@ class NSMutableURLRequest extends NSURLRequest { /// @discussion This data is sent as the message body of the request, as /// in done in an HTTP POST request. set HTTPBody(NSData? value) { - _lib._objc_msgSend_398( + return _lib._objc_msgSend_428( _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } @@ -72377,7 +74148,7 @@ class NSMutableURLRequest extends NSURLRequest { /// - setting one will clear the other. @override NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_338(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_362(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); @@ -72391,7 +74162,7 @@ class NSMutableURLRequest extends NSURLRequest { /// and the body data (set by setHTTPBody:, above) are mutually exclusive /// - setting one will clear the other. set HTTPBodyStream(NSInputStream? value) { - _lib._objc_msgSend_399( + return _lib._objc_msgSend_429( _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } @@ -72415,7 +74186,8 @@ class NSMutableURLRequest extends NSURLRequest { /// stored to the cookie manager by default. /// NOTE: In releases prior to 10.3, this value is ignored set HTTPShouldHandleCookies(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setHTTPShouldHandleCookies_1, value); } /// ! @@ -72454,7 +74226,8 @@ class NSMutableURLRequest extends NSURLRequest { /// pipelining (disconnecting, sending resources misordered, omitting part of /// a resource, etc.). set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } /// ! @@ -72467,9 +74240,9 @@ class NSMutableURLRequest extends NSURLRequest { /// @param URL The URL for the request. /// @result A newly-created and autoreleased NSURLRequest instance. static NSMutableURLRequest requestWithURL_( - NativeCupertinoHttp _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSURL URL) { + final _ret = _lib._objc_msgSend_211( + _lib._class_NSMutableURLRequest1, _lib._sel_requestWithURL_1, URL._id); return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } @@ -72494,24 +74267,75 @@ class NSMutableURLRequest extends NSURLRequest { /// @result A newly-created and autoreleased NSURLRequest instance. static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( NativeCupertinoHttp _lib, - NSURL? URL, + NSURL URL, int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_324( + DartNSTimeInterval timeoutInterval) { + final _ret = _lib._objc_msgSend_343( _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); + } + + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL. + /// @discussion Default values are used for cache policy + /// (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 + /// seconds). + /// @param URL The URL for the request. + /// @result An initialized NSURLRequest. + @override + NSMutableURLRequest initWithURL_(NSURL URL) { + final _ret = _lib._objc_msgSend_211(_id, _lib._sel_initWithURL_1, URL._id); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + /// ! + /// @method initWithURL: + /// @abstract Initializes an NSURLRequest with the given URL and + /// cache policy. + /// @discussion This is the designated initializer for the + /// NSURLRequest class. + /// @param URL The URL for the request. + /// @param cachePolicy The cache policy for the request. + /// @param timeoutInterval The timeout interval for the request. See the + /// commentary for the timeoutInterval for more information on + /// timeout intervals. + /// @result An initialized NSURLRequest. + @override + NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL URL, int cachePolicy, DartNSTimeInterval timeoutInterval) { + final _ret = _lib._objc_msgSend_343( + _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } + static NSMutableURLRequest allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); @@ -72549,90 +74373,89 @@ class NSHTTPCookieStorage extends NSObject { obj._lib._class_NSHTTPCookieStorage1); } - static NSHTTPCookieStorage? getSharedHTTPCookieStorage( + static NSHTTPCookieStorage getSharedHTTPCookieStorage( NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_400( + final _ret = _lib._objc_msgSend_430( _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_( - NativeCupertinoHttp _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_401( + NativeCupertinoHttp _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_431( _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_162(_id, _lib._sel_cookies1); + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_cookies1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_402( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + void setCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_432(_id, _lib._sel_setCookie_1, cookie._id); } - void deleteCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_402( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + void deleteCookie_(NSHTTPCookie cookie) { + _lib._objc_msgSend_432(_id, _lib._sel_deleteCookie_1, cookie._id); } - void removeCookiesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_349( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + void removeCookiesSinceDate_(NSDate date) { + _lib._objc_msgSend_373(_id, _lib._sel_removeCookiesSinceDate_1, date._id); } - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_160( - _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_167(_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_403( + NSArray cookies, NSURL? URL, NSURL? mainDocumentURL) { + _lib._objc_msgSend_433( _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_404(_id, _lib._sel_cookieAcceptPolicy1); + return _lib._objc_msgSend_434(_id, _lib._sel_cookieAcceptPolicy1); } set cookieAcceptPolicy(int value) { - _lib._objc_msgSend_405(_id, _lib._sel_setCookieAcceptPolicy_1, value); + return _lib._objc_msgSend_435( + _id, _lib._sel_setCookieAcceptPolicy_1, value); } - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_97( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); + NSArray sortedCookiesUsingDescriptors_(NSArray sortOrder) { + final _ret = _lib._objc_msgSend_102( + _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_406(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + void storeCookies_forTask_(NSArray cookies, NSURLSessionTask task) { + _lib._objc_msgSend_436( + _id, _lib._sel_storeCookies_forTask_1, cookies._id, task._id); } void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock21 completionHandler) { - return _lib._objc_msgSend_407( - _id, - _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, - completionHandler._id); + NSURLSessionTask task, ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_437(_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(NativeCupertinoHttp _lib) { @@ -72641,6 +74464,13 @@ class NSHTTPCookieStorage extends NSObject { return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } + static NSHTTPCookieStorage allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); @@ -72672,33 +74502,39 @@ class NSHTTPCookie extends _ObjCWrapper { } } -void _ObjCBlock21_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock21_closureRegistry = {}; -int _ObjCBlock21_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { - final id = ++_ObjCBlock21_closureRegistryIndex; - _ObjCBlock21_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 _ObjCBlock21_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock21_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 ObjCBlock21 extends _ObjCBlockBase { - ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSArray.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi @@ -72707,37 +74543,72 @@ class ObjCBlock21 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock21_fnPtrTrampoline) + 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. - ObjCBlock21.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSArray?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock21_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(), - _ObjCBlock21_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSArray._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + + /// 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( + NativeCupertinoHttp 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; + + 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); } final class CFArrayCallBacks extends ffi.Struct { @@ -72753,73 +74624,49 @@ final class CFArrayCallBacks extends ffi.Struct { external CFArrayEqualCallBack equal; } -typedef CFArrayRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFArrayReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFArrayCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; -typedef CFArrayEqualCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, ffi.Pointer value2)>>; +typedef CFArrayRetainCallBack + = ffi.Pointer>; +typedef CFArrayRetainCallBackFunction = ffi.Pointer Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFArrayReleaseCallBack + = ffi.Pointer>; +typedef CFArrayReleaseCallBackFunction = ffi.Void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFArrayReleaseCallBackFunction = void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFArrayCopyDescriptionCallBack + = ffi.Pointer>; +typedef CFArrayCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer value); +typedef CFArrayEqualCallBack + = ffi.Pointer>; +typedef CFArrayEqualCallBackFunction = Boolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef DartCFArrayEqualCallBackFunction = DartBoolean Function( + ffi.Pointer value1, ffi.Pointer value2); final class __CFArray extends ffi.Opaque {} typedef CFArrayRef = ffi.Pointer<__CFArray>; typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; -typedef CFArrayApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, ffi.Pointer context)>>; -typedef CFComparatorFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer val1, - ffi.Pointer val2, ffi.Pointer context)>>; - -class OS_object extends NSObject { - OS_object._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [OS_object] that points to the same underlying object as [other]. - static OS_object castFrom(T other) { - return OS_object._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [OS_object] that wraps the given raw object pointer. - static OS_object castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return OS_object._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [OS_object]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_OS_object1); - } - - @override - OS_object init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return OS_object._(_ret, _lib, retain: true, release: true); - } - - static OS_object new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_OS_object1, _lib._sel_new1); - return OS_object._(_ret, _lib, retain: false, release: true); - } - - static OS_object alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_OS_object1, _lib._sel_alloc1); - return OS_object._(_ret, _lib, retain: false, release: true); - } -} +typedef CFArrayApplierFunction + = ffi.Pointer>; +typedef CFArrayApplierFunctionFunction = ffi.Void Function( + ffi.Pointer value, ffi.Pointer context); +typedef DartCFArrayApplierFunctionFunction = void Function( + ffi.Pointer value, ffi.Pointer context); +typedef CFComparatorFunction + = ffi.Pointer>; +typedef CFComparatorFunctionFunction = ffi.Int32 Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context); +typedef DartCFComparatorFunctionFunction = int Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context); + +final class sec_object extends ffi.Opaque {} final class __SecCertificate extends ffi.Opaque {} @@ -72892,6 +74739,7 @@ final class _RuneEntry extends ffi.Struct { typedef __darwin_rune_t = __darwin_wchar_t; typedef __darwin_wchar_t = ffi.Int; +typedef Dart__darwin_wchar_t = int; final class _RuneRange extends ffi.Struct { @ffi.Int() @@ -72955,6 +74803,7 @@ final class _RuneLocale extends ffi.Struct { } typedef __darwin_ct_rune_t = ffi.Int; +typedef Dart__darwin_ct_rune_t = int; final class lconv extends ffi.Struct { external ffi.Pointer decimal_point; @@ -73020,22 +74869,6 @@ final class lconv extends ffi.Struct { external int int_n_sign_posn; } -final class __float2 extends ffi.Struct { - @ffi.Float() - external double __sinval; - - @ffi.Float() - external double __cosval; -} - -final class __double2 extends ffi.Struct { - @ffi.Double() - external double __sinval; - - @ffi.Double() - external double __cosval; -} - final class exception extends ffi.Struct { @ffi.Int() external int type; @@ -73130,12 +74963,16 @@ final class __sFILE extends ffi.Struct { typedef fpos_t = __darwin_off_t; typedef __darwin_off_t = __int64_t; typedef __int64_t = ffi.LongLong; +typedef Dart__int64_t = int; typedef FILE = __sFILE; typedef off_t = __darwin_off_t; typedef ssize_t = __darwin_ssize_t; typedef __darwin_ssize_t = ffi.Long; +typedef Dart__darwin_ssize_t = int; typedef errno_t = ffi.Int; +typedef Darterrno_t = int; typedef rsize_t = ffi.UnsignedLong; +typedef Dartrsize_t = int; final class timespec extends ffi.Struct { @__darwin_time_t() @@ -73181,6 +75018,7 @@ final class tm extends ffi.Struct { typedef clock_t = __darwin_clock_t; typedef __darwin_clock_t = ffi.UnsignedLong; +typedef Dart__darwin_clock_t = int; typedef time_t = __darwin_time_t; abstract class clockid_t { @@ -73195,6 +75033,7 @@ abstract class clockid_t { } typedef intmax_t = ffi.Long; +typedef Dartintmax_t = int; final class imaxdiv_t extends ffi.Struct { @intmax_t() @@ -73205,6 +75044,7 @@ final class imaxdiv_t extends ffi.Struct { } typedef uintmax_t = ffi.UnsignedLong; +typedef Dartuintmax_t = int; final class CFBagCallBacks extends ffi.Struct { @CFIndex() @@ -73221,31 +75061,43 @@ final class CFBagCallBacks extends ffi.Struct { external CFBagHashCallBack hash; } -typedef CFBagRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFBagReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFBagCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; -typedef CFBagEqualCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, ffi.Pointer value2)>>; -typedef CFBagHashCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; +typedef CFBagRetainCallBack + = ffi.Pointer>; +typedef CFBagRetainCallBackFunction = ffi.Pointer Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFBagReleaseCallBack + = ffi.Pointer>; +typedef CFBagReleaseCallBackFunction = ffi.Void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFBagReleaseCallBackFunction = void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFBagCopyDescriptionCallBack + = ffi.Pointer>; +typedef CFBagCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer value); +typedef CFBagEqualCallBack + = ffi.Pointer>; +typedef CFBagEqualCallBackFunction = Boolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef DartCFBagEqualCallBackFunction = DartBoolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef CFBagHashCallBack + = ffi.Pointer>; +typedef CFBagHashCallBackFunction = CFHashCode Function( + ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = DartCFHashCode Function( + ffi.Pointer value); final class __CFBag extends ffi.Opaque {} typedef CFBagRef = ffi.Pointer<__CFBag>; typedef CFMutableBagRef = ffi.Pointer<__CFBag>; -typedef CFBagApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, ffi.Pointer context)>>; +typedef CFBagApplierFunction + = ffi.Pointer>; +typedef CFBagApplierFunctionFunction = ffi.Void Function( + ffi.Pointer value, ffi.Pointer context); +typedef DartCFBagApplierFunctionFunction = void Function( + ffi.Pointer value, ffi.Pointer context); final class CFBinaryHeapCompareContext extends ffi.Struct { @CFIndex() @@ -73295,10 +75147,12 @@ final class CFBinaryHeapCallBacks extends ffi.Struct { final class __CFBinaryHeap extends ffi.Opaque {} typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; -typedef CFBinaryHeapApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer val, ffi.Pointer context)>>; +typedef CFBinaryHeapApplierFunction + = ffi.Pointer>; +typedef CFBinaryHeapApplierFunctionFunction = ffi.Void Function( + ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = void Function( + ffi.Pointer val, ffi.Pointer context); final class __CFBitVector extends ffi.Opaque {} @@ -73337,22 +75191,32 @@ final class CFDictionaryKeyCallBacks extends ffi.Struct { external CFDictionaryHashCallBack hash; } -typedef CFDictionaryRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFDictionaryReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFDictionaryCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; -typedef CFDictionaryEqualCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, ffi.Pointer value2)>>; -typedef CFDictionaryHashCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; +typedef CFDictionaryRetainCallBack + = ffi.Pointer>; +typedef CFDictionaryRetainCallBackFunction = ffi.Pointer Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFDictionaryReleaseCallBack + = ffi.Pointer>; +typedef CFDictionaryReleaseCallBackFunction = ffi.Void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFDictionaryReleaseCallBackFunction = void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFDictionaryCopyDescriptionCallBack = ffi + .Pointer>; +typedef CFDictionaryCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer value); +typedef CFDictionaryEqualCallBack + = ffi.Pointer>; +typedef CFDictionaryEqualCallBackFunction = Boolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef DartCFDictionaryEqualCallBackFunction = DartBoolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef CFDictionaryHashCallBack + = ffi.Pointer>; +typedef CFDictionaryHashCallBackFunction = CFHashCode Function( + ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = DartCFHashCode Function( + ffi.Pointer value); final class CFDictionaryValueCallBacks extends ffi.Struct { @CFIndex() @@ -73371,10 +75235,16 @@ final class __CFDictionary extends ffi.Opaque {} typedef CFDictionaryRef = ffi.Pointer<__CFDictionary>; typedef CFMutableDictionaryRef = ffi.Pointer<__CFDictionary>; -typedef CFDictionaryApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer key, - ffi.Pointer value, ffi.Pointer context)>>; +typedef CFDictionaryApplierFunction + = ffi.Pointer>; +typedef CFDictionaryApplierFunctionFunction = ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context); +typedef DartCFDictionaryApplierFunctionFunction = void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context); final class __CFNotificationCenter extends ffi.Opaque {} @@ -73386,14 +75256,20 @@ abstract class CFNotificationSuspensionBehavior { } typedef CFNotificationCenterRef = ffi.Pointer<__CFNotificationCenter>; -typedef CFNotificationCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo)>>; +typedef CFNotificationCallback + = ffi.Pointer>; +typedef CFNotificationCallbackFunction = ffi.Void Function( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo); +typedef DartCFNotificationCallbackFunction = void Function( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo); typedef CFNotificationName = CFStringRef; final class __CFLocale extends ffi.Opaque {} @@ -73415,6 +75291,7 @@ typedef CFLocaleKey = CFStringRef; typedef CFCalendarIdentifier = CFStringRef; typedef CFAbsoluteTime = CFTimeInterval; typedef CFTimeInterval = ffi.Double; +typedef DartCFTimeInterval = double; final class __CFDate extends ffi.Opaque {} @@ -73443,6 +75320,7 @@ final class CFGregorianDate extends ffi.Struct { } typedef SInt8 = ffi.SignedChar; +typedef DartSInt8 = int; final class CFGregorianUnits extends ffi.Struct { @SInt32() @@ -73614,6 +75492,7 @@ final class CGPoint extends ffi.Struct { } typedef CGFloat = ffi.Double; +typedef DartCGFloat = double; final class CGSize extends ffi.Struct { @CGFloat() @@ -73861,10 +75740,12 @@ final class mach_port_status extends ffi.Struct { typedef mach_port_rights_t = natural_t; typedef natural_t = __darwin_natural_t; typedef __darwin_natural_t = ffi.UnsignedInt; +typedef Dart__darwin_natural_t = int; typedef mach_port_seqno_t = natural_t; typedef mach_port_mscount_t = natural_t; typedef mach_port_msgcount_t = natural_t; typedef boolean_t = ffi.Int; +typedef Dartboolean_t = int; final class mach_port_limits extends ffi.Struct { @mach_port_msgcount_t() @@ -73931,6 +75812,7 @@ abstract class mach_port_guard_exception_codes { static const int kGUARD_EXC_INVALID_OPTIONS = 3; static const int kGUARD_EXC_SET_CONTEXT = 4; static const int kGUARD_EXC_THREAD_SET_STATE = 5; + static const int kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE = 6; static const int kGUARD_EXC_UNGUARDED = 8; static const int kGUARD_EXC_INCORRECT_GUARD = 16; static const int kGUARD_EXC_IMMOVABLE = 32; @@ -74088,39 +75970,53 @@ final class CFRunLoopObserverContext extends ffi.Struct { copyDescription; } -typedef CFRunLoopObserverCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef observer, ffi.Int32 activity, - ffi.Pointer info)>>; -void _ObjCBlock22_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, CFRunLoopObserverRef arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef arg0, ffi.Int32 arg1)>>() - .asFunction< - void Function(CFRunLoopObserverRef arg0, int arg1)>()(arg0, arg1); -} - -final _ObjCBlock22_closureRegistry = {}; -int _ObjCBlock22_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { - final id = ++_ObjCBlock22_closureRegistryIndex; - _ObjCBlock22_closureRegistry[id] = fn; +typedef CFRunLoopObserverCallBack + = ffi.Pointer>; +typedef CFRunLoopObserverCallBackFunction = ffi.Void Function( + CFRunLoopObserverRef observer, + ffi.Int32 activity, + ffi.Pointer info); +typedef DartCFRunLoopObserverCallBackFunction = void Function( + CFRunLoopObserverRef observer, int activity, ffi.Pointer info); +void _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, CFRunLoopObserverRef arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, ffi.Int32 arg1)>>() + .asFunction()(arg0, arg1); +final _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_registerClosure( + void Function(CFRunLoopObserverRef, int) fn) { + final id = + ++_ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureRegistryIndex; + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock22_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, CFRunLoopObserverRef arg0, int arg1) { - return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, CFRunLoopObserverRef arg0, int arg1) => + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock22 extends _ObjCBlockBase { - ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_CFRunLoopObserverRef_CFRunLoopActivity.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -74129,39 +76025,69 @@ class ObjCBlock22 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - CFRunLoopObserverRef arg0, - ffi.Int32 arg1)>(_ObjCBlock22_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + CFRunLoopObserverRef, ffi.Int32)>( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock22.fromFunction(NativeCupertinoHttp lib, - void Function(CFRunLoopObserverRef 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_CFRunLoopObserverRef_CFRunLoopActivity.fromFunction( + NativeCupertinoHttp lib, void Function(CFRunLoopObserverRef, int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - CFRunLoopObserverRef arg0, - ffi.Int32 arg1)>(_ObjCBlock22_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + CFRunLoopObserverRef, ffi.Int32)>( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline) .cast(), - _ObjCBlock22_registerClosure(fn)), + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_registerClosure( + (CFRunLoopObserverRef arg0, int arg1) => fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(CFRunLoopObserverRef arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - CFRunLoopObserverRef arg0, ffi.Int32 arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - CFRunLoopObserverRef arg0, int arg1)>()(_id, arg0, arg1); - } + + /// 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_CFRunLoopObserverRef_CFRunLoopActivity.listener( + NativeCupertinoHttp lib, void Function(CFRunLoopObserverRef, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + CFRunLoopObserverRef, ffi.Int32)>.listener( + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity_registerClosure( + (CFRunLoopObserverRef arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, CFRunLoopObserverRef, ffi.Int32)>? + _dartFuncListenerTrampoline; + + void call(CFRunLoopObserverRef arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + CFRunLoopObserverRef arg0, ffi.Int32 arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, CFRunLoopObserverRef, + int)>()(_id, arg0, arg1); } final class CFRunLoopTimerContext extends ffi.Struct { @@ -74183,73 +76109,112 @@ final class CFRunLoopTimerContext extends ffi.Struct { copyDescription; } -typedef CFRunLoopTimerCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFRunLoopTimerRef timer, ffi.Pointer info)>>; -void _ObjCBlock23_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, CFRunLoopTimerRef arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); -} - -final _ObjCBlock23_closureRegistry = {}; -int _ObjCBlock23_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { - final id = ++_ObjCBlock23_closureRegistryIndex; - _ObjCBlock23_closureRegistry[id] = fn; +typedef CFRunLoopTimerCallBack + = ffi.Pointer>; +typedef CFRunLoopTimerCallBackFunction = ffi.Void Function( + CFRunLoopTimerRef timer, ffi.Pointer info); +typedef DartCFRunLoopTimerCallBackFunction = void Function( + CFRunLoopTimerRef timer, ffi.Pointer info); +void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, CFRunLoopTimerRef arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_CFRunLoopTimerRef_registerClosure( + void Function(CFRunLoopTimerRef) fn) { + final id = ++_ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureRegistryIndex; + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock23_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, CFRunLoopTimerRef arg0) { - return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, CFRunLoopTimerRef arg0) => + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock23 extends _ObjCBlockBase { - ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_CFRunLoopTimerRef extends _ObjCBlockBase { + ObjCBlock_ffiVoid_CFRunLoopTimerRef._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_ffiVoid_CFRunLoopTimerRef.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - CFRunLoopTimerRef arg0)>( - _ObjCBlock23_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, CFRunLoopTimerRef)>( + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock23.fromFunction( - NativeCupertinoHttp lib, void Function(CFRunLoopTimerRef 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_CFRunLoopTimerRef.fromFunction( + NativeCupertinoHttp lib, void Function(CFRunLoopTimerRef) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - CFRunLoopTimerRef arg0)>( - _ObjCBlock23_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, CFRunLoopTimerRef)>( + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureTrampoline) .cast(), - _ObjCBlock23_registerClosure(fn)), + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_registerClosure( + (CFRunLoopTimerRef arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(CFRunLoopTimerRef arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, CFRunLoopTimerRef arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - CFRunLoopTimerRef arg0)>()(_id, arg0); - } + + /// 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_CFRunLoopTimerRef.listener( + NativeCupertinoHttp lib, void Function(CFRunLoopTimerRef) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + CFRunLoopTimerRef)>.listener( + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_CFRunLoopTimerRef_registerClosure( + (CFRunLoopTimerRef arg0) => fn(arg0))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, CFRunLoopTimerRef)>? + _dartFuncListenerTrampoline; + + void call(CFRunLoopTimerRef arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, CFRunLoopTimerRef arg0)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, CFRunLoopTimerRef)>()(_id, arg0); } final class __CFSocket extends ffi.Opaque {} @@ -74302,11 +76267,18 @@ final class CFSocketContext extends ffi.Struct { } typedef CFSocketRef = ffi.Pointer<__CFSocket>; -typedef CFSocketCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFSocketRef s, ffi.Int32 type, CFDataRef address, - ffi.Pointer data, ffi.Pointer info)>>; +typedef CFSocketCallBack + = ffi.Pointer>; +typedef CFSocketCallBackFunction = ffi.Void Function( + CFSocketRef s, + ffi.Int32 type, + CFDataRef address, + ffi.Pointer data, + ffi.Pointer info); +typedef DartCFSocketCallBackFunction = void Function(CFSocketRef s, int type, + CFDataRef address, ffi.Pointer data, ffi.Pointer info); typedef CFSocketNativeHandle = ffi.Int; +typedef DartCFSocketNativeHandle = int; final class accessx_descriptor extends ffi.Struct { @ffi.UnsignedInt() @@ -74466,6 +76438,17 @@ final class fspecread extends ffi.Struct { external int fsr_length; } +final class fattributiontag extends ffi.Struct { + @ffi.UnsignedInt() + external int ft_flags; + + @ffi.UnsignedLongLong() + external int ft_hash; + + @ffi.Array.multi([255]) + external ffi.Array ft_attribution_name; +} + @ffi.Packed(4) final class log2phys extends ffi.Struct { @ffi.UnsignedInt() @@ -74521,156 +76504,28 @@ final class os_workgroup_join_token_opaque_s extends ffi.Struct { external ffi.Array opaque; } -class OS_os_workgroup extends OS_object { - OS_os_workgroup._(ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [OS_os_workgroup] that points to the same underlying object as [other]. - static OS_os_workgroup castFrom(T other) { - return OS_os_workgroup._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [OS_os_workgroup] that wraps the given raw object pointer. - static OS_os_workgroup castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return OS_os_workgroup._(other, lib, retain: retain, release: release); - } +final class os_workgroup_s extends ffi.Opaque {} - /// Returns whether [obj] is an instance of [OS_os_workgroup]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_OS_os_workgroup1); - } - - @override - OS_os_workgroup init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return OS_os_workgroup._(_ret, _lib, retain: true, release: true); - } - - static OS_os_workgroup new1(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_OS_os_workgroup1, _lib._sel_new1); - return OS_os_workgroup._(_ret, _lib, retain: false, release: true); - } - - static OS_os_workgroup alloc(NativeCupertinoHttp _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_OS_os_workgroup1, _lib._sel_alloc1); - return OS_os_workgroup._(_ret, _lib, retain: false, release: true); - } -} - -typedef os_workgroup_t = ffi.Pointer; +typedef os_workgroup_t = ffi.Pointer; typedef os_workgroup_join_token_t = ffi.Pointer; -typedef os_workgroup_working_arena_destructor_t - = ffi.Pointer)>>; +typedef os_workgroup_working_arena_destructor_t = ffi.Pointer< + ffi.NativeFunction>; +typedef os_workgroup_working_arena_destructor_tFunction = ffi.Void Function( + ffi.Pointer); +typedef Dartos_workgroup_working_arena_destructor_tFunction = void Function( + ffi.Pointer); typedef os_workgroup_index = ffi.Uint32; +typedef Dartos_workgroup_index = int; final class os_workgroup_max_parallel_threads_attr_s extends ffi.Opaque {} typedef os_workgroup_mpt_attr_t = ffi.Pointer; - -class OS_os_workgroup_interval extends OS_os_workgroup { - OS_os_workgroup_interval._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [OS_os_workgroup_interval] that points to the same underlying object as [other]. - static OS_os_workgroup_interval castFrom(T other) { - return OS_os_workgroup_interval._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [OS_os_workgroup_interval] that wraps the given raw object pointer. - static OS_os_workgroup_interval castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return OS_os_workgroup_interval._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [OS_os_workgroup_interval]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_OS_os_workgroup_interval1); - } - - @override - OS_os_workgroup_interval init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return OS_os_workgroup_interval._(_ret, _lib, retain: true, release: true); - } - - static OS_os_workgroup_interval new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_OS_os_workgroup_interval1, _lib._sel_new1); - return OS_os_workgroup_interval._(_ret, _lib, retain: false, release: true); - } - - static OS_os_workgroup_interval alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_OS_os_workgroup_interval1, _lib._sel_alloc1); - return OS_os_workgroup_interval._(_ret, _lib, retain: false, release: true); - } -} - -typedef os_workgroup_interval_t = ffi.Pointer; +typedef os_workgroup_interval_t = os_workgroup_t; typedef os_workgroup_interval_data_t = ffi.Pointer; - -class OS_os_workgroup_parallel extends OS_os_workgroup { - OS_os_workgroup_parallel._( - ffi.Pointer id, NativeCupertinoHttp lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [OS_os_workgroup_parallel] that points to the same underlying object as [other]. - static OS_os_workgroup_parallel castFrom(T other) { - return OS_os_workgroup_parallel._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [OS_os_workgroup_parallel] that wraps the given raw object pointer. - static OS_os_workgroup_parallel castFromPointer( - NativeCupertinoHttp lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return OS_os_workgroup_parallel._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [OS_os_workgroup_parallel]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_OS_os_workgroup_parallel1); - } - - @override - OS_os_workgroup_parallel init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return OS_os_workgroup_parallel._(_ret, _lib, retain: true, release: true); - } - - static OS_os_workgroup_parallel new1(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_OS_os_workgroup_parallel1, _lib._sel_new1); - return OS_os_workgroup_parallel._(_ret, _lib, retain: false, release: true); - } - - static OS_os_workgroup_parallel alloc(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_OS_os_workgroup_parallel1, _lib._sel_alloc1); - return OS_os_workgroup_parallel._(_ret, _lib, retain: false, release: true); - } -} - -typedef os_workgroup_parallel_t = ffi.Pointer; +typedef os_workgroup_parallel_t = os_workgroup_t; typedef os_workgroup_attr_t = ffi.Pointer; final class time_value extends ffi.Struct { @@ -74682,6 +76537,7 @@ final class time_value extends ffi.Struct { } typedef integer_t = ffi.Int; +typedef Dartinteger_t = int; final class mach_timespec extends ffi.Struct { @ffi.UnsignedInt() @@ -74692,7 +76548,9 @@ final class mach_timespec extends ffi.Struct { } typedef clock_res_t = ffi.Int; +typedef Dartclock_res_t = int; typedef dispatch_time_t = ffi.Uint64; +typedef Dartdispatch_time_t = int; abstract class qos_class_t { static const int QOS_CLASS_USER_INTERACTIVE = 33; @@ -74703,75 +76561,158 @@ abstract class qos_class_t { static const int QOS_CLASS_UNSPECIFIED = 0; } -typedef dispatch_object_t = ffi.Pointer; -typedef dispatch_function_t - = ffi.Pointer)>>; -typedef dispatch_block_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock24_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, int arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); +final class dispatch_object_t extends ffi.Union { + external ffi.Pointer<_os_object_s> _os_obj; + + external ffi.Pointer _do; + + external ffi.Pointer _dq; + + external ffi.Pointer _dqa; + + external ffi.Pointer _dg; + + external ffi.Pointer _ds; + + external ffi.Pointer _dch; + + external ffi.Pointer _dm; + + external ffi.Pointer _dmsg; + + external ffi.Pointer _dsema; + + external ffi.Pointer _ddata; + + external ffi.Pointer _dchannel; } -final _ObjCBlock24_closureRegistry = {}; -int _ObjCBlock24_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { - final id = ++_ObjCBlock24_closureRegistryIndex; - _ObjCBlock24_closureRegistry[id] = fn; +final class _os_object_s extends ffi.Opaque {} + +final class dispatch_object_s extends ffi.Opaque {} + +final class dispatch_queue_attr_s extends ffi.Opaque {} + +final class dispatch_group_s extends ffi.Opaque {} + +final class dispatch_source_s extends ffi.Opaque {} + +final class dispatch_channel_s extends ffi.Opaque {} + +final class dispatch_mach_s extends ffi.Opaque {} + +final class dispatch_mach_msg_s extends ffi.Opaque {} + +final class dispatch_semaphore_s extends ffi.Opaque {} + +final class dispatch_data_s extends ffi.Opaque {} + +final class dispatch_io_s extends ffi.Opaque {} + +typedef dispatch_function_t + = ffi.Pointer>; +typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); +typedef dispatch_block_t = ffi.Pointer<_ObjCBlock>; +typedef Dartdispatch_block_t = ObjCBlock_ffiVoid; +void _ObjCBlock_ffiVoid_ffiSize_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_ffiSize_closureRegistry = {}; +int _ObjCBlock_ffiVoid_ffiSize_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiSize_registerClosure( + void Function(int) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiSize_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiSize_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock24_closureTrampoline(ffi.Pointer<_ObjCBlock> block, int arg0) { - return _ObjCBlock24_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_ffiSize_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0) => + _ObjCBlock_ffiVoid_ffiSize_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock24 extends _ObjCBlockBase { - ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiSize extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiSize._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock24.fromFunctionPointer(NativeCupertinoHttp 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_ffiSize.fromFunctionPointer(NativeCupertinoHttp lib, ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Size arg0)>(_ObjCBlock24_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Size)>( + _ObjCBlock_ffiVoid_ffiSize_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock24.fromFunction(NativeCupertinoHttp lib, void Function(int 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_ffiSize.fromFunction( + NativeCupertinoHttp lib, void Function(int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Size arg0)>(_ObjCBlock24_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Size)>( + _ObjCBlock_ffiVoid_ffiSize_closureTrampoline) .cast(), - _ObjCBlock24_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiSize_registerClosure( + (int arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Size arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, int arg0)>()(_id, arg0); - } -} -final class dispatch_queue_s extends ffi.Opaque {} - -typedef dispatch_queue_global_t = ffi.Pointer; + /// 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_ffiSize.listener( + NativeCupertinoHttp lib, void Function(int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Size)>.listener( + _ObjCBlock_ffiVoid_ffiSize_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiSize_registerClosure( + (int arg0) => fn(arg0))), + lib); + static ffi + .NativeCallable, ffi.Size)>? + _dartFuncListenerTrampoline; -final class dispatch_queue_attr_s extends ffi.Opaque {} + void call(int arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Size arg0)>>() + .asFunction, int)>()(_id, arg0); +} -typedef dispatch_queue_attr_t = ffi.Pointer; +typedef dispatch_queue_global_t = dispatch_queue_t; +typedef dispatch_queue_attr_t = ffi.Pointer; abstract class dispatch_autorelease_frequency_t { static const int DISPATCH_AUTORELEASE_FREQUENCY_INHERIT = 0; @@ -74840,6 +76781,7 @@ final class mach_msg_header_t extends ffi.Struct { } typedef mach_msg_bits_t = ffi.UnsignedInt; +typedef Dartmach_msg_bits_t = int; typedef mach_msg_id_t = integer_t; final class mach_msg_base_t extends ffi.Struct { @@ -74857,7 +76799,9 @@ final class mach_msg_trailer_t extends ffi.Struct { } typedef mach_msg_trailer_type_t = ffi.UnsignedInt; +typedef Dartmach_msg_trailer_type_t = int; typedef mach_msg_trailer_size_t = ffi.UnsignedInt; +typedef Dartmach_msg_trailer_size_t = int; final class mach_msg_seqno_trailer_t extends ffi.Struct { @mach_msg_trailer_type_t() @@ -74929,6 +76873,7 @@ final class mach_msg_context_trailer_t extends ffi.Struct { typedef mach_port_context_t = vm_offset_t; typedef vm_offset_t = ffi.UintPtr; +typedef Dartvm_offset_t = int; final class msg_labels_t extends ffi.Struct { @mach_port_name_t() @@ -74960,6 +76905,7 @@ final class mach_msg_mac_trailer_t extends ffi.Struct { } typedef mach_msg_filter_id = ffi.Int; +typedef Dartmach_msg_filter_id = int; final class mach_msg_empty_send_t extends ffi.Struct { external mach_msg_header_t header; @@ -74979,53 +76925,72 @@ final class mach_msg_empty_t extends ffi.Union { typedef mach_msg_return_t = kern_return_t; typedef kern_return_t = ffi.Int; +typedef Dartkern_return_t = int; typedef mach_msg_option_t = integer_t; typedef mach_msg_timeout_t = natural_t; final class dispatch_source_type_s extends ffi.Opaque {} -typedef dispatch_source_t = ffi.Pointer; +typedef dispatch_source_t = ffi.Pointer; typedef dispatch_source_type_t = ffi.Pointer; -typedef dispatch_group_t = ffi.Pointer; -typedef dispatch_semaphore_t = ffi.Pointer; +typedef dispatch_group_t = ffi.Pointer; +typedef dispatch_semaphore_t = ffi.Pointer; typedef dispatch_once_t = ffi.IntPtr; - -final class dispatch_data_s extends ffi.Opaque {} - -typedef dispatch_data_t = ffi.Pointer; +typedef Dartdispatch_once_t = int; +typedef dispatch_data_t = ffi.Pointer; typedef dispatch_data_applier_t = ffi.Pointer<_ObjCBlock>; -bool _ObjCBlock25_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, int arg1, ffi.Pointer arg2, int arg3) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(dispatch_data_t arg0, ffi.Size arg1, - ffi.Pointer arg2, ffi.Size arg3)>>() - .asFunction< - bool Function(dispatch_data_t arg0, int arg1, - ffi.Pointer arg2, int arg3)>()(arg0, arg1, arg2, arg3); -} - -final _ObjCBlock25_closureRegistry = {}; -int _ObjCBlock25_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { - final id = ++_ObjCBlock25_closureRegistryIndex; - _ObjCBlock25_closureRegistry[id] = fn; +typedef Dartdispatch_data_applier_t + = ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize; +bool _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(dispatch_data_t arg0, ffi.Size arg1, + ffi.Pointer arg2, ffi.Size arg3)>>() + .asFunction< + bool Function(dispatch_data_t, int, ffi.Pointer, + int)>()(arg0, arg1, arg2, arg3); +final _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureRegistry = + , int)>{}; +int _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_registerClosure( + bool Function(dispatch_data_t, int, ffi.Pointer, int) fn) { + final id = + ++_ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureRegistryIndex; + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureRegistry[id] = + fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock25_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, int arg1, ffi.Pointer arg2, int arg3) { - return _ObjCBlock25_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} - -class ObjCBlock25 extends _ObjCBlockBase { - ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +bool _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3) => + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2, arg3); + +class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize + extends _ObjCBlockBase { + ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -75035,87 +77000,97 @@ class ObjCBlock25 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3)>(_ObjCBlock25_fnPtrTrampoline, false) + ffi.Bool Function( + ffi.Pointer<_ObjCBlock>, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size)>( + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_fnPtrTrampoline, + false) .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_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize.fromFunction( NativeCupertinoHttp lib, - bool Function(dispatch_data_t arg0, int arg1, ffi.Pointer arg2, - int arg3) - fn) + bool Function(dispatch_data_t, int, ffi.Pointer, int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3)>( - _ObjCBlock25_closureTrampoline, false) + ffi.Pointer<_ObjCBlock>, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size)>( + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_closureTrampoline, false) .cast(), - _ObjCBlock25_registerClosure(fn)), + _ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize_registerClosure( + (dispatch_data_t arg0, int arg1, ffi.Pointer arg2, + int arg3) => + fn(arg0, arg1, arg2, arg3))), lib); static ffi.Pointer? _dartFuncTrampoline; - bool call( - dispatch_data_t arg0, int arg1, ffi.Pointer arg2, int arg3) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3)>()(_id, arg0, arg1, arg2, arg3); - } -} -typedef dispatch_fd_t = ffi.Int; -void _ObjCBlock26_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1)>>() - .asFunction()(arg0, arg1); + bool call(dispatch_data_t arg0, int arg1, ffi.Pointer arg2, + int arg3) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock>, dispatch_data_t, int, + ffi.Pointer, int)>()(_id, arg0, arg1, arg2, arg3); } -final _ObjCBlock26_closureRegistry = {}; -int _ObjCBlock26_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { - final id = ++_ObjCBlock26_closureRegistryIndex; - _ObjCBlock26_closureRegistry[id] = fn; +typedef dispatch_fd_t = ffi.Int; +typedef Dartdispatch_fd_t = int; +void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1)>>() + .asFunction()(arg0, arg1); +final _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_registerClosure( + void Function(dispatch_data_t, int) fn) { + final id = ++_ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureRegistryIndex; + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock26_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, int arg1) { - return _ObjCBlock26_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, int arg1) => + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock26 extends _ObjCBlockBase { - ObjCBlock26._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_dispatchdatat_ffiInt extends _ObjCBlockBase { + ObjCBlock_ffiVoid_dispatchdatat_ffiInt._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_dispatchdatat_ffiInt.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -75124,183 +77099,294 @@ class ObjCBlock26 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - ffi.Int arg1)>(_ObjCBlock26_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t, ffi.Int)>( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock26.fromFunction( - NativeCupertinoHttp lib, void Function(dispatch_data_t 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_dispatchdatat_ffiInt.fromFunction( + NativeCupertinoHttp lib, void Function(dispatch_data_t, int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - ffi.Int arg1)>(_ObjCBlock26_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t, ffi.Int)>( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureTrampoline) .cast(), - _ObjCBlock26_registerClosure(fn)), + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_registerClosure( + (dispatch_data_t arg0, int arg1) => fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(dispatch_data_t arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, ffi.Int arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, - int arg1)>()(_id, arg0, arg1); - } -} -typedef dispatch_io_t = ffi.Pointer; -typedef dispatch_io_type_t = ffi.UnsignedLong; -void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, int arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); + /// 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_dispatchdatat_ffiInt.listener( + NativeCupertinoHttp lib, void Function(dispatch_data_t, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t, ffi.Int)>.listener( + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_dispatchdatat_ffiInt_registerClosure( + (dispatch_data_t arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, dispatch_data_t, ffi.Int)>? + _dartFuncListenerTrampoline; + + void call(dispatch_data_t arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, ffi.Int arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, dispatch_data_t, int)>()( + _id, arg0, arg1); } -final _ObjCBlock27_closureRegistry = {}; -int _ObjCBlock27_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { - final id = ++_ObjCBlock27_closureRegistryIndex; - _ObjCBlock27_closureRegistry[id] = fn; +typedef dispatch_io_t = ffi.Pointer; +typedef dispatch_io_type_t = ffi.UnsignedLong; +typedef Dartdispatch_io_type_t = int; +void _ObjCBlock_ffiVoid_ffiInt_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_ffiInt_closureRegistry = {}; +int _ObjCBlock_ffiVoid_ffiInt_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_ffiInt_registerClosure( + void Function(int) fn) { + final id = ++_ObjCBlock_ffiVoid_ffiInt_closureRegistryIndex; + _ObjCBlock_ffiVoid_ffiInt_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, int arg0) { - return _ObjCBlock27_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_ffiInt_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0) => + _ObjCBlock_ffiVoid_ffiInt_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock27 extends _ObjCBlockBase { - ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ffiInt extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ffiInt._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock27.fromFunctionPointer(NativeCupertinoHttp 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_ffiInt.fromFunctionPointer(NativeCupertinoHttp lib, ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Int arg0)>(_ObjCBlock27_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Int)>(_ObjCBlock_ffiVoid_ffiInt_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock27.fromFunction(NativeCupertinoHttp lib, void Function(int 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_ffiInt.fromFunction( + NativeCupertinoHttp lib, void Function(int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Int arg0)>(_ObjCBlock27_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Int)>( + _ObjCBlock_ffiVoid_ffiInt_closureTrampoline) .cast(), - _ObjCBlock27_registerClosure(fn)), + _ObjCBlock_ffiVoid_ffiInt_registerClosure( + (int arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Int arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, int arg0)>()(_id, arg0); - } -} -typedef dispatch_io_handler_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock28_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0, dispatch_data_t arg1, int arg2) { - return block.ref.target + /// 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_ffiInt.listener( + NativeCupertinoHttp lib, void Function(int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Int)>.listener( + _ObjCBlock_ffiVoid_ffiInt_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_ffiInt_registerClosure( + (int arg0) => fn(arg0))), + lib); + static ffi + .NativeCallable, ffi.Int)>? + _dartFuncListenerTrampoline; + + void call(int arg0) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2)>>() - .asFunction< - void Function( - bool arg0, dispatch_data_t arg1, int arg2)>()(arg0, arg1, arg2); + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Int arg0)>>() + .asFunction, int)>()(_id, arg0); } -final _ObjCBlock28_closureRegistry = {}; -int _ObjCBlock28_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { - final id = ++_ObjCBlock28_closureRegistryIndex; - _ObjCBlock28_closureRegistry[id] = fn; +typedef dispatch_io_handler_t = ffi.Pointer<_ObjCBlock>; +typedef Dartdispatch_io_handler_t = ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt; +void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + bool arg0, + dispatch_data_t arg1, + int arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2)>>() + .asFunction()( + arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_registerClosure( + void Function(bool, dispatch_data_t, int) fn) { + final id = + ++_ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock28_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0, dispatch_data_t arg1, int arg2) { - return _ObjCBlock28_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + bool arg0, + dispatch_data_t arg1, + int arg2) => + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); -class ObjCBlock28 extends _ObjCBlockBase { - ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool_dispatchdatat_ffiInt.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, - ffi.Int arg2)>> + ffi.Void Function( + ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0, - dispatch_data_t arg1, - ffi.Int arg2)>(_ObjCBlock28_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Bool, + dispatch_data_t, ffi.Int)>( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock28.fromFunction(NativeCupertinoHttp lib, - void Function(bool arg0, dispatch_data_t arg1, int 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_bool_dispatchdatat_ffiInt.fromFunction( + NativeCupertinoHttp lib, void Function(bool, dispatch_data_t, int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0, - dispatch_data_t arg1, - ffi.Int arg2)>(_ObjCBlock28_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Bool, + dispatch_data_t, ffi.Int)>( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureTrampoline) .cast(), - _ObjCBlock28_registerClosure(fn)), + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_registerClosure( + (bool arg0, dispatch_data_t arg1, int arg2) => + fn(arg0, arg1, arg2))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(bool arg0, dispatch_data_t arg1, int arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0, - dispatch_data_t arg1, ffi.Int arg2)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, bool arg0, - dispatch_data_t arg1, int arg2)>()(_id, arg0, arg1, arg2); - } + + /// 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_dispatchdatat_ffiInt.listener( + NativeCupertinoHttp lib, void Function(bool, dispatch_data_t, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Bool, + dispatch_data_t, ffi.Int)>.listener( + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt_registerClosure( + (bool arg0, dispatch_data_t arg1, int arg2) => + fn(arg0, arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool, dispatch_data_t, ffi.Int)>? + _dartFuncListenerTrampoline; + + void call(bool arg0, dispatch_data_t arg1, int arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0, + dispatch_data_t arg1, ffi.Int arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, bool, dispatch_data_t, + int)>()(_id, arg0, arg1, arg2); } typedef dispatch_io_close_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_io_close_flags_t = int; typedef dispatch_io_interval_flags_t = ffi.UnsignedLong; -typedef dispatch_workloop_t = ffi.Pointer; +typedef Dartdispatch_io_interval_flags_t = int; +typedef dispatch_workloop_t = dispatch_queue_t; final class CFStreamError extends ffi.Struct { @CFIndex() @@ -75356,14 +77442,24 @@ final class __CFWriteStream extends ffi.Opaque {} typedef CFStreamPropertyKey = CFStringRef; typedef CFReadStreamRef = ffi.Pointer<__CFReadStream>; typedef CFWriteStreamRef = ffi.Pointer<__CFWriteStream>; -typedef CFReadStreamClientCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFReadStreamRef stream, ffi.Int32 type, - ffi.Pointer clientCallBackInfo)>>; -typedef CFWriteStreamClientCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFWriteStreamRef stream, ffi.Int32 type, - ffi.Pointer clientCallBackInfo)>>; +typedef CFReadStreamClientCallBack + = ffi.Pointer>; +typedef CFReadStreamClientCallBackFunction = ffi.Void Function( + CFReadStreamRef stream, + ffi.Int32 type, + ffi.Pointer clientCallBackInfo); +typedef DartCFReadStreamClientCallBackFunction = void Function( + CFReadStreamRef stream, int type, ffi.Pointer clientCallBackInfo); +typedef CFWriteStreamClientCallBack + = ffi.Pointer>; +typedef CFWriteStreamClientCallBackFunction = ffi.Void Function( + CFWriteStreamRef stream, + ffi.Int32 type, + ffi.Pointer clientCallBackInfo); +typedef DartCFWriteStreamClientCallBackFunction = void Function( + CFWriteStreamRef stream, + int type, + ffi.Pointer clientCallBackInfo); abstract class CFStreamErrorDomain { static const int kCFStreamErrorDomainCustom = -1; @@ -75398,31 +77494,43 @@ final class CFSetCallBacks extends ffi.Struct { external CFSetHashCallBack hash; } -typedef CFSetRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFSetReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFSetCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; -typedef CFSetEqualCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, ffi.Pointer value2)>>; -typedef CFSetHashCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; +typedef CFSetRetainCallBack + = ffi.Pointer>; +typedef CFSetRetainCallBackFunction = ffi.Pointer Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFSetReleaseCallBack + = ffi.Pointer>; +typedef CFSetReleaseCallBackFunction = ffi.Void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFSetReleaseCallBackFunction = void Function( + CFAllocatorRef allocator, ffi.Pointer value); +typedef CFSetCopyDescriptionCallBack + = ffi.Pointer>; +typedef CFSetCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer value); +typedef CFSetEqualCallBack + = ffi.Pointer>; +typedef CFSetEqualCallBackFunction = Boolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef DartCFSetEqualCallBackFunction = DartBoolean Function( + ffi.Pointer value1, ffi.Pointer value2); +typedef CFSetHashCallBack + = ffi.Pointer>; +typedef CFSetHashCallBackFunction = CFHashCode Function( + ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = DartCFHashCode Function( + ffi.Pointer value); final class __CFSet extends ffi.Opaque {} typedef CFSetRef = ffi.Pointer<__CFSet>; typedef CFMutableSetRef = ffi.Pointer<__CFSet>; -typedef CFSetApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, ffi.Pointer context)>>; +typedef CFSetApplierFunction + = ffi.Pointer>; +typedef CFSetApplierFunctionFunction = ffi.Void Function( + ffi.Pointer value, ffi.Pointer context); +typedef DartCFSetApplierFunctionFunction = void Function( + ffi.Pointer value, ffi.Pointer context); abstract class CFStringEncodings { static const int kCFStringEncodingMacJapanese = 1; @@ -75569,21 +77677,30 @@ final class CFTreeContext extends ffi.Struct { external CFTreeCopyDescriptionCallBack copyDescription; } -typedef CFTreeRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>>; -typedef CFTreeReleaseCallBack = ffi - .Pointer info)>>; -typedef CFTreeCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction info)>>; +typedef CFTreeRetainCallBack + = ffi.Pointer>; +typedef CFTreeRetainCallBackFunction = ffi.Pointer Function( + ffi.Pointer info); +typedef CFTreeReleaseCallBack + = ffi.Pointer>; +typedef CFTreeReleaseCallBackFunction = ffi.Void Function( + ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = void Function( + ffi.Pointer info); +typedef CFTreeCopyDescriptionCallBack + = ffi.Pointer>; +typedef CFTreeCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer info); final class __CFTree extends ffi.Opaque {} typedef CFTreeRef = ffi.Pointer<__CFTree>; -typedef CFTreeApplierFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, ffi.Pointer context)>>; +typedef CFTreeApplierFunction + = ffi.Pointer>; +typedef CFTreeApplierFunctionFunction = ffi.Void Function( + ffi.Pointer value, ffi.Pointer context); +typedef DartCFTreeApplierFunctionFunction = void Function( + ffi.Pointer value, ffi.Pointer context); abstract class CFURLError { static const int kCFURLUnknownError = -10; @@ -75657,6 +77774,7 @@ typedef CFBundleRef = ffi.Pointer<__CFBundle>; typedef cpu_type_t = integer_t; typedef CFPlugInRef = ffi.Pointer<__CFBundle>; typedef CFBundleRefNum = ffi.Int; +typedef DartCFBundleRefNum = int; final class __CFMessagePort extends ffi.Opaque {} @@ -75680,29 +77798,48 @@ final class CFMessagePortContext extends ffi.Struct { } typedef CFMessagePortRef = ffi.Pointer<__CFMessagePort>; -typedef CFMessagePortCallBack = ffi.Pointer< - ffi.NativeFunction< - CFDataRef Function(CFMessagePortRef local, SInt32 msgid, CFDataRef data, - ffi.Pointer info)>>; -typedef CFMessagePortInvalidationCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFMessagePortRef ms, ffi.Pointer info)>>; -typedef CFPlugInFactoryFunction = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, CFUUIDRef typeUUID)>>; +typedef CFMessagePortCallBack + = ffi.Pointer>; +typedef CFMessagePortCallBackFunction = CFDataRef Function( + CFMessagePortRef local, + SInt32 msgid, + CFDataRef data, + ffi.Pointer info); +typedef DartCFMessagePortCallBackFunction = CFDataRef Function( + CFMessagePortRef local, + DartSInt32 msgid, + CFDataRef data, + ffi.Pointer info); +typedef CFMessagePortInvalidationCallBack = ffi + .Pointer>; +typedef CFMessagePortInvalidationCallBackFunction = ffi.Void Function( + CFMessagePortRef ms, ffi.Pointer info); +typedef DartCFMessagePortInvalidationCallBackFunction = void Function( + CFMessagePortRef ms, ffi.Pointer info); +typedef CFPlugInFactoryFunction + = ffi.Pointer>; +typedef CFPlugInFactoryFunctionFunction = ffi.Pointer Function( + CFAllocatorRef allocator, CFUUIDRef typeUUID); final class __CFPlugInInstance extends ffi.Opaque {} typedef CFPlugInInstanceRef = ffi.Pointer<__CFPlugInInstance>; typedef CFPlugInInstanceDeallocateInstanceDataFunction = ffi.Pointer< - ffi.NativeFunction instanceData)>>; -typedef CFPlugInInstanceGetInterfaceFunction = ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl)>>; + ffi.NativeFunction>; +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = ffi.Void + Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = void + Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceGetInterfaceFunction = ffi + .Pointer>; +typedef CFPlugInInstanceGetInterfaceFunctionFunction = Boolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = DartBoolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl); final class __CFMachPort extends ffi.Opaque {} @@ -75726,13 +77863,18 @@ final class CFMachPortContext extends ffi.Struct { } typedef CFMachPortRef = ffi.Pointer<__CFMachPort>; -typedef CFMachPortCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFMachPortRef port, ffi.Pointer msg, - CFIndex size, ffi.Pointer info)>>; -typedef CFMachPortInvalidationCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFMachPortRef port, ffi.Pointer info)>>; +typedef CFMachPortCallBack + = ffi.Pointer>; +typedef CFMachPortCallBackFunction = ffi.Void Function(CFMachPortRef port, + ffi.Pointer msg, CFIndex size, ffi.Pointer info); +typedef DartCFMachPortCallBackFunction = void Function(CFMachPortRef port, + ffi.Pointer msg, DartCFIndex size, ffi.Pointer info); +typedef CFMachPortInvalidationCallBack + = ffi.Pointer>; +typedef CFMachPortInvalidationCallBackFunction = ffi.Void Function( + CFMachPortRef port, ffi.Pointer info); +typedef DartCFMachPortInvalidationCallBackFunction = void Function( + CFMachPortRef port, ffi.Pointer info); final class __CFAttributedString extends ffi.Opaque {} @@ -75785,7 +77927,9 @@ final class ntsid_t extends ffi.Struct { } typedef u_int8_t = ffi.UnsignedChar; +typedef Dartu_int8_t = int; typedef u_int32_t = ffi.UnsignedInt; +typedef Dartu_int32_t = int; final class kauth_identity_extlookup extends ffi.Struct { @u_int32_t() @@ -75843,6 +77987,7 @@ final class kauth_identity_extlookup extends ffi.Struct { } typedef u_int64_t = ffi.UnsignedLongLong; +typedef Dartu_int64_t = int; final class kauth_cache_sizes extends ffi.Struct { @u_int32_t() @@ -76003,18 +78148,27 @@ final class CFFileDescriptorContext extends ffi.Struct { typedef CFFileDescriptorRef = ffi.Pointer<__CFFileDescriptor>; typedef CFFileDescriptorNativeDescriptor = ffi.Int; -typedef CFFileDescriptorCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFFileDescriptorRef f, CFOptionFlags callBackTypes, - ffi.Pointer info)>>; +typedef DartCFFileDescriptorNativeDescriptor = int; +typedef CFFileDescriptorCallBack + = ffi.Pointer>; +typedef CFFileDescriptorCallBackFunction = ffi.Void Function( + CFFileDescriptorRef f, + CFOptionFlags callBackTypes, + ffi.Pointer info); +typedef DartCFFileDescriptorCallBackFunction = void Function( + CFFileDescriptorRef f, + DartCFOptionFlags callBackTypes, + ffi.Pointer info); final class __CFUserNotification extends ffi.Opaque {} typedef CFUserNotificationRef = ffi.Pointer<__CFUserNotification>; -typedef CFUserNotificationCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFUserNotificationRef userNotification, - CFOptionFlags responseFlags)>>; +typedef CFUserNotificationCallBack + = ffi.Pointer>; +typedef CFUserNotificationCallBackFunction = ffi.Void Function( + CFUserNotificationRef userNotification, CFOptionFlags responseFlags); +typedef DartCFUserNotificationCallBackFunction = void Function( + CFUserNotificationRef userNotification, DartCFOptionFlags responseFlags); final class __CFXMLNode extends ffi.Opaque {} @@ -76168,27 +78322,46 @@ final class CFXMLParserCallBacks extends ffi.Struct { external CFXMLParserHandleErrorCallBack handleError; } -typedef CFXMLParserCreateXMLStructureCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CFXMLParserRef parser, - CFXMLNodeRef nodeDesc, ffi.Pointer info)>>; +typedef CFXMLParserCreateXMLStructureCallBack = ffi + .Pointer>; +typedef CFXMLParserCreateXMLStructureCallBackFunction + = ffi.Pointer Function(CFXMLParserRef parser, + CFXMLNodeRef nodeDesc, ffi.Pointer info); typedef CFXMLParserRef = ffi.Pointer<__CFXMLParser>; -typedef CFXMLParserAddChildCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFXMLParserRef parser, ffi.Pointer parent, - ffi.Pointer child, ffi.Pointer info)>>; -typedef CFXMLParserEndXMLStructureCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFXMLParserRef parser, ffi.Pointer xmlType, - ffi.Pointer info)>>; +typedef CFXMLParserAddChildCallBack + = ffi.Pointer>; +typedef CFXMLParserAddChildCallBackFunction = ffi.Void Function( + CFXMLParserRef parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info); +typedef DartCFXMLParserAddChildCallBackFunction = void Function( + CFXMLParserRef parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info); +typedef CFXMLParserEndXMLStructureCallBack = ffi + .Pointer>; +typedef CFXMLParserEndXMLStructureCallBackFunction = ffi.Void Function( + CFXMLParserRef parser, + ffi.Pointer xmlType, + ffi.Pointer info); +typedef DartCFXMLParserEndXMLStructureCallBackFunction = void Function( + CFXMLParserRef parser, + ffi.Pointer xmlType, + ffi.Pointer info); typedef CFXMLParserResolveExternalEntityCallBack = ffi.Pointer< - ffi.NativeFunction< - CFDataRef Function(CFXMLParserRef parser, - ffi.Pointer extID, ffi.Pointer info)>>; -typedef CFXMLParserHandleErrorCallBack = ffi.Pointer< - ffi.NativeFunction< - Boolean Function(CFXMLParserRef parser, ffi.Int32 error, - ffi.Pointer info)>>; + ffi.NativeFunction>; +typedef CFXMLParserResolveExternalEntityCallBackFunction = CFDataRef Function( + CFXMLParserRef parser, + ffi.Pointer extID, + ffi.Pointer info); +typedef CFXMLParserHandleErrorCallBack + = ffi.Pointer>; +typedef CFXMLParserHandleErrorCallBackFunction = Boolean Function( + CFXMLParserRef parser, ffi.Int32 error, ffi.Pointer info); +typedef DartCFXMLParserHandleErrorCallBackFunction = DartBoolean Function( + CFXMLParserRef parser, int error, ffi.Pointer info); final class CFXMLParserContext extends ffi.Struct { @CFIndex() @@ -76203,182 +78376,20 @@ final class CFXMLParserContext extends ffi.Struct { external CFXMLParserCopyDescriptionCallBack copyDescription; } -typedef CFXMLParserRetainCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info)>>; -typedef CFXMLParserReleaseCallBack = ffi - .Pointer info)>>; -typedef CFXMLParserCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction info)>>; - -abstract class SecTrustResultType { - static const int kSecTrustResultInvalid = 0; - static const int kSecTrustResultProceed = 1; - static const int kSecTrustResultConfirm = 2; - static const int kSecTrustResultDeny = 3; - static const int kSecTrustResultUnspecified = 4; - static const int kSecTrustResultRecoverableTrustFailure = 5; - static const int kSecTrustResultFatalTrustFailure = 6; - static const int kSecTrustResultOtherError = 7; -} - -final class __SecTrust extends ffi.Opaque {} - -typedef SecTrustRef = ffi.Pointer<__SecTrust>; -typedef SecTrustCallback = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock29_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(SecTrustRef arg0, ffi.Int32 arg1)>>() - .asFunction()(arg0, arg1); -} - -final _ObjCBlock29_closureRegistry = {}; -int _ObjCBlock29_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { - final id = ++_ObjCBlock29_closureRegistryIndex; - _ObjCBlock29_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock29_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, int arg1) { - return _ObjCBlock29_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock29 extends _ObjCBlockBase { - ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock29.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(SecTrustRef arg0, ffi.Int32 arg1)>> - ptr) - : this._( - lib - ._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, - ffi.Int32 arg1)>(_ObjCBlock29_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock29.fromFunction( - NativeCupertinoHttp lib, void Function(SecTrustRef arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, - ffi.Int32 arg1)>(_ObjCBlock29_closureTrampoline) - .cast(), - _ObjCBlock29_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(SecTrustRef arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, ffi.Int32 arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, - int arg1)>()(_id, arg0, arg1); - } -} - -typedef SecTrustWithErrorCallback = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock30_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, bool arg1, CFErrorRef arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>>() - .asFunction< - void Function(SecTrustRef arg0, bool arg1, CFErrorRef arg2)>()( - arg0, arg1, arg2); -} - -final _ObjCBlock30_closureRegistry = {}; -int _ObjCBlock30_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { - final id = ++_ObjCBlock30_closureRegistryIndex; - _ObjCBlock30_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock30_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, bool arg1, CFErrorRef arg2) { - return _ObjCBlock30_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock30 extends _ObjCBlockBase { - ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock30.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, - ffi.Bool arg1, - CFErrorRef arg2)>(_ObjCBlock30_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock30.fromFunction(NativeCupertinoHttp lib, - void Function(SecTrustRef arg0, bool arg1, CFErrorRef arg2) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, - ffi.Bool arg1, - CFErrorRef arg2)>(_ObjCBlock30_closureTrampoline) - .cast(), - _ObjCBlock30_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, - bool arg1, CFErrorRef arg2)>()(_id, arg0, arg1, arg2); - } -} - -typedef SecKeyRef = ffi.Pointer<__SecKey>; -typedef SecCertificateRef = ffi.Pointer<__SecCertificate>; +typedef CFXMLParserRetainCallBack + = ffi.Pointer>; +typedef CFXMLParserRetainCallBackFunction = ffi.Pointer Function( + ffi.Pointer info); +typedef CFXMLParserReleaseCallBack + = ffi.Pointer>; +typedef CFXMLParserReleaseCallBackFunction = ffi.Void Function( + ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = void Function( + ffi.Pointer info); +typedef CFXMLParserCopyDescriptionCallBack = ffi + .Pointer>; +typedef CFXMLParserCopyDescriptionCallBackFunction = CFStringRef Function( + ffi.Pointer info); final class cssm_data extends ffi.Struct { @ffi.Size() @@ -76430,8 +78441,11 @@ final class cssm_guid extends ffi.Struct { } typedef uint32 = ffi.Uint32; +typedef Dartuint32 = int; typedef uint16 = ffi.Uint16; +typedef Dartuint16 = int; typedef uint8 = ffi.Uint8; +typedef Dartuint8 = int; final class cssm_version extends ffi.Struct { @uint32() @@ -76475,12 +78489,14 @@ final class cssm_crypto_data extends ffi.Struct { external ffi.Pointer CallerCtx; } -typedef CSSM_CALLBACK = ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DATA_PTR OutData, ffi.Pointer CallerCtx)>>; +typedef CSSM_CALLBACK = ffi.Pointer>; +typedef CSSM_CALLBACKFunction = CSSM_RETURN Function( + CSSM_DATA_PTR OutData, ffi.Pointer CallerCtx); +typedef DartCSSM_CALLBACKFunction = Dartsint32 Function( + CSSM_DATA_PTR OutData, ffi.Pointer CallerCtx); typedef CSSM_RETURN = sint32; typedef sint32 = ffi.Int32; +typedef Dartsint32 = int; typedef CSSM_DATA_PTR = ffi.Pointer; final class cssm_list_element extends ffi.Struct { @@ -76571,23 +78587,32 @@ final class cssm_memory_funcs extends ffi.Struct { external ffi.Pointer AllocRef; } -typedef CSSM_MALLOC = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CSSM_SIZE size, ffi.Pointer allocref)>>; +typedef CSSM_MALLOC = ffi.Pointer>; +typedef CSSM_MALLOCFunction = ffi.Pointer Function( + CSSM_SIZE size, ffi.Pointer allocref); +typedef DartCSSM_MALLOCFunction = ffi.Pointer Function( + DartCSSM_SIZE size, ffi.Pointer allocref); typedef CSSM_SIZE = ffi.Size; -typedef CSSM_FREE = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer memblock, ffi.Pointer allocref)>>; -typedef CSSM_REALLOC = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer memblock, - CSSM_SIZE size, ffi.Pointer allocref)>>; -typedef CSSM_CALLOC = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - uint32 num, CSSM_SIZE size, ffi.Pointer allocref)>>; +typedef DartCSSM_SIZE = int; +typedef CSSM_FREE = ffi.Pointer>; +typedef CSSM_FREEFunction = ffi.Void Function( + ffi.Pointer memblock, ffi.Pointer allocref); +typedef DartCSSM_FREEFunction = void Function( + ffi.Pointer memblock, ffi.Pointer allocref); +typedef CSSM_REALLOC = ffi.Pointer>; +typedef CSSM_REALLOCFunction = ffi.Pointer Function( + ffi.Pointer memblock, + CSSM_SIZE size, + ffi.Pointer allocref); +typedef DartCSSM_REALLOCFunction = ffi.Pointer Function( + ffi.Pointer memblock, + DartCSSM_SIZE size, + ffi.Pointer allocref); +typedef CSSM_CALLOC = ffi.Pointer>; +typedef CSSM_CALLOCFunction = ffi.Pointer Function( + uint32 num, CSSM_SIZE size, ffi.Pointer allocref); +typedef DartCSSM_CALLOCFunction = ffi.Pointer Function( + Dartuint32 num, DartCSSM_SIZE size, ffi.Pointer allocref); final class cssm_encoded_cert extends ffi.Struct { @CSSM_CERT_TYPE() @@ -76670,6 +78695,7 @@ typedef CSSM_TP_HANDLE = CSSM_MODULE_HANDLE; typedef CSSM_MODULE_HANDLE = CSSM_HANDLE; typedef CSSM_HANDLE = CSSM_INTPTR; typedef CSSM_INTPTR = ffi.IntPtr; +typedef DartCSSM_INTPTR = int; typedef CSSM_CL_HANDLE = CSSM_MODULE_HANDLE; typedef CSSM_CERTGROUP = cssm_certgroup; @@ -76688,13 +78714,18 @@ final class cssm_access_credentials extends ffi.Struct { typedef CSSM_BASE_CERTS = cssm_base_certs; typedef CSSM_SAMPLEGROUP = cssm_samplegroup; -typedef CSSM_CHALLENGE_CALLBACK = ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer Challenge, - CSSM_SAMPLEGROUP_PTR Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs)>>; +typedef CSSM_CHALLENGE_CALLBACK + = ffi.Pointer>; +typedef CSSM_CHALLENGE_CALLBACKFunction = CSSM_RETURN Function( + ffi.Pointer Challenge, + CSSM_SAMPLEGROUP_PTR Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs); +typedef DartCSSM_CHALLENGE_CALLBACKFunction = Dartsint32 Function( + ffi.Pointer Challenge, + CSSM_SAMPLEGROUP_PTR Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs); typedef CSSM_SAMPLEGROUP_PTR = ffi.Pointer; typedef CSSM_MEMORY_FUNCS = cssm_memory_funcs; @@ -76746,13 +78777,18 @@ final class cssm_acl_entry_input extends ffi.Struct { } typedef CSSM_ACL_ENTRY_PROTOTYPE = cssm_acl_entry_prototype; -typedef CSSM_ACL_SUBJECT_CALLBACK = ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer SubjectRequest, - CSSM_LIST_PTR SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs)>>; +typedef CSSM_ACL_SUBJECT_CALLBACK + = ffi.Pointer>; +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = CSSM_RETURN Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = Dartsint32 Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs); typedef CSSM_LIST_PTR = ffi.Pointer; final class cssm_resource_control_context extends ffi.Struct { @@ -76792,7 +78828,10 @@ final class cssm_func_name_addr extends ffi.Struct { external CSSM_PROC_ADDR Address; } -typedef CSSM_PROC_ADDR = ffi.Pointer>; +typedef CSSM_PROC_ADDR + = ffi.Pointer>; +typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); +typedef DartCSSM_PROC_ADDRFunction = void Function(); final class cssm_date extends ffi.Struct { @ffi.Array.multi([4]) @@ -77111,10 +79150,16 @@ final class cssm_tp_callerauth_context extends ffi.Struct { typedef CSSM_TP_POLICYINFO = cssm_tp_policyinfo; typedef CSSM_TIMESTRING = ffi.Pointer; typedef CSSM_TP_STOP_ON = uint32; -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACK = ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_MODULE_HANDLE ModuleHandle, - ffi.Pointer CallerCtx, CSSM_DATA_PTR VerifiedCert)>>; +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACK = ffi + .Pointer>; +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = CSSM_RETURN Function( + CSSM_MODULE_HANDLE ModuleHandle, + ffi.Pointer CallerCtx, + CSSM_DATA_PTR VerifiedCert); +typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = Dartsint32 Function( + DartCSSM_INTPTR ModuleHandle, + ffi.Pointer CallerCtx, + CSSM_DATA_PTR VerifiedCert); typedef CSSM_DL_DB_LIST_PTR = ffi.Pointer; final class cssm_encoded_crl extends ffi.Struct { @@ -77400,6 +79445,7 @@ final class cssm_tp_certreclaim_output extends ffi.Struct { typedef CSSM_TP_CERTRECLAIM_STATUS = uint32; typedef CSSM_LONG_HANDLE = uint64; typedef uint64 = ffi.Uint64; +typedef Dartuint64 = int; final class cssm_tp_crlissue_input extends ffi.Struct { @CSSM_CL_HANDLE() @@ -78456,6 +80502,256 @@ final class CSSM_APPLE_CL_CSR_REQUEST extends ffi.Struct { external ffi.Pointer challengeString; } +abstract class SecTrustResultType { + static const int kSecTrustResultInvalid = 0; + static const int kSecTrustResultProceed = 1; + static const int kSecTrustResultConfirm = 2; + static const int kSecTrustResultDeny = 3; + static const int kSecTrustResultUnspecified = 4; + static const int kSecTrustResultRecoverableTrustFailure = 5; + static const int kSecTrustResultFatalTrustFailure = 6; + static const int kSecTrustResultOtherError = 7; +} + +final class __SecTrust extends ffi.Opaque {} + +typedef SecTrustRef = ffi.Pointer<__SecTrust>; +typedef SecTrustCallback = ffi.Pointer<_ObjCBlock>; +typedef DartSecTrustCallback = ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType; +void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, int arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(SecTrustRef arg0, ffi.Int32 arg1)>>() + .asFunction()(arg0, arg1); +final _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_registerClosure( + void Function(SecTrustRef, int) fn) { + final id = + ++_ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureRegistryIndex; + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, int arg1) => + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureRegistry[ + block.ref.target.address]!(arg0, arg1); + +class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_SecTrustRef_SecTrustResultType.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(SecTrustRef arg0, ffi.Int32 arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + SecTrustRef, ffi.Int32)>( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_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_SecTrustRef_SecTrustResultType.fromFunction( + NativeCupertinoHttp lib, void Function(SecTrustRef, int) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + SecTrustRef, ffi.Int32)>( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_registerClosure( + (SecTrustRef arg0, int arg1) => fn(arg0, arg1))), + 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_SecTrustRef_SecTrustResultType.listener( + NativeCupertinoHttp lib, void Function(SecTrustRef, int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + SecTrustRef, ffi.Int32)>.listener( + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType_registerClosure( + (SecTrustRef arg0, int arg1) => fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, SecTrustRef, ffi.Int32)>? + _dartFuncListenerTrampoline; + + void call(SecTrustRef arg0, int arg1) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, + ffi.Int32 arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, SecTrustRef, int)>()(_id, arg0, arg1); +} + +typedef SecTrustWithErrorCallback = ffi.Pointer<_ObjCBlock>; +typedef DartSecTrustWithErrorCallback + = ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef; +void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>>() + .asFunction()( + arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_registerClosure( + void Function(SecTrustRef, bool, CFErrorRef) fn) { + final id = + ++_ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureRegistryIndex; + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2) => + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_SecTrustRef_bool_CFErrorRef.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + SecTrustRef, ffi.Bool, CFErrorRef)>( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_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_SecTrustRef_bool_CFErrorRef.fromFunction( + NativeCupertinoHttp lib, void Function(SecTrustRef, bool, CFErrorRef) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + SecTrustRef, ffi.Bool, CFErrorRef)>( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_registerClosure( + (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => + fn(arg0, 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_SecTrustRef_bool_CFErrorRef.listener( + NativeCupertinoHttp lib, void Function(SecTrustRef, bool, CFErrorRef) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + SecTrustRef, ffi.Bool, CFErrorRef)>.listener( + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef_registerClosure( + (SecTrustRef arg0, bool arg1, CFErrorRef arg2) => + fn(arg0, arg1, arg2))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, SecTrustRef, ffi.Bool, CFErrorRef)>? + _dartFuncListenerTrampoline; + + void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, SecTrustRef arg0, + ffi.Bool arg1, CFErrorRef arg2)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, SecTrustRef, bool, + CFErrorRef)>()(_id, arg0, arg1, arg2); +} + +typedef SecKeyRef = ffi.Pointer<__SecKey>; +typedef SecCertificateRef = ffi.Pointer<__SecCertificate>; + abstract class SecTrustOptionFlags { static const int kSecTrustOptionAllowExpired = 1; static const int kSecTrustOptionLeafIsCA = 2; @@ -78496,6 +80792,12 @@ abstract class SSLCiphersuiteGroup { static const int kSSLCiphersuiteGroupATSCompatibility = 4; } +final class sec_trust extends ffi.Opaque {} + +final class sec_identity extends ffi.Opaque {} + +final class sec_certificate extends ffi.Opaque {} + abstract class tls_protocol_version_t { static const int tls_protocol_version_TLSv10 = 769; static const int tls_protocol_version_TLSv11 = 770; @@ -78560,649 +80862,1249 @@ abstract class SSLProtocol { static const int kSSLProtocolAll = 6; } -typedef sec_trust_t = ffi.Pointer; -typedef sec_identity_t = ffi.Pointer; -void _ObjCBlock31_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, sec_certificate_t 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; +typedef sec_trust_t = ffi.Pointer; +typedef sec_identity_t = ffi.Pointer; +void _ObjCBlock_ffiVoid_seccertificatet_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, sec_certificate_t arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_seccertificatet_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_seccertificatet_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_seccertificatet_registerClosure( + void Function(sec_certificate_t) fn) { + final id = ++_ObjCBlock_ffiVoid_seccertificatet_closureRegistryIndex; + _ObjCBlock_ffiVoid_seccertificatet_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock31_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, sec_certificate_t arg0) { - return _ObjCBlock31_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_seccertificatet_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, sec_certificate_t arg0) => + _ObjCBlock_ffiVoid_seccertificatet_closureRegistry[ + block.ref.target.address]!(arg0); -class ObjCBlock31 extends _ObjCBlockBase { - ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_seccertificatet extends _ObjCBlockBase { + ObjCBlock_ffiVoid_seccertificatet._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock31.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_seccertificatet.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - sec_certificate_t arg0)>( - _ObjCBlock31_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, sec_certificate_t)>( + _ObjCBlock_ffiVoid_seccertificatet_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock31.fromFunction( - NativeCupertinoHttp lib, void Function(sec_certificate_t 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_seccertificatet.fromFunction( + NativeCupertinoHttp lib, void Function(sec_certificate_t) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - sec_certificate_t arg0)>( - _ObjCBlock31_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, sec_certificate_t)>( + _ObjCBlock_ffiVoid_seccertificatet_closureTrampoline) .cast(), - _ObjCBlock31_registerClosure(fn)), + _ObjCBlock_ffiVoid_seccertificatet_registerClosure( + (sec_certificate_t arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(sec_certificate_t arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, sec_certificate_t arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - sec_certificate_t arg0)>()(_id, arg0); - } -} -typedef sec_certificate_t = ffi.Pointer; -typedef sec_protocol_metadata_t = ffi.Pointer; -typedef SSLCipherSuite = ffi.Uint16; -void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, int arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); + /// 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_seccertificatet.listener( + NativeCupertinoHttp lib, void Function(sec_certificate_t) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + sec_certificate_t)>.listener( + _ObjCBlock_ffiVoid_seccertificatet_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_seccertificatet_registerClosure( + (sec_certificate_t arg0) => fn(arg0))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, sec_certificate_t)>? + _dartFuncListenerTrampoline; + + void call(sec_certificate_t arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, sec_certificate_t arg0)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, sec_certificate_t)>()(_id, arg0); } -final _ObjCBlock32_closureRegistry = {}; -int _ObjCBlock32_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { - final id = ++_ObjCBlock32_closureRegistryIndex; - _ObjCBlock32_closureRegistry[id] = fn; +typedef sec_certificate_t = ffi.Pointer; + +final class sec_protocol_metadata extends ffi.Opaque {} + +typedef sec_protocol_metadata_t = ffi.Pointer; +typedef SSLCipherSuite = ffi.Uint16; +typedef DartSSLCipherSuite = int; +void _ObjCBlock_ffiVoid_dispatchdatat_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_dispatchdatat_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_dispatchdatat_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_dispatchdatat_registerClosure( + void Function(dispatch_data_t) fn) { + final id = ++_ObjCBlock_ffiVoid_dispatchdatat_closureRegistryIndex; + _ObjCBlock_ffiVoid_dispatchdatat_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, int arg0) { - return _ObjCBlock32_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_dispatchdatat_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0) => + _ObjCBlock_ffiVoid_dispatchdatat_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock32 extends _ObjCBlockBase { - ObjCBlock32._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_dispatchdatat extends _ObjCBlockBase { + ObjCBlock_ffiVoid_dispatchdatat._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock32.fromFunctionPointer(NativeCupertinoHttp lib, - ffi.Pointer> ptr) + /// + /// This block must be invoked by native 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_dispatchdatat.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer> + ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Uint16 arg0)>(_ObjCBlock32_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, dispatch_data_t)>( + _ObjCBlock_ffiVoid_dispatchdatat_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock32.fromFunction(NativeCupertinoHttp lib, void Function(int 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_dispatchdatat.fromFunction( + NativeCupertinoHttp lib, void Function(dispatch_data_t) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Uint16 arg0)>(_ObjCBlock32_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, dispatch_data_t)>( + _ObjCBlock_ffiVoid_dispatchdatat_closureTrampoline) .cast(), - _ObjCBlock32_registerClosure(fn)), + _ObjCBlock_ffiVoid_dispatchdatat_registerClosure( + (dispatch_data_t arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Uint16 arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, int arg0)>()(_id, arg0); - } -} -void _ObjCBlock33_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, dispatch_data_t arg1) { - return block.ref.target + /// 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_dispatchdatat.listener( + NativeCupertinoHttp lib, void Function(dispatch_data_t) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t)>.listener( + _ObjCBlock_ffiVoid_dispatchdatat_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_dispatchdatat_registerClosure( + (dispatch_data_t arg0) => fn(arg0))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, dispatch_data_t)>? + _dartFuncListenerTrampoline; + + void call(dispatch_data_t arg0) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1)>>() + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0)>>() .asFunction< - void Function( - dispatch_data_t arg0, dispatch_data_t arg1)>()(arg0, arg1); -} - -final _ObjCBlock33_closureRegistry = {}; -int _ObjCBlock33_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { - final id = ++_ObjCBlock33_closureRegistryIndex; - _ObjCBlock33_closureRegistry[id] = fn; + void Function(ffi.Pointer<_ObjCBlock>, dispatch_data_t)>()(_id, arg0); +} + +void _ObjCBlock_ffiVoid_Uint16_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_Uint16_closureRegistry = {}; +int _ObjCBlock_ffiVoid_Uint16_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_Uint16_registerClosure( + void Function(int) fn) { + final id = ++_ObjCBlock_ffiVoid_Uint16_closureRegistryIndex; + _ObjCBlock_ffiVoid_Uint16_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock33_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, dispatch_data_t arg1) { - return _ObjCBlock33_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_Uint16_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0) => + _ObjCBlock_ffiVoid_Uint16_closureRegistry[block.ref.target.address]!(arg0); -class ObjCBlock33 extends _ObjCBlockBase { - ObjCBlock33._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_Uint16 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_Uint16._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock33.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - dispatch_data_t arg0, dispatch_data_t arg1)>> - ptr) + /// + /// This block must be invoked by native 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_Uint16.fromFunctionPointer(NativeCupertinoHttp lib, + ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, - dispatch_data_t arg1)>(_ObjCBlock33_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Uint16)>( + _ObjCBlock_ffiVoid_Uint16_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock33.fromFunction(NativeCupertinoHttp lib, - void Function(dispatch_data_t arg0, dispatch_data_t 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_Uint16.fromFunction( + NativeCupertinoHttp lib, void Function(int) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, dispatch_data_t arg1)>( - _ObjCBlock33_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Uint16)>( + _ObjCBlock_ffiVoid_Uint16_closureTrampoline) .cast(), - _ObjCBlock33_registerClosure(fn)), + _ObjCBlock_ffiVoid_Uint16_registerClosure( + (int arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(dispatch_data_t arg0, dispatch_data_t arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - dispatch_data_t arg0, dispatch_data_t arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, dispatch_data_t arg0, - dispatch_data_t arg1)>()(_id, arg0, arg1); - } -} -typedef sec_protocol_options_t = ffi.Pointer; -typedef sec_protocol_pre_shared_key_selection_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock34_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2)>>() - .asFunction< - void Function(sec_protocol_metadata_t arg0, dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2)>()( - arg0, arg1, arg2); -} + /// 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_Uint16.listener( + NativeCupertinoHttp lib, void Function(int) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Uint16)>.listener( + _ObjCBlock_ffiVoid_Uint16_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_Uint16_registerClosure( + (int arg0) => fn(arg0))), + lib); + static ffi + .NativeCallable, ffi.Uint16)>? + _dartFuncListenerTrampoline; -final _ObjCBlock34_closureRegistry = {}; -int _ObjCBlock34_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { - final id = ++_ObjCBlock34_closureRegistryIndex; - _ObjCBlock34_closureRegistry[id] = fn; + void call(int arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Uint16 arg0)>>() + .asFunction, int)>()(_id, arg0); +} + +void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, + dispatch_data_t arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + dispatch_data_t arg0, dispatch_data_t arg1)>>() + .asFunction()( + arg0, arg1); +final _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_registerClosure( + void Function(dispatch_data_t, dispatch_data_t) fn) { + final id = + ++_ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureRegistryIndex; + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock34_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) { - return _ObjCBlock34_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, + dispatch_data_t arg1) => + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock34 extends _ObjCBlockBase { - ObjCBlock34._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat extends _ObjCBlockBase { + ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_dispatchdatat_dispatchdatat.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2)>> + dispatch_data_t arg0, dispatch_data_t arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t - arg2)>(_ObjCBlock34_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t, dispatch_data_t)>( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock34.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_dispatchdatat_dispatchdatat.fromFunction( NativeCupertinoHttp lib, - void Function(sec_protocol_metadata_t arg0, dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) - fn) + void Function(dispatch_data_t, dispatch_data_t) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t - arg2)>(_ObjCBlock34_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t, dispatch_data_t)>( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureTrampoline) .cast(), - _ObjCBlock34_registerClosure(fn)), + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_registerClosure( + (dispatch_data_t arg0, dispatch_data_t arg1) => + fn(arg0, arg1))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(sec_protocol_metadata_t arg0, dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t - arg2)>()(_id, arg0, arg1, arg2); - } -} -typedef sec_protocol_pre_shared_key_selection_complete_t - = ffi.Pointer<_ObjCBlock>; -typedef sec_protocol_key_update_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock35_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) { - return block.ref.target + /// 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_dispatchdatat_dispatchdatat.listener( + NativeCupertinoHttp lib, + void Function(dispatch_data_t, dispatch_data_t) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + dispatch_data_t, dispatch_data_t)>.listener( + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat_registerClosure( + (dispatch_data_t arg0, dispatch_data_t arg1) => + fn(arg0, arg1))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, dispatch_data_t, dispatch_data_t)>? + _dartFuncListenerTrampoline; + + void call(dispatch_data_t arg0, dispatch_data_t arg1) => _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + dispatch_data_t arg0, dispatch_data_t arg1)>>() .asFunction< - void Function(sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>()(arg0, arg1); + void Function(ffi.Pointer<_ObjCBlock>, dispatch_data_t, + dispatch_data_t)>()(_id, arg0, arg1); } -final _ObjCBlock35_closureRegistry = {}; -int _ObjCBlock35_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { - final id = ++_ObjCBlock35_closureRegistryIndex; - _ObjCBlock35_closureRegistry[id] = fn; +final class sec_protocol_options extends ffi.Opaque {} + +typedef sec_protocol_options_t = ffi.Pointer; +typedef sec_protocol_pre_shared_key_selection_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_pre_shared_key_selection_t + = ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet; +void + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t + arg2)>>() + .asFunction< + void Function(sec_protocol_metadata_t, dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t)>()( + arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_registerClosure( + void Function(sec_protocol_metadata_t, dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t) + fn) { + final id = + ++_ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureRegistryIndex; + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock35_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) { - return _ObjCBlock35_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2) => + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); -class ObjCBlock35 extends _ObjCBlockBase { - ObjCBlock35._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>> + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>( - _ObjCBlock35_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock35.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_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet.fromFunction( NativeCupertinoHttp lib, - void Function(sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1) + void Function(sec_protocol_metadata_t, dispatch_data_t, + Dartsec_protocol_pre_shared_key_selection_complete_t) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>( - _ObjCBlock35_closureTrampoline) - .cast(), - _ObjCBlock35_registerClosure(fn)), + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, sec_protocol_metadata_t, dispatch_data_t, sec_protocol_pre_shared_key_selection_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_registerClosure( + (sec_protocol_metadata_t arg0, dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2) => + fn(arg0, arg1, ObjCBlock_ffiVoid_dispatchdatat._(arg2, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1)>()(_id, arg0, arg1); - } -} -typedef sec_protocol_key_update_complete_t = ffi.Pointer<_ObjCBlock>; -typedef sec_protocol_challenge_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock36_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>>() - .asFunction< - void Function(sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>()(arg0, arg1); + /// 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_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet.listener( + NativeCupertinoHttp lib, + void Function(sec_protocol_metadata_t, dispatch_data_t, + Dartsec_protocol_pre_shared_key_selection_complete_t) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, sec_protocol_metadata_t, dispatch_data_t, sec_protocol_pre_shared_key_selection_complete_t)>.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet_registerClosure( + (sec_protocol_metadata_t arg0, dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2) => + fn(arg0, arg1, ObjCBlock_ffiVoid_dispatchdatat._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t)>? + _dartFuncListenerTrampoline; + + void + call(sec_protocol_metadata_t arg0, dispatch_data_t arg1, + Dartsec_protocol_pre_shared_key_selection_complete_t arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t + arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t)>()( + _id, arg0, arg1, arg2._id); } -final _ObjCBlock36_closureRegistry = {}; -int _ObjCBlock36_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { - final id = ++_ObjCBlock36_closureRegistryIndex; - _ObjCBlock36_closureRegistry[id] = fn; +typedef sec_protocol_pre_shared_key_selection_complete_t + = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_pre_shared_key_selection_complete_t + = ObjCBlock_ffiVoid_dispatchdatat; +typedef sec_protocol_key_update_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_key_update_t + = ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet; +void + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1)>>() + .asFunction< + void Function(sec_protocol_metadata_t, + sec_protocol_key_update_complete_t)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_registerClosure( + void Function( + sec_protocol_metadata_t, sec_protocol_key_update_complete_t) + fn) { + final id = + ++_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureRegistryIndex; + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock36_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) { - return _ObjCBlock36_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +void _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1) => + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock36 extends _ObjCBlockBase { - ObjCBlock36._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_secprotocolmetadatat_secprotocolkeyupdatecompletet.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< ffi.Void Function(sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>> + sec_protocol_key_update_complete_t arg1)>> ptr) : this._( - lib - ._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>( - _ObjCBlock36_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock36.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_secprotocolmetadatat_secprotocolkeyupdatecompletet.fromFunction( NativeCupertinoHttp lib, - void Function(sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) + void Function( + sec_protocol_metadata_t, Dartsec_protocol_key_update_complete_t) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>( - _ObjCBlock36_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline) .cast(), - _ObjCBlock36_registerClosure(fn)), + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_registerClosure( + (sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) => + fn(arg0, ObjCBlock_ffiVoid._(arg1, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1)>()(_id, arg0, arg1); - } -} -typedef sec_protocol_challenge_complete_t = ffi.Pointer<_ObjCBlock>; -typedef sec_protocol_verify_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock37_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>>() - .asFunction< - void Function(sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>()(arg0, arg1, arg2); + /// 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_secprotocolmetadatat_secprotocolkeyupdatecompletet.listener( + NativeCupertinoHttp lib, + void Function(sec_protocol_metadata_t, Dartsec_protocol_key_update_complete_t) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t)>.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_registerClosure( + (sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1) => + fn(arg0, ObjCBlock_ffiVoid._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, sec_protocol_metadata_t, + sec_protocol_key_update_complete_t)>? _dartFuncListenerTrampoline; + + void call(sec_protocol_metadata_t arg0, + Dartsec_protocol_key_update_complete_t arg1) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, sec_protocol_metadata_t, + sec_protocol_key_update_complete_t)>()(_id, arg0, arg1._id); } -final _ObjCBlock37_closureRegistry = {}; -int _ObjCBlock37_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { - final id = ++_ObjCBlock37_closureRegistryIndex; - _ObjCBlock37_closureRegistry[id] = fn; +typedef sec_protocol_key_update_complete_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_key_update_complete_t = ObjCBlock_ffiVoid; +typedef sec_protocol_challenge_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_challenge_t + = ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet; +void + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1)>>() + .asFunction< + void Function(sec_protocol_metadata_t, + sec_protocol_challenge_complete_t)>()(arg0, arg1); +final _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_registerClosure( + void Function( + sec_protocol_metadata_t, sec_protocol_challenge_complete_t) + fn) { + final id = + ++_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureRegistryIndex; + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock37_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) { - return _ObjCBlock37_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1) => + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureRegistry[ + block.ref.target.address]!(arg0, arg1); -class ObjCBlock37 extends _ObjCBlockBase { - ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_secprotocolmetadatat_secprotocolchallengecompletet.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< - ffi - .NativeFunction< + ffi.NativeFunction< ffi.Void Function(sec_protocol_metadata_t arg0, - sec_trust_t arg1, sec_protocol_verify_complete_t arg2)>> + sec_protocol_challenge_complete_t arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>( - _ObjCBlock37_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock37.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_secprotocolmetadatat_secprotocolchallengecompletet.fromFunction( NativeCupertinoHttp lib, - void Function(sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) + void Function( + sec_protocol_metadata_t, Dartsec_protocol_challenge_complete_t) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>( - _ObjCBlock37_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline) .cast(), - _ObjCBlock37_registerClosure(fn)), + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_registerClosure( + (sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) => + fn(arg0, ObjCBlock_ffiVoid_secidentityt._(arg1, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(sec_protocol_metadata_t arg0, sec_trust_t arg1, - sec_protocol_verify_complete_t arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2)>()(_id, arg0, arg1, arg2); - } -} -typedef sec_protocol_verify_complete_t = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock38_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); + /// 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_secprotocolmetadatat_secprotocolchallengecompletet.listener( + NativeCupertinoHttp lib, + void Function(sec_protocol_metadata_t, Dartsec_protocol_challenge_complete_t) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, sec_protocol_metadata_t, sec_protocol_challenge_complete_t)>.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet_registerClosure( + (sec_protocol_metadata_t arg0, sec_protocol_challenge_complete_t arg1) => + fn(arg0, ObjCBlock_ffiVoid_secidentityt._(arg1, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, sec_protocol_metadata_t, + sec_protocol_challenge_complete_t)>? _dartFuncListenerTrampoline; + + void call(sec_protocol_metadata_t arg0, + Dartsec_protocol_challenge_complete_t arg1) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock>, sec_protocol_metadata_t, + sec_protocol_challenge_complete_t)>()(_id, arg0, arg1._id); } -final _ObjCBlock38_closureRegistry = {}; -int _ObjCBlock38_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { - final id = ++_ObjCBlock38_closureRegistryIndex; - _ObjCBlock38_closureRegistry[id] = fn; +typedef sec_protocol_challenge_complete_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_challenge_complete_t = ObjCBlock_ffiVoid_secidentityt; +void _ObjCBlock_ffiVoid_secidentityt_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, sec_identity_t arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +final _ObjCBlock_ffiVoid_secidentityt_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_secidentityt_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_secidentityt_registerClosure( + void Function(sec_identity_t) fn) { + final id = ++_ObjCBlock_ffiVoid_secidentityt_closureRegistryIndex; + _ObjCBlock_ffiVoid_secidentityt_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock38_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return _ObjCBlock38_closureRegistry[block.ref.target.address]!(arg0); -} +void _ObjCBlock_ffiVoid_secidentityt_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, sec_identity_t arg0) => + _ObjCBlock_ffiVoid_secidentityt_closureRegistry[block.ref.target.address]!( + arg0); -class ObjCBlock38 extends _ObjCBlockBase { - ObjCBlock38._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_secidentityt extends _ObjCBlockBase { + ObjCBlock_ffiVoid_secidentityt._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock38.fromFunctionPointer(NativeCupertinoHttp lib, - ffi.Pointer> ptr) + /// + /// This block must be invoked by native 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_secidentityt.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer> + ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock38_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, sec_identity_t)>( + _ObjCBlock_ffiVoid_secidentityt_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock38.fromFunction(NativeCupertinoHttp 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_secidentityt.fromFunction( + NativeCupertinoHttp lib, void Function(sec_identity_t) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock38_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, sec_identity_t)>( + _ObjCBlock_ffiVoid_secidentityt_closureTrampoline) .cast(), - _ObjCBlock38_registerClosure(fn)), + _ObjCBlock_ffiVoid_secidentityt_registerClosure( + (sec_identity_t arg0) => fn(arg0))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(bool arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); - } -} -final class SSLContext extends ffi.Opaque {} + /// 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_secidentityt.listener( + NativeCupertinoHttp lib, void Function(sec_identity_t) fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + sec_identity_t)>.listener( + _ObjCBlock_ffiVoid_secidentityt_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_secidentityt_registerClosure( + (sec_identity_t arg0) => fn(arg0))), + lib); + static ffi.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, sec_identity_t)>? + _dartFuncListenerTrampoline; -abstract class SSLSessionOption { - static const int kSSLSessionOptionBreakOnServerAuth = 0; - static const int kSSLSessionOptionBreakOnCertRequested = 1; + void call(sec_identity_t arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, sec_identity_t arg0)>>() + .asFunction, sec_identity_t)>()( + _id, arg0); +} + +typedef sec_protocol_verify_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_verify_t + = ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet; +void + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2)>>() + .asFunction< + void Function(sec_protocol_metadata_t, sec_trust_t, + sec_protocol_verify_complete_t)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_registerClosure( + void Function(sec_protocol_metadata_t, sec_trust_t, + sec_protocol_verify_complete_t) + fn) { + final id = + ++_ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureRegistryIndex; + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureRegistry[ + id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2) => + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); + +class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_secprotocolmetadatat_sectrustt_secprotocolverifycompletet.fromFunctionPointer( + NativeCupertinoHttp lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(sec_protocol_metadata_t arg0, + sec_trust_t arg1, sec_protocol_verify_complete_t arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_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_secprotocolmetadatat_sectrustt_secprotocolverifycompletet.fromFunction( + NativeCupertinoHttp lib, + void Function(sec_protocol_metadata_t, sec_trust_t, Dartsec_protocol_verify_complete_t) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t)>( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_registerClosure( + (sec_protocol_metadata_t arg0, sec_trust_t arg1, sec_protocol_verify_complete_t arg2) => + fn(arg0, arg1, ObjCBlock_ffiVoid_bool._(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_secprotocolmetadatat_sectrustt_secprotocolverifycompletet.listener( + NativeCupertinoHttp lib, + void Function(sec_protocol_metadata_t, sec_trust_t, + Dartsec_protocol_verify_complete_t) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= + ffi.NativeCallable, sec_protocol_metadata_t, sec_trust_t, sec_protocol_verify_complete_t)>.listener( + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet_registerClosure( + (sec_protocol_metadata_t arg0, sec_trust_t arg1, + sec_protocol_verify_complete_t arg2) => + fn(arg0, arg1, ObjCBlock_ffiVoid_bool._(arg2, lib, retain: true, release: true)))), + lib); + static ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t)>? _dartFuncListenerTrampoline; + + void call(sec_protocol_metadata_t arg0, sec_trust_t arg1, + Dartsec_protocol_verify_complete_t arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t)>()(_id, arg0, arg1, arg2._id); +} + +typedef sec_protocol_verify_complete_t = ffi.Pointer<_ObjCBlock>; +typedef Dartsec_protocol_verify_complete_t = ObjCBlock_ffiVoid_bool; +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 _ObjCBlock_ffiVoid_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) => + _ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address]!(arg0); + +class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool.fromFunctionPointer(NativeCupertinoHttp lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _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. + /// + /// This block must be invoked by native 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( + NativeCupertinoHttp lib, void Function(bool) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, ffi.Bool)>( + _ObjCBlock_ffiVoid_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_bool_registerClosure( + (bool arg0) => fn(arg0))), + 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_bool.listener( + NativeCupertinoHttp 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; + + void call(bool arg0) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + .asFunction, bool)>()(_id, arg0); +} + +final class SSLContext extends ffi.Opaque {} + +abstract class SSLSessionOption { + static const int kSSLSessionOptionBreakOnServerAuth = 0; + static const int kSSLSessionOptionBreakOnCertRequested = 1; static const int kSSLSessionOptionBreakOnClientAuth = 2; static const int kSSLSessionOptionFalseStart = 3; static const int kSSLSessionOptionSendOneByteRecord = 4; @@ -79239,15 +82141,21 @@ abstract class SSLConnectionType { } typedef SSLContextRef = ffi.Pointer; -typedef SSLReadFunc = ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(SSLConnectionRef connection, - ffi.Pointer data, ffi.Pointer dataLength)>>; +typedef SSLReadFunc = ffi.Pointer>; +typedef SSLReadFuncFunction = OSStatus Function(SSLConnectionRef connection, + ffi.Pointer data, ffi.Pointer dataLength); +typedef DartSSLReadFuncFunction = DartSInt32 Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength); typedef SSLConnectionRef = ffi.Pointer; -typedef SSLWriteFunc = ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(SSLConnectionRef connection, - ffi.Pointer data, ffi.Pointer dataLength)>>; +typedef SSLWriteFunc = ffi.Pointer>; +typedef SSLWriteFuncFunction = OSStatus Function(SSLConnectionRef connection, + ffi.Pointer data, ffi.Pointer dataLength); +typedef DartSSLWriteFuncFunction = DartSInt32 Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength); abstract class SSLAuthenticate { static const int kNeverAuthenticate = 0; @@ -79339,12 +82247,10 @@ class NSURLSession extends NSObject { /// The shared session uses the currently set global NSURLCache, /// NSHTTPCookieStorage and NSURLCredentialStorage objects. - static NSURLSession? getSharedSession(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_408( + static NSURLSession getSharedSession(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_438( _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); } /// Customization of NSURLSession occurs during creation of a new session. @@ -79353,53 +82259,47 @@ class NSURLSession extends NSObject { /// If you do specify a delegate, the delegate will be retained until after /// the delegate has been sent the URLSession:didBecomeInvalidWithError: message. static NSURLSession sessionWithConfiguration_( - NativeCupertinoHttp _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_421( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSURLSessionConfiguration configuration) { + final _ret = _lib._objc_msgSend_454(_lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, configuration._id); return NSURLSession._(_ret, _lib, retain: true, release: true); } static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( NativeCupertinoHttp _lib, - NSURLSessionConfiguration? configuration, + NSURLSessionConfiguration configuration, NSObject? delegate, NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_422( + final _ret = _lib._objc_msgSend_455( _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_391(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + NSOperationQueue get delegateQueue { + final _ret = _lib._objc_msgSend_420(_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_61(_id, _lib._sel_delegate1); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_409(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + NSURLSessionConfiguration get configuration { + final _ret = _lib._objc_msgSend_439(_id, _lib._sel_configuration1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } /// The sessionDescription property is available for the developer to /// provide a descriptive label for the session. NSString? get sessionDescription { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_sessionDescription1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_sessionDescription1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -79408,7 +82308,7 @@ class NSURLSession extends NSObject { /// The sessionDescription property is available for the developer to /// provide a descriptive label for the session. set sessionDescription(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); } @@ -79424,7 +82324,7 @@ class NSURLSession extends NSObject { /// session with the same identifier until URLSession:didBecomeInvalidWithError: has /// been issued. void finishTasksAndInvalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); } /// -invalidateAndCancel acts as -finishTasksAndInvalidate, but issues @@ -79432,120 +82332,127 @@ class NSURLSession extends NSObject { /// cancellation is subject to the state of the task, and some tasks may /// have already have completed at the time they are sent -cancel. void invalidateAndCancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); } /// empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue. - void resetWithCompletionHandler_(ObjCBlock completionHandler) { - return _lib._objc_msgSend_387( + void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_415( _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); } /// flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue. - void flushWithCompletionHandler_(ObjCBlock completionHandler) { - return _lib._objc_msgSend_387( + void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_415( _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); } /// invokes completionHandler with outstanding data, upload and download tasks. - void getTasksWithCompletionHandler_(ObjCBlock39 completionHandler) { - return _lib._objc_msgSend_423( + void getTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { + _lib._objc_msgSend_456( _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); } /// invokes completionHandler with all outstanding tasks. - void getAllTasksWithCompletionHandler_(ObjCBlock21 completionHandler) { - return _lib._objc_msgSend_424(_id, - _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); + void getAllTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray1 completionHandler) { + _lib._objc_msgSend_457(_id, _lib._sel_getAllTasksWithCompletionHandler_1, + completionHandler._id); } /// Creates a data task with the given request. The request may have a body stream. - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_425( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_458( + _id, _lib._sel_dataTaskWithRequest_1, request._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } /// Creates a data task to retrieve the contents of the given URL. - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_426( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionDataTask dataTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_459(_id, _lib._sel_dataTaskWithURL_1, url._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } /// Creates an upload task with the given request. The body of the request will be created from the file referenced by fileURL NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_427( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); + NSURLRequest request, NSURL fileURL) { + final _ret = _lib._objc_msgSend_461(_id, + _lib._sel_uploadTaskWithRequest_fromFile_1, request._id, fileURL._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } /// Creates an upload task with the given request. The body of the request is provided from the bodyData. NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_428( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); + NSURLRequest request, NSData bodyData) { + final _ret = _lib._objc_msgSend_462(_id, + _lib._sel_uploadTaskWithRequest_fromData_1, request._id, bodyData._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + /// Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads + /// Internet-Draft from the HTTP Working Group, found at + /// https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ + /// If resuming from an upload file, the file must still exist and be unmodified. If the upload cannot be successfully + /// resumed, URLSession:task:didCompleteWithError: will be called. + /// + /// - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. + /// - Returns: A new session upload task, or nil if the resumeData is invalid. + NSURLSessionUploadTask uploadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_463( + _id, _lib._sel_uploadTaskWithResumeData_1, resumeData._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } /// Creates an upload task with the given request. The previously set body stream of the request (if any) is ignored and the URLSession:task:needNewBodyStream: delegate will be called when the body payload is required. - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_429(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_464( + _id, _lib._sel_uploadTaskWithStreamedRequest_1, request._id); return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } /// Creates a download task with the given request. - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_431( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_465( + _id, _lib._sel_downloadTaskWithRequest_1, request._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } /// Creates a download task to download the contents of the given URL. - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_432( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_466(_id, _lib._sel_downloadTaskWithURL_1, url._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } /// Creates a download task with the resume data. If the download cannot be successfully resumed, URLSession:task:didCompleteWithError: will be called. - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_433(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData resumeData) { + final _ret = _lib._objc_msgSend_467( + _id, _lib._sel_downloadTaskWithResumeData_1, resumeData._id); return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } /// Creates a bidirectional stream task to a given host and port. NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_436( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); + NSString hostname, DartNSInteger port) { + final _ret = _lib._objc_msgSend_470( + _id, _lib._sel_streamTaskWithHostName_port_1, hostname._id, port); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } /// Creates a bidirectional stream task with an NSNetService to identify the endpoint. /// The NSNetService will be resolved before any IO completes. - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_437( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService service) { + final _ret = _lib._objc_msgSend_471( + _id, _lib._sel_streamTaskWithNetService_1, service._id); return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } /// Creates a WebSocket task given the url. The given url must have a ws or wss scheme. - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_444( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL url) { + final _ret = + _lib._objc_msgSend_478(_id, _lib._sel_webSocketTaskWithURL_1, url._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } @@ -79553,21 +82460,18 @@ class NSURLSession extends NSObject { /// negotiate a preferred protocol with the server /// Note - The protocol will not affect the WebSocket framing. More details on the protocol can be found by reading the WebSocket RFC NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_445( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); + NSURL url, NSArray protocols) { + final _ret = _lib._objc_msgSend_479(_id, + _lib._sel_webSocketTaskWithURL_protocols_1, url._id, protocols._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } /// Creates a WebSocket task given the request. The request properties can be modified and will be used by the task during the HTTP handshake phase. /// Clients who want to add custom protocols can do so by directly adding headers with the key Sec-WebSocket-Protocol /// and a comma separated list of protocols they wish to negotiate with the server. The custom HTTP headers provided by the client will remain unchanged for the handshake with the server. - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_446( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest request) { + final _ret = _lib._objc_msgSend_480( + _id, _lib._sel_webSocketTaskWithRequest_1, request._id); return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } @@ -79590,82 +82494,113 @@ class NSURLSession extends NSObject { /// see . The delegate, if any, will still be /// called for authentication challenges. NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_447( + NSURLRequest request, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_481( _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, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_448( + NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_482( _id, _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, + url._id, completionHandler._id); return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } /// upload convenience method. NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, NSURL? fileURL, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_449( + NSURLRequest request, + NSURL fileURL, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_483( _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, ObjCBlock44 completionHandler) { - final _ret = _lib._objc_msgSend_450( + NSURLRequest request, + NSData? bodyData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_484( _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); } + /// Creates a URLSessionUploadTask from a resume data blob. If resuming from an upload + /// file, the file must still exist and be unmodified. + /// + /// - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. + /// - Parameter completionHandler: The completion handler to call when the load request is complete. + /// - Returns: A new session upload task, or nil if the resumeData is invalid. + NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( + NSData resumeData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_485( + _id, + _lib._sel_uploadTaskWithResumeData_completionHandler_1, + resumeData._id, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + /// download task convenience methods. When a download successfully /// completes, the NSURL will point to a file that must be read or /// copied during the invocation of the completion routine. The file /// will be removed automatically. NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock45 completionHandler) { - final _ret = _lib._objc_msgSend_451( + NSURLRequest request, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_486( _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, ObjCBlock45 completionHandler) { - final _ret = _lib._objc_msgSend_452( + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL url, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_487( _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, ObjCBlock45 completionHandler) { - final _ret = _lib._objc_msgSend_453( + NSData resumeData, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_488( _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_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); @@ -79711,37 +82646,33 @@ class NSURLSessionConfiguration extends NSObject { obj._lib._class_NSURLSessionConfiguration1); } - static NSURLSessionConfiguration? getDefaultSessionConfiguration( + static NSURLSessionConfiguration getDefaultSessionConfiguration( NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_409(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_439(_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( NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_409(_lib._class_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_439(_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_( - NativeCupertinoHttp _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_410( + NativeCupertinoHttp _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_440( _lib._class_NSURLSessionConfiguration1, _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); + identifier._id); return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } /// identifier for the background session configuration NSString? get identifier { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_identifier1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_identifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -79749,44 +82680,51 @@ class NSURLSessionConfiguration extends NSObject { /// default cache policy for requests int get requestCachePolicy { - return _lib._objc_msgSend_325(_id, _lib._sel_requestCachePolicy1); + return _lib._objc_msgSend_344(_id, _lib._sel_requestCachePolicy1); } /// default cache policy for requests set requestCachePolicy(int value) { - _lib._objc_msgSend_393(_id, _lib._sel_setRequestCachePolicy_1, value); + return _lib._objc_msgSend_422( + _id, _lib._sel_setRequestCachePolicy_1, value); } /// default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted. - double get timeoutIntervalForRequest { - return _lib._objc_msgSend_85(_id, _lib._sel_timeoutIntervalForRequest1); + DartNSTimeInterval get timeoutIntervalForRequest { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret(_id, _lib._sel_timeoutIntervalForRequest1) + : _lib._objc_msgSend_90(_id, _lib._sel_timeoutIntervalForRequest1); } /// default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted. - set timeoutIntervalForRequest(double value) { - _lib._objc_msgSend_383( + set timeoutIntervalForRequest(DartNSTimeInterval value) { + return _lib._objc_msgSend_411( _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } /// default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout. - double get timeoutIntervalForResource { - return _lib._objc_msgSend_85(_id, _lib._sel_timeoutIntervalForResource1); + DartNSTimeInterval get timeoutIntervalForResource { + return _lib._objc_msgSend_useVariants1 + ? _lib._objc_msgSend_90_fpret( + _id, _lib._sel_timeoutIntervalForResource1) + : _lib._objc_msgSend_90(_id, _lib._sel_timeoutIntervalForResource1); } /// default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout. - set timeoutIntervalForResource(double value) { - _lib._objc_msgSend_383( + set timeoutIntervalForResource(DartNSTimeInterval value) { + return _lib._objc_msgSend_411( _id, _lib._sel_setTimeoutIntervalForResource_1, value); } /// type of service for requests. int get networkServiceType { - return _lib._objc_msgSend_326(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_345(_id, _lib._sel_networkServiceType1); } /// type of service for requests. set networkServiceType(int value) { - _lib._objc_msgSend_394(_id, _lib._sel_setNetworkServiceType_1, value); + return _lib._objc_msgSend_423( + _id, _lib._sel_setNetworkServiceType_1, value); } /// allow request to route over cellular. @@ -79796,7 +82734,8 @@ class NSURLSessionConfiguration extends NSObject { /// allow request to route over cellular. set allowsCellularAccess(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setAllowsCellularAccess_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setAllowsCellularAccess_1, value); } /// allow request to route over expensive networks. Defaults to YES. @@ -79806,7 +82745,7 @@ class NSURLSessionConfiguration extends NSObject { /// allow request to route over expensive networks. Defaults to YES. set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_361( + return _lib._objc_msgSend_386( _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } @@ -79818,7 +82757,7 @@ class NSURLSessionConfiguration extends NSObject { /// allow request to route over networks in constrained mode. Defaults to YES. set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_361( + return _lib._objc_msgSend_386( _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } @@ -79829,7 +82768,8 @@ class NSURLSessionConfiguration extends NSObject { /// requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); } /// Causes tasks to wait for network connectivity to become available, rather @@ -79861,7 +82801,8 @@ class NSURLSessionConfiguration extends NSObject { /// Default value is NO. Ignored by background sessions, as background sessions /// always wait for connectivity. set waitsForConnectivity(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setWaitsForConnectivity_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setWaitsForConnectivity_1, value); } /// allows background tasks to be scheduled at the discretion of the system for optimal performance. @@ -79871,7 +82812,7 @@ class NSURLSessionConfiguration extends NSObject { /// allows background tasks to be scheduled at the discretion of the system for optimal performance. set discretionary(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setDiscretionary_1, value); + return _lib._objc_msgSend_386(_id, _lib._sel_setDiscretionary_1, value); } /// The identifier of the shared data container into which files in background sessions should be downloaded. @@ -79879,7 +82820,7 @@ class NSURLSessionConfiguration extends NSObject { /// all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. NSString? get sharedContainerIdentifier { final _ret = - _lib._objc_msgSend_32(_id, _lib._sel_sharedContainerIdentifier1); + _lib._objc_msgSend_55(_id, _lib._sel_sharedContainerIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -79889,7 +82830,7 @@ class NSURLSessionConfiguration extends NSObject { /// App extensions wishing to use background sessions *must* set this property to a valid container identifier, or /// all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. set sharedContainerIdentifier(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setSharedContainerIdentifier_1, + return _lib._objc_msgSend_395(_id, _lib._sel_setSharedContainerIdentifier_1, value?._id ?? ffi.nullptr); } @@ -79908,13 +82849,14 @@ class NSURLSessionConfiguration extends NSObject { /// /// NOTE: macOS apps based on AppKit do not support background launch. set sessionSendsLaunchEvents(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setSessionSendsLaunchEvents_1, value); } /// The proxy dictionary, as described by NSDictionary? get connectionProxyDictionary { final _ret = - _lib._objc_msgSend_180(_id, _lib._sel_connectionProxyDictionary1); + _lib._objc_msgSend_288(_id, _lib._sel_connectionProxyDictionary1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -79922,53 +82864,53 @@ class NSURLSessionConfiguration extends NSObject { /// The proxy dictionary, as described by set connectionProxyDictionary(NSDictionary? value) { - _lib._objc_msgSend_396(_id, _lib._sel_setConnectionProxyDictionary_1, + return _lib._objc_msgSend_425(_id, _lib._sel_setConnectionProxyDictionary_1, value?._id ?? ffi.nullptr); } /// The minimum allowable versions of the TLS protocol, from int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_411(_id, _lib._sel_TLSMinimumSupportedProtocol1); + return _lib._objc_msgSend_441(_id, _lib._sel_TLSMinimumSupportedProtocol1); } /// The minimum allowable versions of the TLS protocol, from set TLSMinimumSupportedProtocol(int value) { - _lib._objc_msgSend_412( + return _lib._objc_msgSend_442( _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } /// The maximum allowable versions of the TLS protocol, from int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_411(_id, _lib._sel_TLSMaximumSupportedProtocol1); + return _lib._objc_msgSend_441(_id, _lib._sel_TLSMaximumSupportedProtocol1); } /// The maximum allowable versions of the TLS protocol, from set TLSMaximumSupportedProtocol(int value) { - _lib._objc_msgSend_412( + return _lib._objc_msgSend_442( _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } /// The minimum allowable versions of the TLS protocol, from int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_413( + return _lib._objc_msgSend_443( _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } /// The minimum allowable versions of the TLS protocol, from set TLSMinimumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_414( + return _lib._objc_msgSend_444( _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } /// The maximum allowable versions of the TLS protocol, from int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_413( + return _lib._objc_msgSend_443( _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); } /// The maximum allowable versions of the TLS protocol, from set TLSMaximumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_414( + return _lib._objc_msgSend_444( _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); } @@ -79979,7 +82921,8 @@ class NSURLSessionConfiguration extends NSObject { /// Allow the use of HTTP pipelining set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } /// Allow the session to set cookies on requests @@ -79989,23 +82932,25 @@ class NSURLSessionConfiguration extends NSObject { /// Allow the session to set cookies on requests set HTTPShouldSetCookies(bool value) { - _lib._objc_msgSend_361(_id, _lib._sel_setHTTPShouldSetCookies_1, value); + return _lib._objc_msgSend_386( + _id, _lib._sel_setHTTPShouldSetCookies_1, value); } /// Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage. int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_404(_id, _lib._sel_HTTPCookieAcceptPolicy1); + return _lib._objc_msgSend_434(_id, _lib._sel_HTTPCookieAcceptPolicy1); } /// Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage. set HTTPCookieAcceptPolicy(int value) { - _lib._objc_msgSend_405(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + return _lib._objc_msgSend_435( + _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); } /// Specifies additional headers which will be set on outgoing requests. /// Note that these headers are added to the request only if not already present. NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_HTTPAdditionalHeaders1); + final _ret = _lib._objc_msgSend_288(_id, _lib._sel_HTTPAdditionalHeaders1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -80014,24 +82959,24 @@ class NSURLSessionConfiguration extends NSObject { /// Specifies additional headers which will be set on outgoing requests. /// Note that these headers are added to the request only if not already present. set HTTPAdditionalHeaders(NSDictionary? value) { - _lib._objc_msgSend_396( + return _lib._objc_msgSend_425( _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } /// The maximum number of simultaneous persistent connections per host - int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_81(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + DartNSInteger get HTTPMaximumConnectionsPerHost { + return _lib._objc_msgSend_86(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } /// The maximum number of simultaneous persistent connections per host - set HTTPMaximumConnectionsPerHost(int value) { - _lib._objc_msgSend_388( + set HTTPMaximumConnectionsPerHost(DartNSInteger value) { + return _lib._objc_msgSend_416( _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } /// The cookie storage object to use, or nil to indicate that no cookies should be handled NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_400(_id, _lib._sel_HTTPCookieStorage1); + final _ret = _lib._objc_msgSend_445(_id, _lib._sel_HTTPCookieStorage1); return _ret.address == 0 ? null : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); @@ -80039,13 +82984,13 @@ class NSURLSessionConfiguration extends NSObject { /// The cookie storage object to use, or nil to indicate that no cookies should be handled set HTTPCookieStorage(NSHTTPCookieStorage? value) { - _lib._objc_msgSend_415( + return _lib._objc_msgSend_446( _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } /// The credential storage object, or nil to indicate that no credential storage is to be used NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_416(_id, _lib._sel_URLCredentialStorage1); + final _ret = _lib._objc_msgSend_447(_id, _lib._sel_URLCredentialStorage1); return _ret.address == 0 ? null : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); @@ -80053,13 +82998,13 @@ class NSURLSessionConfiguration extends NSObject { /// The credential storage object, or nil to indicate that no credential storage is to be used set URLCredentialStorage(NSURLCredentialStorage? value) { - _lib._objc_msgSend_417( + return _lib._objc_msgSend_448( _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); } /// The URL resource cache, or nil to indicate that no caching is to be performed NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_320(_id, _lib._sel_URLCache1); + final _ret = _lib._objc_msgSend_449(_id, _lib._sel_URLCache1); return _ret.address == 0 ? null : NSURLCache._(_ret, _lib, retain: true, release: true); @@ -80067,7 +83012,7 @@ class NSURLSessionConfiguration extends NSObject { /// The URL resource cache, or nil to indicate that no caching is to be performed set URLCache(NSURLCache? value) { - _lib._objc_msgSend_321( + return _lib._objc_msgSend_450( _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); } @@ -80081,7 +83026,7 @@ class NSURLSessionConfiguration extends NSObject { /// Enable extended background idle mode for any tcp sockets created. Enabling this mode asks the system to keep the socket open /// and delay reclaiming it when the process moves to the background (see https://developer.apple.com/library/ios/technotes/tn2277/_index.html) set shouldUseExtendedBackgroundIdleMode(bool value) { - _lib._objc_msgSend_361( + return _lib._objc_msgSend_386( _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); } @@ -80094,7 +83039,7 @@ class NSURLSessionConfiguration extends NSObject { /// Custom NSURLProtocol subclasses are not available to background /// sessions. NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_protocolClasses1); + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_protocolClasses1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -80109,18 +83054,19 @@ class NSURLSessionConfiguration extends NSObject { /// Custom NSURLProtocol subclasses are not available to background /// sessions. set protocolClasses(NSArray? value) { - _lib._objc_msgSend_418( + return _lib._objc_msgSend_451( _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } /// multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone int get multipathServiceType { - return _lib._objc_msgSend_419(_id, _lib._sel_multipathServiceType1); + return _lib._objc_msgSend_452(_id, _lib._sel_multipathServiceType1); } /// multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone set multipathServiceType(int value) { - _lib._objc_msgSend_420(_id, _lib._sel_setMultipathServiceType_1, value); + return _lib._objc_msgSend_453( + _id, _lib._sel_setMultipathServiceType_1, value); } @override @@ -80137,14 +83083,20 @@ class NSURLSessionConfiguration extends NSObject { } static NSURLSessionConfiguration backgroundSessionConfiguration_( - NativeCupertinoHttp _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_410( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString identifier) { + final _ret = _lib._objc_msgSend_440(_lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, identifier._id); return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } + static NSURLSessionConfiguration allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); @@ -80215,106 +83167,258 @@ abstract class NSURLSessionMultipathServiceType { static const int NSURLSessionMultipathServiceTypeAggregate = 3; } -void _ObjCBlock39_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, NativeCupertinoHttp 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( + NativeCupertinoHttp 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(NativeCupertinoHttp 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(NativeCupertinoHttp 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 _ObjCBlock39_closureRegistry = {}; -int _ObjCBlock39_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { - final id = ++_ObjCBlock39_closureRegistryIndex; - _ObjCBlock39_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 _ObjCBlock39_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock39_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 ObjCBlock39 extends _ObjCBlockBase { - ObjCBlock39._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSArray1 extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray1._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSArray1.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock39_fnPtrTrampoline) + 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. - ObjCBlock39.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSArray) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock39_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSArray1_closureTrampoline) .cast(), - _ObjCBlock39_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray1_registerClosure( + (ffi.Pointer arg0) => + fn(NSArray._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } + + /// 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( + NativeCupertinoHttp 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; + + 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); } /// An NSURLSessionUploadTask does not currently provide any additional @@ -80358,6 +83462,25 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } + /// Cancels an upload and calls the completion handler with resume data for later use. + /// resumeData will be nil if the server does not support the latest resumable uploads + /// Internet-Draft from the HTTP Working Group, found at + /// https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ + /// + /// - Parameter completionHandler: The completion handler to call when the upload has been successfully canceled. + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_460( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + } + + static NSURLSessionUploadTask allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); @@ -80365,6 +83488,115 @@ 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, NativeCupertinoHttp 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( + NativeCupertinoHttp 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( + NativeCupertinoHttp 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( + NativeCupertinoHttp 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); +} + /// NSURLSessionDownloadTask is a task that represents a download to /// local storage. class NSURLSessionDownloadTask extends NSURLSessionTask { @@ -80399,8 +83631,9 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { /// with -downloadTaskWithResumeData: to attempt to resume the download. /// If resume data cannot be created, the completion handler will be /// called with nil resumeData. - void cancelByProducingResumeData_(ObjCBlock40 completionHandler) { - return _lib._objc_msgSend_430( + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_460( _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } @@ -80416,6 +83649,13 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionDownloadTask allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); @@ -80423,74 +83663,6 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { } } -void _ObjCBlock40_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock40_closureRegistry = {}; -int _ObjCBlock40_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { - final id = ++_ObjCBlock40_closureRegistryIndex; - _ObjCBlock40_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock40_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock40_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock40 extends _ObjCBlockBase { - ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock40.fromFunctionPointer( - NativeCupertinoHttp lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock40_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock40.fromFunction( - NativeCupertinoHttp lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock40_closureTrampoline) - .cast(), - _ObjCBlock40_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - /// An NSURLSessionStreamTask provides an interface to perform reads /// and writes to a TCP/IP stream created via NSURLSession. This task /// may be explicitly created from an NSURLSession, or created as a @@ -80540,9 +83712,12 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// handler on the sessions delegate queue with the data or an error. /// If an error occurs, any outstanding reads will also fail, and new /// read requests will error out immediately. - void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, - int maxBytes, double timeout, ObjCBlock41 completionHandler) { - return _lib._objc_msgSend_434( + void readDataOfMinLength_maxLength_timeout_completionHandler_( + DartNSUInteger minBytes, + DartNSUInteger maxBytes, + DartNSTimeInterval timeout, + ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { + _lib._objc_msgSend_468( _id, _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, minBytes, @@ -80556,14 +83731,10 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// occur. Note that invocation of the completion handler does not /// guarantee that the remote side has received all the bytes, only /// that they have been written to the kernel. - void writeData_timeout_completionHandler_( - NSData? data, double timeout, ObjCBlock42 completionHandler) { - return _lib._objc_msgSend_435( - _id, - _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, - timeout, - completionHandler._id); + void writeData_timeout_completionHandler_(NSData data, + DartNSTimeInterval timeout, ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_469(_id, _lib._sel_writeData_timeout_completionHandler_1, + data._id, timeout, completionHandler._id); } /// -captureStreams completes any already enqueued reads @@ -80573,7 +83744,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// considered completed and will not receive any more delegate /// messages. void captureStreams() { - return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } /// Enqueue a request to close the write end of the underlying socket. @@ -80582,21 +83753,21 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// back to the client, so best practice is to continue reading from /// the server until you receive EOF. void closeWrite() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } /// Enqueue a request to close the read side of the underlying socket. /// All outstanding IO will complete before the read side is closed. /// You may continue writing to the server. void closeRead() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } /// Begin encrypted handshake. The handshake begins after all pending /// IO has completed. TLS authentication callbacks are sent to the /// session's -URLSession:task:didReceiveChallenge:completionHandler: void startSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } /// Cleanly close a secure connection after all pending secure IO has @@ -80604,7 +83775,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { /// /// @warning This API is non-functional. void stopSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } @override @@ -80619,6 +83790,13 @@ class NSURLSessionStreamTask extends NSURLSessionTask { return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } + static NSURLSessionStreamTask allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); @@ -80626,38 +83804,49 @@ class NSURLSessionStreamTask extends NSURLSessionTask { } } -void _ObjCBlock41_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 _ObjCBlock41_closureRegistry = {}; -int _ObjCBlock41_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { - final id = ++_ObjCBlock41_closureRegistryIndex; - _ObjCBlock41_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 _ObjCBlock41_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock41_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock41 extends _ObjCBlockBase { - ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_bool_NSError.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -80668,81 +83857,117 @@ class ObjCBlock41 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock41_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. - ObjCBlock41.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSData, bool, NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock41_closureTrampoline) + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Bool, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock41_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); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} -void _ObjCBlock42_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + /// 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( + NativeCupertinoHttp 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; + + 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); } -final _ObjCBlock42_closureRegistry = {}; -int _ObjCBlock42_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { - final id = ++_ObjCBlock42_closureRegistryIndex; - _ObjCBlock42_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 _ObjCBlock42_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock42_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 ObjCBlock42 extends _ObjCBlockBase { - ObjCBlock42._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSError.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi @@ -80751,37 +83976,72 @@ class ObjCBlock42 extends _ObjCBlockBase { : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock42_fnPtrTrampoline) + 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. - ObjCBlock42.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock42_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock>, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSError_closureTrampoline) .cast(), - _ObjCBlock42_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSError_registerClosure( + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : NSError._(arg0, lib, retain: true, release: true)))), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } + + /// 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( + NativeCupertinoHttp 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; + + 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); } class NSNetService extends _ObjCWrapper { @@ -80846,57 +84106,58 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { /// Note that invocation of the completion handler does not /// guarantee that the remote side has received all the bytes, only /// that they have been written to the kernel. - void sendMessage_completionHandler_( - NSURLSessionWebSocketMessage? message, ObjCBlock42 completionHandler) { - return _lib._objc_msgSend_439( - _id, - _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, - completionHandler._id); + void sendMessage_completionHandler_(NSURLSessionWebSocketMessage message, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_473(_id, _lib._sel_sendMessage_completionHandler_1, + message._id, completionHandler._id); } /// Reads a WebSocket message once all the frames of the message are available. /// If the maximumMessage size is hit while buffering the frames, the receiveMessage call will error out /// and all outstanding work will also fail resulting in the end of the task. - void receiveMessageWithCompletionHandler_(ObjCBlock43 completionHandler) { - return _lib._objc_msgSend_440(_id, - _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); + void receiveMessageWithCompletionHandler_( + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + completionHandler) { + _lib._objc_msgSend_474(_id, _lib._sel_receiveMessageWithCompletionHandler_1, + completionHandler._id); } /// Sends a ping frame from the client side. The pongReceiveHandler is invoked when the client /// receives a pong from the server endpoint. If a connection is lost or an error occurs before receiving /// the pong from the endpoint, the pongReceiveHandler block will be invoked with an error. /// Note - the pongReceiveHandler will always be called in the order in which the pings were sent. - void sendPingWithPongReceiveHandler_(ObjCBlock42 pongReceiveHandler) { - return _lib._objc_msgSend_441(_id, - _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); + void sendPingWithPongReceiveHandler_( + ObjCBlock_ffiVoid_NSError pongReceiveHandler) { + _lib._objc_msgSend_475(_id, _lib._sel_sendPingWithPongReceiveHandler_1, + pongReceiveHandler._id); } /// Sends a close frame with the given closeCode. An optional reason can be provided while sending the close frame. /// Simply calling cancel on the task will result in a cancellation frame being sent without any reason. void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - return _lib._objc_msgSend_442(_id, _lib._sel_cancelWithCloseCode_reason_1, + _lib._objc_msgSend_476(_id, _lib._sel_cancelWithCloseCode_reason_1, closeCode, reason?._id ?? ffi.nullptr); } /// The maximum number of bytes to be buffered before erroring out. This includes the sum of all bytes from continuation frames. Receive calls will error out if this value is reached - int get maximumMessageSize { - return _lib._objc_msgSend_81(_id, _lib._sel_maximumMessageSize1); + DartNSInteger get maximumMessageSize { + return _lib._objc_msgSend_86(_id, _lib._sel_maximumMessageSize1); } /// The maximum number of bytes to be buffered before erroring out. This includes the sum of all bytes from continuation frames. Receive calls will error out if this value is reached - set maximumMessageSize(int value) { - _lib._objc_msgSend_388(_id, _lib._sel_setMaximumMessageSize_1, value); + set maximumMessageSize(DartNSInteger value) { + return _lib._objc_msgSend_416( + _id, _lib._sel_setMaximumMessageSize_1, value); } /// A task can be queried for it's close code at any point. When the task is not closed, it will be set to NSURLSessionWebSocketCloseCodeInvalid int get closeCode { - return _lib._objc_msgSend_443(_id, _lib._sel_closeCode1); + return _lib._objc_msgSend_477(_id, _lib._sel_closeCode1); } /// A task can be queried for it's close reason at any point. A nil value indicates no closeReason or that the task is still running NSData? get closeReason { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_closeReason1); + final _ret = _lib._objc_msgSend_348(_id, _lib._sel_closeReason1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); @@ -80915,6 +84176,14 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { retain: false, release: true); } + static NSURLSessionWebSocketTask allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); @@ -80954,34 +84223,34 @@ class NSURLSessionWebSocketMessage extends NSObject { } /// Create a message with data type - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_217( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + NSURLSessionWebSocketMessage initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_228(_id, _lib._sel_initWithData_1, data._id); return NSURLSessionWebSocketMessage._(_ret, _lib, retain: true, release: true); } /// Create a message with string type - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + NSURLSessionWebSocketMessage initWithString_(NSString string) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithString_1, string._id); return NSURLSessionWebSocketMessage._(_ret, _lib, retain: true, release: true); } int get type { - return _lib._objc_msgSend_438(_id, _lib._sel_type1); + return _lib._objc_msgSend_472(_id, _lib._sel_type1); } NSData? get data { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_data1); + final _ret = _lib._objc_msgSend_348(_id, _lib._sel_data1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } NSString? get string { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_string1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_string1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -81001,6 +84270,14 @@ class NSURLSessionWebSocketMessage extends NSObject { retain: false, release: true); } + static NSURLSessionWebSocketMessage allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); @@ -81014,37 +84291,52 @@ abstract class NSURLSessionWebSocketMessageType { static const int NSURLSessionWebSocketMessageTypeString = 1; } -void _ObjCBlock43_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 _ObjCBlock43_closureRegistry = {}; -int _ObjCBlock43_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { - final id = ++_ObjCBlock43_closureRegistryIndex; - _ObjCBlock43_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 _ObjCBlock43_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock43_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +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 ObjCBlock43 extends _ObjCBlockBase { - ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -81055,46 +84347,84 @@ class ObjCBlock43 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock43_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. - ObjCBlock43.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( NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) + void Function(NSURLSessionWebSocketMessage?, NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock43_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) .cast(), - _ObjCBlock43_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); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } + + /// 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( + NativeCupertinoHttp 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; + + 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); } /// The WebSocket close codes follow the close codes given in the RFC @@ -81115,48 +84445,56 @@ abstract class NSURLSessionWebSocketCloseCode { static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; } -void _ObjCBlock44_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 _ObjCBlock44_closureRegistry = {}; -int _ObjCBlock44_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock44_registerClosure(Function fn) { - final id = ++_ObjCBlock44_closureRegistryIndex; - _ObjCBlock44_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 _ObjCBlock44_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock44_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock44 extends _ObjCBlockBase { - ObjCBlock44._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp 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_NSData_NSURLResponse_NSError.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -81169,96 +84507,148 @@ class ObjCBlock44 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock44_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. - ObjCBlock44.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_NSData_NSURLResponse_NSError.fromFunction( NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + void Function(NSData?, NSURLResponse?, NSError?) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock44_closureTrampoline) - .cast(), - _ObjCBlock44_registerClosure(fn)), + _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; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + + /// 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( + NativeCupertinoHttp 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(), + _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.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); - } -} - -void _ObjCBlock45_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 _ObjCBlock45_closureRegistry = {}; -int _ObjCBlock45_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock45_registerClosure(Function fn) { - final id = ++_ObjCBlock45_closureRegistryIndex; - _ObjCBlock45_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 _ObjCBlock45_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock45_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock45 extends _ObjCBlockBase { - ObjCBlock45._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock45.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -81271,52 +84661,96 @@ class ObjCBlock45 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock45_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. - ObjCBlock45.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_NSURL_NSURLResponse_NSError.fromFunction( NativeCupertinoHttp lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + void Function(NSURL?, NSURLResponse?, NSError?) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock45_closureTrampoline) - .cast(), - _ObjCBlock45_registerClosure(fn)), + _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; - 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); - } + + /// 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( + NativeCupertinoHttp 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(), + _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.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + 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); } /// Disposition options for various delegate messages @@ -81419,16 +84853,14 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { } /// Represents the transaction request. - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_350(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get request { + final _ret = _lib._objc_msgSend_489(_id, _lib._sel_request1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } /// Represents the transaction response. Can be nil if error occurred and no response was generated. NSURLResponse? get response { - final _ret = _lib._objc_msgSend_318(_id, _lib._sel_response1); + final _ret = _lib._objc_msgSend_375(_id, _lib._sel_response1); return _ret.address == 0 ? null : NSURLResponse._(_ret, _lib, retain: true, release: true); @@ -81445,7 +84877,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// secureConnectionStartDate /// secureConnectionEndDate NSDate? get fetchStartDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_fetchStartDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_fetchStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81453,7 +84885,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// domainLookupStartDate returns the time immediately before the user agent started the name lookup for the resource. NSDate? get domainLookupStartDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_domainLookupStartDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_domainLookupStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81461,7 +84893,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// domainLookupEndDate returns the time after the name lookup was completed. NSDate? get domainLookupEndDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_domainLookupEndDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_domainLookupEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81471,7 +84903,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately before the user agent started trying to establish the TCP connection. NSDate? get connectStartDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_connectStartDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_connectStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81484,7 +84916,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If an encrypted connection was not used, this attribute is set to nil. NSDate? get secureConnectionStartDate { final _ret = - _lib._objc_msgSend_348(_id, _lib._sel_secureConnectionStartDate1); + _lib._objc_msgSend_393(_id, _lib._sel_secureConnectionStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81495,7 +84927,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If an encrypted connection was not used, this attribute is set to nil. NSDate? get secureConnectionEndDate { final _ret = - _lib._objc_msgSend_348(_id, _lib._sel_secureConnectionEndDate1); + _lib._objc_msgSend_393(_id, _lib._sel_secureConnectionEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81503,7 +84935,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// connectEndDate is the time immediately after the user agent finished establishing the connection to the server, including completion of security-related and other handshakes. NSDate? get connectEndDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_connectEndDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_connectEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81513,7 +84945,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately before the user agent sent an HTTP GET request. NSDate? get requestStartDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_requestStartDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_requestStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81523,7 +84955,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately after the user agent finished sending the last byte of the request. NSDate? get requestEndDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_requestEndDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_requestEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81533,7 +84965,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// For example, this would correspond to the time immediately after the user agent received the first byte of an HTTP response. NSDate? get responseStartDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_responseStartDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_responseStartDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81541,7 +84973,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// responseEndDate is the time immediately after the user agent received the last byte of the resource. NSDate? get responseEndDate { - final _ret = _lib._objc_msgSend_348(_id, _lib._sel_responseEndDate1); + final _ret = _lib._objc_msgSend_393(_id, _lib._sel_responseEndDate1); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -81557,7 +84989,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If HTTP/1.1 were used to the proxy, and the tunneled connection was HTTP/2, then h2 would be returned. /// If HTTP/1.1 were used to the proxy, and there were no tunnel, then http/1.1 would be returned. NSString? get networkProtocolName { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_networkProtocolName1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_networkProtocolName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -81575,43 +85007,43 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// Indicates whether the resource was loaded, pushed or retrieved from the local cache. int get resourceFetchType { - return _lib._objc_msgSend_454(_id, _lib._sel_resourceFetchType1); + return _lib._objc_msgSend_490(_id, _lib._sel_resourceFetchType1); } /// countOfRequestHeaderBytesSent is the number of bytes transferred for request header. int get countOfRequestHeaderBytesSent { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfRequestHeaderBytesSent1); } /// countOfRequestBodyBytesSent is the number of bytes transferred for request body. /// It includes protocol-specific framing, transfer encoding, and content encoding. int get countOfRequestBodyBytesSent { - return _lib._objc_msgSend_358(_id, _lib._sel_countOfRequestBodyBytesSent1); + return _lib._objc_msgSend_383(_id, _lib._sel_countOfRequestBodyBytesSent1); } /// countOfRequestBodyBytesBeforeEncoding is the size of upload body data, file, or stream. int get countOfRequestBodyBytesBeforeEncoding { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfRequestBodyBytesBeforeEncoding1); } /// countOfResponseHeaderBytesReceived is the number of bytes transferred for response header. int get countOfResponseHeaderBytesReceived { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfResponseHeaderBytesReceived1); } /// countOfResponseBodyBytesReceived is the number of bytes transferred for response header. /// It includes protocol-specific framing, transfer encoding, and content encoding. int get countOfResponseBodyBytesReceived { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfResponseBodyBytesReceived1); } /// countOfResponseBodyBytesAfterDecoding is the size of data delivered to your delegate or completion handler. int get countOfResponseBodyBytesAfterDecoding { - return _lib._objc_msgSend_358( + return _lib._objc_msgSend_383( _id, _lib._sel_countOfResponseBodyBytesAfterDecoding1); } @@ -81621,7 +85053,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// If a connection was not used, this attribute is set to nil. NSString? get localAddress { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_localAddress1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_localAddress1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -81633,7 +85065,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// If a connection was not used, this attribute is set to nil. NSNumber? get localPort { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_localPort1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_localPort1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); @@ -81645,7 +85077,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// If a connection was not used, this attribute is set to nil. NSString? get remoteAddress { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_remoteAddress1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_remoteAddress1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -81657,7 +85089,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// /// If a connection was not used, this attribute is set to nil. NSNumber? get remotePort { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_remotePort1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_remotePort1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); @@ -81671,7 +85103,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If an encrypted connection was not used, this attribute is set to nil. NSNumber? get negotiatedTLSProtocolVersion { final _ret = - _lib._objc_msgSend_89(_id, _lib._sel_negotiatedTLSProtocolVersion1); + _lib._objc_msgSend_94(_id, _lib._sel_negotiatedTLSProtocolVersion1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); @@ -81685,7 +85117,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// If an encrypted connection was not used, this attribute is set to nil. NSNumber? get negotiatedTLSCipherSuite { final _ret = - _lib._objc_msgSend_89(_id, _lib._sel_negotiatedTLSCipherSuite1); + _lib._objc_msgSend_94(_id, _lib._sel_negotiatedTLSCipherSuite1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); @@ -81713,7 +85145,7 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { /// DNS protocol used for domain resolution. int get domainResolutionProtocol { - return _lib._objc_msgSend_455(_id, _lib._sel_domainResolutionProtocol1); + return _lib._objc_msgSend_491(_id, _lib._sel_domainResolutionProtocol1); } @override @@ -81730,6 +85162,16 @@ class NSURLSessionTaskTransactionMetrics extends NSObject { retain: false, release: true); } + static NSURLSessionTaskTransactionMetrics allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionTaskTransactionMetrics1, + _lib._sel_allocWithZone_1, + zone); + return NSURLSessionTaskTransactionMetrics._(_ret, _lib, + retain: false, release: true); + } + static NSURLSessionTaskTransactionMetrics alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionTaskTransactionMetrics1, _lib._sel_alloc1); @@ -81764,25 +85206,21 @@ class NSURLSessionTaskMetrics extends NSObject { } /// transactionMetrics array contains the metrics collected for every request/response transaction created during the task execution. - NSArray? get transactionMetrics { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_transactionMetrics1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get transactionMetrics { + final _ret = _lib._objc_msgSend_169(_id, _lib._sel_transactionMetrics1); + return NSArray._(_ret, _lib, retain: true, release: true); } /// Interval from the task creation time to the task completion time. /// Task creation time is the time when the task was instantiated. /// Task completion time is the time when the task is about to change its internal state to completed. - NSDateInterval? get taskInterval { - final _ret = _lib._objc_msgSend_456(_id, _lib._sel_taskInterval1); - return _ret.address == 0 - ? null - : NSDateInterval._(_ret, _lib, retain: true, release: true); + NSDateInterval get taskInterval { + final _ret = _lib._objc_msgSend_492(_id, _lib._sel_taskInterval1); + return NSDateInterval._(_ret, _lib, retain: true, release: true); } /// redirectCount is the number of redirects that were recorded. - int get redirectCount { + DartNSUInteger get redirectCount { return _lib._objc_msgSend_12(_id, _lib._sel_redirectCount1); } @@ -81798,6 +85236,13 @@ class NSURLSessionTaskMetrics extends NSObject { return NSURLSessionTaskMetrics._(_ret, _lib, retain: false, release: true); } + static NSURLSessionTaskMetrics allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionTaskMetrics1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionTaskMetrics._(_ret, _lib, retain: false, release: true); + } + static NSURLSessionTaskMetrics alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSURLSessionTaskMetrics1, _lib._sel_alloc1); @@ -81870,141 +85315,144 @@ class NSItemProvider extends NSObject { } void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, int visibility, ObjCBlock46 loadHandler) { - return _lib._objc_msgSend_457( + NSString typeIdentifier, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { + _lib._objc_msgSend_493( _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, - ObjCBlock48 loadHandler) { - return _lib._objc_msgSend_458( + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { + _lib._objc_msgSend_494( _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_162(_id, _lib._sel_registeredTypeIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_169(_id, _lib._sel_registeredTypeIdentifiers1); + return NSArray._(_ret, _lib, retain: true, release: true); } NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_459( + final _ret = _lib._objc_msgSend_495( _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); return NSArray._(_ret, _lib, retain: true, release: true); } - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { + bool hasItemConformingToTypeIdentifier_(NSString typeIdentifier) { return _lib._objc_msgSend_22( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); + _id, _lib._sel_hasItemConformingToTypeIdentifier_1, typeIdentifier._id); } bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_460( + NSString typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_496( _id, _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, fileOptions); } NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_461( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSData_NSError completionHandler) { + final _ret = _lib._objc_msgSend_497( _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, ObjCBlock50 completionHandler) { - final _ret = _lib._objc_msgSend_462( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { + final _ret = _lib._objc_msgSend_498( _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, ObjCBlock49 completionHandler) { - final _ret = _lib._objc_msgSend_463( + NSString typeIdentifier, + ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { + final _ret = _lib._objc_msgSend_499( _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_32(_id, _lib._sel_suggestedName1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_suggestedName1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set suggestedName(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); } - NSItemProvider initWithObject_(NSObject? object) { - final _ret = _lib._objc_msgSend_91( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); + NSItemProvider initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_149(_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_464(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + void registerObject_visibility_(NSObject object, int visibility) { + _lib._objc_msgSend_500( + _id, _lib._sel_registerObject_visibility_1, object._id, visibility); } void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, int visibility, ObjCBlock51 loadHandler) { - return _lib._objc_msgSend_465( + NSObject aClass, + int visibility, + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { + _lib._objc_msgSend_501( _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, ObjCBlock52 completionHandler) { - final _ret = _lib._objc_msgSend_466( + NSObject aClass, ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + final _ret = _lib._objc_msgSend_502( _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_467( + final _ret = _lib._objc_msgSend_503( _id, _lib._sel_initWithItem_typeIdentifier_1, item?._id ?? ffi.nullptr, @@ -82012,48 +85460,53 @@ class NSItemProvider extends NSObject { return NSItemProvider._(_ret, _lib, retain: true, release: true); } - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_201( - _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_226( + _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_468( + NSString typeIdentifier, DartNSItemProviderLoadHandler loadHandler) { + _lib._objc_msgSend_504( _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_469( + DartNSItemProviderCompletionHandler completionHandler) { + _lib._objc_msgSend_505( _id, _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, + typeIdentifier._id, options?._id ?? ffi.nullptr, - completionHandler); + completionHandler._id); } - NSItemProviderLoadHandler get previewImageHandler { - return _lib._objc_msgSend_470(_id, _lib._sel_previewImageHandler1); + DartNSItemProviderLoadHandler get previewImageHandler { + final _ret = _lib._objc_msgSend_506(_id, _lib._sel_previewImageHandler1); + return ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary + ._(_ret, _lib, retain: true, release: true); } - set previewImageHandler(NSItemProviderLoadHandler value) { - _lib._objc_msgSend_471(_id, _lib._sel_setPreviewImageHandler_1, value); + set previewImageHandler(DartNSItemProviderLoadHandler value) { + return _lib._objc_msgSend_507( + _id, _lib._sel_setPreviewImageHandler_1, value._id); } - void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, - NSItemProviderCompletionHandler completionHandler) { - return _lib._objc_msgSend_472( + void loadPreviewImageWithOptions_completionHandler_(NSDictionary options, + DartNSItemProviderCompletionHandler completionHandler) { + _lib._objc_msgSend_508( _id, _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler); + options._id, + completionHandler._id); } static NSItemProvider new1(NativeCupertinoHttp _lib) { @@ -82062,6 +85515,13 @@ class NSItemProvider extends NSObject { return NSItemProvider._(_ret, _lib, retain: false, release: true); } + static NSItemProvider allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); @@ -82069,36 +85529,45 @@ class NSItemProvider extends NSObject { } } -ffi.Pointer _ObjCBlock46_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 _ObjCBlock46_closureRegistry = {}; -int _ObjCBlock46_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock46_registerClosure(Function fn) { - final id = ++_ObjCBlock46_closureRegistryIndex; - _ObjCBlock46_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 _ObjCBlock46_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock46_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 ObjCBlock46 extends _ObjCBlockBase { - ObjCBlock46._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSDataNSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock46.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82109,71 +85578,99 @@ class ObjCBlock46 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock46_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. - ObjCBlock46.fromFunction(NativeCupertinoHttp 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( + NativeCupertinoHttp lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSData_NSError) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock46_closureTrampoline) + ffi.Pointer<_ObjCBlock>, ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) .cast(), - _ObjCBlock46_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); static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke + + 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); +} + +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -void _ObjCBlock47_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 _ObjCBlock47_closureRegistry = {}; -int _ObjCBlock47_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock47_registerClosure(Function fn) { - final id = ++_ObjCBlock47_closureRegistryIndex; - _ObjCBlock47_closureRegistry[id] = fn; + 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); } -void _ObjCBlock47_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock47_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +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 ObjCBlock47 extends _ObjCBlockBase { - ObjCBlock47._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock47.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82184,78 +85681,126 @@ class ObjCBlock47 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock47_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. - ObjCBlock47.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSData?, NSError?) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock47_closureTrampoline) - .cast(), - _ObjCBlock47_registerClosure(fn)), + _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; - 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 _ObjCBlock48_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); -} + /// 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( + NativeCupertinoHttp 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(), + _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.NativeCallable< + ffi.Void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; -final _ObjCBlock48_closureRegistry = {}; -int _ObjCBlock48_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock48_registerClosure(Function fn) { - final id = ++_ObjCBlock48_closureRegistryIndex; - _ObjCBlock48_closureRegistry[id] = fn; + 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); +} + +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 _ObjCBlock48_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock48_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 ObjCBlock48 extends _ObjCBlockBase { - ObjCBlock48._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock48.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82266,72 +85811,101 @@ class ObjCBlock48 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock48_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. - ObjCBlock48.fromFunction(NativeCupertinoHttp 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( + NativeCupertinoHttp lib, + NSProgress? Function(ObjCBlock_ffiVoid_NSURL_bool_NSError) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock48_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) .cast(), - _ObjCBlock48_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); static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke + + 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); +} + +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.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -void _ObjCBlock49_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 _ObjCBlock49_closureRegistry = {}; -int _ObjCBlock49_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock49_registerClosure(Function fn) { - final id = ++_ObjCBlock49_closureRegistryIndex; - _ObjCBlock49_closureRegistry[id] = fn; + 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 _ObjCBlock49_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock49_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +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 ObjCBlock49 extends _ObjCBlockBase { - ObjCBlock49._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_bool_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock49.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82342,85 +85916,129 @@ class ObjCBlock49 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock49_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. - ObjCBlock49.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSURL?, bool, NSError?) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock49_closureTrampoline) - .cast(), - _ObjCBlock49_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); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} -void _ObjCBlock50_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); + /// 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( + NativeCupertinoHttp 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 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 _ObjCBlock50_closureRegistry = {}; -int _ObjCBlock50_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock50_registerClosure(Function fn) { - final id = ++_ObjCBlock50_closureRegistryIndex; - _ObjCBlock50_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 _ObjCBlock50_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock50_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 ObjCBlock50 extends _ObjCBlockBase { - ObjCBlock50._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock50.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82431,78 +86049,126 @@ class ObjCBlock50 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock50_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. - ObjCBlock50.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSURL?, NSError?) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock50_closureTrampoline) - .cast(), - _ObjCBlock50_registerClosure(fn)), + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + .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.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} -ffi.Pointer _ObjCBlock51_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); -} + /// 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( + NativeCupertinoHttp 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; -final _ObjCBlock51_closureRegistry = {}; -int _ObjCBlock51_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock51_registerClosure(Function fn) { - final id = ++_ObjCBlock51_closureRegistryIndex; - _ObjCBlock51_closureRegistry[id] = fn; + 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); +} + +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 _ObjCBlock51_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock51_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 ObjCBlock51 extends _ObjCBlockBase { - ObjCBlock51._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock51.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82513,71 +86179,99 @@ class ObjCBlock51 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock51_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. - ObjCBlock51.fromFunction(NativeCupertinoHttp 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( + NativeCupertinoHttp lib, + NSProgress? Function(ObjCBlock_ffiVoid_ObjCObject_NSError) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock51_closureTrampoline) + ffi.Pointer<_ObjCBlock>, + ffi.Pointer<_ObjCBlock>)>( + _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) .cast(), - _ObjCBlock51_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); static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke + + 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); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) => + block.ref.target .cast< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -void _ObjCBlock52_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 _ObjCBlock52_closureRegistry = {}; -int _ObjCBlock52_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock52_registerClosure(Function fn) { - final id = ++_ObjCBlock52_closureRegistryIndex; - _ObjCBlock52_closureRegistry[id] = fn; + 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 _ObjCBlock52_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock52_closureRegistry[block.ref.target.address]!(arg0, arg1); -} +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 ObjCBlock52 extends _ObjCBlockBase { - ObjCBlock52._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSError._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock52.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( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82588,91 +86282,142 @@ class ObjCBlock52 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock52_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. - ObjCBlock52.fromFunction( - NativeCupertinoHttp 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( + NativeCupertinoHttp lib, void Function(NSObject?, NSError?) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock52_closureTrampoline) + ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) .cast(), - _ObjCBlock52_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); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} -typedef NSItemProviderLoadHandler = ffi.Pointer<_ObjCBlock>; -void _ObjCBlock53_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); + /// 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( + NativeCupertinoHttp 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; + + 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 _ObjCBlock53_closureRegistry = {}; -int _ObjCBlock53_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock53_registerClosure(Function fn) { - final id = ++_ObjCBlock53_closureRegistryIndex; - _ObjCBlock53_closureRegistry[id] = fn; +typedef NSItemProviderLoadHandler = ffi.Pointer<_ObjCBlock>; +typedef DartNSItemProviderLoadHandler + = ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary; +void + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer)>()(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureRegistry = + , + ffi.Pointer)>{}; +int _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_registerClosure( + void Function(NSItemProviderCompletionHandler, ffi.Pointer, + ffi.Pointer) + fn) { + final id = + ++_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureRegistry[ + id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock53_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock53_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} +void _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) => + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureRegistry[ + block.ref.target.address]!(arg0, arg1, arg2); -class ObjCBlock53 extends _ObjCBlockBase { - ObjCBlock53._(ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib) - : super._(id, lib, retain: false, release: true); +class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary._( + ffi.Pointer<_ObjCBlock> id, NativeCupertinoHttp lib, + {bool retain = false, bool release = true}) + : super._(id, lib, retain: retain, release: release); /// Creates a block from a C function pointer. - ObjCBlock53.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_NSItemProviderCompletionHandler_ObjCObject_NSDictionary.fromFunctionPointer( NativeCupertinoHttp lib, ffi.Pointer< ffi.NativeFunction< @@ -82685,55 +86430,220 @@ class ObjCBlock53 extends _ObjCBlockBase { lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock53_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock>, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock53.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_NSItemProviderCompletionHandler_ObjCObject_NSDictionary.fromFunction( NativeCupertinoHttp lib, - void Function(NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, ffi.Pointer arg2) + void Function(DartNSItemProviderCompletionHandler, NSObject, NSDictionary) fn) : this._( lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock53_closureTrampoline) - .cast(), - _ObjCBlock53_registerClosure(fn)), + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction, NSItemProviderCompletionHandler, ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_registerClosure( + (NSItemProviderCompletionHandler 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; - void call(NSItemProviderCompletionHandler arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke + + /// 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_NSItemProviderCompletionHandler_ObjCObject_NSDictionary.listener( + NativeCupertinoHttp lib, + void Function(DartNSItemProviderCompletionHandler, NSObject, NSDictionary) + fn) + : this._( + lib._newBlock1( + (_dartFuncListenerTrampoline ??= ffi.NativeCallable, NSItemProviderCompletionHandler, ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_closureTrampoline) + ..keepIsolateAlive = false) + .nativeFunction + .cast(), + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_ObjCObject_NSDictionary_registerClosure( + (NSItemProviderCompletionHandler 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.NativeCallable< + ffi.Void Function( + ffi.Pointer<_ObjCBlock>, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer)>? _dartFuncListenerTrampoline; + + void call(DartNSItemProviderCompletionHandler arg0, NSObject arg1, + NSDictionary arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer)>()( + _id, arg0._id, arg1._id, arg2._id); +} + +typedef NSItemProviderCompletionHandler = ffi.Pointer<_ObjCBlock>; +typedef DartNSItemProviderCompletionHandler + = ObjCBlock_ffiVoid_ObjCObject_NSError1; +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); - } + 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, NativeCupertinoHttp 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( + NativeCupertinoHttp 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( + NativeCupertinoHttp 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( + NativeCupertinoHttp 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); +} abstract class NSItemProviderErrorCode { static const int NSItemProviderUnknownError = -1; @@ -82743,6 +86653,7 @@ abstract class NSItemProviderErrorCode { } typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; +typedef DartNSStringEncodingDetectionOptionsKey = NSString; class NSMutableString extends NSString { NSMutableString._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -82768,92 +86679,317 @@ class NSMutableString extends NSString { obj._lib._class_NSMutableString1); } - void replaceCharactersInRange_withString_(NSRange range, NSString? aString) { - return _lib._objc_msgSend_473( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); + void replaceCharactersInRange_withString_(NSRange range, NSString aString) { + _lib._objc_msgSend_509(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, aString._id); } - void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_474(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + void insertString_atIndex_(NSString aString, DartNSUInteger loc) { + _lib._objc_msgSend_510( + _id, _lib._sel_insertString_atIndex_1, aString._id, loc); } void deleteCharactersInRange_(NSRange range) { - return _lib._objc_msgSend_287( - _id, _lib._sel_deleteCharactersInRange_1, range); + _lib._objc_msgSend_304(_id, _lib._sel_deleteCharactersInRange_1, range); } - void appendString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + void appendString_(NSString aString) { + _lib._objc_msgSend_195(_id, _lib._sel_appendString_1, aString._id); } - void appendFormat_(NSString? format) { - return _lib._objc_msgSend_188( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + void appendFormat_(NSString format) { + _lib._objc_msgSend_195(_id, _lib._sel_appendFormat_1, format._id); } - void setString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + void setString_(NSString aString) { + _lib._objc_msgSend_195(_id, _lib._sel_setString_1, aString._id); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, NSRange searchRange) { - return _lib._objc_msgSend_475( + DartNSUInteger replaceOccurrencesOfString_withString_options_range_( + NSString target, NSString replacement, int options, NSRange searchRange) { + return _lib._objc_msgSend_511( _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_476( + bool applyTransform_reverse_range_updatedRange_( + DartNSStringTransform transform, + bool reverse, + NSRange range, + NSRangePointer resultingRange) { + return _lib._objc_msgSend_512( _id, _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform, + transform._id, reverse, range, resultingRange); } - NSMutableString initWithCapacity_(int capacity) { + NSMutableString initWithCapacity_(DartNSUInteger capacity) { final _ret = - _lib._objc_msgSend_477(_id, _lib._sel_initWithCapacity_1, capacity); + _lib._objc_msgSend_513(_id, _lib._sel_initWithCapacity_1, capacity); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithCapacity_( - NativeCupertinoHttp _lib, int capacity) { - final _ret = _lib._objc_msgSend_477( + NativeCupertinoHttp _lib, DartNSUInteger capacity) { + final _ret = _lib._objc_msgSend_513( _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); return NSMutableString._(_ret, _lib, retain: true, release: true); } + @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_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + static ffi.Pointer getAvailableStringEncodings( NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( + return _lib._objc_msgSend_255( _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { + NativeCupertinoHttp _lib, DartNSUInteger encoding) { final _ret = _lib._objc_msgSend_15(_lib._class_NSMutableString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + static DartNSUInteger getDefaultCStringEncoding(NativeCupertinoHttp _lib) { return _lib._objc_msgSend_12( _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); } + @override + NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, DartNSUInteger length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_267( + _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, + DartNSUInteger len, + ObjCBlock_ffiVoid_unichar_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_268( + _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, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269( + _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_270( + _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_42(_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_42(_id, _lib._sel_initWithFormat_1, format._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_arguments_(NSString format, va_list argList) { + final _ret = _lib._objc_msgSend_271( + _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_272(_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, va_list argList) { + final _ret = _lib._objc_msgSend_273( + _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_274( + _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_275( + _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, + va_list argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_276( + _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, + va_list argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_277( + _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, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_278( + _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, + DartNSUInteger len, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_279( + _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, + DartNSUInteger len, + DartNSUInteger encoding, + bool freeBuffer) { + final _ret = _lib._objc_msgSend_280( + _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, + DartNSUInteger len, + DartNSUInteger encoding, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_281( + _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); @@ -82861,174 +86997,265 @@ class NSMutableString extends NSString { } static NSMutableString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString string) { + final _ret = _lib._objc_msgSend_42( + _lib._class_NSMutableString1, _lib._sel_stringWithString_1, string._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSMutableString1, + static NSMutableString stringWithCharacters_length_(NativeCupertinoHttp _lib, + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269(_lib._class_NSMutableString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithUTF8String_( + static NSMutableString? stringWithUTF8String_( NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_270(_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_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString format) { + final _ret = _lib._objc_msgSend_42( + _lib._class_NSMutableString1, _lib._sel_stringWithFormat_1, format._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { + NativeCupertinoHttp _lib, NSString format) { final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + _lib._sel_localizedStringWithFormat_1, format._id); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + static NSMutableString? + stringWithValidatedFormat_validFormatSpecifiers_error_( + NativeCupertinoHttp _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_274( _lib._class_NSMutableString1, _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString + static NSMutableString? localizedStringWithValidatedFormat_validFormatSpecifiers_error_( NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _lib._class_NSMutableString1, _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSMutableString1, + @override + NSMutableString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString? stringWithCString_encoding_(NativeCupertinoHttp _lib, + ffi.Pointer cString, DartNSUInteger enc) { + final _ret = _lib._objc_msgSend_282(_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, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_283(_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, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284( + _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_( NativeCupertinoHttp _lib, - NSURL? url, - int enc, + NSURL url, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( + final _ret = _lib._objc_msgSend_283( _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_( NativeCupertinoHttp _lib, - NSString? path, - int enc, + NSString path, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( + final _ret = _lib._objc_msgSend_284( _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); } - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + @override + NSMutableString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_285( + _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_286( + _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_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( + final _ret = _lib._objc_msgSend_285( _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_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_286( _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 + static DartNSUInteger stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( NativeCupertinoHttp _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( + return _lib._objc_msgSend_287( _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_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226(_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_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSMutableString1, + static NSObject? stringWithCString_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_282(_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_( NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( + final _ret = _lib._objc_msgSend_270( _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 NSMutableString new1(NativeCupertinoHttp _lib) { @@ -83037,6 +87264,13 @@ class NSMutableString extends NSString { return NSMutableString._(_ret, _lib, retain: false, release: true); } + static NSMutableString allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); @@ -83045,6 +87279,7 @@ class NSMutableString extends NSString { } typedef NSExceptionName = ffi.Pointer; +typedef DartNSExceptionName = NSString; class NSSimpleCString extends NSString { NSSimpleCString._(ffi.Pointer id, NativeCupertinoHttp lib, @@ -83070,24 +87305,253 @@ class NSSimpleCString extends NSString { obj._lib._class_NSSimpleCString1); } + @override + NSSimpleCString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + static ffi.Pointer getAvailableStringEncodings( NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( + return _lib._objc_msgSend_255( _lib._class_NSSimpleCString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { + NativeCupertinoHttp _lib, DartNSUInteger encoding) { final _ret = _lib._objc_msgSend_15(_lib._class_NSSimpleCString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + static DartNSUInteger getDefaultCStringEncoding(NativeCupertinoHttp _lib) { return _lib._objc_msgSend_12( _lib._class_NSSimpleCString1, _lib._sel_defaultCStringEncoding1); } + @override + NSSimpleCString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, DartNSUInteger length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_267( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSSimpleCString._(_ret, _lib, retain: false, release: true); + } + + @override + NSSimpleCString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + DartNSUInteger len, + ObjCBlock_ffiVoid_unichar_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_268( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator?._id ?? ffi.nullptr); + return NSSimpleCString._(_ret, _lib, retain: false, release: true); + } + + @override + NSSimpleCString initWithCharacters_length_( + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_270( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithString_1, aString._id); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithFormat_1, format._id); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString initWithFormat_arguments_(NSString format, va_list argList) { + final _ret = _lib._objc_msgSend_271( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_272(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString initWithFormat_locale_arguments_( + NSString format, NSObject? locale, va_list argList) { + final _ret = _lib._objc_msgSend_273( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format._id, + locale?._id ?? ffi.nullptr, + argList); + return NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_274( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_275( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? + initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + va_list argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_276( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + va_list argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_277( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithData_encoding_( + NSData data, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_278( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithBytes_length_encoding_(ffi.Pointer bytes, + DartNSUInteger len, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_279( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, + DartNSUInteger len, + DartNSUInteger encoding, + bool freeBuffer) { + final _ret = _lib._objc_msgSend_280( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: false, release: true); + } + + @override + NSSimpleCString? initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + DartNSUInteger len, + DartNSUInteger encoding, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_281( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: false, release: true); + } + static NSSimpleCString string(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_string1); @@ -83095,174 +87559,265 @@ class NSSimpleCString extends NSString { } static NSSimpleCString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString string) { + final _ret = _lib._objc_msgSend_42( + _lib._class_NSSimpleCString1, _lib._sel_stringWithString_1, string._id); return NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSSimpleCString1, + static NSSimpleCString stringWithCharacters_length_(NativeCupertinoHttp _lib, + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269(_lib._class_NSSimpleCString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithUTF8String_( + static NSSimpleCString? stringWithUTF8String_( NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSSimpleCString1, + final _ret = _lib._objc_msgSend_270(_lib._class_NSSimpleCString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } static NSSimpleCString stringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString format) { + final _ret = _lib._objc_msgSend_42( + _lib._class_NSSimpleCString1, _lib._sel_stringWithFormat_1, format._id); return NSSimpleCString._(_ret, _lib, retain: true, release: true); } static NSSimpleCString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { + NativeCupertinoHttp _lib, NSString format) { final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + _lib._sel_localizedStringWithFormat_1, format._id); return NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + static NSSimpleCString? + stringWithValidatedFormat_validFormatSpecifiers_error_( + NativeCupertinoHttp _lib, + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_274( _lib._class_NSSimpleCString1, _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString + static NSSimpleCString? localizedStringWithValidatedFormat_validFormatSpecifiers_error_( NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _lib._class_NSSimpleCString1, _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSSimpleCString1, + @override + NSSimpleCString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString? stringWithCString_encoding_(NativeCupertinoHttp _lib, + ffi.Pointer cString, DartNSUInteger enc) { + final _ret = _lib._objc_msgSend_282(_lib._class_NSSimpleCString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithContentsOfURL_encoding_error_( + @override + NSSimpleCString? initWithContentsOfURL_encoding_error_(NSURL url, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_283(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithContentsOfFile_encoding_error_(NSString path, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString? stringWithContentsOfURL_encoding_error_( NativeCupertinoHttp _lib, - NSURL? url, - int enc, + NSURL url, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( + final _ret = _lib._objc_msgSend_283( _lib._class_NSSimpleCString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithContentsOfFile_encoding_error_( + static NSSimpleCString? stringWithContentsOfFile_encoding_error_( NativeCupertinoHttp _lib, - NSString? path, - int enc, + NSString path, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( + final _ret = _lib._objc_msgSend_284( _lib._class_NSSimpleCString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithContentsOfURL_usedEncoding_error_( + @override + NSSimpleCString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_285( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + @override + NSSimpleCString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_286( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); + } + + static NSSimpleCString? stringWithContentsOfURL_usedEncoding_error_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( + final _ret = _lib._objc_msgSend_285( _lib._class_NSSimpleCString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static NSSimpleCString stringWithContentsOfFile_usedEncoding_error_( + static NSSimpleCString? stringWithContentsOfFile_usedEncoding_error_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_286( _lib._class_NSSimpleCString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSSimpleCString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSSimpleCString._(_ret, _lib, retain: true, release: true); } - static int + static DartNSUInteger stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( NativeCupertinoHttp _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( + return _lib._objc_msgSend_287( _lib._class_NSSimpleCString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); } - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSSimpleCString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226(_lib._class_NSSimpleCString1, + _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSSimpleCString1, + static NSObject? stringWithCString_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_282(_lib._class_NSSimpleCString1, _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_( NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( + final _ret = _lib._objc_msgSend_270( _lib._class_NSSimpleCString1, _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 NSSimpleCString new1(NativeCupertinoHttp _lib) { @@ -83271,6 +87826,13 @@ class NSSimpleCString extends NSString { return NSSimpleCString._(_ret, _lib, retain: false, release: true); } + static NSSimpleCString allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSSimpleCString1, _lib._sel_allocWithZone_1, zone); + return NSSimpleCString._(_ret, _lib, retain: false, release: true); + } + static NSSimpleCString alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSSimpleCString1, _lib._sel_alloc1); @@ -83302,24 +87864,253 @@ class NSConstantString extends NSSimpleCString { obj._lib._class_NSConstantString1); } + @override + NSConstantString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + static ffi.Pointer getAvailableStringEncodings( NativeCupertinoHttp _lib) { - return _lib._objc_msgSend_242( + return _lib._objc_msgSend_255( _lib._class_NSConstantString1, _lib._sel_availableStringEncodings1); } static NSString localizedNameOfStringEncoding_( - NativeCupertinoHttp _lib, int encoding) { + NativeCupertinoHttp _lib, DartNSUInteger encoding) { final _ret = _lib._objc_msgSend_15(_lib._class_NSConstantString1, _lib._sel_localizedNameOfStringEncoding_1, encoding); return NSString._(_ret, _lib, retain: true, release: true); } - static int getDefaultCStringEncoding(NativeCupertinoHttp _lib) { + static DartNSUInteger getDefaultCStringEncoding(NativeCupertinoHttp _lib) { return _lib._objc_msgSend_12( _lib._class_NSConstantString1, _lib._sel_defaultCStringEncoding1); } + @override + NSConstantString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, DartNSUInteger length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_267( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSConstantString._(_ret, _lib, retain: false, release: true); + } + + @override + NSConstantString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + DartNSUInteger len, + ObjCBlock_ffiVoid_unichar_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_268( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator?._id ?? ffi.nullptr); + return NSConstantString._(_ret, _lib, retain: false, release: true); + } + + @override + NSConstantString initWithCharacters_length_( + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_270( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString initWithString_(NSString aString) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithString_1, aString._id); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString initWithFormat_(NSString format) { + final _ret = + _lib._objc_msgSend_42(_id, _lib._sel_initWithFormat_1, format._id); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString initWithFormat_arguments_(NSString format, va_list argList) { + final _ret = _lib._objc_msgSend_271( + _id, _lib._sel_initWithFormat_arguments_1, format._id, argList); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString initWithFormat_locale_(NSString format, NSObject? locale) { + final _ret = _lib._objc_msgSend_272(_id, _lib._sel_initWithFormat_locale_1, + format._id, locale?._id ?? ffi.nullptr); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString initWithFormat_locale_arguments_( + NSString format, NSObject? locale, va_list argList) { + final _ret = _lib._objc_msgSend_273( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format._id, + locale?._id ?? ffi.nullptr, + argList); + return NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_274( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format._id, + validFormatSpecifiers._id, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_275( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? + initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + va_list argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_276( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format._id, + validFormatSpecifiers._id, + argList, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString format, + NSString validFormatSpecifiers, + NSObject? locale, + va_list argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_277( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format._id, + validFormatSpecifiers._id, + locale?._id ?? ffi.nullptr, + argList, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithData_encoding_( + NSData data, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_278( + _id, _lib._sel_initWithData_encoding_1, data._id, encoding); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithBytes_length_encoding_(ffi.Pointer bytes, + DartNSUInteger len, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_279( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, + DartNSUInteger len, + DartNSUInteger encoding, + bool freeBuffer) { + final _ret = _lib._objc_msgSend_280( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: false, release: true); + } + + @override + NSConstantString? initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + DartNSUInteger len, + DartNSUInteger encoding, + ObjCBlock_ffiVoid_ffiVoid_NSUInteger? deallocator) { + final _ret = _lib._objc_msgSend_281( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: false, release: true); + } + static NSConstantString string(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_string1); @@ -83327,175 +88118,265 @@ class NSConstantString extends NSSimpleCString { } static NSConstantString stringWithString_( - NativeCupertinoHttp _lib, NSString? string) { + NativeCupertinoHttp _lib, NSString string) { final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + _lib._sel_stringWithString_1, string._id); return NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithCharacters_length_( - NativeCupertinoHttp _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_255(_lib._class_NSConstantString1, + static NSConstantString stringWithCharacters_length_(NativeCupertinoHttp _lib, + ffi.Pointer characters, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_269(_lib._class_NSConstantString1, _lib._sel_stringWithCharacters_length_1, characters, length); return NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithUTF8String_( + static NSConstantString? stringWithUTF8String_( NativeCupertinoHttp _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_256(_lib._class_NSConstantString1, + final _ret = _lib._objc_msgSend_270(_lib._class_NSConstantString1, _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } static NSConstantString stringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { + NativeCupertinoHttp _lib, NSString format) { final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + _lib._sel_stringWithFormat_1, format._id); return NSConstantString._(_ret, _lib, retain: true, release: true); } static NSConstantString localizedStringWithFormat_( - NativeCupertinoHttp _lib, NSString? format) { + NativeCupertinoHttp _lib, NSString format) { final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + _lib._sel_localizedStringWithFormat_1, format._id); return NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString + static NSConstantString? stringWithValidatedFormat_validFormatSpecifiers_error_( NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _lib._class_NSConstantString1, _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString + static NSConstantString? localizedStringWithValidatedFormat_validFormatSpecifiers_error_( NativeCupertinoHttp _lib, - NSString? format, - NSString? validFormatSpecifiers, + NSString format, + NSString validFormatSpecifiers, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_260( + final _ret = _lib._objc_msgSend_274( _lib._class_NSConstantString1, _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, + format._id, + validFormatSpecifiers._id, error); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, DartNSUInteger encoding) { + final _ret = _lib._objc_msgSend_282(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithCString_encoding_( - NativeCupertinoHttp _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSConstantString1, + static NSConstantString? stringWithCString_encoding_(NativeCupertinoHttp _lib, + ffi.Pointer cString, DartNSUInteger enc) { + final _ret = _lib._objc_msgSend_282(_lib._class_NSConstantString1, _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithContentsOfURL_encoding_error_( + @override + NSConstantString? initWithContentsOfURL_encoding_error_(NSURL url, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_283(_id, + _lib._sel_initWithContentsOfURL_encoding_error_1, url._id, enc, error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithContentsOfFile_encoding_error_(NSString path, + DartNSUInteger enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_284( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString? stringWithContentsOfURL_encoding_error_( NativeCupertinoHttp _lib, - NSURL? url, - int enc, + NSURL url, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_269( + final _ret = _lib._objc_msgSend_283( _lib._class_NSConstantString1, _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithContentsOfFile_encoding_error_( + static NSConstantString? stringWithContentsOfFile_encoding_error_( NativeCupertinoHttp _lib, - NSString? path, - int enc, + NSString path, + DartNSUInteger enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_270( + final _ret = _lib._objc_msgSend_284( _lib._class_NSConstantString1, _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithContentsOfURL_usedEncoding_error_( + @override + NSConstantString? initWithContentsOfURL_usedEncoding_error_( + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_285( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url._id, + enc, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + @override + NSConstantString? initWithContentsOfFile_usedEncoding_error_( + NSString path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_286( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path._id, + enc, + error); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); + } + + static NSConstantString? stringWithContentsOfURL_usedEncoding_error_( NativeCupertinoHttp _lib, - NSURL? url, + NSURL url, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_271( + final _ret = _lib._objc_msgSend_285( _lib._class_NSConstantString1, _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, + url._id, enc, error); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static NSConstantString stringWithContentsOfFile_usedEncoding_error_( + static NSConstantString? stringWithContentsOfFile_usedEncoding_error_( NativeCupertinoHttp _lib, - NSString? path, + NSString path, ffi.Pointer enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_272( + final _ret = _lib._objc_msgSend_286( _lib._class_NSConstantString1, _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, + path._id, enc, error); - return NSConstantString._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSConstantString._(_ret, _lib, retain: true, release: true); } - static int + static DartNSUInteger stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( NativeCupertinoHttp _lib, - NSData? data, + NSData data, NSDictionary? opts, ffi.Pointer> string, ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_273( + return _lib._objc_msgSend_287( _lib._class_NSConstantString1, _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, + data._id, opts?._id ?? ffi.nullptr, string, usedLossyConversion); } - static NSObject stringWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfFile_1, path._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201(_lib._class_NSConstantString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject? stringWithContentsOfURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226(_lib._class_NSConstantString1, + _lib._sel_stringWithContentsOfURL_1, url._id); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_length_( - NativeCupertinoHttp _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_268(_lib._class_NSConstantString1, + static NSObject? stringWithCString_length_(NativeCupertinoHttp _lib, + ffi.Pointer bytes, DartNSUInteger length) { + final _ret = _lib._objc_msgSend_282(_lib._class_NSConstantString1, _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_( NativeCupertinoHttp _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_256( + final _ret = _lib._objc_msgSend_270( _lib._class_NSConstantString1, _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 NSConstantString new1(NativeCupertinoHttp _lib) { @@ -83504,6 +88385,13 @@ class NSConstantString extends NSSimpleCString { return NSConstantString._(_ret, _lib, retain: false, release: true); } + static NSConstantString allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSConstantString1, _lib._sel_allocWithZone_1, zone); + return NSConstantString._(_ret, _lib, retain: false, release: true); + } + static NSConstantString alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSConstantString1, _lib._sel_alloc1); @@ -83537,255 +88425,219 @@ class NSMutableCharacterSet extends NSCharacterSet { } void addCharactersInRange_(NSRange aRange) { - return _lib._objc_msgSend_287( - _id, _lib._sel_addCharactersInRange_1, aRange); + _lib._objc_msgSend_304(_id, _lib._sel_addCharactersInRange_1, aRange); } void removeCharactersInRange_(NSRange aRange) { - return _lib._objc_msgSend_287( - _id, _lib._sel_removeCharactersInRange_1, aRange); + _lib._objc_msgSend_304(_id, _lib._sel_removeCharactersInRange_1, aRange); } - void addCharactersInString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_addCharactersInString_1, aString?._id ?? ffi.nullptr); + void addCharactersInString_(NSString aString) { + _lib._objc_msgSend_195(_id, _lib._sel_addCharactersInString_1, aString._id); } - void removeCharactersInString_(NSString? aString) { - return _lib._objc_msgSend_188( - _id, _lib._sel_removeCharactersInString_1, aString?._id ?? ffi.nullptr); + void removeCharactersInString_(NSString aString) { + _lib._objc_msgSend_195( + _id, _lib._sel_removeCharactersInString_1, aString._id); } - void formUnionWithCharacterSet_(NSCharacterSet? otherSet) { - return _lib._objc_msgSend_478(_id, _lib._sel_formUnionWithCharacterSet_1, - otherSet?._id ?? ffi.nullptr); + void formUnionWithCharacterSet_(NSCharacterSet otherSet) { + _lib._objc_msgSend_514( + _id, _lib._sel_formUnionWithCharacterSet_1, otherSet._id); } - void formIntersectionWithCharacterSet_(NSCharacterSet? otherSet) { - return _lib._objc_msgSend_478( - _id, - _lib._sel_formIntersectionWithCharacterSet_1, - otherSet?._id ?? ffi.nullptr); + void formIntersectionWithCharacterSet_(NSCharacterSet otherSet) { + _lib._objc_msgSend_514( + _id, _lib._sel_formIntersectionWithCharacterSet_1, otherSet._id); } void invert() { - return _lib._objc_msgSend_1(_id, _lib._sel_invert1); + _lib._objc_msgSend_1(_id, _lib._sel_invert1); } - static NSCharacterSet? getControlCharacterSet(NativeCupertinoHttp _lib) { + static NSCharacterSet getControlCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getWhitespaceCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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( + static NSCharacterSet getWhitespaceAndNewlineCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getDecimalDigitCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getLetterCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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( + static NSCharacterSet getLowercaseLetterCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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( + static NSCharacterSet getUppercaseLetterCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getNonBaseCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getAlphanumericCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getDecomposableCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getIllegalCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getPunctuationCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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( + static NSCharacterSet getCapitalizedLetterCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getSymbolCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _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(NativeCupertinoHttp _lib) { + static NSCharacterSet getNewlineCharacterSet(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28( _lib._class_NSMutableCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); } static NSMutableCharacterSet characterSetWithRange_( NativeCupertinoHttp _lib, NSRange aRange) { - final _ret = _lib._objc_msgSend_479(_lib._class_NSMutableCharacterSet1, + final _ret = _lib._objc_msgSend_515(_lib._class_NSMutableCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); } static NSMutableCharacterSet characterSetWithCharactersInString_( - NativeCupertinoHttp _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_480( - _lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSString aString) { + final _ret = _lib._objc_msgSend_516(_lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, aString._id); return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); } static NSMutableCharacterSet characterSetWithBitmapRepresentation_( - NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_481( - _lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_517(_lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, data._id); return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSMutableCharacterSet characterSetWithContentsOfFile_( - NativeCupertinoHttp _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_480(_lib._class_NSMutableCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); + static NSMutableCharacterSet? characterSetWithContentsOfFile_( + NativeCupertinoHttp _lib, NSString fName) { + final _ret = _lib._objc_msgSend_518(_lib._class_NSMutableCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName._id); + return _ret.address == 0 + ? null + : NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableCharacterSet initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_236(_id, _lib._sel_initWithCoder_1, coder._id); return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); } /// Returns a character set containing the characters allowed in a URL's user subcomponent. - static NSCharacterSet? getURLUserAllowedCharacterSet( + static NSCharacterSet getURLUserAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } /// Returns a character set containing the characters allowed in a URL's password subcomponent. - static NSCharacterSet? getURLPasswordAllowedCharacterSet( + static NSCharacterSet getURLPasswordAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } /// Returns a character set containing the characters allowed in a URL's host subcomponent. - static NSCharacterSet? getURLHostAllowedCharacterSet( + static NSCharacterSet getURLHostAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } /// Returns a character set containing the characters allowed in a URL's path component. ';' is a legal path character, but it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). - static NSCharacterSet? getURLPathAllowedCharacterSet( + static NSCharacterSet getURLPathAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } /// Returns a character set containing the characters allowed in a URL's query component. - static NSCharacterSet? getURLQueryAllowedCharacterSet( + static NSCharacterSet getURLQueryAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); } /// Returns a character set containing the characters allowed in a URL's fragment component. - static NSCharacterSet? getURLFragmentAllowedCharacterSet( + static NSCharacterSet getURLFragmentAllowedCharacterSet( NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_28(_lib._class_NSMutableCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableCharacterSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableCharacterSet._(_ret, _lib, retain: true, release: true); } static NSMutableCharacterSet new1(NativeCupertinoHttp _lib) { @@ -83794,6 +88646,13 @@ class NSMutableCharacterSet extends NSCharacterSet { return NSMutableCharacterSet._(_ret, _lib, retain: false, release: true); } + static NSMutableCharacterSet allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableCharacterSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableCharacterSet._(_ret, _lib, retain: false, release: true); + } + static NSMutableCharacterSet alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableCharacterSet1, _lib._sel_alloc1); @@ -83802,11 +88661,17 @@ class NSMutableCharacterSet extends NSCharacterSet { } typedef NSURLFileResourceType = ffi.Pointer; +typedef DartNSURLFileResourceType = NSString; typedef NSURLThumbnailDictionaryItem = ffi.Pointer; +typedef DartNSURLThumbnailDictionaryItem = NSString; typedef NSURLFileProtectionType = ffi.Pointer; +typedef DartNSURLFileProtectionType = NSString; typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; +typedef DartNSURLUbiquitousItemDownloadingStatus = NSString; typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; +typedef DartNSURLUbiquitousSharedItemRole = NSString; typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; +typedef DartNSURLUbiquitousSharedItemPermissions = NSString; /// NSURLQueryItem encapsulates a single query name-value pair. The name and value strings of a query name-value pair are not percent encoded. For use with the NSURLComponents queryItems property. class NSURLQueryItem extends NSObject { @@ -83832,42 +88697,53 @@ class NSURLQueryItem extends NSObject { obj._lib._class_NSURLQueryItem1); } - NSURLQueryItem initWithName_value_(NSString? name, NSString? value) { - final _ret = _lib._objc_msgSend_482(_id, _lib._sel_initWithName_value_1, - name?._id ?? ffi.nullptr, value?._id ?? ffi.nullptr); + NSURLQueryItem initWithName_value_(NSString name, NSString? value) { + final _ret = _lib._objc_msgSend_519(_id, _lib._sel_initWithName_value_1, + name._id, value?._id ?? ffi.nullptr); return NSURLQueryItem._(_ret, _lib, retain: true, release: true); } static NSURLQueryItem queryItemWithName_value_( - NativeCupertinoHttp _lib, NSString? name, NSString? value) { - final _ret = _lib._objc_msgSend_482( + NativeCupertinoHttp _lib, NSString name, NSString? value) { + final _ret = _lib._objc_msgSend_519( _lib._class_NSURLQueryItem1, _lib._sel_queryItemWithName_value_1, - name?._id ?? ffi.nullptr, + name._id, value?._id ?? ffi.nullptr); return NSURLQueryItem._(_ret, _lib, retain: true, release: true); } - NSString? get name { + NSString get name { final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get value { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_value1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_value1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } + @override + NSURLQueryItem init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLQueryItem._(_ret, _lib, retain: true, release: true); + } + static NSURLQueryItem new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLQueryItem1, _lib._sel_new1); return NSURLQueryItem._(_ret, _lib, retain: false, release: true); } + static NSURLQueryItem allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLQueryItem1, _lib._sel_allocWithZone_1, zone); + return NSURLQueryItem._(_ret, _lib, retain: false, release: true); + } + static NSURLQueryItem alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLQueryItem1, _lib._sel_alloc1); @@ -83907,60 +88783,109 @@ class NSURLComponents extends NSObject { } /// Initialize a NSURLComponents with the components of a URL. If resolvingAgainstBaseURL is YES and url is a relative URL, the components of [url absoluteURL] are used. If the url string from the NSURL is malformed, nil is returned. - NSURLComponents initWithURL_resolvingAgainstBaseURL_( - NSURL? url, bool resolve) { - final _ret = _lib._objc_msgSend_206( - _id, - _lib._sel_initWithURL_resolvingAgainstBaseURL_1, - url?._id ?? ffi.nullptr, - resolve); - return NSURLComponents._(_ret, _lib, retain: true, release: true); + NSURLComponents? initWithURL_resolvingAgainstBaseURL_( + NSURL url, bool resolve) { + final _ret = _lib._objc_msgSend_356( + _id, _lib._sel_initWithURL_resolvingAgainstBaseURL_1, url._id, resolve); + return _ret.address == 0 + ? null + : NSURLComponents._(_ret, _lib, retain: true, release: true); } /// Initializes and returns a newly created NSURLComponents with the components of a URL. If resolvingAgainstBaseURL is YES and url is a relative URL, the components of [url absoluteURL] are used. If the url string from the NSURL is malformed, nil is returned. - static NSURLComponents componentsWithURL_resolvingAgainstBaseURL_( - NativeCupertinoHttp _lib, NSURL? url, bool resolve) { - final _ret = _lib._objc_msgSend_206( + static NSURLComponents? componentsWithURL_resolvingAgainstBaseURL_( + NativeCupertinoHttp _lib, NSURL url, bool resolve) { + final _ret = _lib._objc_msgSend_356( _lib._class_NSURLComponents1, _lib._sel_componentsWithURL_resolvingAgainstBaseURL_1, - url?._id ?? ffi.nullptr, + url._id, resolve); - return NSURLComponents._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURLComponents._(_ret, _lib, retain: true, release: true); } /// Initialize a NSURLComponents with a URL string. If the URLString is malformed, nil is returned. - NSURLComponents initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURLComponents._(_ret, _lib, retain: true, release: true); + NSURLComponents? initWithString_(NSString URLString) { + final _ret = + _lib._objc_msgSend_49(_id, _lib._sel_initWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURLComponents._(_ret, _lib, retain: true, release: true); } /// Initializes and returns a newly created NSURLComponents with a URL string. If the URLString is malformed, nil is returned. - static NSURLComponents componentsWithString_( - NativeCupertinoHttp _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_42(_lib._class_NSURLComponents1, - _lib._sel_componentsWithString_1, URLString?._id ?? ffi.nullptr); - return NSURLComponents._(_ret, _lib, retain: true, release: true); + static NSURLComponents? componentsWithString_( + NativeCupertinoHttp _lib, NSString URLString) { + final _ret = _lib._objc_msgSend_49(_lib._class_NSURLComponents1, + _lib._sel_componentsWithString_1, URLString._id); + return _ret.address == 0 + ? null + : NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Initializes an `NSURLComponents` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. + /// If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. + /// If `encodingInvalidCharacters` is true, `NSURLComponents` will try to encode the string to create a valid URL. + /// If the URL string is still invalid after encoding, `nil` is returned. + /// + /// - Parameter URLString: The URL string. + /// - Parameter encodingInvalidCharacters: True if `NSURLComponents` should try to encode an invalid URL string, false otherwise. + /// - Returns: An `NSURLComponents` instance for a valid URL, or `nil` if the URL is invalid. + NSURLComponents? initWithString_encodingInvalidCharacters_( + NSString URLString, bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_51( + _id, + _lib._sel_initWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURLComponents._(_ret, _lib, retain: true, release: true); + } + + /// Initializes and returns a newly created `NSURLComponents` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. + /// If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. + /// If `encodingInvalidCharacters` is true, `NSURLComponents` will try to encode the string to create a valid URL. + /// If the URL string is still invalid after encoding, nil is returned. + /// + /// - Parameter URLString: The URL string. + /// - Parameter encodingInvalidCharacters: True if `NSURLComponents` should try to encode an invalid URL string, false otherwise. + /// - Returns: An `NSURLComponents` instance for a valid URL, or `nil` if the URL is invalid. + static NSURLComponents? componentsWithString_encodingInvalidCharacters_( + NativeCupertinoHttp _lib, + NSString URLString, + bool encodingInvalidCharacters) { + final _ret = _lib._objc_msgSend_51( + _lib._class_NSURLComponents1, + _lib._sel_componentsWithString_encodingInvalidCharacters_1, + URLString._id, + encodingInvalidCharacters); + return _ret.address == 0 + ? null + : NSURLComponents._(_ret, _lib, retain: true, release: true); } /// Returns a URL created from the NSURLComponents. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. NSURL? get URL { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_URL1); + final _ret = _lib._objc_msgSend_56(_id, _lib._sel_URL1); return _ret.address == 0 ? null : NSURL._(_ret, _lib, retain: true, release: true); } /// Returns a URL created from the NSURLComponents relative to a base URL. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. - NSURL URLRelativeToURL_(NSURL? baseURL) { - final _ret = _lib._objc_msgSend_483( + NSURL? URLRelativeToURL_(NSURL? baseURL) { + final _ret = _lib._objc_msgSend_520( _id, _lib._sel_URLRelativeToURL_1, baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } /// Returns a URL string created from the NSURLComponents. If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with "/" or be an empty string. If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with "//". If those requirements are not met, nil is returned. NSString? get string { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_string1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_string1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -83968,7 +88893,7 @@ class NSURLComponents extends NSObject { /// Attempting to set the scheme with an invalid scheme string will cause an exception. NSString? get scheme { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_scheme1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_scheme1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -83976,47 +88901,49 @@ class NSURLComponents extends NSObject { /// Attempting to set the scheme with an invalid scheme string will cause an exception. set scheme(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setScheme_1, value?._id ?? ffi.nullptr); } NSString? get user { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_user1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_user1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set user(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setUser_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_395( + _id, _lib._sel_setUser_1, value?._id ?? ffi.nullptr); } NSString? get password { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_password1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_password1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set password(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPassword_1, value?._id ?? ffi.nullptr); } NSString? get host { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_host1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_host1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set host(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setHost_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_395( + _id, _lib._sel_setHost_1, value?._id ?? ffi.nullptr); } /// Attempting to set a negative port number will cause an exception. NSNumber? get port { - final _ret = _lib._objc_msgSend_89(_id, _lib._sel_port1); + final _ret = _lib._objc_msgSend_94(_id, _lib._sel_port1); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); @@ -84024,47 +88951,49 @@ class NSURLComponents extends NSObject { /// Attempting to set a negative port number will cause an exception. set port(NSNumber? value) { - _lib._objc_msgSend_364(_id, _lib._sel_setPort_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_389( + _id, _lib._sel_setPort_1, value?._id ?? ffi.nullptr); } NSString? get path { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_path1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_path1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set path(NSString? value) { - _lib._objc_msgSend_360(_id, _lib._sel_setPath_1, value?._id ?? ffi.nullptr); + return _lib._objc_msgSend_395( + _id, _lib._sel_setPath_1, value?._id ?? ffi.nullptr); } NSString? get query { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_query1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_query1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set query(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setQuery_1, value?._id ?? ffi.nullptr); } NSString? get fragment { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_fragment1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_fragment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set fragment(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setFragment_1, value?._id ?? ffi.nullptr); } /// Getting these properties retains any percent encoding these components may have. Setting these properties assumes the component string is already correctly percent encoded. Attempting to set an incorrectly percent encoded string will cause an exception. Although ';' is a legal path character, it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). NSString? get percentEncodedUser { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedUser1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_percentEncodedUser1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -84072,113 +89001,113 @@ class NSURLComponents extends NSObject { /// Getting these properties retains any percent encoding these components may have. Setting these properties assumes the component string is already correctly percent encoded. Attempting to set an incorrectly percent encoded string will cause an exception. Although ';' is a legal path character, it is recommended that it be percent-encoded for best compatibility with NSURL (-stringByAddingPercentEncodingWithAllowedCharacters: will percent-encode any ';' characters if you pass the URLPathAllowedCharacterSet). set percentEncodedUser(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPercentEncodedUser_1, value?._id ?? ffi.nullptr); } NSString? get percentEncodedPassword { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedPassword1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_percentEncodedPassword1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set percentEncodedPassword(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPercentEncodedPassword_1, value?._id ?? ffi.nullptr); } NSString? get percentEncodedHost { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedHost1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_percentEncodedHost1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set percentEncodedHost(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPercentEncodedHost_1, value?._id ?? ffi.nullptr); } NSString? get percentEncodedPath { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedPath1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_percentEncodedPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set percentEncodedPath(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPercentEncodedPath_1, value?._id ?? ffi.nullptr); } NSString? get percentEncodedQuery { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedQuery1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_percentEncodedQuery1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set percentEncodedQuery(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPercentEncodedQuery_1, value?._id ?? ffi.nullptr); } NSString? get percentEncodedFragment { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_percentEncodedFragment1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_percentEncodedFragment1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set percentEncodedFragment(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setPercentEncodedFragment_1, value?._id ?? ffi.nullptr); } NSString? get encodedHost { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_encodedHost1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_encodedHost1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set encodedHost(NSString? value) { - _lib._objc_msgSend_360( + return _lib._objc_msgSend_395( _id, _lib._sel_setEncodedHost_1, value?._id ?? ffi.nullptr); } /// These properties return the character range of a component in the URL string returned by -[NSURLComponents string]. If the component does not exist in the NSURLComponents object, {NSNotFound, 0} is returned. Note: Zero length components are legal. For example, the URL string "scheme://:@/?#" has a zero length user, password, host, query and fragment; the URL strings "scheme:" and "" both have a zero length path. NSRange get rangeOfScheme { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfScheme1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfScheme1); } NSRange get rangeOfUser { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfUser1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfUser1); } NSRange get rangeOfPassword { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPassword1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfPassword1); } NSRange get rangeOfHost { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfHost1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfHost1); } NSRange get rangeOfPort { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPort1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfPort1); } NSRange get rangeOfPath { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfPath1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfPath1); } NSRange get rangeOfQuery { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfQuery1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfQuery1); } NSRange get rangeOfFragment { - return _lib._objc_msgSend_61(_id, _lib._sel_rangeOfFragment1); + return _lib._objc_msgSend_66(_id, _lib._sel_rangeOfFragment1); } /// The query component as an array of NSURLQueryItems for this NSURLComponents. @@ -84193,7 +89122,7 @@ class NSURLComponents extends NSObject { /// /// - note: If a NSURLQueryItem name-value pair is empty (i.e. the query string starts with '&', ends with '&', or has "&&" within it), you get a NSURLQueryItem with a zero-length name and a nil value. If a NSURLQueryItem name-value pair has nothing before the equals sign, you get a zero-length name. If a NSURLQueryItem name-value pair has nothing after the equals sign, you get a zero-length value. If a NSURLQueryItem name-value pair has no equals sign, the NSURLQueryItem name-value pair string is the name and you get a nil value. NSArray? get queryItems { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_queryItems1); + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_queryItems1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -84211,7 +89140,7 @@ class NSURLComponents extends NSObject { /// /// - note: If a NSURLQueryItem name-value pair is empty (i.e. the query string starts with '&', ends with '&', or has "&&" within it), you get a NSURLQueryItem with a zero-length name and a nil value. If a NSURLQueryItem name-value pair has nothing before the equals sign, you get a zero-length name. If a NSURLQueryItem name-value pair has nothing after the equals sign, you get a zero-length value. If a NSURLQueryItem name-value pair has no equals sign, the NSURLQueryItem name-value pair string is the name and you get a nil value. set queryItems(NSArray? value) { - _lib._objc_msgSend_418( + return _lib._objc_msgSend_451( _id, _lib._sel_setQueryItems_1, value?._id ?? ffi.nullptr); } @@ -84220,7 +89149,7 @@ class NSURLComponents extends NSObject { /// The percentEncodedQueryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. This property assumes the NSURLQueryItem names and values are already correctly percent-encoded, and that the NSURLQueryItem names do not contain the query item delimiter characters '&' and '='. Attempting to set an incorrectly percent-encoded NSURLQueryItem or a NSURLQueryItem name with the query item delimiter characters '&' and '=' will cause an exception. NSArray? get percentEncodedQueryItems { final _ret = - _lib._objc_msgSend_162(_id, _lib._sel_percentEncodedQueryItems1); + _lib._objc_msgSend_188(_id, _lib._sel_percentEncodedQueryItems1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -84230,7 +89159,7 @@ class NSURLComponents extends NSObject { /// /// The percentEncodedQueryItems setter combines an array containing any number of NSURLQueryItems, each of which represents a single key-value pair, into a query string and sets the NSURLComponents query property. This property assumes the NSURLQueryItem names and values are already correctly percent-encoded, and that the NSURLQueryItem names do not contain the query item delimiter characters '&' and '='. Attempting to set an incorrectly percent-encoded NSURLQueryItem or a NSURLQueryItem name with the query item delimiter characters '&' and '=' will cause an exception. set percentEncodedQueryItems(NSArray? value) { - _lib._objc_msgSend_418(_id, _lib._sel_setPercentEncodedQueryItems_1, + return _lib._objc_msgSend_451(_id, _lib._sel_setPercentEncodedQueryItems_1, value?._id ?? ffi.nullptr); } @@ -84240,6 +89169,13 @@ class NSURLComponents extends NSObject { return NSURLComponents._(_ret, _lib, retain: false, release: true); } + static NSURLComponents allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLComponents1, _lib._sel_allocWithZone_1, zone); + return NSURLComponents._(_ret, _lib, retain: false, release: true); + } + static NSURLComponents alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLComponents1, _lib._sel_alloc1); @@ -84271,9 +89207,17 @@ class NSFileSecurity extends NSObject { obj._lib._class_NSFileSecurity1); } - NSFileSecurity initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_14( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + NSFileSecurity? initWithCoder_(NSCoder coder) { + final _ret = + _lib._objc_msgSend_14(_id, _lib._sel_initWithCoder_1, coder._id); + return _ret.address == 0 + ? null + : NSFileSecurity._(_ret, _lib, retain: true, release: true); + } + + @override + NSFileSecurity init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSFileSecurity._(_ret, _lib, retain: true, release: true); } @@ -84283,6 +89227,13 @@ class NSFileSecurity extends NSObject { return NSFileSecurity._(_ret, _lib, retain: false, release: true); } + static NSFileSecurity allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFileSecurity1, _lib._sel_allocWithZone_1, zone); + return NSFileSecurity._(_ret, _lib, retain: false, release: true); + } + static NSFileSecurity alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileSecurity1, _lib._sel_alloc1); @@ -84330,23 +89281,28 @@ class NSHTTPURLResponse extends NSURLResponse { /// @param headerFields A dictionary representing the header keys and values of the server response. /// @result the instance of the object, or NULL if an error occurred during initialization. /// @discussion This API was introduced in Mac OS X 10.7.2 and iOS 5.0 and is not available prior to those releases. - NSHTTPURLResponse initWithURL_statusCode_HTTPVersion_headerFields_(NSURL? url, - int statusCode, NSString? HTTPVersion, NSDictionary? headerFields) { - final _ret = _lib._objc_msgSend_484( + NSHTTPURLResponse? initWithURL_statusCode_HTTPVersion_headerFields_( + NSURL url, + DartNSInteger statusCode, + NSString? HTTPVersion, + NSDictionary? headerFields) { + final _ret = _lib._objc_msgSend_521( _id, _lib._sel_initWithURL_statusCode_HTTPVersion_headerFields_1, - url?._id ?? ffi.nullptr, + url._id, statusCode, HTTPVersion?._id ?? ffi.nullptr, headerFields?._id ?? ffi.nullptr); - return NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); + return _ret.address == 0 + ? null + : NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); } /// ! /// @abstract Returns the HTTP status code of the receiver. /// @result The HTTP status code of the receiver. - int get statusCode { - return _lib._objc_msgSend_81(_id, _lib._sel_statusCode1); + DartNSInteger get statusCode { + return _lib._objc_msgSend_86(_id, _lib._sel_statusCode1); } /// ! @@ -84358,11 +89314,9 @@ class NSHTTPURLResponse extends NSURLResponse { /// sophisticated or special-purpose HTTP clients. /// @result A dictionary containing all the HTTP header fields of the /// receiver. - NSDictionary? get allHeaderFields { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_allHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSDictionary get allHeaderFields { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_allHeaderFields1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } /// ! @@ -84374,10 +89328,12 @@ class NSHTTPURLResponse extends NSURLResponse { /// (case-insensitive). /// @result the value associated with the given header field, or nil if /// there is no value associated with the given header field. - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_98( - _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_347( + _id, _lib._sel_valueForHTTPHeaderField_1, field._id); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } /// ! @@ -84387,18 +89343,54 @@ class NSHTTPURLResponse extends NSURLResponse { /// @param statusCode the status code to use to produce a localized string. /// @result A localized string corresponding to the given status code. static NSString localizedStringForStatusCode_( - NativeCupertinoHttp _lib, int statusCode) { - final _ret = _lib._objc_msgSend_485(_lib._class_NSHTTPURLResponse1, + NativeCupertinoHttp _lib, DartNSInteger statusCode) { + final _ret = _lib._objc_msgSend_522(_lib._class_NSHTTPURLResponse1, _lib._sel_localizedStringForStatusCode_1, statusCode); return NSString._(_ret, _lib, retain: true, release: true); } + /// ! + /// @method initWithURL:MIMEType:expectedContentLength:textEncodingName: + /// @abstract Initialize an NSURLResponse with the provided values. + /// @param URL the URL + /// @param MIMEType the MIME content type of the response + /// @param length the expected content length of the associated data + /// @param name the name of the text encoding for the associated data, if applicable, else nil + /// @result The initialized NSURLResponse. + /// @discussion This is the designated initializer for NSURLResponse. + @override + NSHTTPURLResponse + initWithURL_MIMEType_expectedContentLength_textEncodingName_( + NSURL URL, NSString? MIMEType, DartNSInteger length, NSString? name) { + final _ret = _lib._objc_msgSend_334( + _id, + _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, + URL._id, + MIMEType?._id ?? ffi.nullptr, + length, + name?._id ?? ffi.nullptr); + return NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); + } + + @override + NSHTTPURLResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); + } + static NSHTTPURLResponse new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHTTPURLResponse1, _lib._sel_new1); return NSHTTPURLResponse._(_ret, _lib, retain: false, release: true); } + static NSHTTPURLResponse allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSHTTPURLResponse._(_ret, _lib, retain: false, release: true); + } + static NSHTTPURLResponse alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHTTPURLResponse1, _lib._sel_alloc1); @@ -84431,80 +89423,79 @@ class NSException extends NSObject { static NSException exceptionWithName_reason_userInfo_( NativeCupertinoHttp _lib, - NSExceptionName name, + DartNSExceptionName name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_486( + final _ret = _lib._objc_msgSend_523( _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_487( + DartNSExceptionName aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_524( _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_32(_id, _lib._sel_name1); + DartNSExceptionName get name { + final _ret = _lib._objc_msgSend_32(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); } NSString? get reason { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_reason1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_reason1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_180(_id, _lib._sel_userInfo1); + final _ret = _lib._objc_msgSend_288(_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_162(_id, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_169(_id, _lib._sel_callStackReturnAddresses1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get callStackSymbols { + final _ret = _lib._objc_msgSend_169(_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_( - NativeCupertinoHttp _lib, NSExceptionName name, NSString? format) { - return _lib._objc_msgSend_397(_lib._class_NSException1, - _lib._sel_raise_format_1, name, format?._id ?? ffi.nullptr); + NativeCupertinoHttp _lib, DartNSExceptionName name, NSString format) { + _lib._objc_msgSend_427(_lib._class_NSException1, _lib._sel_raise_format_1, + name._id, format._id); } static void raise_format_arguments_(NativeCupertinoHttp _lib, - NSExceptionName name, NSString? format, va_list argList) { - return _lib._objc_msgSend_488( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name, - format?._id ?? ffi.nullptr, - argList); + DartNSExceptionName name, NSString format, va_list argList) { + _lib._objc_msgSend_525(_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(NativeCupertinoHttp _lib) { @@ -84512,6 +89503,13 @@ class NSException extends NSObject { return NSException._(_ret, _lib, retain: false, release: true); } + static NSException allocWithZone_( + NativeCupertinoHttp _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(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); @@ -84546,47 +89544,61 @@ class NSAssertionHandler extends NSObject { obj._lib._class_NSAssertionHandler1); } - static NSAssertionHandler? getCurrentHandler(NativeCupertinoHttp _lib) { - final _ret = _lib._objc_msgSend_489( + static NSAssertionHandler getCurrentHandler(NativeCupertinoHttp _lib) { + final _ret = _lib._objc_msgSend_526( _lib._class_NSAssertionHandler1, _lib._sel_currentHandler1); - return _ret.address == 0 - ? null - : NSAssertionHandler._(_ret, _lib, retain: true, release: true); + return NSAssertionHandler._(_ret, _lib, retain: true, release: true); } void handleFailureInMethod_object_file_lineNumber_description_( ffi.Pointer selector, NSObject object, - NSString? fileName, - int line, + NSString fileName, + DartNSInteger line, NSString? format) { - return _lib._objc_msgSend_490( + _lib._objc_msgSend_527( _id, _lib._sel_handleFailureInMethod_object_file_lineNumber_description_1, selector, object._id, - fileName?._id ?? ffi.nullptr, + fileName._id, line, format?._id ?? ffi.nullptr); } void handleFailureInFunction_file_lineNumber_description_( - NSString? functionName, NSString? fileName, int line, NSString? format) { - return _lib._objc_msgSend_491( + NSString functionName, + NSString fileName, + DartNSInteger line, + NSString? format) { + _lib._objc_msgSend_528( _id, _lib._sel_handleFailureInFunction_file_lineNumber_description_1, - functionName?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr, + functionName._id, + fileName._id, line, format?._id ?? ffi.nullptr); } + @override + NSAssertionHandler init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAssertionHandler._(_ret, _lib, retain: true, release: true); + } + static NSAssertionHandler new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSAssertionHandler1, _lib._sel_new1); return NSAssertionHandler._(_ret, _lib, retain: false, release: true); } + static NSAssertionHandler allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAssertionHandler1, _lib._sel_allocWithZone_1, zone); + return NSAssertionHandler._(_ret, _lib, retain: false, release: true); + } + static NSAssertionHandler alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSAssertionHandler1, _lib._sel_alloc1); @@ -84619,22 +89631,25 @@ class NSBlockOperation extends NSOperation { } static NSBlockOperation blockOperationWithBlock_( - NativeCupertinoHttp _lib, ObjCBlock block) { - final _ret = _lib._objc_msgSend_492(_lib._class_NSBlockOperation1, + NativeCupertinoHttp _lib, ObjCBlock_ffiVoid block) { + final _ret = _lib._objc_msgSend_529(_lib._class_NSBlockOperation1, _lib._sel_blockOperationWithBlock_1, block._id); return NSBlockOperation._(_ret, _lib, retain: true, release: true); } - void addExecutionBlock_(ObjCBlock block) { - return _lib._objc_msgSend_387( - _id, _lib._sel_addExecutionBlock_1, block._id); + void addExecutionBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_415(_id, _lib._sel_addExecutionBlock_1, block._id); } - NSArray? get executionBlocks { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_executionBlocks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSArray get executionBlocks { + final _ret = _lib._objc_msgSend_169(_id, _lib._sel_executionBlocks1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSBlockOperation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSBlockOperation._(_ret, _lib, retain: true, release: true); } static NSBlockOperation new1(NativeCupertinoHttp _lib) { @@ -84643,6 +89658,13 @@ class NSBlockOperation extends NSOperation { return NSBlockOperation._(_ret, _lib, retain: false, release: true); } + static NSBlockOperation allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSBlockOperation1, _lib._sel_allocWithZone_1, zone); + return NSBlockOperation._(_ret, _lib, retain: false, release: true); + } + static NSBlockOperation alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSBlockOperation1, _lib._sel_alloc1); @@ -84675,29 +89697,41 @@ class NSInvocationOperation extends NSOperation { obj._lib._class_NSInvocationOperation1); } - NSInvocationOperation initWithTarget_selector_object_( - NSObject target, ffi.Pointer sel, NSObject arg) { - final _ret = _lib._objc_msgSend_493(_id, - _lib._sel_initWithTarget_selector_object_1, target._id, sel, arg._id); - return NSInvocationOperation._(_ret, _lib, retain: true, release: true); + NSInvocationOperation? initWithTarget_selector_object_( + NSObject target, ffi.Pointer sel, NSObject? arg) { + final _ret = _lib._objc_msgSend_530( + _id, + _lib._sel_initWithTarget_selector_object_1, + target._id, + sel, + arg?._id ?? ffi.nullptr); + return _ret.address == 0 + ? null + : NSInvocationOperation._(_ret, _lib, retain: true, release: true); } - NSInvocationOperation initWithInvocation_(NSInvocation? inv) { - final _ret = _lib._objc_msgSend_494( - _id, _lib._sel_initWithInvocation_1, inv?._id ?? ffi.nullptr); + NSInvocationOperation initWithInvocation_(NSInvocation inv) { + final _ret = + _lib._objc_msgSend_531(_id, _lib._sel_initWithInvocation_1, inv._id); return NSInvocationOperation._(_ret, _lib, retain: true, release: true); } - NSInvocation? get invocation { - final _ret = _lib._objc_msgSend_495(_id, _lib._sel_invocation1); + NSInvocation get invocation { + final _ret = _lib._objc_msgSend_532(_id, _lib._sel_invocation1); + return NSInvocation._(_ret, _lib, retain: true, release: true); + } + + NSObject? get result { + final _ret = _lib._objc_msgSend_61(_id, _lib._sel_result1); return _ret.address == 0 ? null - : NSInvocation._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get result { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_result1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSInvocationOperation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInvocationOperation._(_ret, _lib, retain: true, release: true); } static NSInvocationOperation new1(NativeCupertinoHttp _lib) { @@ -84706,6 +89740,13 @@ class NSInvocationOperation extends NSOperation { return NSInvocationOperation._(_ret, _lib, retain: false, release: true); } + static NSInvocationOperation allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInvocationOperation1, _lib._sel_allocWithZone_1, zone); + return NSInvocationOperation._(_ret, _lib, retain: false, release: true); + } + static NSInvocationOperation alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSInvocationOperation1, _lib._sel_alloc1); @@ -84727,10 +89768,12 @@ typedef Dart_WeakPersistentHandle = ffi.Pointer<_Dart_WeakPersistentHandle>; /// These structs are versioned by DART_API_DL_MAJOR_VERSION, bump the /// version when changing this struct. -typedef Dart_HandleFinalizer = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer isolate_callback_data, - ffi.Pointer peer)>>; +typedef Dart_HandleFinalizer + = ffi.Pointer>; +typedef Dart_HandleFinalizerFunction = ffi.Void Function( + ffi.Pointer isolate_callback_data, ffi.Pointer peer); +typedef DartDart_HandleFinalizerFunction = void Function( + ffi.Pointer isolate_callback_data, ffi.Pointer peer); typedef Dart_FinalizableHandle = ffi.Pointer<_Dart_FinalizableHandle>; final class Dart_IsolateFlags extends ffi.Struct { @@ -84777,10 +89820,18 @@ final class Dart_CodeObserver extends ffi.Struct { /// lifecycle of a process. Clients of this function should record timestamps for /// these compilation events and when collecting PCs to disambiguate reused /// address ranges. -typedef Dart_OnNewCodeCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer observer, - ffi.Pointer name, ffi.UintPtr base, ffi.UintPtr size)>>; +typedef Dart_OnNewCodeCallback + = ffi.Pointer>; +typedef Dart_OnNewCodeCallbackFunction = ffi.Void Function( + ffi.Pointer observer, + ffi.Pointer name, + ffi.UintPtr base, + ffi.UintPtr size); +typedef DartDart_OnNewCodeCallbackFunction = void Function( + ffi.Pointer observer, + ffi.Pointer name, + int base, + int size); /// Describes how to initialize the VM. Used with Dart_Initialize. /// @@ -84893,16 +89944,16 @@ final class Dart_InitializeParams extends ffi.Struct { /// /// \return The embedder returns NULL if the creation and /// initialization was not successful and the isolate if successful. -typedef Dart_IsolateGroupCreateCallback = ffi.Pointer< - ffi.NativeFunction< - Dart_Isolate Function( - ffi.Pointer script_uri, - ffi.Pointer main, - ffi.Pointer package_root, - ffi.Pointer package_config, - ffi.Pointer flags, - ffi.Pointer isolate_data, - ffi.Pointer> error)>>; +typedef Dart_IsolateGroupCreateCallback + = ffi.Pointer>; +typedef Dart_IsolateGroupCreateCallbackFunction = Dart_Isolate Function( + ffi.Pointer script_uri, + ffi.Pointer main, + ffi.Pointer package_root, + ffi.Pointer package_config, + ffi.Pointer flags, + ffi.Pointer isolate_data, + ffi.Pointer> error); /// An isolate is the unit of concurrency in Dart. Each isolate has /// its own memory and thread of control. No state is shared between @@ -84944,10 +89995,14 @@ typedef Dart_Isolate = ffi.Pointer<_Dart_Isolate>; /// /// \return The embedder returns true if the initialization was successful and /// false otherwise (in which case the VM will terminate the isolate). -typedef Dart_InitializeIsolateCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer> child_isolate_data, - ffi.Pointer> error)>>; +typedef Dart_InitializeIsolateCallback + = ffi.Pointer>; +typedef Dart_InitializeIsolateCallbackFunction = ffi.Bool Function( + ffi.Pointer> child_isolate_data, + ffi.Pointer> error); +typedef DartDart_InitializeIsolateCallbackFunction = bool Function( + ffi.Pointer> child_isolate_data, + ffi.Pointer> error); /// An isolate shutdown callback function. /// @@ -84962,10 +90017,14 @@ typedef Dart_InitializeIsolateCallback = ffi.Pointer< /// isolate group when it was created. /// \param isolate_data The same callback data which was passed to the isolate /// when it was created. -typedef Dart_IsolateShutdownCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer isolate_group_data, - ffi.Pointer isolate_data)>>; +typedef Dart_IsolateShutdownCallback + = ffi.Pointer>; +typedef Dart_IsolateShutdownCallbackFunction = ffi.Void Function( + ffi.Pointer isolate_group_data, + ffi.Pointer isolate_data); +typedef DartDart_IsolateShutdownCallbackFunction = void Function( + ffi.Pointer isolate_group_data, + ffi.Pointer isolate_data); /// An isolate cleanup callback function. /// @@ -84980,10 +90039,14 @@ typedef Dart_IsolateShutdownCallback = ffi.Pointer< /// isolate group when it was created. /// \param isolate_data The same callback data which was passed to the isolate /// when it was created. -typedef Dart_IsolateCleanupCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer isolate_group_data, - ffi.Pointer isolate_data)>>; +typedef Dart_IsolateCleanupCallback + = ffi.Pointer>; +typedef Dart_IsolateCleanupCallbackFunction = ffi.Void Function( + ffi.Pointer isolate_group_data, + ffi.Pointer isolate_data); +typedef DartDart_IsolateCleanupCallbackFunction = void Function( + ffi.Pointer isolate_group_data, + ffi.Pointer isolate_data); /// An isolate group cleanup callback function. /// @@ -84995,9 +90058,12 @@ typedef Dart_IsolateCleanupCallback = ffi.Pointer< /// /// \param isolate_group_data The same callback data which was passed to the /// isolate group when it was created. -typedef Dart_IsolateGroupCleanupCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer isolate_group_data)>>; +typedef Dart_IsolateGroupCleanupCallback + = ffi.Pointer>; +typedef Dart_IsolateGroupCleanupCallbackFunction = ffi.Void Function( + ffi.Pointer isolate_group_data); +typedef DartDart_IsolateGroupCleanupCallbackFunction = void Function( + ffi.Pointer isolate_group_data); /// A thread death callback function. /// This callback, provided by the embedder, is called before a thread in the @@ -85005,7 +90071,9 @@ typedef Dart_IsolateGroupCleanupCallback = ffi.Pointer< /// This function could be used to dispose of native resources that /// are associated and attached to the thread, in order to avoid leaks. typedef Dart_ThreadExitCallback - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_ThreadExitCallbackFunction = ffi.Void Function(); +typedef DartDart_ThreadExitCallbackFunction = void Function(); /// Callbacks provided by the embedder for file operations. If the /// embedder does not allow file operations these callbacks can be @@ -85031,25 +90099,42 @@ typedef Dart_ThreadExitCallback /// /// Dart_FileCloseCallback - Closes the opened file. /// \param stream Handle to the opened file. -typedef Dart_FileOpenCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer name, ffi.Bool write)>>; -typedef Dart_FileReadCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer> data, - ffi.Pointer file_length, - ffi.Pointer stream)>>; -typedef Dart_FileWriteCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer data, ffi.IntPtr length, - ffi.Pointer stream)>>; -typedef Dart_FileCloseCallback = ffi.Pointer< - ffi.NativeFunction stream)>>; -typedef Dart_EntropySource = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer buffer, ffi.IntPtr length)>>; +typedef Dart_FileOpenCallback + = ffi.Pointer>; +typedef Dart_FileOpenCallbackFunction = ffi.Pointer Function( + ffi.Pointer name, ffi.Bool write); +typedef DartDart_FileOpenCallbackFunction = ffi.Pointer Function( + ffi.Pointer name, bool write); +typedef Dart_FileReadCallback + = ffi.Pointer>; +typedef Dart_FileReadCallbackFunction = ffi.Void Function( + ffi.Pointer> data, + ffi.Pointer file_length, + ffi.Pointer stream); +typedef DartDart_FileReadCallbackFunction = void Function( + ffi.Pointer> data, + ffi.Pointer file_length, + ffi.Pointer stream); +typedef Dart_FileWriteCallback + = ffi.Pointer>; +typedef Dart_FileWriteCallbackFunction = ffi.Void Function( + ffi.Pointer data, + ffi.IntPtr length, + ffi.Pointer stream); +typedef DartDart_FileWriteCallbackFunction = void Function( + ffi.Pointer data, int length, ffi.Pointer stream); +typedef Dart_FileCloseCallback + = ffi.Pointer>; +typedef Dart_FileCloseCallbackFunction = ffi.Void Function( + ffi.Pointer stream); +typedef DartDart_FileCloseCallbackFunction = void Function( + ffi.Pointer stream); +typedef Dart_EntropySource + = ffi.Pointer>; +typedef Dart_EntropySourceFunction = ffi.Bool Function( + ffi.Pointer buffer, ffi.IntPtr length); +typedef DartDart_EntropySourceFunction = bool Function( + ffi.Pointer buffer, int length); /// Callback provided by the embedder that is used by the vmservice isolate /// to request the asset archive. The asset archive must be an uncompressed tar @@ -85060,7 +90145,9 @@ typedef Dart_EntropySource = ffi.Pointer< /// \return The embedder must return a handle to a Uint8List containing an /// uncompressed tar archive or null. typedef Dart_GetVMServiceAssetsArchive - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_GetVMServiceAssetsArchiveFunction = ffi.Handle Function(); +typedef DartDart_GetVMServiceAssetsArchiveFunction = Object Function(); typedef Dart_IsolateGroup = ffi.Pointer<_Dart_IsolateGroup>; /// A message notification callback. @@ -85069,11 +90156,16 @@ typedef Dart_IsolateGroup = ffi.Pointer<_Dart_IsolateGroup>; /// mechanism for the delivery of inter-isolate messages. It is the /// responsibility of the embedder to call Dart_HandleMessage to /// process the message. -typedef Dart_MessageNotifyCallback = ffi - .Pointer>; +typedef Dart_MessageNotifyCallback + = ffi.Pointer>; +typedef Dart_MessageNotifyCallbackFunction = ffi.Void Function( + Dart_Isolate dest_isolate); +typedef DartDart_MessageNotifyCallbackFunction = void Function( + Dart_Isolate dest_isolate); /// A port is used to send or receive inter-isolate messages typedef Dart_Port = ffi.Int64; +typedef DartDart_Port = int; abstract class Dart_CoreType_Id { static const int Dart_CoreType_Dynamic = 0; @@ -85145,7 +90237,9 @@ typedef Dart_NativeArgument_Value = _Dart_NativeArgument_Value; /// \return A valid handle to a string if the name exists in the /// current environment or Dart_Null() if not. typedef Dart_EnvironmentCallback - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_EnvironmentCallbackFunction = ffi.Handle Function(ffi.Handle name); +typedef DartDart_EnvironmentCallbackFunction = Object Function(Object name); /// Native entry resolution callback. /// @@ -85170,14 +90264,22 @@ typedef Dart_EnvironmentCallback /// for the native function. /// /// See Dart_SetNativeResolver. -typedef Dart_NativeEntryResolver = ffi.Pointer< - ffi.NativeFunction< - Dart_NativeFunction Function(ffi.Handle name, ffi.Int num_of_arguments, - ffi.Pointer auto_setup_scope)>>; +typedef Dart_NativeEntryResolver + = ffi.Pointer>; +typedef Dart_NativeEntryResolverFunction = Dart_NativeFunction Function( + ffi.Handle name, + ffi.Int num_of_arguments, + ffi.Pointer auto_setup_scope); +typedef DartDart_NativeEntryResolverFunction = Dart_NativeFunction Function( + Object name, int num_of_arguments, ffi.Pointer auto_setup_scope); /// A native function. -typedef Dart_NativeFunction = ffi.Pointer< - ffi.NativeFunction>; +typedef Dart_NativeFunction + = ffi.Pointer>; +typedef Dart_NativeFunctionFunction = ffi.Void Function( + Dart_NativeArguments arguments); +typedef DartDart_NativeFunctionFunction = void Function( + Dart_NativeArguments arguments); /// Native entry symbol lookup callback. /// @@ -85192,17 +90294,20 @@ typedef Dart_NativeFunction = ffi.Pointer< /// \return A const UTF-8 string containing the symbol name or NULL. /// /// See Dart_SetNativeResolver. -typedef Dart_NativeEntrySymbol = ffi.Pointer< - ffi - .NativeFunction Function(Dart_NativeFunction nf)>>; +typedef Dart_NativeEntrySymbol + = ffi.Pointer>; +typedef Dart_NativeEntrySymbolFunction = ffi.Pointer Function( + Dart_NativeFunction nf); /// FFI Native C function pointer resolver callback. /// /// See Dart_SetFfiNativeResolver. -typedef Dart_FfiNativeResolver = ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer name, ffi.UintPtr args_n)>>; +typedef Dart_FfiNativeResolver + = ffi.Pointer>; +typedef Dart_FfiNativeResolverFunction = ffi.Pointer Function( + ffi.Pointer name, ffi.UintPtr args_n); +typedef DartDart_FfiNativeResolverFunction = ffi.Pointer Function( + ffi.Pointer name, int args_n); /// ===================== /// Scripts and Libraries @@ -85243,10 +90348,12 @@ abstract class Dart_LibraryTag { /// files into one intermediate file hence we don't use the source/import or /// script tags. The return value should be an error or a TypedData containing /// the kernel bytes. -typedef Dart_LibraryTagHandler = ffi.Pointer< - ffi.NativeFunction< - ffi.Handle Function(ffi.Int32 tag, - ffi.Handle library_or_package_map_url, ffi.Handle url)>>; +typedef Dart_LibraryTagHandler + = ffi.Pointer>; +typedef Dart_LibraryTagHandlerFunction = ffi.Handle Function( + ffi.Int32 tag, ffi.Handle library_or_package_map_url, ffi.Handle url); +typedef DartDart_LibraryTagHandlerFunction = Object Function( + int tag, Object library_or_package_map_url, Object url); /// Handles deferred loading requests. When this handler is invoked, it should /// eventually load the deferred loading unit with the given id and call @@ -85260,8 +90367,12 @@ typedef Dart_LibraryTagHandler = ffi.Pointer< /// implementations, which must propogate any unwind errors from /// Dart_DeferredLoadComplete or Dart_DeferredLoadComplete. Otherwise the handler /// should return a non-error such as `Dart_Null()`. -typedef Dart_DeferredLoadHandler = ffi.Pointer< - ffi.NativeFunction>; +typedef Dart_DeferredLoadHandler + = ffi.Pointer>; +typedef Dart_DeferredLoadHandlerFunction = ffi.Handle Function( + ffi.IntPtr loading_unit_id); +typedef DartDart_DeferredLoadHandlerFunction = Object Function( + int loading_unit_id); /// TODO(33433): Remove kernel service from the embedding API. abstract class Dart_KernelCompilationStatus { @@ -85300,19 +90411,34 @@ final class Dart_SourceFile extends ffi.Struct { external ffi.Pointer source; } -typedef Dart_StreamingWriteCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer callback_data, - ffi.Pointer buffer, ffi.IntPtr size)>>; -typedef Dart_CreateLoadingUnitCallback = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer callback_data, - ffi.IntPtr loading_unit_id, - ffi.Pointer> write_callback_data, - ffi.Pointer> write_debug_callback_data)>>; -typedef Dart_StreamingCloseCallback = ffi.Pointer< - ffi.NativeFunction callback_data)>>; +typedef Dart_StreamingWriteCallback + = ffi.Pointer>; +typedef Dart_StreamingWriteCallbackFunction = ffi.Void Function( + ffi.Pointer callback_data, + ffi.Pointer buffer, + ffi.IntPtr size); +typedef DartDart_StreamingWriteCallbackFunction = void Function( + ffi.Pointer callback_data, + ffi.Pointer buffer, + int size); +typedef Dart_CreateLoadingUnitCallback + = ffi.Pointer>; +typedef Dart_CreateLoadingUnitCallbackFunction = ffi.Void Function( + ffi.Pointer callback_data, + ffi.IntPtr loading_unit_id, + ffi.Pointer> write_callback_data, + ffi.Pointer> write_debug_callback_data); +typedef DartDart_CreateLoadingUnitCallbackFunction = void Function( + ffi.Pointer callback_data, + int loading_unit_id, + ffi.Pointer> write_callback_data, + ffi.Pointer> write_debug_callback_data); +typedef Dart_StreamingCloseCallback + = ffi.Pointer>; +typedef Dart_StreamingCloseCallbackFunction = ffi.Void Function( + ffi.Pointer callback_data); +typedef DartDart_StreamingCloseCallbackFunction = void Function( + ffi.Pointer callback_data); /// A Dart_CObject is used for representing Dart objects as native C /// data outside the Dart heap. These objects are totally detached from @@ -85449,14 +90575,18 @@ typedef Dart_CObject = _Dart_CObject; /// lifetime of the message data is controlled by the caller. All the /// data references from the message are allocated by the caller and /// will be reclaimed when returning to it. -typedef Dart_NativeMessageHandler = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - Dart_Port dest_port_id, ffi.Pointer message)>>; -typedef Dart_PostCObject_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - Dart_Port_DL port_id, ffi.Pointer message)>>; +typedef Dart_NativeMessageHandler + = ffi.Pointer>; +typedef Dart_NativeMessageHandlerFunction = ffi.Void Function( + Dart_Port dest_port_id, ffi.Pointer message); +typedef DartDart_NativeMessageHandlerFunction = void Function( + DartDart_Port dest_port_id, ffi.Pointer message); +typedef Dart_PostCObject_Type + = ffi.Pointer>; +typedef Dart_PostCObject_TypeFunction = ffi.Bool Function( + Dart_Port_DL port_id, ffi.Pointer message); +typedef DartDart_PostCObject_TypeFunction = bool Function( + DartDart_Port_DL port_id, ffi.Pointer message); /// ============================================================================ /// IMPORTANT! Never update these signatures without properly updating @@ -85470,100 +90600,212 @@ typedef Dart_PostCObject_Type = ffi.Pointer< /// are typechecked nominally in C/C++, so they are not copied, instead a /// comment is added to their definition. typedef Dart_Port_DL = ffi.Int64; -typedef Dart_PostInteger_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(Dart_Port_DL port_id, ffi.Int64 message)>>; -typedef Dart_NewNativePort_Type = ffi.Pointer< - ffi.NativeFunction< - Dart_Port_DL Function( - ffi.Pointer name, - Dart_NativeMessageHandler_DL handler, - ffi.Bool handle_concurrently)>>; -typedef Dart_NativeMessageHandler_DL = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - Dart_Port_DL dest_port_id, ffi.Pointer message)>>; -typedef Dart_CloseNativePort_Type = ffi.Pointer< - ffi.NativeFunction>; +typedef DartDart_Port_DL = int; +typedef Dart_PostInteger_Type + = ffi.Pointer>; +typedef Dart_PostInteger_TypeFunction = ffi.Bool Function( + Dart_Port_DL port_id, ffi.Int64 message); +typedef DartDart_PostInteger_TypeFunction = bool Function( + DartDart_Port_DL port_id, int message); +typedef Dart_NewNativePort_Type + = ffi.Pointer>; +typedef Dart_NewNativePort_TypeFunction = Dart_Port_DL Function( + ffi.Pointer name, + Dart_NativeMessageHandler_DL handler, + ffi.Bool handle_concurrently); +typedef DartDart_NewNativePort_TypeFunction = DartDart_Port_DL Function( + ffi.Pointer name, + Dart_NativeMessageHandler_DL handler, + bool handle_concurrently); +typedef Dart_NativeMessageHandler_DL + = ffi.Pointer>; +typedef Dart_NativeMessageHandler_DLFunction = ffi.Void Function( + Dart_Port_DL dest_port_id, ffi.Pointer message); +typedef DartDart_NativeMessageHandler_DLFunction = void Function( + DartDart_Port_DL dest_port_id, ffi.Pointer message); +typedef Dart_CloseNativePort_Type + = ffi.Pointer>; +typedef Dart_CloseNativePort_TypeFunction = ffi.Bool Function( + Dart_Port_DL native_port_id); +typedef DartDart_CloseNativePort_TypeFunction = bool Function( + DartDart_Port_DL native_port_id); typedef Dart_IsError_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_IsError_TypeFunction = ffi.Bool Function(ffi.Handle handle); +typedef DartDart_IsError_TypeFunction = bool Function(Object handle); typedef Dart_IsApiError_Type - = ffi.Pointer>; -typedef Dart_IsUnhandledExceptionError_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_IsApiError_TypeFunction = ffi.Bool Function(ffi.Handle handle); +typedef DartDart_IsApiError_TypeFunction = bool Function(Object handle); +typedef Dart_IsUnhandledExceptionError_Type = ffi + .Pointer>; +typedef Dart_IsUnhandledExceptionError_TypeFunction = ffi.Bool Function( + ffi.Handle handle); +typedef DartDart_IsUnhandledExceptionError_TypeFunction = bool Function( + Object handle); typedef Dart_IsCompilationError_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_IsCompilationError_TypeFunction = ffi.Bool Function( + ffi.Handle handle); +typedef DartDart_IsCompilationError_TypeFunction = bool Function(Object handle); typedef Dart_IsFatalError_Type - = ffi.Pointer>; -typedef Dart_GetError_Type = ffi.Pointer< - ffi.NativeFunction Function(ffi.Handle handle)>>; + = ffi.Pointer>; +typedef Dart_IsFatalError_TypeFunction = ffi.Bool Function(ffi.Handle handle); +typedef DartDart_IsFatalError_TypeFunction = bool Function(Object handle); +typedef Dart_GetError_Type + = ffi.Pointer>; +typedef Dart_GetError_TypeFunction = ffi.Pointer Function( + ffi.Handle handle); +typedef DartDart_GetError_TypeFunction = ffi.Pointer Function( + Object handle); typedef Dart_ErrorHasException_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_ErrorHasException_TypeFunction = ffi.Bool Function( + ffi.Handle handle); +typedef DartDart_ErrorHasException_TypeFunction = bool Function(Object handle); typedef Dart_ErrorGetException_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_ErrorGetException_TypeFunction = ffi.Handle Function( + ffi.Handle handle); +typedef DartDart_ErrorGetException_TypeFunction = Object Function( + Object handle); typedef Dart_ErrorGetStackTrace_Type - = ffi.Pointer>; -typedef Dart_NewApiError_Type = ffi.Pointer< - ffi.NativeFunction error)>>; -typedef Dart_NewCompilationError_Type = ffi.Pointer< - ffi.NativeFunction error)>>; + = ffi.Pointer>; +typedef Dart_ErrorGetStackTrace_TypeFunction = ffi.Handle Function( + ffi.Handle handle); +typedef DartDart_ErrorGetStackTrace_TypeFunction = Object Function( + Object handle); +typedef Dart_NewApiError_Type + = ffi.Pointer>; +typedef Dart_NewApiError_TypeFunction = ffi.Handle Function( + ffi.Pointer error); +typedef DartDart_NewApiError_TypeFunction = Object Function( + ffi.Pointer error); +typedef Dart_NewCompilationError_Type + = ffi.Pointer>; +typedef Dart_NewCompilationError_TypeFunction = ffi.Handle Function( + ffi.Pointer error); +typedef DartDart_NewCompilationError_TypeFunction = Object Function( + ffi.Pointer error); typedef Dart_NewUnhandledExceptionError_Type = ffi - .Pointer>; + .Pointer>; +typedef Dart_NewUnhandledExceptionError_TypeFunction = ffi.Handle Function( + ffi.Handle exception); +typedef DartDart_NewUnhandledExceptionError_TypeFunction = Object Function( + Object exception); typedef Dart_PropagateError_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_PropagateError_TypeFunction = ffi.Void Function(ffi.Handle handle); +typedef DartDart_PropagateError_TypeFunction = void Function(Object handle); typedef Dart_HandleFromPersistent_Type - = ffi.Pointer>; -typedef Dart_HandleFromWeakPersistent_Type = ffi.Pointer< - ffi.NativeFunction>; + = ffi.Pointer>; +typedef Dart_HandleFromPersistent_TypeFunction = ffi.Handle Function( + ffi.Handle object); +typedef DartDart_HandleFromPersistent_TypeFunction = Object Function( + Object object); +typedef Dart_HandleFromWeakPersistent_Type = ffi + .Pointer>; +typedef Dart_HandleFromWeakPersistent_TypeFunction = ffi.Handle Function( + Dart_WeakPersistentHandle object); +typedef DartDart_HandleFromWeakPersistent_TypeFunction = Object Function( + Dart_WeakPersistentHandle object); typedef Dart_NewPersistentHandle_Type - = ffi.Pointer>; -typedef Dart_SetPersistentHandle_Type = ffi.Pointer< - ffi.NativeFunction>; + = ffi.Pointer>; +typedef Dart_NewPersistentHandle_TypeFunction = ffi.Handle Function( + ffi.Handle object); +typedef DartDart_NewPersistentHandle_TypeFunction = Object Function( + Object object); +typedef Dart_SetPersistentHandle_Type + = ffi.Pointer>; +typedef Dart_SetPersistentHandle_TypeFunction = ffi.Void Function( + ffi.Handle obj1, ffi.Handle obj2); +typedef DartDart_SetPersistentHandle_TypeFunction = void Function( + Object obj1, Object obj2); typedef Dart_DeletePersistentHandle_Type - = ffi.Pointer>; -typedef Dart_NewWeakPersistentHandle_Type = ffi.Pointer< - ffi.NativeFunction< - Dart_WeakPersistentHandle Function( - ffi.Handle object, - ffi.Pointer peer, - ffi.IntPtr external_allocation_size, - Dart_HandleFinalizer callback)>>; -typedef Dart_DeleteWeakPersistentHandle_Type = ffi.Pointer< - ffi.NativeFunction>; -typedef Dart_UpdateExternalSize_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Dart_WeakPersistentHandle object, - ffi.IntPtr external_allocation_size)>>; -typedef Dart_NewFinalizableHandle_Type = ffi.Pointer< - ffi.NativeFunction< - Dart_FinalizableHandle Function( - ffi.Handle object, - ffi.Pointer peer, - ffi.IntPtr external_allocation_size, - Dart_HandleFinalizer callback)>>; -typedef Dart_DeleteFinalizableHandle_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - Dart_FinalizableHandle object, ffi.Handle strong_ref_to_object)>>; + = ffi.Pointer>; +typedef Dart_DeletePersistentHandle_TypeFunction = ffi.Void Function( + ffi.Handle object); +typedef DartDart_DeletePersistentHandle_TypeFunction = void Function( + Object object); +typedef Dart_NewWeakPersistentHandle_Type = ffi + .Pointer>; +typedef Dart_NewWeakPersistentHandle_TypeFunction + = Dart_WeakPersistentHandle Function( + ffi.Handle object, + ffi.Pointer peer, + ffi.IntPtr external_allocation_size, + Dart_HandleFinalizer callback); +typedef DartDart_NewWeakPersistentHandle_TypeFunction + = Dart_WeakPersistentHandle Function( + Object object, + ffi.Pointer peer, + int external_allocation_size, + Dart_HandleFinalizer callback); +typedef Dart_DeleteWeakPersistentHandle_Type = ffi + .Pointer>; +typedef Dart_DeleteWeakPersistentHandle_TypeFunction = ffi.Void Function( + Dart_WeakPersistentHandle object); +typedef DartDart_DeleteWeakPersistentHandle_TypeFunction = void Function( + Dart_WeakPersistentHandle object); +typedef Dart_UpdateExternalSize_Type + = ffi.Pointer>; +typedef Dart_UpdateExternalSize_TypeFunction = ffi.Void Function( + Dart_WeakPersistentHandle object, ffi.IntPtr external_allocation_size); +typedef DartDart_UpdateExternalSize_TypeFunction = void Function( + Dart_WeakPersistentHandle object, int external_allocation_size); +typedef Dart_NewFinalizableHandle_Type + = ffi.Pointer>; +typedef Dart_NewFinalizableHandle_TypeFunction + = Dart_FinalizableHandle Function( + ffi.Handle object, + ffi.Pointer peer, + ffi.IntPtr external_allocation_size, + Dart_HandleFinalizer callback); +typedef DartDart_NewFinalizableHandle_TypeFunction + = Dart_FinalizableHandle Function(Object object, ffi.Pointer peer, + int external_allocation_size, Dart_HandleFinalizer callback); +typedef Dart_DeleteFinalizableHandle_Type = ffi + .Pointer>; +typedef Dart_DeleteFinalizableHandle_TypeFunction = ffi.Void Function( + Dart_FinalizableHandle object, ffi.Handle strong_ref_to_object); +typedef DartDart_DeleteFinalizableHandle_TypeFunction = void Function( + Dart_FinalizableHandle object, Object strong_ref_to_object); typedef Dart_UpdateFinalizableExternalSize_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - Dart_FinalizableHandle object, - ffi.Handle strong_ref_to_object, - ffi.IntPtr external_allocation_size)>>; -typedef Dart_Post_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(Dart_Port_DL port_id, ffi.Handle object)>>; -typedef Dart_NewSendPort_Type = ffi - .Pointer>; -typedef Dart_SendPortGetId_Type = ffi.Pointer< - ffi.NativeFunction< - ffi.Handle Function( - ffi.Handle port, ffi.Pointer port_id)>>; + ffi.NativeFunction>; +typedef Dart_UpdateFinalizableExternalSize_TypeFunction = ffi.Void Function( + Dart_FinalizableHandle object, + ffi.Handle strong_ref_to_object, + ffi.IntPtr external_allocation_size); +typedef DartDart_UpdateFinalizableExternalSize_TypeFunction = void Function( + Dart_FinalizableHandle object, + Object strong_ref_to_object, + int external_allocation_size); +typedef Dart_Post_Type + = ffi.Pointer>; +typedef Dart_Post_TypeFunction = ffi.Bool Function( + Dart_Port_DL port_id, ffi.Handle object); +typedef DartDart_Post_TypeFunction = bool Function( + DartDart_Port_DL port_id, Object object); +typedef Dart_NewSendPort_Type + = ffi.Pointer>; +typedef Dart_NewSendPort_TypeFunction = ffi.Handle Function( + Dart_Port_DL port_id); +typedef DartDart_NewSendPort_TypeFunction = Object Function( + DartDart_Port_DL port_id); +typedef Dart_SendPortGetId_Type + = ffi.Pointer>; +typedef Dart_SendPortGetId_TypeFunction = ffi.Handle Function( + ffi.Handle port, ffi.Pointer port_id); +typedef DartDart_SendPortGetId_TypeFunction = Object Function( + Object port, ffi.Pointer port_id); typedef Dart_EnterScope_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_EnterScope_TypeFunction = ffi.Void Function(); +typedef DartDart_EnterScope_TypeFunction = void Function(); typedef Dart_ExitScope_Type - = ffi.Pointer>; + = ffi.Pointer>; +typedef Dart_ExitScope_TypeFunction = ffi.Void Function(); +typedef DartDart_ExitScope_TypeFunction = void Function(); /// The type of message being sent to a Dart port. See CUPHTTPClientDelegate. abstract class MessageType { @@ -85604,14 +90846,20 @@ class CUPHTTPTaskConfiguration extends NSObject { obj._lib._class_CUPHTTPTaskConfiguration1); } - NSObject initWithPort_(int sendPort) { + NSObject initWithPort_(DartDart_Port sendPort) { final _ret = - _lib._objc_msgSend_496(_id, _lib._sel_initWithPort_1, sendPort); + _lib._objc_msgSend_533(_id, _lib._sel_initWithPort_1, sendPort); return NSObject._(_ret, _lib, retain: true, release: true); } - int get sendPort { - return _lib._objc_msgSend_358(_id, _lib._sel_sendPort1); + DartDart_Port get sendPort { + return _lib._objc_msgSend_383(_id, _lib._sel_sendPort1); + } + + @override + CUPHTTPTaskConfiguration init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPTaskConfiguration._(_ret, _lib, retain: true, release: true); } static CUPHTTPTaskConfiguration new1(NativeCupertinoHttp _lib) { @@ -85620,6 +90868,13 @@ class CUPHTTPTaskConfiguration extends NSObject { return CUPHTTPTaskConfiguration._(_ret, _lib, retain: false, release: true); } + static CUPHTTPTaskConfiguration allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPTaskConfiguration1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPTaskConfiguration._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPTaskConfiguration alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPTaskConfiguration1, _lib._sel_alloc1); @@ -85672,12 +90927,15 @@ class CUPHTTPClientDelegate extends NSObject { /// Instruct the delegate to forward events for the given task to the port /// specified in the configuration. void registerTask_withConfiguration_( - NSURLSessionTask? task, CUPHTTPTaskConfiguration? config) { - return _lib._objc_msgSend_497( - _id, - _lib._sel_registerTask_withConfiguration_1, - task?._id ?? ffi.nullptr, - config?._id ?? ffi.nullptr); + NSURLSessionTask task, CUPHTTPTaskConfiguration config) { + _lib._objc_msgSend_534( + _id, _lib._sel_registerTask_withConfiguration_1, task._id, config._id); + } + + @override + CUPHTTPClientDelegate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPClientDelegate._(_ret, _lib, retain: true, release: true); } static CUPHTTPClientDelegate new1(NativeCupertinoHttp _lib) { @@ -85686,6 +90944,13 @@ class CUPHTTPClientDelegate extends NSObject { return CUPHTTPClientDelegate._(_ret, _lib, retain: false, release: true); } + static CUPHTTPClientDelegate allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPClientDelegate1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPClientDelegate._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPClientDelegate alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPClientDelegate1, _lib._sel_alloc1); @@ -85730,38 +90995,37 @@ class CUPHTTPForwardedDelegate extends NSObject { obj._lib._class_CUPHTTPForwardedDelegate1); } - NSObject initWithSession_task_( - NSURLSession? session, NSURLSessionTask? task) { - final _ret = _lib._objc_msgSend_498(_id, _lib._sel_initWithSession_task_1, - session?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + NSObject initWithSession_task_(NSURLSession session, NSURLSessionTask task) { + final _ret = _lib._objc_msgSend_535( + _id, _lib._sel_initWithSession_task_1, session._id, task._id); return NSObject._(_ret, _lib, retain: true, release: true); } /// Indicates that the task should continue executing using the given request. void finish() { - return _lib._objc_msgSend_1(_id, _lib._sel_finish1); + _lib._objc_msgSend_1(_id, _lib._sel_finish1); } - NSURLSession? get session { - final _ret = _lib._objc_msgSend_408(_id, _lib._sel_session1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); + NSURLSession get session { + final _ret = _lib._objc_msgSend_438(_id, _lib._sel_session1); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_499(_id, _lib._sel_task1); - return _ret.address == 0 - ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + NSURLSessionTask get task { + final _ret = _lib._objc_msgSend_536(_id, _lib._sel_task1); + return NSURLSessionTask._(_ret, _lib, retain: true, release: true); } /// This property is meant to be used only by CUPHTTPClientDelegate. - NSLock? get lock { - final _ret = _lib._objc_msgSend_500(_id, _lib._sel_lock1); - return _ret.address == 0 - ? null - : NSLock._(_ret, _lib, retain: true, release: true); + NSLock get lock { + final _ret = _lib._objc_msgSend_537(_id, _lib._sel_lock1); + return NSLock._(_ret, _lib, retain: true, release: true); + } + + @override + CUPHTTPForwardedDelegate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedDelegate._(_ret, _lib, retain: true, release: true); } static CUPHTTPForwardedDelegate new1(NativeCupertinoHttp _lib) { @@ -85770,6 +91034,13 @@ class CUPHTTPForwardedDelegate extends NSObject { return CUPHTTPForwardedDelegate._(_ret, _lib, retain: false, release: true); } + static CUPHTTPForwardedDelegate allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedDelegate1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPForwardedDelegate._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPForwardedDelegate alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedDelegate1, _lib._sel_alloc1); @@ -85827,18 +91098,15 @@ class CUPHTTPForwardedRedirect extends CUPHTTPForwardedDelegate { obj._lib._class_CUPHTTPForwardedRedirect1); } - NSObject initWithSession_task_response_request_( - NSURLSession? session, - NSURLSessionTask? task, - NSHTTPURLResponse? response, - NSURLRequest? request) { - final _ret = _lib._objc_msgSend_501( + NSObject initWithSession_task_response_request_(NSURLSession session, + NSURLSessionTask task, NSHTTPURLResponse response, NSURLRequest request) { + final _ret = _lib._objc_msgSend_538( _id, _lib._sel_initWithSession_task_response_request_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - response?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + session._id, + task._id, + response._id, + request._id); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -85846,30 +91114,30 @@ class CUPHTTPForwardedRedirect extends CUPHTTPForwardedDelegate { /// If the request is NIL then the redirect is not followed and the task is /// complete. void finishWithRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_341( + _lib._objc_msgSend_539( _id, _lib._sel_finishWithRequest_1, request?._id ?? ffi.nullptr); } - NSHTTPURLResponse? get response { - final _ret = _lib._objc_msgSend_502(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); + NSHTTPURLResponse get response { + final _ret = _lib._objc_msgSend_540(_id, _lib._sel_response1); + return NSHTTPURLResponse._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_350(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get request { + final _ret = _lib._objc_msgSend_489(_id, _lib._sel_request1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } /// This property is meant to be used only by CUPHTTPClientDelegate. - NSURLRequest? get redirectRequest { - final _ret = _lib._objc_msgSend_350(_id, _lib._sel_redirectRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSURLRequest get redirectRequest { + final _ret = _lib._objc_msgSend_489(_id, _lib._sel_redirectRequest1); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + CUPHTTPForwardedRedirect init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedRedirect._(_ret, _lib, retain: true, release: true); } static CUPHTTPForwardedRedirect new1(NativeCupertinoHttp _lib) { @@ -85878,6 +91146,13 @@ class CUPHTTPForwardedRedirect extends CUPHTTPForwardedDelegate { return CUPHTTPForwardedRedirect._(_ret, _lib, retain: false, release: true); } + static CUPHTTPForwardedRedirect allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedRedirect1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPForwardedRedirect._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPForwardedRedirect alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedRedirect1, _lib._sel_alloc1); @@ -85912,31 +91187,34 @@ class CUPHTTPForwardedResponse extends CUPHTTPForwardedDelegate { } NSObject initWithSession_task_response_( - NSURLSession? session, NSURLSessionTask? task, NSURLResponse? response) { - final _ret = _lib._objc_msgSend_503( + NSURLSession session, NSURLSessionTask task, NSURLResponse response) { + final _ret = _lib._objc_msgSend_541( _id, _lib._sel_initWithSession_task_response_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - response?._id ?? ffi.nullptr); + session._id, + task._id, + response._id); return NSObject._(_ret, _lib, retain: true, release: true); } void finishWithDisposition_(int disposition) { - return _lib._objc_msgSend_504( - _id, _lib._sel_finishWithDisposition_1, disposition); + _lib._objc_msgSend_542(_id, _lib._sel_finishWithDisposition_1, disposition); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_318(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + NSURLResponse get response { + final _ret = _lib._objc_msgSend_337(_id, _lib._sel_response1); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } /// This property is meant to be used only by CUPHTTPClientDelegate. int get disposition { - return _lib._objc_msgSend_505(_id, _lib._sel_disposition1); + return _lib._objc_msgSend_543(_id, _lib._sel_disposition1); + } + + @override + CUPHTTPForwardedResponse init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedResponse._(_ret, _lib, retain: true, release: true); } static CUPHTTPForwardedResponse new1(NativeCupertinoHttp _lib) { @@ -85945,6 +91223,13 @@ class CUPHTTPForwardedResponse extends CUPHTTPForwardedDelegate { return CUPHTTPForwardedResponse._(_ret, _lib, retain: false, release: true); } + static CUPHTTPForwardedResponse allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedResponse1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPForwardedResponse._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPForwardedResponse alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedResponse1, _lib._sel_alloc1); @@ -85977,21 +91262,21 @@ class CUPHTTPForwardedData extends CUPHTTPForwardedDelegate { } NSObject initWithSession_task_data_( - NSURLSession? session, NSURLSessionTask? task, NSData? data) { - final _ret = _lib._objc_msgSend_506( - _id, - _lib._sel_initWithSession_task_data_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr); + NSURLSession session, NSURLSessionTask task, NSData data) { + final _ret = _lib._objc_msgSend_544(_id, + _lib._sel_initWithSession_task_data_1, session._id, task._id, data._id); return NSObject._(_ret, _lib, retain: true, release: true); } - NSData? get data { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + NSData get data { + final _ret = _lib._objc_msgSend_54(_id, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + @override + CUPHTTPForwardedData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedData._(_ret, _lib, retain: true, release: true); } static CUPHTTPForwardedData new1(NativeCupertinoHttp _lib) { @@ -86000,6 +91285,13 @@ class CUPHTTPForwardedData extends CUPHTTPForwardedDelegate { return CUPHTTPForwardedData._(_ret, _lib, retain: false, release: true); } + static CUPHTTPForwardedData allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedData1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPForwardedData._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPForwardedData alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedData1, _lib._sel_alloc1); @@ -86034,29 +91326,42 @@ class CUPHTTPForwardedComplete extends CUPHTTPForwardedDelegate { } NSObject initWithSession_task_error_( - NSURLSession? session, NSURLSessionTask? task, NSError? error) { - final _ret = _lib._objc_msgSend_507( + NSURLSession session, NSURLSessionTask task, NSError? error) { + final _ret = _lib._objc_msgSend_545( _id, _lib._sel_initWithSession_task_error_1, - session?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, + session._id, + task._id, error?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } NSError? get error { - final _ret = _lib._objc_msgSend_331(_id, _lib._sel_error1); + final _ret = _lib._objc_msgSend_353(_id, _lib._sel_error1); return _ret.address == 0 ? null : NSError._(_ret, _lib, retain: true, release: true); } + @override + CUPHTTPForwardedComplete init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedComplete._(_ret, _lib, retain: true, release: true); + } + static CUPHTTPForwardedComplete new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedComplete1, _lib._sel_new1); return CUPHTTPForwardedComplete._(_ret, _lib, retain: false, release: true); } + static CUPHTTPForwardedComplete allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedComplete1, _lib._sel_allocWithZone_1, zone); + return CUPHTTPForwardedComplete._(_ret, _lib, retain: false, release: true); + } + static CUPHTTPForwardedComplete alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedComplete1, _lib._sel_alloc1); @@ -86091,22 +91396,27 @@ class CUPHTTPForwardedFinishedDownloading extends CUPHTTPForwardedDelegate { obj._lib._class_CUPHTTPForwardedFinishedDownloading1); } - NSObject initWithSession_downloadTask_url_(NSURLSession? session, - NSURLSessionDownloadTask? downloadTask, NSURL? location) { - final _ret = _lib._objc_msgSend_508( + NSObject initWithSession_downloadTask_url_(NSURLSession session, + NSURLSessionDownloadTask downloadTask, NSURL location) { + final _ret = _lib._objc_msgSend_546( _id, _lib._sel_initWithSession_downloadTask_url_1, - session?._id ?? ffi.nullptr, - downloadTask?._id ?? ffi.nullptr, - location?._id ?? ffi.nullptr); + session._id, + downloadTask._id, + location._id); return NSObject._(_ret, _lib, retain: true, release: true); } - NSURL? get location { - final _ret = _lib._objc_msgSend_52(_id, _lib._sel_location1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + NSURL get location { + final _ret = _lib._objc_msgSend_547(_id, _lib._sel_location1); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + @override + CUPHTTPForwardedFinishedDownloading init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedFinishedDownloading._(_ret, _lib, + retain: true, release: true); } static CUPHTTPForwardedFinishedDownloading new1(NativeCupertinoHttp _lib) { @@ -86116,6 +91426,16 @@ class CUPHTTPForwardedFinishedDownloading extends CUPHTTPForwardedDelegate { retain: false, release: true); } + static CUPHTTPForwardedFinishedDownloading allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedFinishedDownloading1, + _lib._sel_allocWithZone_1, + zone); + return CUPHTTPForwardedFinishedDownloading._(_ret, _lib, + retain: false, release: true); + } + static CUPHTTPForwardedFinishedDownloading alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedFinishedDownloading1, _lib._sel_alloc1); @@ -86152,25 +91472,32 @@ class CUPHTTPForwardedWebSocketOpened extends CUPHTTPForwardedDelegate { } NSObject initWithSession_webSocketTask_didOpenWithProtocol_( - NSURLSession? session, - NSURLSessionWebSocketTask? webSocketTask, + NSURLSession session, + NSURLSessionWebSocketTask webSocketTask, NSString? protocol) { - final _ret = _lib._objc_msgSend_509( + final _ret = _lib._objc_msgSend_548( _id, _lib._sel_initWithSession_webSocketTask_didOpenWithProtocol_1, - session?._id ?? ffi.nullptr, - webSocketTask?._id ?? ffi.nullptr, + session._id, + webSocketTask._id, protocol?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } NSString? get protocol { - final _ret = _lib._objc_msgSend_32(_id, _lib._sel_protocol1); + final _ret = _lib._objc_msgSend_55(_id, _lib._sel_protocol1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } + @override + CUPHTTPForwardedWebSocketOpened init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedWebSocketOpened._(_ret, _lib, + retain: true, release: true); + } + static CUPHTTPForwardedWebSocketOpened new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedWebSocketOpened1, _lib._sel_new1); @@ -86178,6 +91505,16 @@ class CUPHTTPForwardedWebSocketOpened extends CUPHTTPForwardedDelegate { retain: false, release: true); } + static CUPHTTPForwardedWebSocketOpened allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedWebSocketOpened1, + _lib._sel_allocWithZone_1, + zone); + return CUPHTTPForwardedWebSocketOpened._(_ret, _lib, + retain: false, release: true); + } + static CUPHTTPForwardedWebSocketOpened alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedWebSocketOpened1, _lib._sel_alloc1); @@ -86213,29 +91550,36 @@ class CUPHTTPForwardedWebSocketClosed extends CUPHTTPForwardedDelegate { obj._lib._class_CUPHTTPForwardedWebSocketClosed1); } - NSObject initWithSession_webSocketTask_code_reason_(NSURLSession? session, - NSURLSessionWebSocketTask? webSocketTask, int closeCode, NSData? reason) { - final _ret = _lib._objc_msgSend_510( + NSObject initWithSession_webSocketTask_code_reason_(NSURLSession session, + NSURLSessionWebSocketTask webSocketTask, int closeCode, NSData reason) { + final _ret = _lib._objc_msgSend_549( _id, _lib._sel_initWithSession_webSocketTask_code_reason_1, - session?._id ?? ffi.nullptr, - webSocketTask?._id ?? ffi.nullptr, + session._id, + webSocketTask._id, closeCode, - reason?._id ?? ffi.nullptr); + reason._id); return NSObject._(_ret, _lib, retain: true, release: true); } int get closeCode { - return _lib._objc_msgSend_443(_id, _lib._sel_closeCode1); + return _lib._objc_msgSend_477(_id, _lib._sel_closeCode1); } NSData? get reason { - final _ret = _lib._objc_msgSend_51(_id, _lib._sel_reason1); + final _ret = _lib._objc_msgSend_348(_id, _lib._sel_reason1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } + @override + CUPHTTPForwardedWebSocketClosed init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPForwardedWebSocketClosed._(_ret, _lib, + retain: true, release: true); + } + static CUPHTTPForwardedWebSocketClosed new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedWebSocketClosed1, _lib._sel_new1); @@ -86243,6 +91587,16 @@ class CUPHTTPForwardedWebSocketClosed extends CUPHTTPForwardedDelegate { retain: false, release: true); } + static CUPHTTPForwardedWebSocketClosed allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPForwardedWebSocketClosed1, + _lib._sel_allocWithZone_1, + zone); + return CUPHTTPForwardedWebSocketClosed._(_ret, _lib, + retain: false, release: true); + } + static CUPHTTPForwardedWebSocketClosed alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPForwardedWebSocketClosed1, _lib._sel_alloc1); @@ -86261,10 +91615,15 @@ abstract class NSStreamEvent { } typedef NSStreamSocketSecurityLevel = ffi.Pointer; +typedef DartNSStreamSocketSecurityLevel = NSString; typedef NSStreamSOCKSProxyConfiguration = ffi.Pointer; +typedef DartNSStreamSOCKSProxyConfiguration = NSString; typedef NSStreamSOCKSProxyVersion = ffi.Pointer; +typedef DartNSStreamSOCKSProxyVersion = NSString; typedef NSErrorDomain1 = ffi.Pointer; +typedef DartNSErrorDomain1 = NSString; typedef NSStreamNetworkServiceTypeValue = ffi.Pointer; +typedef DartNSStreamNetworkServiceTypeValue = NSString; /// A helper to convert a Dart Stream> into an Objective-C input stream. class CUPHTTPStreamToNSInputStreamAdapter extends NSInputStream { @@ -86294,67 +91653,98 @@ class CUPHTTPStreamToNSInputStreamAdapter extends NSInputStream { obj._lib._class_CUPHTTPStreamToNSInputStreamAdapter1); } - CUPHTTPStreamToNSInputStreamAdapter initWithPort_(int sendPort) { + CUPHTTPStreamToNSInputStreamAdapter initWithPort_(DartDart_Port sendPort) { final _ret = - _lib._objc_msgSend_496(_id, _lib._sel_initWithPort_1, sendPort); + _lib._objc_msgSend_533(_id, _lib._sel_initWithPort_1, sendPort); return CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, retain: true, release: true); } - int addData_(NSData? data) { - return _lib._objc_msgSend_511( - _id, _lib._sel_addData_1, data?._id ?? ffi.nullptr); + DartNSUInteger addData_(NSData data) { + return _lib._objc_msgSend_550(_id, _lib._sel_addData_1, data._id); } void setDone() { - return _lib._objc_msgSend_1(_id, _lib._sel_setDone1); + _lib._objc_msgSend_1(_id, _lib._sel_setDone1); } - void setError_(NSError? error) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setError_1, error?._id ?? ffi.nullptr); + void setError_(NSError error) { + _lib._objc_msgSend_551(_id, _lib._sel_setError_1, error._id); } - static CUPHTTPStreamToNSInputStreamAdapter inputStreamWithData_( - NativeCupertinoHttp _lib, NSData? data) { - final _ret = _lib._objc_msgSend_217( - _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, - _lib._sel_inputStreamWithData_1, - data?._id ?? ffi.nullptr); + @override + CUPHTTPStreamToNSInputStreamAdapter initWithData_(NSData data) { + final _ret = + _lib._objc_msgSend_228(_id, _lib._sel_initWithData_1, data._id); return CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, retain: true, release: true); } - static CUPHTTPStreamToNSInputStreamAdapter inputStreamWithFileAtPath_( - NativeCupertinoHttp _lib, NSString? path) { - final _ret = _lib._objc_msgSend_42( + @override + CUPHTTPStreamToNSInputStreamAdapter? initWithURL_(NSURL url) { + final _ret = _lib._objc_msgSend_226(_id, _lib._sel_initWithURL_1, url._id); + return _ret.address == 0 + ? null + : CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: true, release: true); + } + + @override + CUPHTTPStreamToNSInputStreamAdapter? initWithFileAtPath_(NSString path) { + final _ret = + _lib._objc_msgSend_49(_id, _lib._sel_initWithFileAtPath_1, path._id); + return _ret.address == 0 + ? null + : CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: true, release: true); + } + + static CUPHTTPStreamToNSInputStreamAdapter? inputStreamWithData_( + NativeCupertinoHttp _lib, NSData data) { + final _ret = _lib._objc_msgSend_361( + _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, + _lib._sel_inputStreamWithData_1, + data._id); + return _ret.address == 0 + ? null + : CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: true, release: true); + } + + static CUPHTTPStreamToNSInputStreamAdapter? inputStreamWithFileAtPath_( + NativeCupertinoHttp _lib, NSString path) { + final _ret = _lib._objc_msgSend_49( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_inputStreamWithFileAtPath_1, - path?._id ?? ffi.nullptr); - return CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, - retain: true, release: true); + path._id); + return _ret.address == 0 + ? null + : CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: true, release: true); } - static CUPHTTPStreamToNSInputStreamAdapter inputStreamWithURL_( - NativeCupertinoHttp _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_201( + static CUPHTTPStreamToNSInputStreamAdapter? inputStreamWithURL_( + NativeCupertinoHttp _lib, NSURL url) { + final _ret = _lib._objc_msgSend_226( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_inputStreamWithURL_1, - url?._id ?? ffi.nullptr); - return CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, - retain: true, release: true); + url._id); + return _ret.address == 0 + ? null + : CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: true, release: true); } static void getStreamsToHostWithName_port_inputStream_outputStream_( NativeCupertinoHttp _lib, - NSString? hostname, - int port, + NSString hostname, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_334( + _lib._objc_msgSend_357( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, + hostname._id, port, inputStream, outputStream); @@ -86362,14 +91752,14 @@ class CUPHTTPStreamToNSInputStreamAdapter extends NSInputStream { static void getStreamsToHost_port_inputStream_outputStream_( NativeCupertinoHttp _lib, - NSHost? host, - int port, + NSHost host, + DartNSInteger port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_335( + _lib._objc_msgSend_358( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, + host._id, port, inputStream, outputStream); @@ -86377,10 +91767,10 @@ class CUPHTTPStreamToNSInputStreamAdapter extends NSInputStream { static void getBoundStreamsWithBufferSize_inputStream_outputStream_( NativeCupertinoHttp _lib, - int bufferSize, + DartNSUInteger bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - return _lib._objc_msgSend_336( + _lib._objc_msgSend_359( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -86388,6 +91778,13 @@ class CUPHTTPStreamToNSInputStreamAdapter extends NSInputStream { outputStream); } + @override + CUPHTTPStreamToNSInputStreamAdapter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: true, release: true); + } + static CUPHTTPStreamToNSInputStreamAdapter new1(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_new1); @@ -86395,6 +91792,16 @@ class CUPHTTPStreamToNSInputStreamAdapter extends NSInputStream { retain: false, release: true); } + static CUPHTTPStreamToNSInputStreamAdapter allocWithZone_( + NativeCupertinoHttp _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, + _lib._sel_allocWithZone_1, + zone); + return CUPHTTPStreamToNSInputStreamAdapter._(_ret, _lib, + retain: false, release: true); + } + static CUPHTTPStreamToNSInputStreamAdapter alloc(NativeCupertinoHttp _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_CUPHTTPStreamToNSInputStreamAdapter1, _lib._sel_alloc1); @@ -91113,90 +96520,22 @@ const int kNativeArgTypePos = 8; const int kNativeArgTypeSize = 8; -const int DYNAMIC_TARGETS_ENABLED = 0; - -const int TARGET_OS_MAC = 1; - -const int TARGET_OS_WIN32 = 0; - -const int TARGET_OS_WINDOWS = 0; - -const int TARGET_OS_UNIX = 0; - -const int TARGET_OS_LINUX = 0; - -const int TARGET_OS_OSX = 1; - -const int TARGET_OS_IPHONE = 0; - -const int TARGET_OS_IOS = 0; - -const int TARGET_OS_WATCH = 0; - -const int TARGET_OS_TV = 0; - -const int TARGET_OS_MACCATALYST = 0; - -const int TARGET_OS_UIKITFORMAC = 0; - -const int TARGET_OS_SIMULATOR = 0; - -const int TARGET_OS_EMBEDDED = 0; - -const int TARGET_OS_RTKIT = 0; - -const int TARGET_OS_DRIVERKIT = 0; - -const int TARGET_IPHONE_SIMULATOR = 0; - -const int TARGET_OS_NANO = 0; - -const int TARGET_ABI_USES_IOS_VALUES = 1; - -const int TARGET_CPU_PPC = 0; - -const int TARGET_CPU_PPC64 = 0; - -const int TARGET_CPU_68K = 0; - -const int TARGET_CPU_X86 = 0; - -const int TARGET_CPU_X86_64 = 0; - -const int TARGET_CPU_ARM = 0; - -const int TARGET_CPU_ARM64 = 1; - -const int TARGET_CPU_MIPS = 0; - -const int TARGET_CPU_SPARC = 0; - -const int TARGET_CPU_ALPHA = 0; - -const int TARGET_RT_MAC_CFM = 0; - -const int TARGET_RT_MAC_MACHO = 1; - -const int TARGET_RT_LITTLE_ENDIAN = 1; - -const int TARGET_RT_BIG_ENDIAN = 0; - -const int TARGET_RT_64_BIT = 1; - const int __API_TO_BE_DEPRECATED = 100000; const int __API_TO_BE_DEPRECATED_MACOS = 100000; const int __API_TO_BE_DEPRECATED_IOS = 100000; -const int __API_TO_BE_DEPRECATED_TVOS = 100000; +const int __API_TO_BE_DEPRECATED_MACCATALYST = 100000; const int __API_TO_BE_DEPRECATED_WATCHOS = 100000; -const int __API_TO_BE_DEPRECATED_MACCATALYST = 100000; +const int __API_TO_BE_DEPRECATED_TVOS = 100000; const int __API_TO_BE_DEPRECATED_DRIVERKIT = 100000; +const int __API_TO_BE_DEPRECATED_VISIONOS = 100000; + const int __MAC_10_0 = 1000; const int __MAC_10_1 = 1010; @@ -91253,6 +96592,8 @@ const int __MAC_10_14_1 = 101401; const int __MAC_10_14_4 = 101404; +const int __MAC_10_14_5 = 101405; + const int __MAC_10_14_6 = 101406; const int __MAC_10_15 = 101500; @@ -91283,6 +96624,14 @@ const int __MAC_12_2 = 120200; const int __MAC_12_3 = 120300; +const int __MAC_12_4 = 120400; + +const int __MAC_12_5 = 120500; + +const int __MAC_12_6 = 120600; + +const int __MAC_12_7 = 120700; + const int __MAC_13_0 = 130000; const int __MAC_13_1 = 130100; @@ -91291,6 +96640,18 @@ const int __MAC_13_2 = 130200; const int __MAC_13_3 = 130300; +const int __MAC_13_4 = 130400; + +const int __MAC_13_5 = 130500; + +const int __MAC_13_6 = 130600; + +const int __MAC_14_0 = 140000; + +const int __MAC_14_1 = 140100; + +const int __MAC_14_2 = 140200; + const int __IPHONE_2_0 = 20000; const int __IPHONE_2_1 = 20100; @@ -91395,6 +96756,8 @@ const int __IPHONE_14_3 = 140300; const int __IPHONE_14_5 = 140500; +const int __IPHONE_14_4 = 140400; + const int __IPHONE_14_6 = 140600; const int __IPHONE_14_7 = 140700; @@ -91411,6 +96774,10 @@ const int __IPHONE_15_3 = 150300; const int __IPHONE_15_4 = 150400; +const int __IPHONE_15_5 = 150500; + +const int __IPHONE_15_6 = 150600; + const int __IPHONE_16_0 = 160000; const int __IPHONE_16_1 = 160100; @@ -91421,81 +96788,17 @@ const int __IPHONE_16_3 = 160300; const int __IPHONE_16_4 = 160400; -const int __TVOS_9_0 = 90000; +const int __IPHONE_16_5 = 160500; -const int __TVOS_9_1 = 90100; +const int __IPHONE_16_6 = 160600; -const int __TVOS_9_2 = 90200; +const int __IPHONE_16_7 = 160700; -const int __TVOS_10_0 = 100000; +const int __IPHONE_17_0 = 170000; -const int __TVOS_10_0_1 = 100001; +const int __IPHONE_17_1 = 170100; -const int __TVOS_10_1 = 100100; - -const int __TVOS_10_2 = 100200; - -const int __TVOS_11_0 = 110000; - -const int __TVOS_11_1 = 110100; - -const int __TVOS_11_2 = 110200; - -const int __TVOS_11_3 = 110300; - -const int __TVOS_11_4 = 110400; - -const int __TVOS_12_0 = 120000; - -const int __TVOS_12_1 = 120100; - -const int __TVOS_12_2 = 120200; - -const int __TVOS_12_3 = 120300; - -const int __TVOS_12_4 = 120400; - -const int __TVOS_13_0 = 130000; - -const int __TVOS_13_2 = 130200; - -const int __TVOS_13_3 = 130300; - -const int __TVOS_13_4 = 130400; - -const int __TVOS_14_0 = 140000; - -const int __TVOS_14_1 = 140100; - -const int __TVOS_14_2 = 140200; - -const int __TVOS_14_3 = 140300; - -const int __TVOS_14_5 = 140500; - -const int __TVOS_14_6 = 140600; - -const int __TVOS_14_7 = 140700; - -const int __TVOS_15_0 = 150000; - -const int __TVOS_15_1 = 150100; - -const int __TVOS_15_2 = 150200; - -const int __TVOS_15_3 = 150300; - -const int __TVOS_15_4 = 150400; - -const int __TVOS_16_0 = 160000; - -const int __TVOS_16_1 = 160100; - -const int __TVOS_16_2 = 160200; - -const int __TVOS_16_3 = 160300; - -const int __TVOS_16_4 = 160400; +const int __IPHONE_17_2 = 170200; const int __WATCHOS_1_0 = 10000; @@ -91559,6 +96862,10 @@ const int __WATCHOS_8_4 = 80400; const int __WATCHOS_8_5 = 80500; +const int __WATCHOS_8_6 = 80600; + +const int __WATCHOS_8_7 = 80700; + const int __WATCHOS_9_0 = 90000; const int __WATCHOS_9_1 = 90100; @@ -91569,6 +96876,174 @@ const int __WATCHOS_9_3 = 90300; const int __WATCHOS_9_4 = 90400; +const int __WATCHOS_9_5 = 90500; + +const int __WATCHOS_9_6 = 90600; + +const int __WATCHOS_10_0 = 100000; + +const int __WATCHOS_10_1 = 100100; + +const int __WATCHOS_10_2 = 100200; + +const int __TVOS_9_0 = 90000; + +const int __TVOS_9_1 = 90100; + +const int __TVOS_9_2 = 90200; + +const int __TVOS_10_0 = 100000; + +const int __TVOS_10_0_1 = 100001; + +const int __TVOS_10_1 = 100100; + +const int __TVOS_10_2 = 100200; + +const int __TVOS_11_0 = 110000; + +const int __TVOS_11_1 = 110100; + +const int __TVOS_11_2 = 110200; + +const int __TVOS_11_3 = 110300; + +const int __TVOS_11_4 = 110400; + +const int __TVOS_12_0 = 120000; + +const int __TVOS_12_1 = 120100; + +const int __TVOS_12_2 = 120200; + +const int __TVOS_12_3 = 120300; + +const int __TVOS_12_4 = 120400; + +const int __TVOS_13_0 = 130000; + +const int __TVOS_13_2 = 130200; + +const int __TVOS_13_3 = 130300; + +const int __TVOS_13_4 = 130400; + +const int __TVOS_14_0 = 140000; + +const int __TVOS_14_1 = 140100; + +const int __TVOS_14_2 = 140200; + +const int __TVOS_14_3 = 140300; + +const int __TVOS_14_5 = 140500; + +const int __TVOS_14_6 = 140600; + +const int __TVOS_14_7 = 140700; + +const int __TVOS_15_0 = 150000; + +const int __TVOS_15_1 = 150100; + +const int __TVOS_15_2 = 150200; + +const int __TVOS_15_3 = 150300; + +const int __TVOS_15_4 = 150400; + +const int __TVOS_15_5 = 150500; + +const int __TVOS_15_6 = 150600; + +const int __TVOS_16_0 = 160000; + +const int __TVOS_16_1 = 160100; + +const int __TVOS_16_2 = 160200; + +const int __TVOS_16_3 = 160300; + +const int __TVOS_16_4 = 160400; + +const int __TVOS_16_5 = 160500; + +const int __TVOS_16_6 = 160600; + +const int __TVOS_17_0 = 170000; + +const int __TVOS_17_1 = 170100; + +const int __TVOS_17_2 = 170200; + +const int __BRIDGEOS_2_0 = 20000; + +const int __BRIDGEOS_3_0 = 30000; + +const int __BRIDGEOS_3_1 = 30100; + +const int __BRIDGEOS_3_4 = 30400; + +const int __BRIDGEOS_4_0 = 40000; + +const int __BRIDGEOS_4_1 = 40100; + +const int __BRIDGEOS_5_0 = 50000; + +const int __BRIDGEOS_5_1 = 50100; + +const int __BRIDGEOS_5_3 = 50300; + +const int __BRIDGEOS_6_0 = 60000; + +const int __BRIDGEOS_6_2 = 60200; + +const int __BRIDGEOS_6_4 = 60400; + +const int __BRIDGEOS_6_5 = 60500; + +const int __BRIDGEOS_6_6 = 60600; + +const int __BRIDGEOS_7_0 = 70000; + +const int __BRIDGEOS_7_1 = 70100; + +const int __BRIDGEOS_7_2 = 70200; + +const int __BRIDGEOS_7_3 = 70300; + +const int __BRIDGEOS_7_4 = 70400; + +const int __BRIDGEOS_7_6 = 70600; + +const int __BRIDGEOS_8_0 = 80000; + +const int __BRIDGEOS_8_1 = 80100; + +const int __BRIDGEOS_8_2 = 80200; + +const int __DRIVERKIT_19_0 = 190000; + +const int __DRIVERKIT_20_0 = 200000; + +const int __DRIVERKIT_21_0 = 210000; + +const int __DRIVERKIT_22_0 = 220000; + +const int __DRIVERKIT_22_4 = 220400; + +const int __DRIVERKIT_22_5 = 220500; + +const int __DRIVERKIT_22_6 = 220600; + +const int __DRIVERKIT_23_0 = 230000; + +const int __DRIVERKIT_23_1 = 230100; + +const int __DRIVERKIT_23_2 = 230200; + +const int __VISIONOS_1_0 = 10000; + const int MAC_OS_X_VERSION_10_0 = 1000; const int MAC_OS_X_VERSION_10_1 = 1010; @@ -91625,29 +97100,67 @@ const int MAC_OS_X_VERSION_10_14_1 = 101401; const int MAC_OS_X_VERSION_10_14_4 = 101404; +const int MAC_OS_X_VERSION_10_14_5 = 101405; + const int MAC_OS_X_VERSION_10_14_6 = 101406; const int MAC_OS_X_VERSION_10_15 = 101500; const int MAC_OS_X_VERSION_10_15_1 = 101501; +const int MAC_OS_X_VERSION_10_15_4 = 101504; + const int MAC_OS_X_VERSION_10_16 = 101600; const int MAC_OS_VERSION_11_0 = 110000; +const int MAC_OS_VERSION_11_1 = 110100; + +const int MAC_OS_VERSION_11_3 = 110300; + +const int MAC_OS_VERSION_11_4 = 110400; + +const int MAC_OS_VERSION_11_5 = 110500; + +const int MAC_OS_VERSION_11_6 = 110600; + const int MAC_OS_VERSION_12_0 = 120000; +const int MAC_OS_VERSION_12_1 = 120100; + +const int MAC_OS_VERSION_12_2 = 120200; + +const int MAC_OS_VERSION_12_3 = 120300; + +const int MAC_OS_VERSION_12_4 = 120400; + +const int MAC_OS_VERSION_12_5 = 120500; + +const int MAC_OS_VERSION_12_6 = 120600; + +const int MAC_OS_VERSION_12_7 = 120700; + const int MAC_OS_VERSION_13_0 = 130000; -const int __DRIVERKIT_19_0 = 190000; +const int MAC_OS_VERSION_13_1 = 130100; -const int __DRIVERKIT_20_0 = 200000; +const int MAC_OS_VERSION_13_2 = 130200; -const int __DRIVERKIT_21_0 = 210000; +const int MAC_OS_VERSION_13_3 = 130300; + +const int MAC_OS_VERSION_13_4 = 130400; -const int __MAC_OS_X_VERSION_MIN_REQUIRED = 130000; +const int MAC_OS_VERSION_13_5 = 130500; -const int __MAC_OS_X_VERSION_MAX_ALLOWED = 130300; +const int MAC_OS_VERSION_13_6 = 130600; + +const int MAC_OS_VERSION_14_0 = 140000; + +const int MAC_OS_VERSION_14_1 = 140100; + +const int MAC_OS_VERSION_14_2 = 140200; + +const int __MAC_OS_X_VERSION_MAX_ALLOWED = 140200; const int __ENABLE_LEGACY_MAC_AVAILABILITY = 1; @@ -92211,6 +97724,10 @@ const int IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT = 0; const int IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON = 1; +const int IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT = 0; + +const int IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON = 1; + const int WNOHANG = 1; const int WUNTRACED = 2; @@ -92259,6 +97776,78 @@ const int EXIT_SUCCESS = 0; const int RAND_MAX = 2147483647; +const int DYNAMIC_TARGETS_ENABLED = 0; + +const int TARGET_OS_WIN32 = 0; + +const int TARGET_OS_WINDOWS = 0; + +const int TARGET_OS_UNIX = 0; + +const int TARGET_OS_LINUX = 0; + +const int TARGET_OS_MAC = 1; + +const int TARGET_OS_OSX = 1; + +const int TARGET_OS_IPHONE = 0; + +const int TARGET_OS_IOS = 0; + +const int TARGET_OS_WATCH = 0; + +const int TARGET_OS_TV = 0; + +const int TARGET_OS_MACCATALYST = 0; + +const int TARGET_OS_VISION = 0; + +const int TARGET_OS_UIKITFORMAC = 0; + +const int TARGET_OS_SIMULATOR = 0; + +const int TARGET_OS_EMBEDDED = 0; + +const int TARGET_OS_RTKIT = 0; + +const int TARGET_OS_DRIVERKIT = 0; + +const int TARGET_IPHONE_SIMULATOR = 0; + +const int TARGET_OS_NANO = 0; + +const int TARGET_ABI_USES_IOS_VALUES = 1; + +const int TARGET_CPU_PPC = 0; + +const int TARGET_CPU_PPC64 = 0; + +const int TARGET_CPU_68K = 0; + +const int TARGET_CPU_X86 = 0; + +const int TARGET_CPU_X86_64 = 0; + +const int TARGET_CPU_ARM = 0; + +const int TARGET_CPU_ARM64 = 1; + +const int TARGET_CPU_MIPS = 0; + +const int TARGET_CPU_SPARC = 0; + +const int TARGET_CPU_ALPHA = 0; + +const int TARGET_RT_MAC_CFM = 0; + +const int TARGET_RT_MAC_MACHO = 1; + +const int TARGET_RT_LITTLE_ENDIAN = 1; + +const int TARGET_RT_BIG_ENDIAN = 0; + +const int TARGET_RT_64_BIT = 1; + const int __DARWIN_FD_SETSIZE = 1024; const int __DARWIN_NBBY = 8; @@ -92279,6 +97868,62 @@ const int false1 = 0; const int __GNUC_VA_LIST = 1; +const int __DARWIN_CLK_TCK = 100; + +const int MB_LEN_MAX = 6; + +const int CLK_TCK = 100; + +const int CHAR_BIT = 8; + +const int SCHAR_MAX = 127; + +const int SCHAR_MIN = -128; + +const int UCHAR_MAX = 255; + +const int CHAR_MAX = 127; + +const int CHAR_MIN = -128; + +const int USHRT_MAX = 65535; + +const int SHRT_MAX = 32767; + +const int SHRT_MIN = -32768; + +const int UINT_MAX = 4294967295; + +const int INT_MAX = 2147483647; + +const int INT_MIN = -2147483648; + +const int ULONG_MAX = -1; + +const int LONG_MAX = 9223372036854775807; + +const int LONG_MIN = -9223372036854775808; + +const int ULLONG_MAX = -1; + +const int LLONG_MAX = 9223372036854775807; + +const int LLONG_MIN = -9223372036854775808; + +const int LONG_BIT = 64; + +const int SSIZE_MAX = 9223372036854775807; + +const int WORD_BIT = 32; + +const int SIZE_T_MAX = -1; + +const int UQUAD_MAX = -1; + +const int QUAD_MAX = 9223372036854775807; + +const int QUAD_MIN = -9223372036854775808; + const int _POSIX_THREAD_KEYS_MAX = 128; const int API_TO_BE_DEPRECATED = 100000; @@ -92293,6 +97938,8 @@ const int API_TO_BE_DEPRECATED_WATCHOS = 100000; const int API_TO_BE_DEPRECATED_DRIVERKIT = 100000; +const int API_TO_BE_DEPRECATED_VISIONOS = 100000; + const int TRUE = 1; const int FALSE = 0; @@ -92313,6 +97960,10 @@ const int SEEK_CUR = 1; const int SEEK_END = 2; +const int SEEK_HOLE = 3; + +const int SEEK_DATA = 4; + const String __PRI_8_LENGTH_MODIFIER__ = 'hh'; const String __PRI_64_LENGTH_MODIFIER__ = 'll'; @@ -92731,6 +98382,8 @@ const int MACH_PORT_INFO_EXT = 7; const int MACH_PORT_GUARD_INFO = 8; +const int MACH_PORT_SERVICE_THROTTLED = 9; + const int MACH_PORT_LIMITS_INFO_COUNT = 1; const int MACH_PORT_RECEIVE_STATUS_COUNT = 10; @@ -92741,6 +98394,8 @@ const int MACH_PORT_INFO_EXT_COUNT = 17; const int MACH_PORT_GUARD_INFO_COUNT = 2; +const int MACH_PORT_SERVICE_THROTTLED_COUNT = 1; + const int MACH_SERVICE_PORT_INFO_STRING_NAME_MAX_BUF_LEN = 255; const int MACH_SERVICE_PORT_INFO_COUNT = 0; @@ -92775,6 +98430,8 @@ const int MPO_ENFORCE_REPLY_PORT_SEMANTICS = 8192; const int MPO_PROVISIONAL_REPLY_PORT = 16384; +const int MPO_PROVISIONAL_ID_PROT_OPTOUT = 32768; + const int GUARD_TYPE_MACH_PORT = 1; const int MAX_FATAL_kGUARD_EXC_CODE = 128; @@ -92849,10 +98506,6 @@ const int _CHOWN_OK = 2097152; const int _ACCESS_EXTENDED_MASK = 4193792; -const int SEEK_HOLE = 3; - -const int SEEK_DATA = 4; - const int L_SET = 0; const int L_INCR = 1; @@ -93623,6 +99276,14 @@ const int F_ADDFILESIGS_FOR_DYLD_SIM = 83; const int F_BARRIERFSYNC = 85; +const int F_OFD_SETLK = 90; + +const int F_OFD_SETLKW = 91; + +const int F_OFD_GETLK = 92; + +const int F_OFD_SETLKWTIMEOUT = 93; + const int F_ADDFILESIGS_RETURN = 97; const int F_CHECK_LV = 98; @@ -93647,6 +99308,8 @@ const int F_GETLEASE = 107; const int F_TRANSFEREXTENTS = 110; +const int F_ATTRIBUTION_TAG = 111; + const int FCNTL_FS_SPECIFIC_BASE = 65536; const int F_DUPFD_CLOEXEC = 67; @@ -93737,6 +99400,14 @@ const int LOCK_NB = 4; const int LOCK_UN = 8; +const int ATTRIBUTION_NAME_MAX = 255; + +const int F_CREATE_TAG = 1; + +const int F_DELETE_TAG = 2; + +const int F_QUERY_TAG = 4; + const int O_POPUP = 2147483648; const int O_ALERT = 536870912; @@ -93789,13 +99460,15 @@ const int TIME_ABSOLUTE = 0; const int TIME_RELATIVE = 1; +const int MSEC_PER_SEC = 1000; + const int DISPATCH_TIME_NOW = 0; const int DISPATCH_TIME_FOREVER = -1; const int QOS_MIN_RELATIVE_PRIORITY = -15; -const int DISPATCH_APPLY_AUTO_AVAILABLE = 1; +const int DISPATCH_APPLY_AUTO_AVAILABLE = 0; const int DISPATCH_QUEUE_PRIORITY_HIGH = 2; diff --git a/pkgs/cupertino_http/lib/src/utils.dart b/pkgs/cupertino_http/lib/src/utils.dart index 02fc5489b1..7bc87aa87c 100644 --- a/pkgs/cupertino_http/lib/src/utils.dart +++ b/pkgs/cupertino_http/lib/src/utils.dart @@ -66,12 +66,11 @@ Map stringNSDictionaryToMap(ncb.NSDictionary d) { // true types. final m = {}; - final keys = ncb.NSArray.castFrom(d.allKeys!); + final keys = ncb.NSArray.castFrom(d.allKeys); for (var i = 0; i < keys.count; ++i) { final nsKey = keys.objectAtIndex_(i); - final key = toStringOrNull(ncb.NSString.castFrom(nsKey))!; - final value = - toStringOrNull(ncb.NSString.castFrom(d.objectForKey_(nsKey)))!; + final key = ncb.NSString.castFrom(nsKey).toString(); + final value = ncb.NSString.castFrom(d.objectForKey_(nsKey)!).toString(); m[key] = value; } @@ -89,5 +88,5 @@ ncb.NSArray stringIterableToNSArray(Iterable strings) { return array; } -ncb.NSURL uriToNSURL(Uri uri) => - ncb.NSURL.URLWithString_(linkedLibs, uri.toString().toNSString(linkedLibs)); +ncb.NSURL uriToNSURL(Uri uri) => ncb.NSURL + .URLWithString_(linkedLibs, uri.toString().toNSString(linkedLibs))!; diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index 12cdf94e62..7e9427bdec 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -1,5 +1,5 @@ name: cupertino_http -version: 1.4.0 +version: 1.4.1-wip description: >- A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. @@ -19,7 +19,7 @@ dependencies: dev_dependencies: dart_flutter_team_lints: ^2.0.0 - ffigen: ^9.0.1 + ffigen: ^11.0.0 flutter: plugin: diff --git a/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m b/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m index b89b93c076..b0f2fb742c 100644 --- a/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m +++ b/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m @@ -185,7 +185,7 @@ - (void)URLSession:(NSURLSession *)session - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task -didCompleteWithError:(NSError *)error { +didCompleteWithError:(nullable NSError *)error { CUPHTTPTaskConfiguration *config = [taskConfigurations objectForKey:task]; NSAssert(config != nil, @"No configuration for task."); @@ -219,7 +219,7 @@ - (void)URLSession:(NSURLSession *)session - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)task -didOpenWithProtocol:(NSString *)protocol { +didOpenWithProtocol:(nullable NSString *)protocol { CUPHTTPTaskConfiguration *config = [taskConfigurations objectForKey:task]; NSAssert(config != nil, @"No configuration for task."); @@ -248,7 +248,7 @@ - (void)URLSession:(NSURLSession *)session - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)task didCloseWithCode:(NSURLSessionWebSocketCloseCode)closeCode - reason:(NSData *)reason { + reason:(nullable NSData *)reason { CUPHTTPTaskConfiguration *config = [taskConfigurations objectForKey:task]; NSAssert(config != nil, @"No configuration for task."); diff --git a/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.h b/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.h index 3cf0e827da..3e61ed494b 100644 --- a/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.h +++ b/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.h @@ -51,7 +51,7 @@ * If the request is NIL then the redirect is not followed and the task is * complete. */ -- (void) finishWithRequest:(NSURLRequest *) request; +- (void) finishWithRequest:(nullable NSURLRequest *) request; @property (readonly) NSHTTPURLResponse *response; @property (readonly) NSURLRequest *request; @@ -91,9 +91,9 @@ - (id) initWithSession:(NSURLSession *)session task:(NSURLSessionTask *) task - error:(NSError *)error; + error:(nullable NSError *)error; -@property (readonly) NSError* error; +@property (nullable, readonly) NSError* error; @end @@ -111,9 +111,9 @@ - (id) initWithSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask - didOpenWithProtocol:(NSString *)protocol; + didOpenWithProtocol:(nullable NSString *)protocol; -@property (readonly) NSString* protocol; +@property (nullable, readonly) NSString* protocol; @end @@ -125,6 +125,6 @@ reason:(NSData *)reason; @property (readonly) NSURLSessionWebSocketCloseCode closeCode; -@property (readonly) NSData* reason; +@property (nullable, readonly) NSData* reason; @end diff --git a/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.m b/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.m index 03e413d5db..a9a401d5aa 100644 --- a/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.m +++ b/pkgs/cupertino_http/src/CUPHTTPForwardedDelegate.m @@ -53,7 +53,7 @@ - (void) dealloc { [super dealloc]; } -- (void) finishWithRequest:(NSURLRequest *) request { +- (void) finishWithRequest:(nullable NSURLRequest *) request { self->_redirectRequest = [request retain]; [super finish]; } From 9f47439de37f16a17e7caec8d46f4649a96e0871 Mon Sep 17 00:00:00 2001 From: Derek Xu Date: Wed, 27 Mar 2024 10:57:27 -0400 Subject: [PATCH 3/3] [package:http_profile] Make connectionInfo a top-level field of HttpClientRequestProfile (#1160) --- .../lib/src/http_client_request_profile.dart | 44 +++++++++++++ .../lib/src/http_profile_request_data.dart | 42 ------------- .../lib/src/http_profile_response_data.dart | 35 ----------- .../http_client_request_profile_test.dart | 62 +++++++++++++++++++ .../test/http_profile_request_data_test.dart | 50 --------------- .../test/http_profile_response_data_test.dart | 50 --------------- 6 files changed, 106 insertions(+), 177 deletions(-) diff --git a/pkgs/http_profile/lib/src/http_client_request_profile.dart b/pkgs/http_profile/lib/src/http_client_request_profile.dart index 84db62f1a2..3d2372ba01 100644 --- a/pkgs/http_profile/lib/src/http_client_request_profile.dart +++ b/pkgs/http_profile/lib/src/http_client_request_profile.dart @@ -77,6 +77,50 @@ final class HttpClientRequestProfile { HttpProfileRequestEvent._fromJson, )); + /// Information about the networking connection used. + /// + /// This information is meant to be used for debugging. + /// + /// It can contain any arbitrary data as long as the values are of type + /// [String] or [int]. + /// + /// This field can only be modified by assigning a Map to it. That is: + /// ```dart + /// // Valid + /// profile?.connectionInfo = { + /// 'localPort': 1285, + /// 'remotePort': 443, + /// 'connectionPoolId': '21x23', + /// }; + /// + /// // Invalid + /// profile?.connectionInfo?['localPort'] = 1285; + /// ``` + set connectionInfo(Map? value) { + _updated(); + if (value == null) { + requestData._requestData.remove('connectionInfo'); + responseData._responseData.remove('connectionInfo'); + } else { + for (final v in value.values) { + if (!(v is String || v is int)) { + throw ArgumentError( + 'The values in connectionInfo must be of type String or int.', + ); + } + } + requestData._requestData['connectionInfo'] = {...value}; + responseData._responseData['connectionInfo'] = {...value}; + } + } + + Map? get connectionInfo => + requestData._data['connectionInfo'] == null + ? null + : UnmodifiableMapView( + requestData._data['connectionInfo'] as Map, + ); + /// Details about the request. late final HttpProfileRequestData requestData; diff --git a/pkgs/http_profile/lib/src/http_profile_request_data.dart b/pkgs/http_profile/lib/src/http_profile_request_data.dart index 1463994c12..537643cc2c 100644 --- a/pkgs/http_profile/lib/src/http_profile_request_data.dart +++ b/pkgs/http_profile/lib/src/http_profile_request_data.dart @@ -61,48 +61,6 @@ final class HttpProfileRequestData { List get bodyBytes => UnmodifiableListView(_data['requestBodyBytes'] as List); - /// Information about the networking connection used in the HTTP request. - /// - /// This information is meant to be used for debugging. - /// - /// It can contain any arbitrary data as long as the values are of type - /// [String] or [int]. - /// - /// This field can only be modified by assigning a Map to it. That is: - /// ```dart - /// // Valid - /// profile?.requestData.connectionInfo = { - /// 'localPort': 1285, - /// 'remotePort': 443, - /// 'connectionPoolId': '21x23', - /// }; - /// - /// // Invalid - /// profile?.requestData.connectionInfo?['localPort'] = 1285; - /// ``` - set connectionInfo(Map? value) { - _checkAndUpdate(); - if (value == null) { - _requestData.remove('connectionInfo'); - } else { - for (final v in value.values) { - if (!(v is String || v is int)) { - throw ArgumentError( - 'The values in connectionInfo must be of type String or int.', - ); - } - } - _requestData['connectionInfo'] = {...value}; - } - } - - Map? get connectionInfo => - _requestData['connectionInfo'] == null - ? null - : UnmodifiableMapView( - _requestData['connectionInfo'] as Map, - ); - /// The content length of the request, in bytes. set contentLength(int? value) { _checkAndUpdate(); diff --git a/pkgs/http_profile/lib/src/http_profile_response_data.dart b/pkgs/http_profile/lib/src/http_profile_response_data.dart index 87c769c5e2..5eb452adcb 100644 --- a/pkgs/http_profile/lib/src/http_profile_response_data.dart +++ b/pkgs/http_profile/lib/src/http_profile_response_data.dart @@ -68,41 +68,6 @@ final class HttpProfileResponseData { List get bodyBytes => UnmodifiableListView(_data['responseBodyBytes'] as List); - /// Information about the networking connection used in the HTTP response. - /// - /// This information is meant to be used for debugging. - /// - /// It can contain any arbitrary data as long as the values are of type - /// [String] or [int]. - /// - /// This field can only be modified by assigning a Map to it. That is: - /// ```dart - /// // Valid - /// profile?.responseData.connectionInfo = { - /// 'localPort': 1285, - /// 'remotePort': 443, - /// 'connectionPoolId': '21x23', - /// }; - /// - /// // Invalid - /// profile?.responseData.connectionInfo?['localPort'] = 1285; - /// ``` - set connectionInfo(Map? value) { - _checkAndUpdate(); - if (value == null) { - _responseData.remove('connectionInfo'); - } else { - for (final v in value.values) { - if (!(v is String || v is int)) { - throw ArgumentError( - 'The values in connectionInfo must be of type String or int.', - ); - } - } - _responseData['connectionInfo'] = {...value}; - } - } - Map? get connectionInfo => _responseData['connectionInfo'] as Map?; diff --git a/pkgs/http_profile/test/http_client_request_profile_test.dart b/pkgs/http_profile/test/http_client_request_profile_test.dart index 6c6a9e4884..fdba3e3a6b 100644 --- a/pkgs/http_profile/test/http_client_request_profile_test.dart +++ b/pkgs/http_profile/test/http_client_request_profile_test.dart @@ -77,4 +77,66 @@ void main() { expect(eventFromGetter.timestamp, DateTime.parse('2024-03-22')); expect(eventFromGetter.name, 'an event'); }); + + test('populating HttpClientRequestProfile.connectionInfo', () async { + final requestData = backingMap['requestData'] as Map; + final responseData = backingMap['responseData'] as Map; + expect(requestData['connectionInfo'], isNull); + expect(responseData['connectionInfo'], isNull); + expect(profile.responseData.connectionInfo, isNull); + + profile.connectionInfo = { + 'localPort': 1285, + 'remotePort': 443, + 'connectionPoolId': '21x23' + }; + + final connectionInfoFromRequestData = + requestData['connectionInfo'] as Map; + final connectionInfoFromResponseData = + responseData['connectionInfo'] as Map; + expect(connectionInfoFromRequestData['localPort'], 1285); + expect(connectionInfoFromResponseData['localPort'], 1285); + expect(connectionInfoFromRequestData['remotePort'], 443); + expect(connectionInfoFromResponseData['remotePort'], 443); + expect(connectionInfoFromRequestData['connectionPoolId'], '21x23'); + expect(connectionInfoFromResponseData['connectionPoolId'], '21x23'); + + final connectionInfoFromGetter = profile.responseData.connectionInfo!; + expect(connectionInfoFromGetter['localPort'], 1285); + expect(connectionInfoFromGetter['remotePort'], 443); + expect(connectionInfoFromGetter['connectionPoolId'], '21x23'); + }); + + test('HttpClientRequestProfile.connectionInfo = null', () async { + profile.connectionInfo = { + 'localPort': 1285, + 'remotePort': 443, + 'connectionPoolId': '21x23' + }; + + final requestData = backingMap['requestData'] as Map; + final connectionInfoFromRequestData = + requestData['connectionInfo'] as Map; + final responseData = backingMap['responseData'] as Map; + final connectionInfoFromResponseData = + responseData['connectionInfo'] as Map; + expect(connectionInfoFromRequestData['localPort'], 1285); + expect(connectionInfoFromResponseData['localPort'], 1285); + expect(connectionInfoFromRequestData['remotePort'], 443); + expect(connectionInfoFromResponseData['remotePort'], 443); + expect(connectionInfoFromRequestData['connectionPoolId'], '21x23'); + expect(connectionInfoFromResponseData['connectionPoolId'], '21x23'); + + final connectionInfoFromGetter = profile.responseData.connectionInfo!; + expect(connectionInfoFromGetter['localPort'], 1285); + expect(connectionInfoFromGetter['remotePort'], 443); + expect(connectionInfoFromGetter['connectionPoolId'], '21x23'); + + profile.connectionInfo = null; + + expect(requestData['connectionInfo'], isNull); + expect(responseData['connectionInfo'], isNull); + expect(profile.responseData.connectionInfo, isNull); + }); } diff --git a/pkgs/http_profile/test/http_profile_request_data_test.dart b/pkgs/http_profile/test/http_profile_request_data_test.dart index 6723e81331..36c79a766f 100644 --- a/pkgs/http_profile/test/http_profile_request_data_test.dart +++ b/pkgs/http_profile/test/http_profile_request_data_test.dart @@ -56,56 +56,6 @@ void main() { expect(profile.requestData.endTime, DateTime.parse('2024-03-23')); }); - test('populating HttpClientRequestProfile.requestData.connectionInfo', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['connectionInfo'], isNull); - expect(profile.requestData.connectionInfo, isNull); - - profile.requestData.connectionInfo = { - 'localPort': 1285, - 'remotePort': 443, - 'connectionPoolId': '21x23' - }; - - final connectionInfoFromBackingMap = - requestData['connectionInfo'] as Map; - expect(connectionInfoFromBackingMap['localPort'], 1285); - expect(connectionInfoFromBackingMap['remotePort'], 443); - expect(connectionInfoFromBackingMap['connectionPoolId'], '21x23'); - - final connectionInfoFromGetter = profile.requestData.connectionInfo!; - expect(connectionInfoFromGetter['localPort'], 1285); - expect(connectionInfoFromGetter['remotePort'], 443); - expect(connectionInfoFromGetter['connectionPoolId'], '21x23'); - }); - - test('HttpClientRequestProfile.requestData.connectionInfo = null', () async { - final requestData = backingMap['requestData'] as Map; - - profile.requestData.connectionInfo = { - 'localPort': 1285, - 'remotePort': 443, - 'connectionPoolId': '21x23' - }; - - final connectionInfoFromBackingMap = - requestData['connectionInfo'] as Map; - expect(connectionInfoFromBackingMap['localPort'], 1285); - expect(connectionInfoFromBackingMap['remotePort'], 443); - expect(connectionInfoFromBackingMap['connectionPoolId'], '21x23'); - - final connectionInfoFromGetter = profile.requestData.connectionInfo!; - expect(connectionInfoFromGetter['localPort'], 1285); - expect(connectionInfoFromGetter['remotePort'], 443); - expect(connectionInfoFromGetter['connectionPoolId'], '21x23'); - - profile.requestData.connectionInfo = null; - - expect(requestData['connectionInfo'], isNull); - expect(profile.requestData.connectionInfo, isNull); - }); - test('populating HttpClientRequestProfile.requestData.contentLength', () async { final requestData = backingMap['requestData'] as Map; diff --git a/pkgs/http_profile/test/http_profile_response_data_test.dart b/pkgs/http_profile/test/http_profile_response_data_test.dart index f256971463..9b73cb7b38 100644 --- a/pkgs/http_profile/test/http_profile_response_data_test.dart +++ b/pkgs/http_profile/test/http_profile_response_data_test.dart @@ -52,56 +52,6 @@ void main() { expect(redirectFromGetter.location, 'https://images.example.com/1'); }); - test('populating HttpClientRequestProfile.responseData.connectionInfo', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['connectionInfo'], isNull); - expect(profile.responseData.connectionInfo, isNull); - - profile.responseData.connectionInfo = { - 'localPort': 1285, - 'remotePort': 443, - 'connectionPoolId': '21x23' - }; - - final connectionInfoFromBackingMap = - responseData['connectionInfo'] as Map; - expect(connectionInfoFromBackingMap['localPort'], 1285); - expect(connectionInfoFromBackingMap['remotePort'], 443); - expect(connectionInfoFromBackingMap['connectionPoolId'], '21x23'); - - final connectionInfoFromGetter = profile.responseData.connectionInfo!; - expect(connectionInfoFromGetter['localPort'], 1285); - expect(connectionInfoFromGetter['remotePort'], 443); - expect(connectionInfoFromGetter['connectionPoolId'], '21x23'); - }); - - test('HttpClientRequestProfile.responseData.connectionInfo = null', () async { - final responseData = backingMap['responseData'] as Map; - - profile.responseData.connectionInfo = { - 'localPort': 1285, - 'remotePort': 443, - 'connectionPoolId': '21x23' - }; - - final connectionInfoFromBackingMap = - responseData['connectionInfo'] as Map; - expect(connectionInfoFromBackingMap['localPort'], 1285); - expect(connectionInfoFromBackingMap['remotePort'], 443); - expect(connectionInfoFromBackingMap['connectionPoolId'], '21x23'); - - final connectionInfoFromGetter = profile.responseData.connectionInfo!; - expect(connectionInfoFromGetter['localPort'], 1285); - expect(connectionInfoFromGetter['remotePort'], 443); - expect(connectionInfoFromGetter['connectionPoolId'], '21x23'); - - profile.responseData.connectionInfo = null; - - expect(responseData['connectionInfo'], isNull); - expect(profile.responseData.connectionInfo, isNull); - }); - test('populating HttpClientRequestProfile.responseData.headersListValues', () async { final responseData = backingMap['responseData'] as Map;